@para-ui/core 4.0.0-rc → 4.0.0-rc.2

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 (266) hide show
  1. package/AutoBox/index.d.ts +1 -1
  2. package/AutoBox/index.js +12 -12
  3. package/AutoTips/autoTipsMultiline/index.d.ts +1 -1
  4. package/AutoTips/index.d.ts +2 -2
  5. package/AutoTips/index.js +15 -21
  6. package/Badge/index.d.ts +23 -0
  7. package/Badge/index.js +54 -0
  8. package/Breadcrumbs/index.js +8 -8
  9. package/Button/SplitButton.d.ts +1 -1
  10. package/Button/index.d.ts +1 -1
  11. package/Button/index.js +8 -38
  12. package/Carousel/index.d.ts +6 -6
  13. package/Carousel/index.js +5 -5
  14. package/Cascader/Cascader.d.ts +10 -10
  15. package/Cascader/OptionList/Column.d.ts +3 -3
  16. package/Cascader/OptionList/index.d.ts +2 -2
  17. package/Cascader/index.d.ts +1 -1
  18. package/Cascader/index.js +4 -2
  19. package/Cascader/lang/en_US.d.ts +5 -0
  20. package/Cascader/lang/index.d.ts +11 -0
  21. package/Cascader/lang/zh_CN.d.ts +5 -0
  22. package/Cascader/utils/treeUtil.d.ts +1 -1
  23. package/Checkbox/index.d.ts +1 -1
  24. package/Checkbox/index.js +5 -5
  25. package/CheckboxGroup/index.d.ts +2 -2
  26. package/CheckboxGroup/index.js +4 -4
  27. package/Collapse/index.js +5 -5
  28. package/CollapseBox/index.js +12 -20
  29. package/CollapseLayout/index.js +21 -21
  30. package/ColorPicker/index.js +2 -2
  31. package/ComboSelect/index.js +43 -52
  32. package/ComboSelect/interface.d.ts +3 -3
  33. package/Container/index.d.ts +3 -3
  34. package/Container/index.js +56 -56
  35. package/CopyText/index.d.ts +2 -2
  36. package/CopyText/index.js +3 -3
  37. package/DatePicker/generatePicker/index.d.ts +22 -22
  38. package/DatePicker/index.js +10 -9
  39. package/DatePicker/util.d.ts +1 -1
  40. package/Descriptions/index.d.ts +38 -0
  41. package/Descriptions/index.js +23 -0
  42. package/Desktop/index.d.ts +1 -1
  43. package/Desktop/index.js +18 -13
  44. package/DragVerify/index.d.ts +1 -1
  45. package/DragVerify/index.js +13 -13
  46. package/Drawer/index.js +40 -38
  47. package/Drawer/interface.d.ts +4 -6
  48. package/Dropdown/index.d.ts +1 -1
  49. package/DynamicMultiBox/formItem.d.ts +1 -1
  50. package/DynamicMultiBox/index.d.ts +1 -1
  51. package/DynamicMultiBox/index.js +38 -35
  52. package/DynamicMultiBox/interface.d.ts +8 -8
  53. package/DynamicMultiBox/rowForm.d.ts +3 -1
  54. package/Empty/index.d.ts +1 -1
  55. package/Empty/index.js +3 -3
  56. package/Form/index.d.ts +12 -13
  57. package/Form/index.js +10 -8
  58. package/FormItem/compoments/defaultCompoments/index.d.ts +4 -4
  59. package/FormItem/compoments/formCheckboxGroup/index.d.ts +1 -1
  60. package/FormItem/compoments/formFile/index.d.ts +2 -2
  61. package/FormItem/compoments/formRadioGroup/index.d.ts +1 -1
  62. package/FormItem/compoments/formSelect/index.d.ts +7 -7
  63. package/FormItem/errorTips.d.ts +3 -3
  64. package/FormItem/index.d.ts +5 -5
  65. package/FormItem/index.js +3 -2
  66. package/FormItem/lang/en_US.d.ts +10 -0
  67. package/FormItem/lang/index.d.ts +21 -0
  68. package/FormItem/lang/zh_CN.d.ts +10 -0
  69. package/FormItem/validateFunction.d.ts +1 -1
  70. package/FunctionModal/dialog.d.ts +26 -26
  71. package/FunctionModal/index.d.ts +6 -6
  72. package/FunctionModal/index.js +9 -10
  73. package/FunctionModal/modalContext.d.ts +3 -3
  74. package/GlobalContext/componentsProps.d.ts +7 -7
  75. package/GlobalContext/confirmLocale.d.ts +1 -2
  76. package/GlobalContext/index.d.ts +2 -2
  77. package/GlobalContext/index.js +3 -2
  78. package/GlobalContext/useFormatMessage.d.ts +1 -1
  79. package/Help/index.js +2 -2
  80. package/HelperText/index.js +1 -1
  81. package/InputLang/index.d.ts +2 -2
  82. package/InputLang/index.js +8 -8
  83. package/InputNumber/index.d.ts +4 -2
  84. package/InputNumber/index.js +27 -15
  85. package/Label/index.js +2 -2
  86. package/Loading/index.js +1 -1
  87. package/Menu/index.js +17 -17
  88. package/Menu/interface.d.ts +1 -1
  89. package/Message/index.js +13 -13
  90. package/Modal/Confirm/index.d.ts +3 -3
  91. package/Modal/index.d.ts +1 -1
  92. package/Modal/index.js +20 -17
  93. package/Modal/lang/index.d.ts +8 -0
  94. package/MultiBox/index.d.ts +2 -2
  95. package/MultiBox/index.js +4 -4
  96. package/Notification/index.js +2 -2
  97. package/OperateBtn/index.d.ts +2 -2
  98. package/OperateBtn/index.js +49 -49
  99. package/PageHeader/index.js +45 -34
  100. package/PageHeader/interface.d.ts +1 -1
  101. package/Pagination/index.d.ts +1 -1
  102. package/Pagination/index.js +19 -19
  103. package/PasswordRules/index.js +8 -8
  104. package/PopConfirm/index.js +8 -7
  105. package/Progress/Line.d.ts +10 -10
  106. package/Progress/Steps.d.ts +2 -2
  107. package/Progress/index.d.ts +12 -12
  108. package/Progress/index.js +43 -42
  109. package/Progress/utils.d.ts +4 -4
  110. package/Querying/index.d.ts +1 -1
  111. package/Querying/index.js +3 -3
  112. package/README.md +7 -0
  113. package/Radio/index.d.ts +1 -1
  114. package/Radio/index.js +5 -5
  115. package/RadioGroup/index.d.ts +2 -2
  116. package/RadioGroup/index.js +4 -4
  117. package/Search/index.js +1 -1
  118. package/Select/index.d.ts +3 -3
  119. package/Select/index.js +43 -43
  120. package/SelectInput/index.js +2 -2
  121. package/Selector/index.js +26 -34
  122. package/Selector/interface.d.ts +6 -6
  123. package/SelectorPicker/index.d.ts +4 -4
  124. package/SelectorPicker/index.js +10 -10
  125. package/SingleBox/index.d.ts +2 -2
  126. package/SingleBox/index.js +4 -4
  127. package/Slider/index.js +1 -1
  128. package/Slider/interface.d.ts +1 -1
  129. package/Status/index.d.ts +4 -4
  130. package/Status/index.js +6 -7
  131. package/Stepper/index.d.ts +5 -5
  132. package/Stepper/index.js +23 -23
  133. package/Styles/theme.scss +1 -0
  134. package/Switch/index.d.ts +7 -7
  135. package/Switch/index.js +38 -21
  136. package/Switch/lang/en_US.d.ts +4 -0
  137. package/Switch/lang/index.d.ts +9 -0
  138. package/Switch/lang/zh_CN.d.ts +4 -0
  139. package/Table/index.js +35 -35
  140. package/Table/interface.d.ts +4 -4
  141. package/Table/tableBodyElement/index.d.ts +1 -1
  142. package/Table/tableBodyInterface.d.ts +2 -2
  143. package/Table/tableContainer/index.d.ts +1 -1
  144. package/Table/tableElement/index.d.ts +1 -1
  145. package/Table/tableHeadElement/index.d.ts +1 -1
  146. package/Table/tableHeadInterface.d.ts +1 -1
  147. package/Table/tablePaginationInterface.d.ts +6 -6
  148. package/Table/tdElement/index.d.ts +1 -1
  149. package/Table/thElement/index.d.ts +2 -2
  150. package/Table/trElement/index.d.ts +1 -1
  151. package/Table/util.d.ts +1 -1
  152. package/Tabs/index.d.ts +1 -1
  153. package/Tabs/index.js +27 -19
  154. package/Tag/TagGroup.d.ts +5 -5
  155. package/Tag/index.d.ts +7 -7
  156. package/Tag/index.js +25 -25
  157. package/TextEditor/index.d.ts +2 -2
  158. package/TextEditor/index.js +45 -27
  159. package/TextEditor/lang/en_US.d.ts +4 -0
  160. package/TextEditor/lang/index.d.ts +9 -0
  161. package/TextEditor/lang/zh_CN.d.ts +4 -0
  162. package/TextField/index.d.ts +1 -1
  163. package/TextField/index.js +19 -16
  164. package/TimePicker/index.d.ts +1 -1
  165. package/TimePicker/index.js +2 -2
  166. package/Timeline/TimelineItem.d.ts +1 -1
  167. package/Timeline/index.d.ts +5 -5
  168. package/Timeline/index.js +14 -14
  169. package/Title/index.d.ts +4 -4
  170. package/Title/index.js +3 -3
  171. package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
  172. package/ToggleButton/index.d.ts +5 -1
  173. package/ToggleButton/index.js +18 -11
  174. package/Transfer/box.d.ts +6 -6
  175. package/Transfer/index.js +22 -25
  176. package/Tree/OperateBar/index.d.ts +4 -4
  177. package/Tree/Tree.d.ts +2 -2
  178. package/Tree/index.js +2 -2
  179. package/Tree/interface.d.ts +4 -4
  180. package/Tree/utils/tools.d.ts +1 -1
  181. package/Upload/Dragger/index.d.ts +2 -2
  182. package/Upload/ErroTip/index.d.ts +1 -1
  183. package/Upload/index.d.ts +2 -2
  184. package/Upload/index.js +10 -11
  185. package/Upload/interface.d.ts +1 -1
  186. package/_verture/{index-8469865e.js → index-024bbc9b.js} +3 -3
  187. package/_verture/{index-19947788.js → index-05f7bf11.js} +3 -1
  188. package/_verture/{index-e1b800aa.js → index-50f56891.js} +49 -25
  189. package/_verture/{index-1c8d3e94.js → index-649b450f.js} +102 -48
  190. package/_verture/{index-47297a40.js → index-692e29c1.js} +53 -46
  191. package/_verture/{modalContext-670eab09.js → modalContext-11c51a45.js} +25 -25
  192. package/index.d.ts +4 -0
  193. package/index.js +14 -11
  194. package/locale/en-US.d.ts +19 -0
  195. package/locale/index.d.ts +38 -0
  196. package/locale/index.js +40 -2
  197. package/locale/zh-CN.d.ts +19 -0
  198. package/package.json +4 -2
  199. package/umd/AutoBox.js +1 -1
  200. package/umd/AutoTips.js +1 -1
  201. package/umd/Badge.js +1 -0
  202. package/umd/Breadcrumbs.js +1 -1
  203. package/umd/Button.js +2 -2
  204. package/umd/ButtonGroup.js +2 -2
  205. package/umd/Cascader.js +4 -4
  206. package/umd/Checkbox.js +2 -2
  207. package/umd/CheckboxGroup.js +2 -2
  208. package/umd/Collapse.js +5 -5
  209. package/umd/CollapseBox.js +1 -1
  210. package/umd/CollapseLayout.js +4 -4
  211. package/umd/ColorPicker.js +1 -1
  212. package/umd/ComboSelect.js +4 -4
  213. package/umd/CopyText.js +2 -2
  214. package/umd/DatePicker.js +2 -2
  215. package/umd/Descriptions.js +1 -0
  216. package/umd/Desktop.js +2 -2
  217. package/umd/DragVerify.js +4 -4
  218. package/umd/Drawer.js +2 -2
  219. package/umd/DynamicMultiBox.js +4 -4
  220. package/umd/Empty.js +1 -1
  221. package/umd/Form.js +4 -4
  222. package/umd/FormItem.js +4 -4
  223. package/umd/FunctionModal.js +4 -4
  224. package/umd/GlobalContext.js +1 -1
  225. package/umd/Help.js +2 -2
  226. package/umd/HelperText.js +1 -1
  227. package/umd/InputLang.js +2 -2
  228. package/umd/InputNumber.js +4 -4
  229. package/umd/Label.js +2 -2
  230. package/umd/Loading.js +1 -1
  231. package/umd/Menu.js +3 -3
  232. package/umd/Message.js +2 -2
  233. package/umd/Modal.js +4 -4
  234. package/umd/MultiBox.js +7 -7
  235. package/umd/Notification.js +2 -2
  236. package/umd/OperateBtn.js +4 -4
  237. package/umd/PageHeader.js +4 -4
  238. package/umd/Pagination.js +2 -2
  239. package/umd/PasswordRules.js +4 -4
  240. package/umd/PopConfirm.js +2 -2
  241. package/umd/Progress.js +3 -3
  242. package/umd/Querying.js +1 -1
  243. package/umd/Radio.js +2 -2
  244. package/umd/RadioGroup.js +2 -2
  245. package/umd/Search.js +7 -7
  246. package/umd/Select.js +2 -2
  247. package/umd/SelectInput.js +2 -2
  248. package/umd/Selector.js +2 -2
  249. package/umd/SelectorPicker.js +2 -2
  250. package/umd/SingleBox.js +2 -2
  251. package/umd/Slider.js +1 -1
  252. package/umd/Status.js +2 -2
  253. package/umd/Stepper.js +1 -1
  254. package/umd/Switch.js +5 -5
  255. package/umd/Table.js +6 -6
  256. package/umd/Tabs.js +6 -6
  257. package/umd/Tag.js +1 -1
  258. package/umd/TextEditor.js +3 -3
  259. package/umd/TextField.js +7 -7
  260. package/umd/TimePicker.js +2 -2
  261. package/umd/Title.js +7 -7
  262. package/umd/ToggleButton.js +4 -4
  263. package/umd/Transfer.js +3 -3
  264. package/umd/Tree.js +2 -2
  265. package/umd/Upload.js +2 -2
  266. package/umd/locale.js +1 -1
package/umd/DragVerify.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@paraview/lib"])}(self,(function(e,r){return function(){var t={61217:function(e,r,t){"use strict";t.d(r,{Z:function(){return o}});var n=t(85893),i=t(97435),o=function(e){return(0,n.jsx)(i.l,Object.assign({dataName:"LoadingF",viewBox:"0 0 24 24",path:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("g",Object.assign({id:"LoadingF",transform:"translate(-430 -2399)"},{children:[(0,n.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(430 2399)",fill:"none"}),(0,n.jsx)("path",{id:"icon",d:"M7.2,0H8.885L8.9.15h.089L9,.169h.081l.022,0h0L9.135.2h.007l.022,0h0L9.208.21h0l.007,0h0l.007,0h0L9.252.22h0l.007,0h0l.007,0h0l.007,0h0l.007,0h0l.007,0h0a9.618,9.618,0,0,1,6.676,5.448h0l.012.027h0l.012.026h0L16,5.756h0l0,.006h0l0,.007h0l0,.007h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.005h0l0,.005h0l0,.005h0l0,.005h0l0,.006h0l0,.006h0l0,.006h0l0,.005v0l0,.005h0l0,.006h0l0,.006h0L16.1,6V6L16.1,6h0l0,.006h0l0,.006h0l0,.005v0l0,.005v0l0,.005h0l0,.005h0l0,.005v0l0,.005h0l0,.006h0l0,.005h0l0,.005v0l0,.005v0l0,.005v0l0,.005h0l0,.005v0l0,0v0l0,0v0l0,.005v0l0,0v0l0,0v0l0,0v0l0,.005v0l0,0v0l0,0v0l0,.005v0l0,.005v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0,0,.007,0,.007,0,.007v0l0,0,0,.007,0,.007,0,.007v0l0,0,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007v0l0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007v.014l0,.007,0,.007,0,.007,0,.007,0,.007v.066l0,0v0l0,0v.016l0,0v0l0,0V6.8l0,.005v0l0,.005v0l0,.005v0l0,.005v0l0,.005v0l0,.005v.016l0,.005v0l0,.005v0l0,.005v0l0,.005v0l0,.005v.016l0,.005h0l0,.006v0l0,.005v.009l0,.005v0l0,.006v0l0,.005v.014h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006v0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006v0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.007h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.007h0l0,.007h0l0,.007h0l0,.007h0l0,.007h0l0,.007h0l0,.006h0l.005.021h0l0,.014h0l0,.007h0l0,.007h0a9.617,9.617,0,0,1,.29,2.338l-1.333,0A8.278,8.278,0,0,0,7.2,1.333V0Z",transform:"translate(434.8 2401.401)"})]}))})},e))}},97435:function(e,r,t){"use strict";t.d(r,{l:function(){return i}});var n=t(85893);
1
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@paraview/lib"])}(self,(function(e,r){return function(){var t={61217:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});var n=t(85893),o=t(97435),i=function(e){return(0,n.jsx)(o.l,Object.assign({dataName:"LoadingF",viewBox:"0 0 24 24",path:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("g",Object.assign({id:"LoadingF",transform:"translate(-430 -2399)"},{children:[(0,n.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(430 2399)",fill:"none"}),(0,n.jsx)("path",{id:"icon",d:"M7.2,0H8.885L8.9.15h.089L9,.169h.081l.022,0h0L9.135.2h.007l.022,0h0L9.208.21h0l.007,0h0l.007,0h0L9.252.22h0l.007,0h0l.007,0h0l.007,0h0l.007,0h0l.007,0h0a9.618,9.618,0,0,1,6.676,5.448h0l.012.027h0l.012.026h0L16,5.756h0l0,.006h0l0,.007h0l0,.007h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.005h0l0,.005h0l0,.005h0l0,.005h0l0,.006h0l0,.006h0l0,.006h0l0,.005v0l0,.005h0l0,.006h0l0,.006h0L16.1,6V6L16.1,6h0l0,.006h0l0,.006h0l0,.005v0l0,.005v0l0,.005h0l0,.005h0l0,.005v0l0,.005h0l0,.006h0l0,.005h0l0,.005v0l0,.005v0l0,.005v0l0,.005h0l0,.005v0l0,0v0l0,0v0l0,.005v0l0,0v0l0,0v0l0,0v0l0,.005v0l0,0v0l0,0v0l0,.005v0l0,.005v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0,0,.007,0,.007,0,.007v0l0,0,0,.007,0,.007,0,.007v0l0,0,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007v0l0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007v.014l0,.007,0,.007,0,.007,0,.007,0,.007v.066l0,0v0l0,0v.016l0,0v0l0,0V6.8l0,.005v0l0,.005v0l0,.005v0l0,.005v0l0,.005v0l0,.005v.016l0,.005v0l0,.005v0l0,.005v0l0,.005v0l0,.005v.016l0,.005h0l0,.006v0l0,.005v.009l0,.005v0l0,.006v0l0,.005v.014h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006v0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006v0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.007h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.007h0l0,.007h0l0,.007h0l0,.007h0l0,.007h0l0,.007h0l0,.006h0l.005.021h0l0,.014h0l0,.007h0l0,.007h0a9.617,9.617,0,0,1,.29,2.338l-1.333,0A8.278,8.278,0,0,0,7.2,1.333V0Z",transform:"translate(434.8 2401.401)"})]}))})},e))}},97435:function(e,r,t){"use strict";t.d(r,{l:function(){return o}});var n=t(85893);
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,12 +12,12 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */!function(e,r){void 0===r&&(r={});var t=r.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===t&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}('@charset "UTF-8";\n/**\n* @author Hanz\n* @date 2021/8/25 下午3:16\n* @description icons scss\n*/\n.paraui-v4-icon {\n width: 1em;\n height: 1em;\n fill: currentColor;\n display: inline-block;\n user-select: none;\n flex-shrink: 0;\n}\n.paraui-v4-icon-primary {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-icon-secondary {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-icon-thirdary {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-icon-info {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-icon-warn {\n color: rgb(255, 147, 38);\n}\n.paraui-v4-icon-success {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-icon-error {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-icon-small {\n font-size: 16px;\n}\n.paraui-v4-icon-medium {\n font-size: 18px;\n}\n.paraui-v4-icon-large {\n font-size: 20px;\n}');var i=function(e){var r,t,i=e.path,o=e.className,a=e.color,l=void 0===a?"info":a,s=e.size,c=void 0===s?"small":s,u=e.dataName,d=void 0===u?"":u,f=e.style,v=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(e,["path","className","color","size","dataName","style"]),p="paraui-v4",m="primary"===l||"secondary"===l||"info"===l||"success"===l||"warn"===l||"error"===l;return(0,n.jsx)("svg",Object.assign({className:(t="".concat(p,"-icon"),t+=" svg-icon",o&&(t+=" "+o),m&&(t+=" ".concat(p,"-icon-").concat(l)),c&&(t+=" ".concat(p,"-icon-").concat(c)),t),viewBox:"0 0 1024 1024","data-name":d,style:(r=Object.assign({},f),l&&!m&&(r.color=l),r)},v,{children:i}))}},38271:function(e,r,t){(r=t(23645)(!1)).push([e.id,".paraui-v4-drag-verify{width:100%;position:relative}.paraui-v4-drag-verify>.refresh{position:absolute;right:4px;top:4px;z-index:10;cursor:pointer;display:none;font-size:24px;color:#fff;opacity:.7}.paraui-v4-drag-verify>.refresh:hover{opacity:1}.paraui-v4-drag-verify>.slider-img{position:relative;border-radius:4px;overflow:hidden;line-height:0;min-height:60px}.paraui-v4-drag-verify>.slider-img .slider-img-bg{width:100%;height:auto;border-radius:4px}.paraui-v4-drag-verify>.slider-img .slider-img-move{position:absolute;left:0;height:auto}.paraui-v4-drag-verify>.slider-move{position:relative;text-align:center;line-height:32px;height:32px;margin-top:12px}.paraui-v4-drag-verify>.slider-move>.slider-move-bg{position:absolute;left:0;right:0;top:0;background-color:#f7f8fa;height:32px;border-radius:4px;border:1px solid #d4dae3}.paraui-v4-drag-verify>.slider-move>.slider-move-mask{position:absolute;left:0;top:0;height:32px;width:2px;border-bottom-left-radius:4px;border-top-left-radius:4px}.paraui-v4-drag-verify>.slider-move>.slider-move-mask>.slider-move-box{position:absolute;top:0;left:-1px;width:32px;height:32px;background:#fff;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;border:1px solid #d4dae3}.paraui-v4-drag-verify>.slider-move>.slider-move-mask>.slider-move-box:hover .svg-right{color:#2e65e6}.paraui-v4-drag-verify>.slider-move>.slider-move-mask>.slider-move-box .svg-right{display:inline-block;color:#5c6573}.paraui-v4-drag-verify>.slider-move>.slider-move-mask>.slider-move-box .svg-close{display:none}.paraui-v4-drag-verify>.slider-move>.slider-move-mask>.slider-move-box .svg-check{display:none}.paraui-v4-drag-verify>.slider-move>.slider-move-text{color:#a1a8b3;font-size:14px}.paraui-v4-drag-verify.paraui-v4-drag-verify-move>.slider-move>.slider-move-mask{border:1px solid #2e65e6;border-width:1px 0 1px 1px;background-color:#d5e0fa}.paraui-v4-drag-verify.paraui-v4-drag-verify-move>.slider-move>.slider-move-mask>.slider-move-box{background-color:#2e65e6;border-top:1px solid #2e65e6;border-bottom:1px solid #2e65e6;top:-1px;border-bottom-left-radius:0;border-top-left-radius:0}.paraui-v4-drag-verify.paraui-v4-drag-verify-move>.slider-move>.slider-move-mask>.slider-move-box>.svg-right{color:#fff}.paraui-v4-drag-verify.paraui-v4-drag-verify-error>.slider-move>.slider-move-mask{border:1px solid #f44242;border-width:1px 0 1px 1px;background-color:rgba(244,66,66,.1)}.paraui-v4-drag-verify.paraui-v4-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box{background-color:#f44242;border-top:1px solid #f44242;border-bottom:1px solid #f44242;top:-1px;border-bottom-left-radius:0;border-top-left-radius:0}.paraui-v4-drag-verify.paraui-v4-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box>.svg-close{display:inline-block;color:#fff}.paraui-v4-drag-verify.paraui-v4-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box>.svg-right{display:none}.paraui-v4-drag-verify.paraui-v4-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box>.svg-check{display:none}.paraui-v4-drag-verify.paraui-v4-drag-verify-success>.slider-move>.slider-move-mask{border:1px solid #13bf4c;border-width:1px 0 1px 1px;background-color:rgba(19,191,76,.1)}.paraui-v4-drag-verify.paraui-v4-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box{background-color:#13bf4c;border-top:1px solid #13bf4c;border-bottom:1px solid #13bf4c;top:-1px;border-bottom-left-radius:0;border-top-left-radius:0}.paraui-v4-drag-verify.paraui-v4-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box .svg-close{display:none}.paraui-v4-drag-verify.paraui-v4-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box .svg-right{display:none}.paraui-v4-drag-verify.paraui-v4-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box .svg-check{display:inline-block;color:#fff}",""]),e.exports=r},5714:function(e,r,t){(r=t(23645)(!1)).push([e.id,".paraui-v4-loading{position:absolute;left:0;top:0;width:100%;height:100%}@keyframes rotateLoading{0%{transformOrigin:50% 50%}100%{transform:rotate(360deg)}}.paraui-v4-loading .loading-mask{position:absolute;width:100%;height:100%;background-color:#fff;z-index:100}.paraui-v4-loading .loading-box{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:101}.paraui-v4-loading .loading-box>svg{transition:all .3s ease-in-out;animation:rotateLoading 1s infinite linear;font-size:20px}",""]),e.exports=r},23645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t=e[1]||"",n=e[3];if(!n)return t;if(r&&"function"==typeof btoa){var i=(a=n,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(s," */")),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(o).concat([i]).join("\n")}var a,l,s;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);n&&i[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),r.push(s))}},r}},27418:function(e){"use strict";
15
+ ***************************************************************************** */!function(e,r){void 0===r&&(r={});var t=r.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===t&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('@charset "UTF-8";\n/**\n* @author Hanz\n* @date 2021/8/25 下午3:16\n* @description icons scss\n*/\n.paraui-v4-icon {\n width: 1em;\n height: 1em;\n fill: currentColor;\n display: inline-block;\n user-select: none;\n flex-shrink: 0;\n}\n.paraui-v4-icon-primary {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-icon-secondary {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-icon-thirdary {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-icon-info {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-icon-warn {\n color: rgb(255, 147, 38);\n}\n.paraui-v4-icon-success {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-icon-error {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-icon-small {\n font-size: 16px;\n}\n.paraui-v4-icon-medium {\n font-size: 18px;\n}\n.paraui-v4-icon-large {\n font-size: 20px;\n}');var o=function(e){var r,t,o=e.path,i=e.className,a=e.color,l=void 0===a?"info":a,s=e.size,c=void 0===s?"small":s,u=e.dataName,d=void 0===u?"":u,f=e.style,v=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}(e,["path","className","color","size","dataName","style"]),p="paraui-v4",m="primary"===l||"secondary"===l||"info"===l||"success"===l||"warn"===l||"error"===l;return(0,n.jsx)("svg",Object.assign({className:(t="".concat(p,"-icon"),t+=" svg-icon",i&&(t+=" "+i),m&&(t+=" ".concat(p,"-icon-").concat(l)),c&&(t+=" ".concat(p,"-icon-").concat(c)),t),viewBox:"0 0 1024 1024","data-name":d,style:(r=Object.assign({},f),l&&!m&&(r.color=l),r)},v,{children:o}))}},38271:function(e,r,t){(r=t(23645)(!1)).push([e.id,".paraui-v4-drag-verify{width:100%;position:relative}.paraui-v4-drag-verify>.refresh{position:absolute;right:4px;top:4px;z-index:10;cursor:pointer;display:none;font-size:24px;color:#fff;opacity:.7}.paraui-v4-drag-verify>.refresh:hover{opacity:1}.paraui-v4-drag-verify>.slider-img{position:relative;border-radius:4px;overflow:hidden;line-height:0;min-height:60px}.paraui-v4-drag-verify>.slider-img .slider-img-bg{width:100%;height:auto;border-radius:4px}.paraui-v4-drag-verify>.slider-img .slider-img-move{position:absolute;left:0;height:auto}.paraui-v4-drag-verify>.slider-move{position:relative;text-align:center;line-height:32px;height:32px;margin-top:12px}.paraui-v4-drag-verify>.slider-move>.slider-move-bg{position:absolute;left:0;right:0;top:0;background-color:#f7f8fa;height:32px;border-radius:4px;border:1px solid #d4dae3}.paraui-v4-drag-verify>.slider-move>.slider-move-mask{position:absolute;left:0;top:0;height:32px;width:2px;border-bottom-left-radius:4px;border-top-left-radius:4px}.paraui-v4-drag-verify>.slider-move>.slider-move-mask>.slider-move-box{position:absolute;top:0;left:-1px;width:32px;height:32px;background:#fff;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;border:1px solid #d4dae3}.paraui-v4-drag-verify>.slider-move>.slider-move-mask>.slider-move-box:hover .svg-right{color:#2e65e6}.paraui-v4-drag-verify>.slider-move>.slider-move-mask>.slider-move-box .svg-right{display:inline-block;color:#5c6573}.paraui-v4-drag-verify>.slider-move>.slider-move-mask>.slider-move-box .svg-close{display:none}.paraui-v4-drag-verify>.slider-move>.slider-move-mask>.slider-move-box .svg-check{display:none}.paraui-v4-drag-verify>.slider-move>.slider-move-text{color:#a1a8b3;font-size:14px}.paraui-v4-drag-verify.paraui-v4-drag-verify-move>.slider-move>.slider-move-mask{border:1px solid #2e65e6;border-width:1px 0 1px 1px;background-color:#d5e0fa}.paraui-v4-drag-verify.paraui-v4-drag-verify-move>.slider-move>.slider-move-mask>.slider-move-box{background-color:#2e65e6;border-top:1px solid #2e65e6;border-bottom:1px solid #2e65e6;top:-1px;border-bottom-left-radius:0;border-top-left-radius:0}.paraui-v4-drag-verify.paraui-v4-drag-verify-move>.slider-move>.slider-move-mask>.slider-move-box>.svg-right{color:#fff}.paraui-v4-drag-verify.paraui-v4-drag-verify-error>.slider-move>.slider-move-mask{border:1px solid #f44242;border-width:1px 0 1px 1px;background-color:rgba(244,66,66,.1)}.paraui-v4-drag-verify.paraui-v4-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box{background-color:#f44242;border-top:1px solid #f44242;border-bottom:1px solid #f44242;top:-1px;border-bottom-left-radius:0;border-top-left-radius:0}.paraui-v4-drag-verify.paraui-v4-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box>.svg-close{display:inline-block;color:#fff}.paraui-v4-drag-verify.paraui-v4-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box>.svg-right{display:none}.paraui-v4-drag-verify.paraui-v4-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box>.svg-check{display:none}.paraui-v4-drag-verify.paraui-v4-drag-verify-success>.slider-move>.slider-move-mask{border:1px solid #13bf4c;border-width:1px 0 1px 1px;background-color:rgba(19,191,76,.1)}.paraui-v4-drag-verify.paraui-v4-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box{background-color:#13bf4c;border-top:1px solid #13bf4c;border-bottom:1px solid #13bf4c;top:-1px;border-bottom-left-radius:0;border-top-left-radius:0}.paraui-v4-drag-verify.paraui-v4-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box .svg-close{display:none}.paraui-v4-drag-verify.paraui-v4-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box .svg-right{display:none}.paraui-v4-drag-verify.paraui-v4-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box .svg-check{display:inline-block;color:#fff}",""]),e.exports=r},5714:function(e,r,t){(r=t(23645)(!1)).push([e.id,".paraui-v4-loading{position:absolute;left:0;top:0;width:100%;height:100%}@keyframes rotateLoading{0%{transformOrigin:50% 50%}100%{transform:rotate(360deg)}}.paraui-v4-loading .loading-mask{position:absolute;width:100%;height:100%;background-color:#fff;z-index:100}.paraui-v4-loading .loading-box{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:101}.paraui-v4-loading .loading-box>svg{transition:all .3s ease-in-out;animation:rotateLoading 1s infinite linear;font-size:20px}",""]),e.exports=r},23645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t=e[1]||"",n=e[3];if(!n)return t;if(r&&"function"==typeof btoa){var o=(a=n,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(s," */")),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(i).concat([o]).join("\n")}var a,l,s;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);n&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),r.push(s))}},r}},27418:function(e){"use strict";
16
16
  /*
17
17
  object-assign
18
18
  (c) Sindre Sorhus
19
19
  @license MIT
20
- */var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in o=Object(arguments[s]))t.call(o,c)&&(l[c]=o[c]);if(r){a=r(o);for(var u=0;u<a.length;u++)n.call(o,a[u])&&(l[a[u]]=o[a[u]])}}return l}},75251:function(e,r,t){"use strict";
20
+ */var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))t.call(i,c)&&(l[c]=i[c]);if(r){a=r(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(l[a[u]]=i[a[u]])}}return l}},75251:function(e,r,t){"use strict";
21
21
  /** @license React v17.0.2
22
22
  * react-jsx-runtime.production.min.js
23
23
  *
@@ -25,4 +25,4 @@ object-assign
25
25
  *
26
26
  * This source code is licensed under the MIT license found in the
27
27
  * LICENSE file in the root directory of this source tree.
28
- */t(27418);var n=t(8156),i=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),r.Fragment=o("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,r,t){var n,o={},c=null,u=null;for(n in void 0!==t&&(c=""+t),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(u=r.ref),r)l.call(r,n)&&!s.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}r.jsx=c,r.jsxs=c},85893:function(e,r,t){"use strict";e.exports=t(75251)},75875:function(e,r,t){var n=t(93379),i=t(38271);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};n(i,o);e.exports=i.locals||{}},13267:function(e,r,t){var n=t(93379),i=t(5714);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]);var o={insert:"head",singleton:!1};n(i,o);e.exports=i.locals||{}},93379:function(e,r,t){"use strict";var n,i=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),a=[];function l(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function s(e,r){for(var t={},n=[],i=0;i<e.length;i++){var o=e[i],s=r.base?o[0]+r.base:o[0],c=t[s]||0,u="".concat(s," ").concat(c);t[s]=c+1;var d=l(u),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:h(f,r),references:1}),n.push(u)}return n}function c(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var i=t.nc;i&&(n.nonce=i)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var u,d=(u=[],function(e,r){return u[e]=r,u.filter(Boolean).join("\n")});function f(e,r,t,n){var i=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(r,i);else{var o=document.createTextNode(i),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(o,a[r]):e.appendChild(o)}}function v(e,r,t){var n=t.css,i=t.media,o=t.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var p=null,m=0;function h(e,r){var t,n,i;if(r.singleton){var o=m++;t=p||(p=c(r)),n=f.bind(null,t,o,!1),i=f.bind(null,t,o,!0)}else t=c(r),n=v.bind(null,t,r),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else i()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=i());var t=s(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var i=l(t[n]);a[i].references--}for(var o=s(e,r),c=0;c<t.length;c++){var u=l(t[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}t=o}}}},37464:function(e,r,t){"use strict";t.d(r,{W:function(){return n}});var n="paraui-v4"},5927:function(e,r,t){"use strict";var n=t(8156),i=t.n(n),o=t(61217),a=t(37464);t(13267);r.default=function(e){var r=e.className,t=e.style,l=e.opacity,s=void 0===l?.7:l,c=(0,n.useRef)(null);(0,n.useEffect)((function(){c&&c.current&&c.current.parentNode&&(c.current.parentNode.style.position||(c.current.parentNode.style.position="relative"))}),[]);var u;return i().createElement("div",{className:(u="".concat(a.W,"-loading"),r&&(u+=" "+r),u),style:t,ref:c},i().createElement("div",{className:"loading-box"},i().createElement(o.Z,null)),i().createElement("div",{className:"loading-mask",style:{opacity:s}}))}},58543:function(e){"use strict";e.exports=r},8156:function(r){"use strict";r.exports=e}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={id:e,exports:{}};return t[e](o,o.exports,i),o.exports}i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,{a:r}),r},i.d=function(e,r){for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var o={};return function(){"use strict";i.r(o),i.d(o,{DragVerify:function(){return L},default:function(){return E}});var e=i(8156),r=i.n(e);function t(e){var r,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(n=t(e[r]))&&(i&&(i+=" "),i+=n);else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}var n=i(85893),a=i(97435),l=function(e){return(0,n.jsx)(a.l,Object.assign({dataName:"DoubleRight",viewBox:"0 0 24 24",path:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("g",Object.assign({id:"DoubleRight",transform:"translate(-179 -1521)"},{children:[(0,n.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(179 1521)",fill:"none"}),(0,n.jsx)("path",{id:"icon",d:"M14.5.235l-7.6,7.6a.8.8,0,0,0,0,1.132l7.6,7.6a.8.8,0,0,0,1.132-1.129L8.6,8.4l7.034-7.034A.8.8,0,1,0,14.5.235Zm-6.667,0-7.6,7.6a.8.8,0,0,0,0,1.132l7.6,7.6a.8.8,0,0,0,1.133-1.129L1.931,8.4,8.966,1.366A.8.8,0,1,0,7.833.235Z",transform:"translate(198.933 1541.4) rotate(180)"})]}))})},e))},s=function(e){return(0,n.jsx)(a.l,Object.assign({dataName:"Close",viewBox:"0 0 24 24",path:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("g",Object.assign({id:"Close",transform:"translate(-288 -287)"},{children:[(0,n.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(288 287)",fill:"none"}),(0,n.jsx)("path",{id:"icon",d:"M8.92,7.6l6.007-6.007a.933.933,0,0,0-1.32-1.32L7.6,6.28,1.593.273a.933.933,0,0,0-1.32,1.32L6.28,7.6.273,13.607a.933.933,0,0,0,1.32,1.32L7.6,8.92l6.007,6.007a.933.933,0,0,0,1.32-1.32Z",transform:"translate(292.4 291.4)"})]}))})},e))},c=function(e){return(0,n.jsx)(a.l,Object.assign({dataName:"Check",viewBox:"0 0 24 24",path:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("g",Object.assign({id:"Check",transform:"translate(-362 -287)"},{children:[(0,n.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(362 287)",fill:"none"}),(0,n.jsx)("path",{id:"icon",d:"M6.795,13.6h0a.933.933,0,0,1-.66-.273L.273,7.463a.933.933,0,0,1,1.32-1.32l5.2,5.2L17.873.273a.933.933,0,1,1,1.32,1.32L7.455,13.327a.933.933,0,0,1-.66.273",transform:"translate(364.267 292.2)"})]}))})},e))},u=function(e){return(0,n.jsx)(a.l,Object.assign({dataName:"Refresh",viewBox:"0 0 24 24",path:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("g",Object.assign({id:"Refresh",transform:"translate(-288 -96)"},{children:[(0,n.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(288 96)",fill:"none"}),(0,n.jsx)("path",{id:"icon",d:"M2.164,13.915c-.044-.06-.086-.124-.13-.185l-.493,1.222a.8.8,0,0,1-.743.5.791.791,0,0,1-.3-.059.8.8,0,0,1-.444-1.04l1.282-3.179a.8.8,0,0,1,1.037-.444L5.572,12a.8.8,0,1,1-.592,1.487L3.369,12.85c.025.034.048.07.073.1A6.983,6.983,0,0,0,16,8.806a.8.8,0,1,1,1.6,0,8.584,8.584,0,0,1-15.439,5.11ZM.262,8.528A8.584,8.584,0,0,1,15.7,3.419c.04.052.075.108.114.161l.509-1.262a.8.8,0,1,1,1.483.6L16.528,6.094a.8.8,0,0,1-1.038.444l-3.2-1.272a.8.8,0,0,1,.592-1.487l1.548.617-.01-.013A6.982,6.982,0,0,0,1.863,8.528a.8.8,0,0,1-1.6,0Z",transform:"translate(291.067 99.333)"})]}))})},e))},d=i(37464);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(!e)return;if("string"==typeof e)return p(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,r)}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw o}}}}function p(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var m=function(e,r){if(!r)return e;e=e.replace(/\"/g,'\\"');var t=/({[^{}]+})/g;return e.split(t).map((function(e){if(e.match(t)){var n=e.replace(/({|})/g,""),i=function(e,r,t){var n,i=e,o=v(r.replace(/\[(\d+)\]/g,".$1").split("."));try{for(o.s();!(n=o.n()).done;){var a=n.value;if(void 0===(i=Object(i)[a]))return t}}catch(e){o.e(e)}finally{o.f()}return i}(r,n);return void 0===i?n:i}return e}))},h=i(58543),g={cancel:"取消",ok:"确定"},y=(Object.assign({},g),r().createContext({language:(0,h.GetLanguage)(),intlFormat:function(e,r){return function(e,t){return function(e){var r,t,n,i,o=e.ops,a=e.i18nData,l=e.lang,s=e.params,c=e.defI18nData;if("string"==typeof o)i=o;else if("object"===f(o)){if("string"!=typeof o.id)return'i18n intl object "id" is missing';i=o.id}return void 0!==i&&void 0===(n=null===(r=a[l])||void 0===r?void 0:r[i])&&c&&(n=null===(t=c[l])||void 0===t?void 0:t[i]),"string"!=typeof n?"{".concat(i,"}"):m(n,s)}({ops:e,i18nData:{},lang:(0,h.GetLanguage)(),params:t,defI18nData:r})}},componentsProps:{}})),b=function(e,t){var n=r().useContext(y).intlFormat;return t.zh_CN=t.zh,t["zh-CN"]=t.zh,t.en_US=t.en,t["en-US"]=t.en,n&&n(e,t)},x={zh:{tryAgain:"再试一次",swipe:"向右滑动填充拼图"},en:{tryAgain:"Try again",swipe:"Swipe right to fill puzzle"}},w=i(5927);i(75875);function j(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function k(e,r,t,n,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void t(e)}l.done?r(s):Promise.resolve(s).then(n,i)}function S(e){return function(){var r=this,t=arguments;return new Promise((function(n,i){var o=e.apply(r,t);function a(e){k(o,n,i,a,l,"next",e)}function l(e){k(o,n,i,a,l,"throw",e)}a(void 0)}))}}function O(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,i,o=[],a=!0,l=!1;try{for(t=t.call(e);!(a=(n=t.next()).done)&&(o.push(n.value),!r||o.length!==r);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return j(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return j(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,r){var t,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=r.call(e,a)}catch(e){o=[6,e],n=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}var L=function(n){var i=n.className,o=n.style,a=n.refresh,f=n.getImgInfo,v=n.verify,p=n.width,m=n.height,h=b("DragVerify",x),g=O((0,e.useState)(),2),y=g[0],j=g[1],k=O((0,e.useState)(!1),2),L=k[0],E=k[1],C=(0,e.useRef)(null),I=(0,e.useRef)({getImgInfo:f,verify:v}),A=d.W+"-drag-verify";I.current.getImgInfo=f,I.current.verify=v,(0,e.useEffect)((function(){return z(),T(),function(){clearTimeout(I.current.timerError),clearTimeout(I.current.timerSuccess)}}),[a,y]);var M,T=(M=S((function(){var e;return N(this,(function(r){switch(r.label){case 0:return I.current.padding=!0,E(!0),[4,I.current.getImgInfo()];case 1:return e=r.sent(),I.current.imgInfo=e,R(),[2]}}))})),function(){return M.apply(this,arguments)}),_=function(){var e=S((function(e,r){var t;return N(this,(function(n){switch(n.label){case 0:return[4,I.current.verify(e,I.current.verify)];case 1:return t=n.sent(),r(t),[2]}}))}));return function(r,t){return e.apply(this,arguments)}}(),R=function(){var e;if(C.current){var r=document.createElement("img");r.setAttribute("src",null===(e=I.current.imgInfo)||void 0===e?void 0:e.sourceImage),r.style.display="none";var t=document.createElement("img");I.current.imgMove=t,t.className="slider-img-move",t.style.display="none";var n=C.current.querySelector(".slider-img"),i=C.current.querySelector(".refresh");n&&i&&(i.style.display="none",n.innerHTML="",n.append(r),r.onload=function(){var e;r.style.display="inline-block",t.setAttribute("src",null===(e=I.current.imgInfo)||void 0===e?void 0:e.newImage);var n=r.width;if(r.className="slider-img-bg",r.style.display="inline-block",C.current){var o=C.current.querySelector(".slider-img"),a=(null==o?void 0:o.getBoundingClientRect()).width;I.current.imgScale=n/a,null==o||o.append(t),t.onload=function(){var e;I.current.padding=!1,t.style.display="inline-block",i.style.display="inline-block",t.width=t.width/I.current.imgScale,t.style.top=(null===(e=I.current.imgInfo)||void 0===e?void 0:e.y)/I.current.imgScale+"px",E(!1)}}},P(r,t))}},P=function(e,r){var t=C.current;if(t){var n=t.querySelector(".slider-move-box"),i=t.querySelector(".slider-move-mask"),o=t.querySelector(".slider-move"),a=t.querySelector(".slider-move-text"),l=o.getBoundingClientRect(),s=n.getBoundingClientRect().width,c=l.width;n.onmousedown=function(o){I.current.padding||(t.classList.add(A+"-move"),document.onmousemove=function(t){var l=t.pageX-o.pageX;l<0&&(l=0),l+s>e.width&&(l=e.width-s),n.style.left=l-1+"px",i.style.width=(l<2?2:l)+"px";var u=l/(c-s),d=(e.width-r.width)*u;r.style.left=d+"px",a.innerHTML=""},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null,t.classList.remove(A+"-move"),I.current.padding=!0;var e=parseFloat(r.style.left)*I.current.imgScale;_(e,(function(e){if(!e)return t.classList.add(A+"-error"),void(I.current.timerError=setTimeout((function(){I.current.padding=!1,z(),a.innerHTML=h({id:"tryAgain"}),T()}),1e3));t.classList.add(A+"-success")}))})}}},z=function(){var e=C.current;if(e){e.classList.remove(A+"-success"),e.classList.remove(A+"-error");var r=e.querySelector(".slider-move-box"),t=e.querySelector(".slider-move-mask");e.querySelector(".slider-move-text").innerHTML=h({id:"swipe"}),r.style.left="-1px",t.style.width="0px",I.current.imgMove&&(I.current.imgMove.style.left="0px")}};return r().createElement("div",{className:function(){for(var e,r,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(r=t(e))&&(i&&(i+=" "),i+=r);return i}(A,i),style:o,ref:C},r().createElement(u,{onClick:function(){j(Math.random())},className:"refresh"}),r().createElement("div",{className:"slider-img",style:function(){var e={};if(p){var r=p;"number"==typeof p&&(r=p+"px"),e.width=r}if(m){var t=m;"number"==typeof m&&(t=m+"px"),e.height=t}return e}()}),r().createElement("div",{className:"slider-move"},r().createElement("div",{className:"slider-move-bg"}),r().createElement("div",{className:"slider-move-mask"},r().createElement("div",{className:"slider-move-box"},r().createElement(l,{className:"svg-right"}),r().createElement(s,{className:"svg-close"}),r().createElement(c,{className:"svg-check"}))),r().createElement("span",{className:"slider-move-text"},h({id:"swipe"}))),L&&r().createElement(w.default,null))},E=L}(),o}()}));
28
+ */t(27418);var n=t(8156),o=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),r.Fragment=i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,r,t){var n,i={},c=null,u=null;for(n in void 0!==t&&(c=""+t),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(u=r.ref),r)l.call(r,n)&&!s.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}r.jsx=c,r.jsxs=c},85893:function(e,r,t){"use strict";e.exports=t(75251)},75875:function(e,r,t){var n=t(93379),o=t(38271);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},13267:function(e,r,t){var n=t(93379),o=t(5714);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},93379:function(e,r,t){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),a=[];function l(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function s(e,r){for(var t={},n=[],o=0;o<e.length;o++){var i=e[o],s=r.base?i[0]+r.base:i[0],c=t[s]||0,u="".concat(s," ").concat(c);t[s]=c+1;var d=l(u),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:h(f,r),references:1}),n.push(u)}return n}function c(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=t.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var u,d=(u=[],function(e,r){return u[e]=r,u.filter(Boolean).join("\n")});function f(e,r,t,n){var o=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(r,o);else{var i=document.createTextNode(o),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(i,a[r]):e.appendChild(i)}}function v(e,r,t){var n=t.css,o=t.media,i=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var p=null,m=0;function h(e,r){var t,n,o;if(r.singleton){var i=m++;t=p||(p=c(r)),n=f.bind(null,t,i,!1),o=f.bind(null,t,i,!0)}else t=c(r),n=v.bind(null,t,r),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var t=s(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var o=l(t[n]);a[o].references--}for(var i=s(e,r),c=0;c<t.length;c++){var u=l(t[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}t=i}}}},37464:function(e,r,t){"use strict";t.d(r,{W:function(){return n}});var n="paraui-v4"},5927:function(e,r,t){"use strict";var n=t(8156),o=t.n(n),i=t(61217),a=t(37464);t(13267);r.default=function(e){var r=e.className,t=e.style,l=e.opacity,s=void 0===l?.7:l,c=(0,n.useRef)(null);(0,n.useEffect)((function(){c&&c.current&&c.current.parentNode&&(c.current.parentNode.style.position||(c.current.parentNode.style.position="relative"))}),[]);var u;return o().createElement("div",{className:(u="".concat(a.W,"-loading"),r&&(u+=" ".concat(r)),u),style:t,ref:c},o().createElement("div",{className:"loading-box"},o().createElement(i.Z,null)),o().createElement("div",{className:"loading-mask",style:{opacity:s}}))}},58543:function(e){"use strict";e.exports=r},8156:function(r){"use strict";r.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,o),i.exports}o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,{a:r}),r},o.d=function(e,r){for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};return function(){"use strict";o.r(i),o.d(i,{DragVerify:function(){return L},default:function(){return E}});var e=o(8156),r=o.n(e);function t(e){var r,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(n=t(e[r]))&&(o&&(o+=" "),o+=n);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}var n=o(85893),a=o(97435),l=function(e){return(0,n.jsx)(a.l,Object.assign({dataName:"DoubleRight",viewBox:"0 0 24 24",path:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("g",Object.assign({id:"DoubleRight",transform:"translate(-179 -1521)"},{children:[(0,n.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(179 1521)",fill:"none"}),(0,n.jsx)("path",{id:"icon",d:"M14.5.235l-7.6,7.6a.8.8,0,0,0,0,1.132l7.6,7.6a.8.8,0,0,0,1.132-1.129L8.6,8.4l7.034-7.034A.8.8,0,1,0,14.5.235Zm-6.667,0-7.6,7.6a.8.8,0,0,0,0,1.132l7.6,7.6a.8.8,0,0,0,1.133-1.129L1.931,8.4,8.966,1.366A.8.8,0,1,0,7.833.235Z",transform:"translate(198.933 1541.4) rotate(180)"})]}))})},e))},s=function(e){return(0,n.jsx)(a.l,Object.assign({dataName:"Close",viewBox:"0 0 24 24",path:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("g",Object.assign({id:"Close",transform:"translate(-288 -287)"},{children:[(0,n.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(288 287)",fill:"none"}),(0,n.jsx)("path",{id:"icon",d:"M8.92,7.6l6.007-6.007a.933.933,0,0,0-1.32-1.32L7.6,6.28,1.593.273a.933.933,0,0,0-1.32,1.32L6.28,7.6.273,13.607a.933.933,0,0,0,1.32,1.32L7.6,8.92l6.007,6.007a.933.933,0,0,0,1.32-1.32Z",transform:"translate(292.4 291.4)"})]}))})},e))},c=function(e){return(0,n.jsx)(a.l,Object.assign({dataName:"Check",viewBox:"0 0 24 24",path:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("g",Object.assign({id:"Check",transform:"translate(-362 -287)"},{children:[(0,n.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(362 287)",fill:"none"}),(0,n.jsx)("path",{id:"icon",d:"M6.795,13.6h0a.933.933,0,0,1-.66-.273L.273,7.463a.933.933,0,0,1,1.32-1.32l5.2,5.2L17.873.273a.933.933,0,1,1,1.32,1.32L7.455,13.327a.933.933,0,0,1-.66.273",transform:"translate(364.267 292.2)"})]}))})},e))},u=function(e){return(0,n.jsx)(a.l,Object.assign({dataName:"Refresh",viewBox:"0 0 24 24",path:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("g",Object.assign({id:"Refresh",transform:"translate(-288 -96)"},{children:[(0,n.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(288 96)",fill:"none"}),(0,n.jsx)("path",{id:"icon",d:"M2.164,13.915c-.044-.06-.086-.124-.13-.185l-.493,1.222a.8.8,0,0,1-.743.5.791.791,0,0,1-.3-.059.8.8,0,0,1-.444-1.04l1.282-3.179a.8.8,0,0,1,1.037-.444L5.572,12a.8.8,0,1,1-.592,1.487L3.369,12.85c.025.034.048.07.073.1A6.983,6.983,0,0,0,16,8.806a.8.8,0,1,1,1.6,0,8.584,8.584,0,0,1-15.439,5.11ZM.262,8.528A8.584,8.584,0,0,1,15.7,3.419c.04.052.075.108.114.161l.509-1.262a.8.8,0,1,1,1.483.6L16.528,6.094a.8.8,0,0,1-1.038.444l-3.2-1.272a.8.8,0,0,1,.592-1.487l1.548.617-.01-.013A6.982,6.982,0,0,0,1.863,8.528a.8.8,0,0,1-1.6,0Z",transform:"translate(291.067 99.333)"})]}))})},e))},d=o(37464);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(!e)return;if("string"==typeof e)return p(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,r)}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw i}}}}function p(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var m=function(e,r){if(!r)return e;e=e.replace(/\"/g,'\\"');var t=/({[^{}]+})/g;return e.split(t).map((function(e){if(e.match(t)){var n=e.replace(/({|})/g,""),o=function(e,r,t){var n,o=e,i=v(r.replace(/\[(\d+)\]/g,".$1").split("."));try{for(i.s();!(n=i.n()).done;){var a=n.value;if(void 0===(o=Object(o)[a]))return t}}catch(e){i.e(e)}finally{i.f()}return o}(r,n);return void 0===o?n:o}return e}))},h=o(58543),g={cancel:"取消",ok:"确定"},y=(Object.assign({},g),r().createContext({language:(0,h.GetLanguage)(),intlFormat:function(e,r){return function(e,t){return function(e){var r,t,n,o,i=e.ops,a=e.i18nData,l=e.lang,s=e.params,c=e.defI18nData;if("string"==typeof i)o=i;else if("object"===f(i)){if("string"!=typeof i.id)return'i18n intl object "id" is missing';o=i.id}return void 0!==o&&void 0===(n=null===(r=a[l])||void 0===r?void 0:r[o])&&c&&(n=null===(t=c[l])||void 0===t?void 0:t[o]),"string"!=typeof n?"{".concat(o,"}"):m(n,s)}({ops:e,i18nData:{},lang:(0,h.GetLanguage)(),params:t,defI18nData:r})}},componentsProps:{}})),b=function(e,t){var n=r().useContext(y).intlFormat;return t.zh_CN=t.zh,t["zh-CN"]=t.zh,t.en_US=t.en,t["en-US"]=t.en,n&&n(e,t)},x={zh:{tryAgain:"再试一次",swipe:"向右滑动填充拼图"},en:{tryAgain:"Try again",swipe:"Swipe right to fill puzzle"}},w=o(5927);o(75875);function j(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function k(e,r,t,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void t(e)}l.done?r(s):Promise.resolve(s).then(n,o)}function S(e){return function(){var r=this,t=arguments;return new Promise((function(n,o){var i=e.apply(r,t);function a(e){k(i,n,o,a,l,"next",e)}function l(e){k(i,n,o,a,l,"throw",e)}a(void 0)}))}}function O(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i=[],a=!0,l=!1;try{for(t=t.call(e);!(a=(n=t.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(l)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return j(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return j(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,r){var t,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=r.call(e,a)}catch(e){i=[6,e],n=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var L=function(n){var o=n.className,i=n.style,a=n.refresh,f=n.getImgInfo,v=n.verify,p=n.width,m=n.height,h=b("DragVerify",x),g=O((0,e.useState)(),2),y=g[0],j=g[1],k=O((0,e.useState)(!1),2),L=k[0],E=k[1],C=(0,e.useRef)(null),I=(0,e.useRef)({getImgInfo:f,verify:v}),A="".concat(d.W,"-drag-verify");I.current.getImgInfo=f,I.current.verify=v,(0,e.useEffect)((function(){return z(),T(),function(){clearTimeout(I.current.timerError),clearTimeout(I.current.timerSuccess)}}),[a,y]);var M,T=(M=S((function(){var e;return N(this,(function(r){switch(r.label){case 0:return I.current.padding=!0,E(!0),[4,I.current.getImgInfo()];case 1:return e=r.sent(),I.current.imgInfo=e,R(),[2]}}))})),function(){return M.apply(this,arguments)}),_=function(){var e=S((function(e,r){var t;return N(this,(function(n){switch(n.label){case 0:return[4,I.current.verify(e,I.current.verify)];case 1:return t=n.sent(),r(t),[2]}}))}));return function(r,t){return e.apply(this,arguments)}}(),R=function(){var e;if(C.current){var r=document.createElement("img");r.setAttribute("src",null===(e=I.current.imgInfo)||void 0===e?void 0:e.sourceImage),r.style.display="none";var t=document.createElement("img");I.current.imgMove=t,t.className="slider-img-move",t.style.display="none";var n=C.current.querySelector(".slider-img"),o=C.current.querySelector(".refresh");n&&o&&(o.style.display="none",n.innerHTML="",n.append(r),r.onload=function(){var e;r.style.display="inline-block",t.setAttribute("src",null===(e=I.current.imgInfo)||void 0===e?void 0:e.newImage);var n=r.width;if(r.className="slider-img-bg",r.style.display="inline-block",C.current){var i=C.current.querySelector(".slider-img"),a=(null==i?void 0:i.getBoundingClientRect()).width;I.current.imgScale=n/a,null==i||i.append(t),t.onload=function(){var e;I.current.padding=!1,t.style.display="inline-block",o.style.display="inline-block",t.width=t.width/I.current.imgScale,t.style.top="".concat((null===(e=I.current.imgInfo)||void 0===e?void 0:e.y)/I.current.imgScale,"px"),E(!1)}}},P(r,t))}},P=function(e,r){var t=C.current;if(t){var n=t.querySelector(".slider-move-box"),o=t.querySelector(".slider-move-mask"),i=t.querySelector(".slider-move"),a=t.querySelector(".slider-move-text"),l=i.getBoundingClientRect(),s=n.getBoundingClientRect().width,c=l.width;n.onmousedown=function(i){I.current.padding||(t.classList.add("".concat(A,"-move")),document.onmousemove=function(t){var l=t.pageX-i.pageX;l<0&&(l=0),l+s>e.width&&(l=e.width-s),n.style.left="".concat(l-1,"px"),o.style.width="".concat(l<2?2:l,"px");var u=l/(c-s),d=(e.width-r.width)*u;r.style.left="".concat(d,"px"),a.innerHTML=""},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null,t.classList.remove("".concat(A,"-move")),I.current.padding=!0;var e=parseFloat(r.style.left)*I.current.imgScale;_(e,(function(e){if(!e)return t.classList.add("".concat(A,"-error")),void(I.current.timerError=setTimeout((function(){I.current.padding=!1,z(),a.innerHTML=h({id:"tryAgain"}),T()}),1e3));t.classList.add("".concat(A,"-success"))}))})}}},z=function(){var e=C.current;if(e){e.classList.remove("".concat(A,"-success")),e.classList.remove("".concat(A,"-error"));var r=e.querySelector(".slider-move-box"),t=e.querySelector(".slider-move-mask");e.querySelector(".slider-move-text").innerHTML=h({id:"swipe"}),r.style.left="-1px",t.style.width="0px",I.current.imgMove&&(I.current.imgMove.style.left="0px")}};return r().createElement("div",{className:function(){for(var e,r,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(r=t(e))&&(o&&(o+=" "),o+=r);return o}(A,o),style:i,ref:C},r().createElement(u,{onClick:function(){j(Math.random())},className:"refresh"}),r().createElement("div",{className:"slider-img",style:function(){var e={};if(p){var r=p;"number"==typeof p&&(r="".concat(p,"px")),e.width=r}if(m){var t=m;"number"==typeof m&&(t="".concat(m,"px")),e.height=t}return e}()}),r().createElement("div",{className:"slider-move"},r().createElement("div",{className:"slider-move-bg"}),r().createElement("div",{className:"slider-move-mask"},r().createElement("div",{className:"slider-move-box"},r().createElement(l,{className:"svg-right"}),r().createElement(s,{className:"svg-close"}),r().createElement(c,{className:"svg-check"}))),r().createElement("span",{className:"slider-move-text"},h({id:"swipe"}))),L&&r().createElement(w.default,null))},E=L}(),i}()}));