@vtx/components 4.0.0-beta.2 → 4.0.0-beta.21

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 (357) hide show
  1. package/es/index.js +3 -1
  2. package/es/utils/filterSpecialCharacters.js +47 -46
  3. package/es/utils/index.js +1 -2
  4. package/es/vtx-color-picker/index.js +50 -39
  5. package/es/vtx-combogrid/Combogrid.js +11 -6
  6. package/es/vtx-combogrid/index.js +1 -1
  7. package/es/vtx-combogrid/style/index.js +4 -4
  8. package/es/vtx-datagrid/Store/Provide.js +6 -5
  9. package/es/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +8 -3
  10. package/es/vtx-datagrid/ToolBar/components/Density/index.js +3 -0
  11. package/es/vtx-datagrid/ToolBar/components/TableStyle/index.js +3 -0
  12. package/es/vtx-datagrid/ToolBar/index.js +2 -2
  13. package/es/vtx-datagrid/index.js +26 -14
  14. package/es/vtx-datagrid/style/index.js +22 -7
  15. package/es/vtx-descriptions/Descriptions.js +30 -0
  16. package/es/vtx-descriptions/index.js +3 -0
  17. package/es/vtx-descriptions/style/index.js +19 -0
  18. package/es/vtx-ellipsis-text/index.js +6 -1
  19. package/es/vtx-export/index.js +24 -25
  20. package/es/vtx-export-async/index.js +28 -8
  21. package/es/vtx-form-layout/Card.js +10 -10
  22. package/es/vtx-form-layout/Divider.js +1 -1
  23. package/es/vtx-form-layout/Pane.js +23 -12
  24. package/es/vtx-form-layout/style/index.js +0 -1
  25. package/es/vtx-icon/index.js +41 -4
  26. package/es/vtx-image/Preview.js +11 -6
  27. package/es/vtx-import/index.js +78 -37
  28. package/es/vtx-import/result.js +2 -1
  29. package/es/vtx-import/style/index.js +11 -1
  30. package/es/vtx-import2/index.js +4 -2
  31. package/es/vtx-import2/style/index.js +1 -1
  32. package/es/vtx-input/TextArea/index.js +11 -6
  33. package/es/vtx-modal/style/index.js +5 -3
  34. package/es/vtx-page-layout/Content.js +1 -1
  35. package/es/vtx-page-layout/TabLayout.js +1 -7
  36. package/es/vtx-page-layout/TableLayout.js +14 -4
  37. package/es/vtx-page-layout/TableWrap.js +3 -2
  38. package/es/vtx-page-layout/TreeLayout.js +2 -8
  39. package/es/vtx-page-layout/container.js +6 -5
  40. package/es/vtx-provider/index.js +11 -4
  41. package/es/vtx-provider/locale/en_US.js +10 -2
  42. package/es/vtx-provider/locale/zh_CN.js +20 -2
  43. package/es/vtx-scrollable-row/index.js +38 -28
  44. package/es/vtx-search/index.js +5 -4
  45. package/es/vtx-search/style/index.js +2 -1
  46. package/es/vtx-select/index.js +25 -11
  47. package/es/vtx-signature/index.js +5 -4
  48. package/es/vtx-signature/style/index.js +1 -1
  49. package/es/vtx-split-pane/SplitPane.js +34 -24
  50. package/es/vtx-split-pane/style/index.js +7 -112
  51. package/es/vtx-transfer/Transfer.js +16 -233
  52. package/es/vtx-transfer/style/index.js +5 -28
  53. package/es/vtx-transfer-select/TransferSelect.js +143 -0
  54. package/es/vtx-transfer-select/index.js +3 -0
  55. package/es/vtx-transfer-select/style/index.js +19 -0
  56. package/es/vtx-tree/index.js +104 -40
  57. package/es/vtx-tree-select/index.js +55 -92
  58. package/es/vtx-tree-select/style/index.js +4 -2
  59. package/es/vtx-upload/FilePreview.js +2 -1
  60. package/es/vtx-wang-editor/index.js +278 -108
  61. package/es/vtx-wang-editor/wangEditorUtil.js +59 -9
  62. package/lib/index.js +28 -4
  63. package/lib/utils/filterSpecialCharacters.js +48 -46
  64. package/lib/utils/index.js +0 -7
  65. package/lib/vtx-color-picker/index.js +50 -39
  66. package/lib/vtx-combogrid/Combogrid.js +11 -6
  67. package/lib/vtx-combogrid/index.js +1 -1
  68. package/lib/vtx-combogrid/style/index.js +4 -4
  69. package/lib/vtx-datagrid/Store/Provide.js +21 -19
  70. package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +8 -4
  71. package/lib/vtx-datagrid/ToolBar/components/Density/index.js +3 -0
  72. package/lib/vtx-datagrid/ToolBar/components/TableStyle/index.js +3 -0
  73. package/lib/vtx-datagrid/ToolBar/index.js +2 -2
  74. package/lib/vtx-datagrid/index.js +27 -14
  75. package/lib/vtx-datagrid/style/index.js +22 -7
  76. package/lib/vtx-descriptions/Descriptions.js +39 -0
  77. package/lib/vtx-descriptions/index.js +15 -0
  78. package/lib/vtx-descriptions/style/index.js +25 -0
  79. package/lib/vtx-ellipsis-text/index.js +6 -1
  80. package/lib/vtx-export/index.js +25 -26
  81. package/lib/vtx-export-async/index.js +26 -6
  82. package/lib/vtx-form-layout/Card.js +9 -9
  83. package/lib/vtx-form-layout/Divider.js +1 -1
  84. package/lib/vtx-form-layout/Pane.js +22 -11
  85. package/lib/vtx-form-layout/style/index.js +0 -1
  86. package/lib/vtx-icon/index.js +59 -14
  87. package/lib/vtx-image/Preview.js +11 -6
  88. package/lib/vtx-import/index.js +77 -36
  89. package/lib/vtx-import/result.js +2 -1
  90. package/lib/vtx-import/style/index.js +11 -1
  91. package/lib/vtx-import2/index.js +4 -2
  92. package/lib/vtx-import2/style/index.js +1 -1
  93. package/lib/vtx-input/TextArea/index.js +11 -6
  94. package/lib/vtx-modal/style/index.js +5 -3
  95. package/lib/vtx-page-layout/Content.js +1 -1
  96. package/lib/vtx-page-layout/TabLayout.js +3 -9
  97. package/lib/vtx-page-layout/TableLayout.js +14 -4
  98. package/lib/vtx-page-layout/TableWrap.js +3 -2
  99. package/lib/vtx-page-layout/TreeLayout.js +4 -10
  100. package/lib/vtx-page-layout/container.js +6 -5
  101. package/lib/vtx-provider/index.js +11 -4
  102. package/lib/vtx-provider/locale/en_US.js +10 -2
  103. package/lib/vtx-provider/locale/zh_CN.js +20 -2
  104. package/lib/vtx-scrollable-row/index.js +38 -28
  105. package/lib/vtx-search/index.js +5 -4
  106. package/lib/vtx-search/style/index.js +2 -1
  107. package/lib/vtx-select/index.js +25 -11
  108. package/lib/vtx-signature/index.js +4 -3
  109. package/lib/vtx-signature/style/index.js +1 -1
  110. package/lib/vtx-split-pane/SplitPane.js +32 -22
  111. package/lib/vtx-split-pane/style/index.js +7 -112
  112. package/lib/vtx-transfer/Transfer.js +15 -231
  113. package/lib/vtx-transfer/style/index.js +5 -28
  114. package/lib/vtx-transfer-select/TransferSelect.js +151 -0
  115. package/lib/vtx-transfer-select/index.js +15 -0
  116. package/lib/vtx-transfer-select/style/index.js +25 -0
  117. package/lib/vtx-tree/index.js +102 -38
  118. package/lib/vtx-tree-select/index.js +55 -92
  119. package/lib/vtx-tree-select/style/index.js +4 -2
  120. package/lib/vtx-upload/FilePreview.js +2 -1
  121. package/lib/vtx-wang-editor/index.js +277 -109
  122. package/lib/vtx-wang-editor/wangEditorUtil.js +59 -10
  123. package/package.json +60 -33
  124. package/dist/1077.66b69576.async.js +0 -1
  125. package/dist/1572.2b90c634.async.js +0 -1
  126. package/dist/1632.03c8f7ad.async.js +0 -2
  127. package/dist/2267.aeefe75c.async.js +0 -137
  128. package/dist/2791.54c703a9.async.js +0 -5
  129. package/dist/2952.348f2c3f.async.js +0 -654
  130. package/dist/3421.4387ba14.async.js +0 -1264
  131. package/dist/3500.29895123.async.js +0 -1
  132. package/dist/404.html +0 -17
  133. package/dist/4195.93b9d34d.async.js +0 -1
  134. package/dist/4680.bca43384.async.js +0 -1
  135. package/dist/7965.a57e8f9a.async.js +0 -1
  136. package/dist/8300.66a39b1b.async.js +0 -1
  137. package/dist/8982.8e38e68e.async.js +0 -1
  138. package/dist/9877.87ec0c28.async.js +0 -11
  139. package/dist/VtxColorPicker__demos.60d61929.async.js +0 -1
  140. package/dist/VtxCombogrid__demos.8c798bc7.async.js +0 -1
  141. package/dist/VtxDatagrid__demos.e07857d0.async.js +0 -1
  142. package/dist/VtxEllipsisText__demos.2e269d20.async.js +0 -1
  143. package/dist/VtxExportAsync__demos.13e3bb1c.async.js +0 -1
  144. package/dist/VtxExport__demos.1cce5217.async.js +0 -1
  145. package/dist/VtxFormLayout__demos.b8bb038a.async.js +0 -1
  146. package/dist/VtxImage__demos.774c697e.async.js +0 -1
  147. package/dist/VtxImport2__demos.8182b8d2.async.js +0 -1
  148. package/dist/VtxImport__demos.3865c4e9.async.js +0 -1
  149. package/dist/VtxInput__demos.5fd77ccb.async.js +0 -1
  150. package/dist/VtxModal__demos.e0aae505.async.js +0 -1
  151. package/dist/VtxPageLayout__demos.b1cd7624.async.js +0 -1
  152. package/dist/VtxRpsFrame__demos.07c3fb5e.async.js +0 -1
  153. package/dist/VtxScrollableRow__demos.eeb18c3c.async.js +0 -1
  154. package/dist/VtxSearch__demos.f6b048ae.async.js +0 -1
  155. package/dist/VtxSelect__demos.0e8f1c52.async.js +0 -1
  156. package/dist/VtxSignature__demos.d0c4bcac.async.js +0 -1
  157. package/dist/VtxSplitPane__demos.6dda4f09.async.js +0 -1
  158. package/dist/VtxStatisticsColumn__demos.b2be3e4b.async.js +0 -1
  159. package/dist/VtxTimePicker__demos.ced305a6.async.js +0 -1
  160. package/dist/VtxTreeSelect__demos.daab9057.async.js +0 -1
  161. package/dist/VtxTree__demos.15550a80.async.js +0 -1
  162. package/dist/VtxUpload__demos.794c746a.async.js +0 -1
  163. package/dist/VtxWangEditor__demos.92b4daf1.async.js +0 -1
  164. package/dist/changelog/index.html +0 -17
  165. package/dist/components/index.html +0 -17
  166. package/dist/components/vtx-color-picker/index.html +0 -17
  167. package/dist/components/vtx-combogrid/index.html +0 -17
  168. package/dist/components/vtx-datagrid/index.html +0 -17
  169. package/dist/components/vtx-date-picker/index.html +0 -17
  170. package/dist/components/vtx-ellipsis-text/index.html +0 -17
  171. package/dist/components/vtx-export/index.html +0 -17
  172. package/dist/components/vtx-export-async/index.html +0 -17
  173. package/dist/components/vtx-form-layout/index.html +0 -17
  174. package/dist/components/vtx-image/index.html +0 -17
  175. package/dist/components/vtx-import/index.html +0 -17
  176. package/dist/components/vtx-import2/index.html +0 -17
  177. package/dist/components/vtx-input/index.html +0 -17
  178. package/dist/components/vtx-modal/index.html +0 -17
  179. package/dist/components/vtx-page-layout/index.html +0 -17
  180. package/dist/components/vtx-rps-frame/index.html +0 -17
  181. package/dist/components/vtx-scrollable-row/index.html +0 -17
  182. package/dist/components/vtx-search/index.html +0 -17
  183. package/dist/components/vtx-select/index.html +0 -17
  184. package/dist/components/vtx-signature/index.html +0 -17
  185. package/dist/components/vtx-split-pane/index.html +0 -17
  186. package/dist/components/vtx-statistics-column/index.html +0 -17
  187. package/dist/components/vtx-time-picker/index.html +0 -17
  188. package/dist/components/vtx-tree/index.html +0 -17
  189. package/dist/components/vtx-tree-select/index.html +0 -17
  190. package/dist/components/vtx-upload/index.html +0 -17
  191. package/dist/components/vtx-wang-editor/index.html +0 -17
  192. package/dist/demos.f6817f69.async.js +0 -1
  193. package/dist/docs/api-changes/index.html +0 -17
  194. package/dist/docs/index.html +0 -17
  195. package/dist/docs/migration-guide/index.html +0 -17
  196. package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.aca58684.async.js +0 -1
  197. package/dist/favicon.ico +0 -0
  198. package/dist/icon.png +0 -0
  199. package/dist/index.html +0 -17
  200. package/dist/meta__site.2e323023.async.js +0 -5392
  201. package/dist/meta__site.51651769.chunk.css +0 -9
  202. package/dist/meta__vtx-search.5ddbd36b.async.js +0 -5
  203. package/dist/nm__dumi-theme-vortex-style__dist__layouts__DemoLayout__index.7cea644e.async.js +0 -1
  204. package/dist/nm__dumi-theme-vortex-style__dist__layouts__DocLayout__index.eec80432.chunk.css +0 -1
  205. package/dist/nm__dumi__dist__client__pages__404.0d35bb9e.async.js +0 -1
  206. package/dist/nm__dumi__dist__client__pages__404.8b85f2d9.chunk.css +0 -1
  207. package/dist/nm__dumi__dist__client__pages__Demo__index.578aa5c0.chunk.css +0 -1
  208. package/dist/nm__dumi__dist__client__pages__Demo__index.88d92ec7.async.js +0 -1
  209. package/dist/preload_helper.214f203a.js +0 -1
  210. package/dist/site__changelog.md.33be0665.chunk.css +0 -1
  211. package/dist/site__changelog.md.ca6f70d0.async.js +0 -1
  212. package/dist/site__components__index.md.1c0dd566.async.js +0 -1
  213. package/dist/site__components__index.md.33be0665.chunk.css +0 -1
  214. package/dist/site__components__vtx-color-picker__index.md.0b5f09f9.async.js +0 -1
  215. package/dist/site__components__vtx-color-picker__index.md.33be0665.chunk.css +0 -1
  216. package/dist/site__components__vtx-combogrid__index.md.33be0665.chunk.css +0 -1
  217. package/dist/site__components__vtx-combogrid__index.md.5c184a19.async.js +0 -19
  218. package/dist/site__components__vtx-datagrid__index.md.33be0665.chunk.css +0 -1
  219. package/dist/site__components__vtx-datagrid__index.md.3b6b11a0.async.js +0 -58
  220. package/dist/site__components__vtx-date-picker__index.md.33be0665.chunk.css +0 -1
  221. package/dist/site__components__vtx-date-picker__index.md.e498db68.async.js +0 -1
  222. package/dist/site__components__vtx-ellipsis-text__index.md.33be0665.chunk.css +0 -1
  223. package/dist/site__components__vtx-ellipsis-text__index.md.3df8b85b.async.js +0 -1
  224. package/dist/site__components__vtx-export-async__index.md.33be0665.chunk.css +0 -1
  225. package/dist/site__components__vtx-export-async__index.md.7ad10351.async.js +0 -50
  226. package/dist/site__components__vtx-export__index.md.33be0665.chunk.css +0 -1
  227. package/dist/site__components__vtx-export__index.md.ae512624.async.js +0 -6
  228. package/dist/site__components__vtx-form-layout__index.md.26ce0de4.async.js +0 -1
  229. package/dist/site__components__vtx-form-layout__index.md.33be0665.chunk.css +0 -1
  230. package/dist/site__components__vtx-image__index.md.33be0665.chunk.css +0 -1
  231. package/dist/site__components__vtx-image__index.md.51d7fede.async.js +0 -7
  232. package/dist/site__components__vtx-import2__index.md.33be0665.chunk.css +0 -1
  233. package/dist/site__components__vtx-import2__index.md.3d03da86.async.js +0 -22
  234. package/dist/site__components__vtx-import__index.md.2706afc2.async.js +0 -1
  235. package/dist/site__components__vtx-import__index.md.33be0665.chunk.css +0 -1
  236. package/dist/site__components__vtx-input__index.md.33be0665.chunk.css +0 -1
  237. package/dist/site__components__vtx-input__index.md.dbe2e571.async.js +0 -1
  238. package/dist/site__components__vtx-modal__index.md.33be0665.chunk.css +0 -1
  239. package/dist/site__components__vtx-modal__index.md.6a9b2eda.async.js +0 -9
  240. package/dist/site__components__vtx-page-layout__index.md.33be0665.chunk.css +0 -1
  241. package/dist/site__components__vtx-page-layout__index.md.46cefa9b.async.js +0 -1
  242. package/dist/site__components__vtx-rps-frame__index.md.0126d79c.async.js +0 -1
  243. package/dist/site__components__vtx-rps-frame__index.md.33be0665.chunk.css +0 -1
  244. package/dist/site__components__vtx-scrollable-row__index.md.33be0665.chunk.css +0 -1
  245. package/dist/site__components__vtx-scrollable-row__index.md.83c9c112.async.js +0 -1
  246. package/dist/site__components__vtx-search__index.md.33be0665.chunk.css +0 -1
  247. package/dist/site__components__vtx-search__index.md.a36329f4.async.js +0 -5
  248. package/dist/site__components__vtx-select__index.md.33be0665.chunk.css +0 -1
  249. package/dist/site__components__vtx-select__index.md.d4b9a187.async.js +0 -6
  250. package/dist/site__components__vtx-signature__index.md.33be0665.chunk.css +0 -1
  251. package/dist/site__components__vtx-signature__index.md.e502b176.async.js +0 -1
  252. package/dist/site__components__vtx-split-pane__index.md.33be0665.chunk.css +0 -1
  253. package/dist/site__components__vtx-split-pane__index.md.744d87da.async.js +0 -1
  254. package/dist/site__components__vtx-statistics-column__index.md.106749e3.async.js +0 -1
  255. package/dist/site__components__vtx-statistics-column__index.md.33be0665.chunk.css +0 -1
  256. package/dist/site__components__vtx-time-picker__index.md.33be0665.chunk.css +0 -1
  257. package/dist/site__components__vtx-time-picker__index.md.c9f4700c.async.js +0 -1
  258. package/dist/site__components__vtx-tree-select__index.md.33be0665.chunk.css +0 -1
  259. package/dist/site__components__vtx-tree-select__index.md.49b56c10.async.js +0 -1
  260. package/dist/site__components__vtx-tree__index.md.33be0665.chunk.css +0 -1
  261. package/dist/site__components__vtx-tree__index.md.4c124fad.async.js +0 -1
  262. package/dist/site__components__vtx-upload__index.md.33be0665.chunk.css +0 -1
  263. package/dist/site__components__vtx-upload__index.md.57969550.async.js +0 -6
  264. package/dist/site__components__vtx-wang-editor__index.md.33be0665.chunk.css +0 -1
  265. package/dist/site__components__vtx-wang-editor__index.md.b98b12a6.async.js +0 -7
  266. package/dist/site__docs__api-changes.md.33be0665.chunk.css +0 -1
  267. package/dist/site__docs__api-changes.md.aaa38736.async.js +0 -6
  268. package/dist/site__docs__index.md.33be0665.chunk.css +0 -1
  269. package/dist/site__docs__index.md.586150c4.async.js +0 -53
  270. package/dist/site__docs__migration-guide.md.02f5996d.async.js +0 -194
  271. package/dist/site__docs__migration-guide.md.33be0665.chunk.css +0 -1
  272. package/dist/site__index.md.33be0665.chunk.css +0 -1
  273. package/dist/site__index.md.634bf57a.async.js +0 -1
  274. package/dist/sitemap.xml +0 -1
  275. package/dist/umi.f49a7748.css +0 -1
  276. package/dist/umi.f610424c.js +0 -877
  277. package/dist/vtx-search__index.md.33be0665.chunk.css +0 -1
  278. package/dist/vtx-search__index.md.37a39d66.async.js +0 -5
  279. package/dist/~demos/:id/index.html +0 -17
  280. package/dist/~demos/site-components-vtx-date-picker-demo-demo1/index.html +0 -17
  281. package/dist/~demos/site-components-vtx-date-picker-demo-demo3/index.html +0 -17
  282. package/dist/~demos/vtxcolorpicker-demo-base/index.html +0 -17
  283. package/dist/~demos/vtxcolorpicker-demo-base-form/index.html +0 -17
  284. package/dist/~demos/vtxcombogrid-demo-demo1/index.html +0 -17
  285. package/dist/~demos/vtxcombogrid-demo-demo2/index.html +0 -17
  286. package/dist/~demos/vtxcombogrid-demo-demo3/index.html +0 -17
  287. package/dist/~demos/vtxcombogrid-demo-demo4/index.html +0 -17
  288. package/dist/~demos/vtxcombogrid-demo-demo5/index.html +0 -17
  289. package/dist/~demos/vtxdatagrid-demo-demo1/index.html +0 -17
  290. package/dist/~demos/vtxdatagrid-demo-demo10/index.html +0 -17
  291. package/dist/~demos/vtxdatagrid-demo-demo2/index.html +0 -17
  292. package/dist/~demos/vtxdatagrid-demo-demo3/index.html +0 -17
  293. package/dist/~demos/vtxdatagrid-demo-demo4/index.html +0 -17
  294. package/dist/~demos/vtxdatagrid-demo-demo5/index.html +0 -17
  295. package/dist/~demos/vtxdatagrid-demo-demo6/index.html +0 -17
  296. package/dist/~demos/vtxdatagrid-demo-demo7/index.html +0 -17
  297. package/dist/~demos/vtxdatagrid-demo-demo8/index.html +0 -17
  298. package/dist/~demos/vtxdatagrid-demo-demo9/index.html +0 -17
  299. package/dist/~demos/vtxellipsistext-demo-demo1/index.html +0 -17
  300. package/dist/~demos/vtxexport-demo-demo1/index.html +0 -17
  301. package/dist/~demos/vtxexportasync-demo-demo1/index.html +0 -17
  302. package/dist/~demos/vtxformlayout-demo-demo1/index.html +0 -17
  303. package/dist/~demos/vtxformlayout-demo-demo10/index.html +0 -17
  304. package/dist/~demos/vtxformlayout-demo-demo2/index.html +0 -17
  305. package/dist/~demos/vtxformlayout-demo-demo3/index.html +0 -17
  306. package/dist/~demos/vtxformlayout-demo-demo4/index.html +0 -17
  307. package/dist/~demos/vtxformlayout-demo-demo5/index.html +0 -17
  308. package/dist/~demos/vtxformlayout-demo-demo6/index.html +0 -17
  309. package/dist/~demos/vtxformlayout-demo-demo7/index.html +0 -17
  310. package/dist/~demos/vtxformlayout-demo-demo8/index.html +0 -17
  311. package/dist/~demos/vtxformlayout-demo-demo9/index.html +0 -17
  312. package/dist/~demos/vtximage-demo-demo1/index.html +0 -17
  313. package/dist/~demos/vtximage-demo-demo2/index.html +0 -17
  314. package/dist/~demos/vtximage-demo-demo3/index.html +0 -17
  315. package/dist/~demos/vtximage-demo-demo4/index.html +0 -17
  316. package/dist/~demos/vtximport-demo-base/index.html +0 -17
  317. package/dist/~demos/vtximport2-demo-base/index.html +0 -17
  318. package/dist/~demos/vtxinput-demo-demo1/index.html +0 -17
  319. package/dist/~demos/vtxinput-demo-demo2/index.html +0 -17
  320. package/dist/~demos/vtxinput-demo-demo3/index.html +0 -17
  321. package/dist/~demos/vtxmodal-demo-demo1/index.html +0 -17
  322. package/dist/~demos/vtxmodal-demo-demo2/index.html +0 -17
  323. package/dist/~demos/vtxmodal-demo-demo3/index.html +0 -17
  324. package/dist/~demos/vtxpagelayout-demo-demo1/index.html +0 -17
  325. package/dist/~demos/vtxpagelayout-demo-demo2/index.html +0 -17
  326. package/dist/~demos/vtxpagelayout-demo-demo3/index.html +0 -17
  327. package/dist/~demos/vtxpagelayout-demo-demo4/index.html +0 -17
  328. package/dist/~demos/vtxrpsframe-demo-base/index.html +0 -17
  329. package/dist/~demos/vtxscrollablerow-demo-demo/index.html +0 -17
  330. package/dist/~demos/vtxsearch-demo-demo1/index.html +0 -17
  331. package/dist/~demos/vtxsearch-demo-demo2/index.html +0 -17
  332. package/dist/~demos/vtxsearch-demo-demo3/index.html +0 -17
  333. package/dist/~demos/vtxsearch-demo-demo4/index.html +0 -17
  334. package/dist/~demos/vtxselect-demo-base/index.html +0 -17
  335. package/dist/~demos/vtxselect-demo-base-multiple/index.html +0 -17
  336. package/dist/~demos/vtxsignature-demo-demo/index.html +0 -17
  337. package/dist/~demos/vtxsignature-demo-demo1/index.html +0 -17
  338. package/dist/~demos/vtxsplitpane-demo-demo1/index.html +0 -17
  339. package/dist/~demos/vtxsplitpane-demo-demo2/index.html +0 -17
  340. package/dist/~demos/vtxsplitpane-demo-demo3/index.html +0 -17
  341. package/dist/~demos/vtxsplitpane-demo-demo4/index.html +0 -17
  342. package/dist/~demos/vtxstatisticscolumn-demo-demo1/index.html +0 -17
  343. package/dist/~demos/vtxstatisticscolumn-demo-demo2/index.html +0 -17
  344. package/dist/~demos/vtxstatisticscolumn-demo-demo3/index.html +0 -17
  345. package/dist/~demos/vtxtimepicker-demo-base/index.html +0 -17
  346. package/dist/~demos/vtxtree-demo-demo1/index.html +0 -17
  347. package/dist/~demos/vtxtree-demo-demo2/index.html +0 -17
  348. package/dist/~demos/vtxtree-demo-demo3/index.html +0 -17
  349. package/dist/~demos/vtxtreeselect-demo-demo1/index.html +0 -17
  350. package/dist/~demos/vtxtreeselect-demo-demo2/index.html +0 -17
  351. package/dist/~demos/vtxtreeselect-demo-demo3/index.html +0 -17
  352. package/dist/~demos/vtxupload-demo-demo1/index.html +0 -17
  353. package/dist/~demos/vtxupload-demo-demo2/index.html +0 -17
  354. package/dist/~demos/vtxupload-demo-demo3/index.html +0 -17
  355. package/dist/~demos/vtxwangeditor-demo-demo1/index.html +0 -17
  356. package/es/utils/hooks/useFetchData/index.js +0 -82
  357. package/lib/utils/hooks/useFetchData/index.js +0 -89
@@ -8,13 +8,33 @@ exports.extractImageDataFromRtf = extractImageDataFromRtf;
8
8
  exports.findAllImgSrcsFromHtml = findAllImgSrcsFromHtml;
9
9
  exports.replaceAllSpanFontSize = replaceAllSpanFontSize;
10
10
  exports.replaceImagesFileSourceWithInlineRepresentation = replaceImagesFileSourceWithInlineRepresentation;
11
+ exports.sanitizeHtml = sanitizeHtml;
11
12
  exports.withEmptyHtml = withEmptyHtml;
13
+ var _dompurify = _interopRequireDefault(require("dompurify"));
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
15
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
13
16
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
14
17
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
15
18
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
16
19
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
17
20
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
21
+ // 添加HTML安全过滤函数
22
+ function sanitizeHtml(html) {
23
+ if (!html) return '';
24
+
25
+ // 配置DOMPurify白名单
26
+ var config = {
27
+ ALLOWED_TAGS: ['p', 'br', 'strong', 'em', 'u', 's', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'span', 'div', 'table', 'thead', 'tbody', 'tr', 'td', 'th', 'img', 'a', 'figure', 'figcaption'],
28
+ ALLOWED_ATTR: ['href', 'src', 'alt', 'title', 'class', 'style', 'width', 'height', 'target', 'rel', 'align', 'valign', 'colspan', 'rowspan', 'download'],
29
+ // 关键:允许所有data-*属性
30
+ ADD_ATTR: ['data-*'],
31
+ // 或者使用:
32
+ ALLOW_DATA_ATTR: true,
33
+ FORBID_PROTOCOLS: ['javascript:', 'data:', 'vbscript:'],
34
+ KEEP_CONTENT: true
35
+ };
36
+ return _dompurify.default.sanitize(html, config);
37
+ }
18
38
  function replaceAllSpanFontSize(htmlData) {
19
39
  var spanReg = /\<span([\s\S]+?)\<\/span\>/g;
20
40
  var fontReg = /\<font([\s\S]+?)\<\/font\>/g;
@@ -141,7 +161,7 @@ function extractImageDataFromRtf(rtfData) {
141
161
  }
142
162
  function replaceImagesFileSourceWithInlineRepresentation(_x, _x2, _x3) {
143
163
  return _replaceImagesFileSourceWithInlineRepresentation.apply(this, arguments);
144
- }
164
+ } // 验证base64数据有效性
145
165
  function _replaceImagesFileSourceWithInlineRepresentation() {
146
166
  _replaceImagesFileSourceWithInlineRepresentation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(htmlData, imageSrcs, imagesHexSources) {
147
167
  var isBase64Data,
@@ -171,42 +191,53 @@ function _replaceImagesFileSourceWithInlineRepresentation() {
171
191
  uploadUrl = _args.length > 4 ? _args[4] : undefined;
172
192
  downloadUrl = _args.length > 5 ? _args[5] : undefined;
173
193
  if (!(imageSrcs.length === imagesHexSources.length)) {
174
- _context.next = 23;
194
+ _context.next = 26;
175
195
  break;
176
196
  }
177
197
  i = 0;
178
198
  case 5:
179
199
  if (!(i < imageSrcs.length)) {
180
- _context.next = 23;
200
+ _context.next = 26;
181
201
  break;
182
202
  }
183
203
  url = imageSrcs === null || imageSrcs === void 0 || (_imageSrcs$i = imageSrcs[i]) === null || _imageSrcs$i === void 0 ? void 0 : _imageSrcs$i.url;
184
204
  width = imageSrcs === null || imageSrcs === void 0 || (_imageSrcs$i2 = imageSrcs[i]) === null || _imageSrcs$i2 === void 0 ? void 0 : _imageSrcs$i2.width;
185
205
  height = imageSrcs === null || imageSrcs === void 0 || (_imageSrcs$i3 = imageSrcs[i]) === null || _imageSrcs$i3 === void 0 ? void 0 : _imageSrcs$i3.height;
186
206
  img = imageSrcs === null || imageSrcs === void 0 || (_imageSrcs$i4 = imageSrcs[i]) === null || _imageSrcs$i4 === void 0 ? void 0 : _imageSrcs$i4.img;
187
- newSrc = isBase64Data ? "data:".concat(imagesHexSources[i].type, ";base64,").concat(_convertHexToBase64(imagesHexSources[i].hex)) : imagesHexSources[i];
207
+ newSrc = isBase64Data ? "data:".concat(imagesHexSources[i].type, ";base64,").concat(_convertHexToBase64(imagesHexSources[i].hex)) : imagesHexSources[i]; // 安全检查:验证base64数据的有效性
208
+ if (isValidBase64(newSrc)) {
209
+ _context.next = 14;
210
+ break;
211
+ }
212
+ console.warn('Invalid base64 image data detected, skipping...');
213
+ return _context.abrupt("continue", 23);
214
+ case 14:
188
215
  formData = new FormData();
189
216
  blob = convertBase64UrlToBlob(newSrc);
190
217
  imgName = ((_url$split = url.split('\\')) === null || _url$split === void 0 || (_url$split = _url$split.slice(-1)) === null || _url$split === void 0 ? void 0 : _url$split[0]) || 'image.jpg';
191
218
  file = new File([blob], imgName);
192
219
  formData.append('file', file);
193
- _context.next = 18;
220
+ _context.next = 21;
194
221
  return window.fetch(uploadUrl, {
195
222
  method: 'POST',
223
+ headers: {
224
+ access_token: getToken(),
225
+ Authorization: 'Bearer ' + getToken()
226
+ },
196
227
  body: formData
197
228
  }).then(function (response) {
198
229
  return response.json();
199
230
  });
200
- case 18:
231
+ case 21:
201
232
  res = _context.sent;
202
- htmlData = htmlData.replace(img, "<img src=\"".concat(downloadUrl).concat(res.data[0].id, "\" style=\"width:").concat(width, "px;height:").concat(height, "px\""));
203
- case 20:
233
+ htmlData = htmlData.replace(img, "<img src=\"".concat(downloadUrl).concat(res.data[0].id, "\" style=\"width:").concat(width, "px;height:").concat(height, "px\" alt=\"").concat(res.data[0].fileName || imgName, "\" />"));
234
+ case 23:
204
235
  i++;
205
236
  _context.next = 5;
206
237
  break;
207
- case 23:
238
+ case 26:
208
239
  return _context.abrupt("return", htmlData);
209
- case 24:
240
+ case 27:
210
241
  case "end":
211
242
  return _context.stop();
212
243
  }
@@ -214,6 +245,24 @@ function _replaceImagesFileSourceWithInlineRepresentation() {
214
245
  }));
215
246
  return _replaceImagesFileSourceWithInlineRepresentation.apply(this, arguments);
216
247
  }
248
+ function isValidBase64(str) {
249
+ try {
250
+ // 检查是否包含有效的base64前缀
251
+ if (!str.startsWith('data:image/')) {
252
+ return false;
253
+ }
254
+
255
+ // 检查base64编码的有效性
256
+ var base64Part = str.split(',')[1];
257
+ if (!base64Part) return false;
258
+
259
+ // 尝试解码验证
260
+ atob(base64Part);
261
+ return true;
262
+ } catch (e) {
263
+ return false;
264
+ }
265
+ }
217
266
  function _convertHexToBase64(hexString) {
218
267
  return btoa(hexString.match(/\w{2}/g).map(function (char) {
219
268
  return String.fromCharCode(parseInt(char, 16));
package/package.json CHANGED
@@ -1,27 +1,19 @@
1
1
  {
2
2
  "name": "@vtx/components",
3
- "version": "4.0.0-beta.2",
3
+ "version": "4.0.0-beta.21",
4
4
  "description": "React components for Vortex",
5
5
  "keywords": [
6
6
  "react",
7
7
  "react-component"
8
8
  ],
9
- "homepage": "https://git.cloudhw.cn:3443/front-end/react-components.git",
10
- "bugs": "https://git.cloudhw.cn:3443/front-end/react-components/-/issues",
11
- "repository": {
12
- "type": "git",
13
- "url": "https://git.cloudhw.cn:3443/front-end/react-components.git"
14
- },
15
- "license": "ISC",
16
- "main": "lib/index.js",
17
- "unpkg": "dist/vtx-components.min.js",
18
- "module": "es/index.js",
19
9
  "files": [
20
10
  "dist",
21
11
  "lib",
22
12
  "es"
23
13
  ],
14
+ "main": "lib/index.js",
24
15
  "scripts": {
16
+ "start": "dumi dev",
25
17
  "compile": "father build",
26
18
  "build": "father build",
27
19
  "bootstrap": "node ./scripts/bootstrap.mjs",
@@ -39,17 +31,44 @@
39
31
  "prettier": "prettier --write \"**/**.{js,jsx,tsx,ts,less,md,yaml,json}\" --log-level warn",
40
32
  "createRelease": "node ./scripts/createRelease.mjs",
41
33
  "site": "npm run build && cross-env SITE_DEPLOY='TRUE' dumi build",
42
- "start": "dumi dev",
43
34
  "sync:tnpm": "node -e 'import(\"./scripts/syncTNPM.mjs\").then(m => m.default())'",
44
35
  "test": "cross-env TZ=UTC vitest run",
45
36
  "test:coverage": "cross-env TZ=UTC TEST_LOG=none vitest run --coverage",
46
37
  "test:ui": "cross-env TZ=UTC vitest --ui",
47
38
  "test:update": "cross-env TZ=UTC vitest -u",
48
39
  "tsc": "tsc --noEmit",
49
- "publish": "npm publish",
50
40
  "publish:beta": "npm publish --tag beta",
51
41
  "update:deps": "pnpm up --latest"
52
42
  },
43
+ "homepage": "https://git.cloudhw.cn:3443/front-end/react-components.git",
44
+ "bugs": "https://git.cloudhw.cn:3443/front-end/react-components/-/issues",
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "https://git.cloudhw.cn:3443/front-end/react-components.git"
48
+ },
49
+ "license": "ISC",
50
+ "unpkg": "dist/vtx-components.min.js",
51
+ "module": "es/index.js",
52
+ "overrides": {
53
+ "rimraf": "^5.0.5",
54
+ "core-js": "^3.35.0",
55
+ "@humanwhocodes/config-array": "^0.13.0",
56
+ "source-map-resolve": "^0.6.0",
57
+ "inflight": "^1.0.6",
58
+ "abab": "^2.0.6",
59
+ "react-easy-crop": "5.5.3"
60
+ },
61
+ "overridesName": "强制覆盖子依赖版本 npm (8.3+) / pnpm",
62
+ "resolutions": {
63
+ "rimraf": "^5.0.5",
64
+ "core-js": "^3.35.0",
65
+ "@humanwhocodes/config-array": "^0.13.0",
66
+ "source-map-resolve": "^0.6.0",
67
+ "inflight": "^1.0.6",
68
+ "abab": "^2.0.6",
69
+ "react-easy-crop": "5.5.3"
70
+ },
71
+ "resolutionsName": "强制覆盖子依赖版本 Yarn (classic/berry)",
53
72
  "browserslist": [
54
73
  "last 2 versions",
55
74
  "Firefox ESR",
@@ -67,13 +86,15 @@
67
86
  "@emotion/css": "^11.13.5",
68
87
  "@emotion/serialize": "^1.3.3",
69
88
  "@rc-component/util": "1.3.0",
70
- "@vtx/utils": "^1.0.20",
89
+ "@types/react": "^18.0.0",
90
+ "@wangeditor/editor": "^5.1.23",
91
+ "@wangeditor/editor-for-react": "^1.0.6",
92
+ "@wangeditor/plugin-upload-attachment": "^1.1.0",
71
93
  "ahooks": "^3.9.6",
72
- "use-deep-compare": "^1.3.0",
73
- "antd-img-crop": "^4.27.0",
94
+ "antd-img-crop": "4.25.0",
74
95
  "axios": "^1.13.2",
75
96
  "classnames": "^2.5.1",
76
- "dayjs": "^1.11.18",
97
+ "dompurify": "^3.3.1",
77
98
  "md5": "^2.3.0",
78
99
  "path-to-regexp": "^6.3.0",
79
100
  "prop-types": "^15.8.1",
@@ -83,6 +104,7 @@
83
104
  "rc-resize-observer": "^1.4.3",
84
105
  "rc-steps": "^6.0.1",
85
106
  "rc-table": "^7.55.1",
107
+ "react-antd-column-resize": "^1.0.3",
86
108
  "react-draggable": "^4.5.0",
87
109
  "react-layout-kit": "^1.9.2",
88
110
  "react-lazy-load": "^4.0.1",
@@ -91,22 +113,21 @@
91
113
  "react-resizable-panels": "^3.0.6",
92
114
  "react-syntax-highlighter": "^15.6.6",
93
115
  "safe-stable-stringify": "^2.5.0",
94
- "shiki-es": "^0.2.0",
95
116
  "signature_pad": "3.0.0-beta.4",
96
- "swr": "^2.3.6",
97
- "viewerjs": "^1.11.7",
98
- "@wangeditor/editor": "^5.1.23",
99
- "@wangeditor/editor-for-react": "^1.0.6",
100
- "@wangeditor/plugin-upload-attachment": "^1.1.0",
101
- "xgplayer": "^3.0.23",
102
- "react-antd-column-resize": "^1.0.3"
117
+ "swr": "1.3.0",
118
+ "uninstall": "^0.0.0",
119
+ "use-deep-compare": "^1.3.0",
120
+ "viewerjs": "1.3.3",
121
+ "xgplayer": "^3.0.23"
103
122
  },
104
123
  "devDependencies": {
105
124
  "@ant-design/antd-theme-variable": "^1.0.0",
125
+ "@ant-design/icons": "^6.0.0",
126
+ "dayjs": "^1.11.18",
106
127
  "@babel/core": "^7.28.5",
107
128
  "@babel/eslint-plugin": "^7.27.1",
108
129
  "@babel/parser": "^7.28.5",
109
- "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
130
+ "@babel/plugin-transform-object-rest-spread": "^7.28.6",
110
131
  "@babel/preset-env": "^7.28.5",
111
132
  "@babel/preset-react": "^7.28.5",
112
133
  "@babel/preset-typescript": "^7.28.5",
@@ -120,6 +141,7 @@
120
141
  "@testing-library/react": "^16.3.0",
121
142
  "@testing-library/react-hooks": "^8.0.1",
122
143
  "@testing-library/user-event": "^14.6.1",
144
+ "@types/webpack": ">=5.28.5 <6.0.0-0",
123
145
  "@umijs/babel-preset-umi": "^3.5.43",
124
146
  "@umijs/doctor": "^1.2.1",
125
147
  "@umijs/plugin-analytics": "^0.2.4",
@@ -149,12 +171,14 @@
149
171
  "fast-deep-equal": "^3.1.3",
150
172
  "father": "^4.6.7",
151
173
  "gh-pages": "^5.0.0",
152
- "glob": "^8.1.0",
174
+ "glob": "^10.4.5",
153
175
  "happy-dom": "^14.12.3",
154
176
  "identity-obj-proxy": "^3.0.0",
155
177
  "inquirer": "^8.2.7",
156
178
  "jest-canvas-mock": "^2.5.2",
157
179
  "lint-staged": "^10.5.4",
180
+ "lodash-es": "^4.17.21",
181
+ "minimatch": "^10.0.3",
158
182
  "mockdate": "^3.0.5",
159
183
  "mockjs": "^1.1.0",
160
184
  "np": "^6.5.0",
@@ -173,8 +197,10 @@
173
197
  "remark": "^15.0.1",
174
198
  "remark-gfm": "^4.0.1",
175
199
  "remark-parse": "^11.0.0",
200
+ "resolve-url-loader": "^5.0.0",
176
201
  "slash2": "^2.0.0",
177
202
  "style-loader": "^2.0.0",
203
+ "styled-components": ">= 2",
178
204
  "stylelint": "^13.13.1",
179
205
  "timezone-mock": "^1.3.6",
180
206
  "ts-node": "^10.9.2",
@@ -185,22 +211,23 @@
185
211
  "unist-util-visit": "^5.0.0",
186
212
  "vite": "^6.4.1",
187
213
  "vitest": "^3.2.4",
214
+ "webpack": ">=5.20.0 <6.0.0-0",
188
215
  "write-pkg": "^4.0.0",
189
216
  "xhr-mock": "^2.5.1",
190
217
  "yorkie": "^2.0.0",
191
218
  "zustand": "^4.5.7",
192
- "lodash-es": "^4.17.21",
193
- "@ant-design/icons": "^6.0.0",
194
- "@types/minimatch": "^6.0.0",
195
- "minimatch": "^10.0.3"
219
+ "@vtx/utils": "^1.0.20"
196
220
  },
197
221
  "peerDependencies": {
222
+ "@ant-design/icons": "^6.0.0",
198
223
  "antd": "^6.0.0",
224
+ "lodash-es": "^4.17.21",
199
225
  "react": ">=18.0.0",
200
226
  "react-dom": ">=18.0.0",
201
- "@ant-design/icons": "^6.0.0",
202
- "lodash-es": "^4.17.21"
227
+ "dayjs": "^1.11.18",
228
+ "@vtx/utils": "^1.0.20"
203
229
  },
230
+ "peerDependenciesName": "声明宿主依赖",
204
231
  "packageManager": "pnpm@9.6.0",
205
232
  "publishConfig": {
206
233
  "access": "public"
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_vtx_components=self.webpackChunk_vtx_components||[]).push([[1077],{11077:function(d,n,_){_.r(n);var t=_(73193),o=_.n(t),e=_(31549),s=function(l){var u=l.style;return(0,e.jsx)("svg",o()(o()({viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u),{},{children:(0,e.jsx)("g",{opacity:"0.5",children:(0,e.jsx)("path",{d:"M6.82722 9.56222L3.15222 5.88722C3.10396 5.83896 3.06568 5.78167 3.03956 5.71861C3.01344 5.65556 3 5.58797 3 5.51972C3 5.45147 3.01344 5.38389 3.03956 5.32083C3.06568 5.25778 3.10396 5.20048 3.15222 5.15222C3.20048 5.10396 3.25778 5.06568 3.32083 5.03956C3.38389 5.01344 3.45147 5 3.51972 5C3.58797 5 3.65556 5.01344 3.71861 5.03956C3.78167 5.06568 3.83896 5.10396 3.88722 5.15222L7.19472 8.45902L10.5022 5.15152C10.6009 5.0601 10.7311 5.01045 10.8656 5.01301C11.0001 5.01557 11.1284 5.07013 11.2235 5.16525C11.3186 5.26036 11.3732 5.38863 11.3757 5.52312C11.3783 5.65761 11.3287 5.78786 11.2372 5.88652L7.56222 9.56222C7.35922 9.76522 7.03022 9.76522 6.82722 9.56222Z",fill:"currentColor"})})}))};n.default=s}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_vtx_components=self.webpackChunk_vtx_components||[]).push([[1572],{1572:function(m,n,_){_.r(n);var o=_(73193),t=_.n(o),e=_(31549),l=function(s){var u=s.style;return(0,e.jsx)("svg",t()(t()({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u),{},{children:(0,e.jsx)("g",{children:(0,e.jsx)("path",{d:"M13.8571 13.67H2.14286C2.06429 13.67 2 13.733 2 13.81V14.86C2 14.937 2.06429 15 2.14286 15H13.8571C13.9357 15 14 14.937 14 14.86V13.81C14 13.733 13.9357 13.67 13.8571 13.67ZM13.8571 1H2.14286C2.06429 1 2 1.063 2 1.14V2.19C2 2.267 2.06429 2.33 2.14286 2.33H13.8571C13.9357 2.33 14 2.267 14 2.19V1.14C14 1.063 13.9357 1 13.8571 1ZM9.76429 5.655C9.87143 5.655 9.93214 5.5325 9.86607 5.45025L8.06607 3.21725C8.01429 3.1525 7.91429 3.1525 7.86429 3.21725L6.06429 5.45025C5.99821 5.5325 6.05714 5.655 6.16607 5.655H7.35714V10.345H6.23571C6.12857 10.345 6.06786 10.4675 6.13393 10.5498L7.93393 12.781C7.98571 12.8457 8.08571 12.8457 8.13571 12.781L9.93572 10.5498C10.0018 10.4675 9.94286 10.345 9.83393 10.345H8.64286V5.655H9.76429Z",fill:"currentColor"})})}))};n.default=l}}]);
@@ -1,2 +0,0 @@
1
- !(function(){var Ht=Object.defineProperty,Kt=Object.defineProperties;var zt=Object.getOwnPropertyDescriptors;var jt=Object.getOwnPropertySymbols;var Gt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable;var Ft=(h,s,t)=>s in h?Ht(h,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):h[s]=t,St=(h,s)=>{for(var t in s||(s={}))Gt.call(s,t)&&Ft(h,t,s[t]);if(jt)for(var t of jt(s))$t.call(s,t)&&Ft(h,t,s[t]);return h},Nt=(h,s)=>Kt(h,zt(s));var Bt=(h,s,t)=>new Promise((n,o)=>{var e=d=>{try{l(t.next(d))}catch(a){o(a)}},u=d=>{try{l(t.throw(d))}catch(a){o(a)}},l=d=>d.done?n(d.value):Promise.resolve(d.value).then(e,u);l((t=t.apply(h,s)).next())});(self.webpackChunk_vtx_components=self.webpackChunk_vtx_components||[]).push([[1632],{98639:function(h,s){"use strict";var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};s.Z=t},43583:function(h,s){"use strict";var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};s.Z=t},84274:function(h,s){"use strict";var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};s.Z=t},9170:function(h,s,t){"use strict";t.d(s,{Z:function(){return E}});var n=t(83910),o=t(44194),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},u=e,l=t(80320),d=function(i,f){return o.createElement(l.Z,(0,n.Z)({},i,{ref:f,icon:u}))},a=o.forwardRef(d),E=a},47712:function(h,s,t){"use strict";t.d(s,{Z:function(){return E}});var n=t(83910),o=t(44194),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},u=e,l=t(80320),d=function(i,f){return o.createElement(l.Z,(0,n.Z)({},i,{ref:f,icon:u}))},a=o.forwardRef(d),E=a},5651:function(h,s,t){"use strict";t.d(s,{Z:function(){return E}});var n=t(83910),o=t(44194),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},u=e,l=t(80320),d=function(i,f){return o.createElement(l.Z,(0,n.Z)({},i,{ref:f,icon:u}))},a=o.forwardRef(d),E=a},4711:function(h,s,t){"use strict";var n=t(83910),o=t(44194),e=t(98639),u=t(80320),l=function(E,c){return o.createElement(u.Z,(0,n.Z)({},E,{ref:c,icon:e.Z}))},d=o.forwardRef(l);s.Z=d},11396:function(h,s,t){"use strict";t.d(s,{Z:function(){return E}});var n=t(83910),o=t(44194),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"filled"},u=e,l=t(80320),d=function(i,f){return o.createElement(l.Z,(0,n.Z)({},i,{ref:f,icon:u}))},a=o.forwardRef(d),E=a},69079:function(h,s,t){"use strict";t.d(s,{Z:function(){return E}});var n=t(83910),o=t(44194),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},u=e,l=t(80320),d=function(i,f){return o.createElement(l.Z,(0,n.Z)({},i,{ref:f,icon:u}))},a=o.forwardRef(d),E=a},54437:function(h,s,t){"use strict";t.d(s,{Z:function(){return E}});var n=t(83910),o=t(44194),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},u=e,l=t(80320),d=function(i,f){return o.createElement(l.Z,(0,n.Z)({},i,{ref:f,icon:u}))},a=o.forwardRef(d),E=a},60262:function(h,s,t){"use strict";t.d(s,{Z:function(){return E}});var n=t(83910),o=t(44194),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm72-112c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48zm400-188h-59.3c-2.6 0-5 1.2-6.5 3.3L763.7 538.1l-49.9-68.8a7.92 7.92 0 00-6.5-3.3H648c-6.5 0-10.3 7.4-6.5 12.7l109.2 150.7a16.1 16.1 0 0026 0l165.8-228.7c3.8-5.3 0-12.7-6.5-12.7zm-44 306h-64.2c-5.5 0-10.6 2.9-13.6 7.5a352.2 352.2 0 01-49.8 62.2A355.92 355.92 0 01651.1 840a355 355 0 01-138.7 27.9c-48.1 0-94.8-9.4-138.7-27.9a355.92 355.92 0 01-113.3-76.3A353.06 353.06 0 01184 650.5c-18.6-43.8-28-90.5-28-138.5s9.4-94.7 28-138.5c17.9-42.4 43.6-80.5 76.4-113.2 32.8-32.7 70.9-58.4 113.3-76.3a355 355 0 01138.7-27.9c48.1 0 94.8 9.4 138.7 27.9 42.4 17.9 80.5 43.6 113.3 76.3 19 19 35.6 39.8 49.8 62.2 2.9 4.7 8.1 7.5 13.6 7.5H892c6 0 9.8-6.3 7.2-11.6C828.8 178.5 684.7 82 517.7 80 278.9 77.2 80.5 272.5 80 511.2 79.5 750.1 273.3 944 512.4 944c169.2 0 315.6-97 386.7-238.4A8 8 0 00892 694z"}}]},name:"issues-close",theme:"outlined"},u=e,l=t(80320),d=function(i,f){return o.createElement(l.Z,(0,n.Z)({},i,{ref:f,icon:u}))},a=o.forwardRef(d),E=a},57828:function(h,s,t){"use strict";t.d(s,{Z:function(){return E}});var n=t(83910),o=t(44194),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.7 279.8l61.3-58.9V208H683.7L532.4 586.4 360.3 208H137.7v12.9l71.6 86.6c7 6.4 10.6 15.8 9.7 25.2V673c2.2 12.3-1.7 24.8-10.3 33.7L128 805v12.7h228.6v-12.9l-80.6-98a39.99 39.99 0 01-11.1-33.7V378.7l200.7 439.2h23.3l172.6-439.2v349.9c0 9.2 0 11.1-6 17.2l-62.1 60.3V819h301.2v-12.9l-59.9-58.9c-5.2-4-7.9-10.7-6.8-17.2V297a18.1 18.1 0 016.8-17.2z"}}]},name:"medium",theme:"outlined"},u=e,l=t(80320),d=function(i,f){return o.createElement(l.Z,(0,n.Z)({},i,{ref:f,icon:u}))},a=o.forwardRef(d),E=a},63954:function(h,s,t){"use strict";t.d(s,{Z:function(){return E}});var n=t(83910),o=t(44194),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},u=e,l=t(80320),d=function(i,f){return o.createElement(l.Z,(0,n.Z)({},i,{ref:f,icon:u}))},a=o.forwardRef(d),E=a},30313:function(h,s,t){"use strict";var n=t(83910),o=t(44194),e=t(43583),u=t(80320),l=function(E,c){return o.createElement(u.Z,(0,n.Z)({},E,{ref:c,icon:e.Z}))},d=o.forwardRef(l);s.Z=d},48893:function(h,s,t){"use strict";var n=t(83910),o=t(44194),e=t(84274),u=t(80320),l=function(E,c){return o.createElement(u.Z,(0,n.Z)({},E,{ref:c,icon:e.Z}))},d=o.forwardRef(l);s.Z=d},35648:function(h,s,t){"use strict";t.d(s,{Z:function(){return E}});var n=t(83910),o=t(44194),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 254.3c-30.6 13.2-63.9 22.7-98.2 26.4a170.1 170.1 0 0075-94 336.64 336.64 0 01-108.2 41.2A170.1 170.1 0 00672 174c-94.5 0-170.5 76.6-170.5 170.6 0 13.2 1.6 26.4 4.2 39.1-141.5-7.4-267.7-75-351.6-178.5a169.32 169.32 0 00-23.2 86.1c0 59.2 30.1 111.4 76 142.1a172 172 0 01-77.1-21.7v2.1c0 82.9 58.6 151.6 136.7 167.4a180.6 180.6 0 01-44.9 5.8c-11.1 0-21.6-1.1-32.2-2.6C211 652 273.9 701.1 348.8 702.7c-58.6 45.9-132 72.9-211.7 72.9-14.3 0-27.5-.5-41.2-2.1C171.5 822 261.2 850 357.8 850 671.4 850 843 590.2 843 364.7c0-7.4 0-14.8-.5-22.2 33.2-24.3 62.3-54.4 85.5-88.2z"}}]},name:"twitter",theme:"outlined"},u=e,l=t(80320),d=function(i,f){return o.createElement(l.Z,(0,n.Z)({},i,{ref:f,icon:u}))},a=o.forwardRef(d),E=a},3956:function(h,s,t){"use strict";t.d(s,{Z:function(){return E}});var n=t(83910),o=t(44194),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M564.7 230.1V803h60l25.2 71.4L756.3 803h131.5V230.1H564.7zm247.7 497h-59.9l-75.1 50.4-17.8-50.4h-18V308.3h170.7v418.8zM526.1 486.9H393.3c2.1-44.9 4.3-104.3 6.6-172.9h130.9l-.1-8.1c0-.6-.2-14.7-2.3-29.1-2.1-15-6.6-34.9-21-34.9H287.8c4.4-20.6 15.7-69.7 29.4-93.8l6.4-11.2-12.9-.7c-.8 0-19.6-.9-41.4 10.6-35.7 19-51.7 56.4-58.7 84.4-18.4 73.1-44.6 123.9-55.7 145.6-3.3 6.4-5.3 10.2-6.2 12.8-1.8 4.9-.8 9.8 2.8 13 10.5 9.5 38.2-2.9 38.5-3 .6-.3 1.3-.6 2.2-1 13.9-6.3 55.1-25 69.8-84.5h56.7c.7 32.2 3.1 138.4 2.9 172.9h-141l-2.1 1.5c-23.1 16.9-30.5 63.2-30.8 65.2l-1.4 9.2h167c-12.3 78.3-26.5 113.4-34 127.4-3.7 7-7.3 14-10.7 20.8-21.3 42.2-43.4 85.8-126.3 153.6-3.6 2.8-7 8-4.8 13.7 2.4 6.3 9.3 9.1 24.6 9.1 5.4 0 11.8-.3 19.4-1 49.9-4.4 100.8-18 135.1-87.6 17-35.1 31.7-71.7 43.9-108.9L497 850l5-12c.8-1.9 19-46.3 5.1-95.9l-.5-1.8-108.1-123-22 16.6c6.4-26.1 10.6-49.9 12.5-71.1h158.7v-8c0-40.1-18.5-63.9-19.2-64.9l-2.4-3z"}}]},name:"zhihu",theme:"outlined"},u=e,l=t(80320),d=function(i,f){return o.createElement(l.Z,(0,n.Z)({},i,{ref:f,icon:u}))},a=o.forwardRef(d),E=a},50433:function(h,s,t){"use strict";t.d(s,{a:function(){return o}});var n=t(44194),o=function(u){return function(l,d){var a=(0,n.useRef)(!1);u(function(){return function(){a.current=!1}},[]),u(function(){if(!a.current)a.current=!0;else return l()},d)}},e=null},52855:function(h,s,t){"use strict";var n=t(92336),o=t(44194),e=t(88304),u=t(62510);function l(d,a,E){var c=(0,n.CR)((0,o.useState)({}),2),i=c[0],f=c[1],I=(0,e.Z)(function(){f({})},E).run;(0,o.useEffect)(function(){return I()},a),(0,u.Z)(d,[i])}s.Z=l},88304:function(h,s,t){"use strict";var n=t(92336),o=t(77837),e=t.n(o),u=t(44194),l=t(9384),d=t(60370),a=t(69298),E=t(21215);function c(i,f){var I;E.Z&&((0,a.mf)(i)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof i)));var C=(0,l.Z)(i),R=(I=f==null?void 0:f.wait)!==null&&I!==void 0?I:1e3,_=(0,u.useMemo)(function(){return e()(function(){for(var p=[],T=0;T<arguments.length;T++)p[T]=arguments[T];return C.current.apply(C,(0,n.ev)([],(0,n.CR)(p),!1))},R,f)},[]);return(0,d.Z)(function(){_.cancel()}),{run:_,cancel:_.cancel,flush:_.flush}}s.Z=c},9384:function(h,s,t){"use strict";var n=t(44194);function o(e){var u=(0,n.useRef)(e);return u.current=e,u}s.Z=o},60370:function(h,s,t){"use strict";var n=t(44194),o=t(9384),e=t(69298),u=t(21215),l=function(d){u.Z&&((0,e.mf)(d)||console.error("useUnmount expected parameter is a function, got ".concat(typeof d)));var a=(0,o.Z)(d);(0,n.useEffect)(function(){return function(){a.current()}},[])};s.Z=l},62510:function(h,s,t){"use strict";var n=t(44194),o=t(50433);s.Z=(0,o.a)(n.useEffect)},69298:function(h,s,t){"use strict";t.d(s,{G7:function(){return d},HD:function(){return e},Kn:function(){return n},hj:function(){return l},jn:function(){return u},mf:function(){return o}});var n=function(a){return a!==null&&typeof a=="object"},o=function(a){return typeof a=="function"},e=function(a){return typeof a=="string"},u=function(a){return typeof a=="boolean"},l=function(a){return typeof a=="number"},d=function(a){return typeof a=="undefined"}},21215:function(h,s){"use strict";var t=!1;s.Z=t},70861:function(h,s,t){var n=t(83250),o=n.Symbol;h.exports=o},69823:function(h,s,t){var n=t(70861),o=t(91339),e=t(25151),u="[object Null]",l="[object Undefined]",d=n?n.toStringTag:void 0;function a(E){return E==null?E===void 0?l:u:d&&d in Object(E)?o(E):e(E)}h.exports=a},21656:function(h,s,t){var n=t(62438),o=/^\s+/;function e(u){return u&&u.slice(0,n(u)+1).replace(o,"")}h.exports=e},20302:function(h,s,t){var n=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;h.exports=n},91339:function(h,s,t){var n=t(70861),o=Object.prototype,e=o.hasOwnProperty,u=o.toString,l=n?n.toStringTag:void 0;function d(a){var E=e.call(a,l),c=a[l];try{a[l]=void 0;var i=!0}catch(I){}var f=u.call(a);return i&&(E?a[l]=c:delete a[l]),f}h.exports=d},25151:function(h){var s=Object.prototype,t=s.toString;function n(o){return t.call(o)}h.exports=n},83250:function(h,s,t){var n=t(20302),o=typeof self=="object"&&self&&self.Object===Object&&self,e=n||o||Function("return this")();h.exports=e},62438:function(h){var s=/\s/;function t(n){for(var o=n.length;o--&&s.test(n.charAt(o)););return o}h.exports=t},77837:function(h,s,t){var n=t(93702),o=t(80231),e=t(29153),u="Expected a function",l=Math.max,d=Math.min;function a(E,c,i){var f,I,C,R,_,p,T=0,U=!1,F=!1,H=!0;if(typeof E!="function")throw new TypeError(u);c=e(c)||0,n(i)&&(U=!!i.leading,F="maxWait"in i,C=F?l(e(i.maxWait)||0,c):C,H="trailing"in i?!!i.trailing:H);function $(D){var y=f,q=I;return f=I=void 0,T=D,R=E.apply(q,y),R}function Y(D){return T=D,_=setTimeout(A,c),U?$(D):R}function Z(D){var y=D-p,q=D-T,st=c-y;return F?d(st,C-q):st}function v(D){var y=D-p,q=D-T;return p===void 0||y>=c||y<0||F&&q>=C}function A(){var D=o();if(v(D))return x(D);_=setTimeout(A,Z(D))}function x(D){return _=void 0,H&&f?$(D):(f=I=void 0,R)}function Q(){_!==void 0&&clearTimeout(_),T=0,f=p=I=_=void 0}function it(){return _===void 0?R:x(o())}function k(){var D=o(),y=v(D);if(f=arguments,I=this,p=D,y){if(_===void 0)return Y(p);if(F)return clearTimeout(_),_=setTimeout(A,c),$(p)}return _===void 0&&(_=setTimeout(A,c)),R}return k.cancel=Q,k.flush=it,k}h.exports=a},93702:function(h){function s(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}h.exports=s},50440:function(h){function s(t){return t!=null&&typeof t=="object"}h.exports=s},52624:function(h,s,t){var n=t(69823),o=t(50440),e="[object Symbol]";function u(l){return typeof l=="symbol"||o(l)&&n(l)==e}h.exports=u},80231:function(h,s,t){var n=t(83250),o=function(){return n.Date.now()};h.exports=o},29153:function(h,s,t){var n=t(21656),o=t(93702),e=t(52624),u=NaN,l=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,a=/^0o[0-7]+$/i,E=parseInt;function c(i){if(typeof i=="number")return i;if(e(i))return u;if(o(i)){var f=typeof i.valueOf=="function"?i.valueOf():i;i=o(f)?f+"":f}if(typeof i!="string")return i===0?i:+i;i=n(i);var I=d.test(i);return I||a.test(i)?E(i.slice(2),I?2:8):l.test(i)?u:+i}h.exports=c},43389:function(h,s,t){"use strict";t.d(s,{Z:function(){return E}});const n=c=>typeof c=="object"&&c!=null&&c.nodeType===1,o=(c,i)=>(!i||c!=="hidden")&&c!=="visible"&&c!=="clip",e=(c,i)=>{if(c.clientHeight<c.scrollHeight||c.clientWidth<c.scrollWidth){const f=getComputedStyle(c,null);return o(f.overflowY,i)||o(f.overflowX,i)||(I=>{const C=(R=>{if(!R.ownerDocument||!R.ownerDocument.defaultView)return null;try{return R.ownerDocument.defaultView.frameElement}catch(_){return null}})(I);return!!C&&(C.clientHeight<I.scrollHeight||C.clientWidth<I.scrollWidth)})(c)}return!1},u=(c,i,f,I,C,R,_,p)=>R<c&&_>i||R>c&&_<i?0:R<=c&&p<=f||_>=i&&p>=f?R-c-I:_>i&&p<f||R<c&&p>f?_-i+C:0,l=c=>{const i=c.parentElement;return i==null?c.getRootNode().host||null:i},d=(c,i)=>{var f,I,C,R;if(typeof document=="undefined")return[];const{scrollMode:_,block:p,inline:T,boundary:U,skipOverflowHiddenElements:F}=i,H=typeof U=="function"?U:g=>g!==U;if(!n(c))throw new TypeError("Invalid target");const $=document.scrollingElement||document.documentElement,Y=[];let Z=c;for(;n(Z)&&H(Z);){if(Z=l(Z),Z===$){Y.push(Z);break}Z!=null&&Z===document.body&&e(Z)&&!e(document.documentElement)||Z!=null&&e(Z,F)&&Y.push(Z)}const v=(I=(f=window.visualViewport)==null?void 0:f.width)!=null?I:innerWidth,A=(R=(C=window.visualViewport)==null?void 0:C.height)!=null?R:innerHeight,{scrollX:x,scrollY:Q}=window,{height:it,width:k,top:D,right:y,bottom:q,left:st}=c.getBoundingClientRect(),{top:Dt,right:It,bottom:Mt,left:Tt}=(g=>{const P=window.getComputedStyle(g);return{top:parseFloat(P.scrollMarginTop)||0,right:parseFloat(P.scrollMarginRight)||0,bottom:parseFloat(P.scrollMarginBottom)||0,left:parseFloat(P.scrollMarginLeft)||0}})(c);let tt=p==="start"||p==="nearest"?D-Dt:p==="end"?q+Mt:D+it/2-Dt+Mt,K=T==="center"?st+k/2-Tt+It:T==="end"?y+It:st-Tt;const bt=[];for(let g=0;g<Y.length;g++){const P=Y[g],{height:vt,width:ft,top:ht,right:Et,bottom:wt,left:j}=P.getBoundingClientRect();if(_==="if-needed"&&D>=0&&st>=0&&q<=A&&y<=v&&(P===$&&!e(P)||D>=ht&&q<=wt&&st>=j&&y<=Et))return bt;const mt=getComputedStyle(P),ut=parseInt(mt.borderLeftWidth,10),Ot=parseInt(mt.borderTopWidth,10),Ct=parseInt(mt.borderRightWidth,10),gt=parseInt(mt.borderBottomWidth,10);let nt=0,r=0;const m="offsetWidth"in P?P.offsetWidth-P.clientWidth-ut-Ct:0,O="offsetHeight"in P?P.offsetHeight-P.clientHeight-Ot-gt:0,b="offsetWidth"in P?P.offsetWidth===0?0:ft/P.offsetWidth:0,L="offsetHeight"in P?P.offsetHeight===0?0:vt/P.offsetHeight:0;if($===P)nt=p==="start"?tt:p==="end"?tt-A:p==="nearest"?u(Q,Q+A,A,Ot,gt,Q+tt,Q+tt+it,it):tt-A/2,r=T==="start"?K:T==="center"?K-v/2:T==="end"?K-v:u(x,x+v,v,ut,Ct,x+K,x+K+k,k),nt=Math.max(0,nt+Q),r=Math.max(0,r+x);else{nt=p==="start"?tt-ht-Ot:p==="end"?tt-wt+gt+O:p==="nearest"?u(ht,wt,vt,Ot,gt+O,tt,tt+it,it):tt-(ht+vt/2)+O/2,r=T==="start"?K-j-ut:T==="center"?K-(j+ft/2)+m/2:T==="end"?K-Et+Ct+m:u(j,Et,ft,ut,Ct+m,K,K+k,k);const{scrollLeft:W,scrollTop:M}=P;nt=L===0?0:Math.max(0,Math.min(M+nt/L,P.scrollHeight-vt/L+O)),r=b===0?0:Math.max(0,Math.min(W+r/b,P.scrollWidth-ft/b+m)),tt+=M-nt,K+=W-r}bt.push({el:P,top:nt,left:r})}return bt},a=c=>c===!1?{block:"end",inline:"nearest"}:(i=>i===Object(i)&&Object.keys(i).length!==0)(c)?c:{block:"start",inline:"nearest"};function E(c,i){if(!c.isConnected||!(C=>{let R=C;for(;R&&R.parentNode;){if(R.parentNode===document)return!0;R=R.parentNode instanceof ShadowRoot?R.parentNode.host:R.parentNode}return!1})(c))return;const f=(C=>{const R=window.getComputedStyle(C);return{top:parseFloat(R.scrollMarginTop)||0,right:parseFloat(R.scrollMarginRight)||0,bottom:parseFloat(R.scrollMarginBottom)||0,left:parseFloat(R.scrollMarginLeft)||0}})(c);if((C=>typeof C=="object"&&typeof C.behavior=="function")(i))return i.behavior(d(c,i));const I=typeof i=="boolean"||i==null?void 0:i.behavior;for(const{el:C,top:R,left:_}of d(c,a(i))){const p=R-f.top+f.bottom,T=_-f.left+f.right;C.scroll({top:p,left:T,behavior:I})}}},47765:function(h,s,t){"use strict";t.d(s,{B:function(){return I},I:function(){return D},O:function(){return E},S:function(){return gt},U:function(){return a},a:function(){return i},b:function(){return l},c:function(){return mt},d:function(){return Ot},e:function(){return c},f:function(){return Ct},g:function(){return nt},i:function(){return p},m:function(){return f},n:function(){return ft},o:function(){return vt},r:function(){return y},s:function(){return g},t:function(){return q},u:function(){return st},z:function(){return H}});var n=t(44194),o=t(71940),e=Object.prototype.hasOwnProperty;function u(r,m){var O,b;if(r===m)return!0;if(r&&m&&(O=r.constructor)===m.constructor){if(O===Date)return r.getTime()===m.getTime();if(O===RegExp)return r.toString()===m.toString();if(O===Array){if((b=r.length)===m.length)for(;b--&&u(r[b],m[b]););return b===-1}if(!O||typeof r=="object"){b=0;for(O in r)if(e.call(r,O)&&++b&&!e.call(m,O)||!(O in m)||!u(r[O],m[O]))return!1;return Object.keys(m).length===b}}return r!==r&&m!==m}const l=new WeakMap,d=()=>{},a=d(),E=Object,c=r=>r===a,i=r=>typeof r=="function",f=(r,m)=>St(St({},r),m),I=r=>i(r.then),C={},R={},_="undefined",p=typeof window!=_,T=typeof document!=_,U=p&&"Deno"in window,F=()=>p&&typeof window.requestAnimationFrame!=_,H=(r,m)=>{const O=l.get(r);return[()=>!c(m)&&r.get(m)||C,b=>{if(!c(m)){const L=r.get(m);m in R||(R[m]=L),O[5](m,f(L,b),L||C)}},O[6],()=>!c(m)&&m in R?R[m]:!c(m)&&r.get(m)||C]};let $=!0;const Y=()=>$,[Z,v]=p&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[d,d],A=()=>{const r=T&&document.visibilityState;return c(r)||r!=="hidden"},x=r=>(T&&document.addEventListener("visibilitychange",r),Z("focus",r),()=>{T&&document.removeEventListener("visibilitychange",r),v("focus",r)}),Q=r=>{const m=()=>{$=!0,r()},O=()=>{$=!1};return Z("online",m),Z("offline",O),()=>{v("online",m),v("offline",O)}},it={isOnline:Y,isVisible:A},k={initFocus:x,initReconnect:Q},D=!n.useId,y=!p||U,q=r=>F()?window.requestAnimationFrame(r):setTimeout(r,1),st=y?n.useEffect:n.useLayoutEffect,Dt=typeof navigator!="undefined"&&navigator.connection,It=!y&&Dt&&(["slow-2g","2g"].includes(Dt.effectiveType)||Dt.saveData),Mt=new WeakMap,Tt=r=>E.prototype.toString.call(r),tt=(r,m)=>r===`[object ${m}]`;let K=0;const bt=r=>{const m=typeof r,O=Tt(r),b=tt(O,"Date"),L=tt(O,"RegExp"),W=tt(O,"Object");let M,B;if(E(r)===r&&!b&&!L){if(M=Mt.get(r),M)return M;if(M=++K+"~",Mt.set(r,M),Array.isArray(r)){for(M="@",B=0;B<r.length;B++)M+=bt(r[B])+",";Mt.set(r,M)}if(W){M="#";const V=E.keys(r).sort();for(;!c(B=V.pop());)c(r[B])||(M+=B+":"+bt(r[B])+",");Mt.set(r,M)}}else M=b?r.toJSON():m=="symbol"?r.toString():m=="string"?JSON.stringify(r):""+r;return M},g=r=>{if(i(r))try{r=r()}catch(O){r=""}const m=r;return r=typeof r=="string"?r:(Array.isArray(r)?r.length:r)?bt(r):"",[r,m]};let P=0;const vt=()=>++P;function ft(...r){return Bt(this,null,function*(){const[m,O,b,L]=r,W=f({populateCache:!0,throwOnError:!0},typeof L=="boolean"?{revalidate:L}:L||{});let M=W.populateCache;const B=W.rollbackOnError;let V=W.optimisticData;const At=rt=>typeof B=="function"?B(rt):B!==!1,ct=W.throwOnError;if(i(O)){const rt=O,ot=[],pt=m.keys();for(const at of pt)!/^\$(inf|sub)\$/.test(at)&&rt(m.get(at)._k)&&ot.push(at);return Promise.all(ot.map(lt))}return lt(O);function lt(rt){return Bt(this,null,function*(){const[ot]=g(rt);if(!ot)return;const[pt,at]=H(m,ot),[xt,Wt,S,N]=l.get(m),z=()=>{const G=xt[ot];return(i(W.revalidate)?W.revalidate(pt().data,rt):W.revalidate!==!1)&&(delete S[ot],delete N[ot],G&&G[0])?G[0](o.QQ).then(()=>pt().data):pt().data};if(r.length<3)return z();let w=b,et,dt=!1;const J=vt();Wt[ot]=[J,0];const X=!c(V),_t=pt(),yt=_t.data,Pt=_t._c,Lt=c(Pt)?yt:Pt;if(X&&(V=i(V)?V(Lt,yt):V,at({data:V,_c:Lt})),i(w))try{w=w(Lt)}catch(G){et=G,dt=!0}if(w&&I(w))if(w=yield w.catch(G=>{et=G,dt=!0}),J!==Wt[ot][0]){if(dt)throw et;return w}else dt&&X&&At(et)&&(M=!0,at({data:Lt,_c:a}));if(M&&!dt)if(i(M)){const G=M(w,Lt);at({data:G,error:a,_c:a})}else at({data:w,error:a,_c:a});if(Wt[ot][1]=vt(),Promise.resolve(z()).then(()=>{at({_c:a})}),dt){if(ct)throw et;return}return w})}})}const ht=(r,m)=>{for(const O in r)r[O][0]&&r[O][0](m)},Et=(r,m)=>{if(!l.has(r)){const O=f(k,m),b=Object.create(null),L=ft.bind(a,r);let W=d;const M=Object.create(null),B=(ct,lt)=>{const rt=M[ct]||[];return M[ct]=rt,rt.push(lt),()=>rt.splice(rt.indexOf(lt),1)},V=(ct,lt,rt)=>{r.set(ct,lt);const ot=M[ct];if(ot)for(const pt of ot)pt(lt,rt)},At=()=>{if(!l.has(r)&&(l.set(r,[b,Object.create(null),Object.create(null),Object.create(null),L,V,B]),!y)){const ct=O.initFocus(setTimeout.bind(a,ht.bind(a,b,o.N4))),lt=O.initReconnect(setTimeout.bind(a,ht.bind(a,b,o.l2)));W=()=>{ct&&ct(),lt&&lt(),l.delete(r)}}};return At(),[r,L,At,W]}return[r,l.get(r)[4]]},wt=(r,m,O,b,L)=>{const W=O.errorRetryCount,M=L.retryCount,B=~~((Math.random()+.5)*(1<<(M<8?M:8)))*O.errorRetryInterval;!c(W)&&M>W||setTimeout(b,B,L)},j=u,[mt,ut]=Et(new Map),Ot=f({onLoadingSlow:d,onSuccess:d,onError:d,onErrorRetry:wt,onDiscarded:d,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:It?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:It?5e3:3e3,compare:j,isPaused:()=>!1,cache:mt,mutate:ut,fallback:{}},it),Ct=(r,m)=>{const O=f(r,m);if(m){const{use:b,fallback:L}=r,{use:W,fallback:M}=m;b&&W&&(O.use=b.concat(W)),L&&M&&(O.fallback=f(L,M))}return O},gt=(0,n.createContext)({}),nt=r=>{const{value:m}=r,O=(0,n.useContext)(gt),b=i(m),L=(0,n.useMemo)(()=>b?m(O):m,[b,O,m]),W=(0,n.useMemo)(()=>b?L:Ct(O,L),[b,O,L]),M=L&&L.provider,B=(0,n.useRef)(a);M&&!B.current&&(B.current=Et(M(W.cache||mt),L));const V=B.current;return V&&(W.cache=V[0],W.mutate=V[1]),st(()=>{if(V)return V[2]&&V[2](),V[3]},[]),(0,n.createElement)(gt.Provider,f(r,{value:W}))}},71940:function(h,s,t){"use strict";t.d(s,{N4:function(){return n},QQ:function(){return e},aU:function(){return u},l2:function(){return o}});const n=0,o=1,e=2,u=3},32497:function(h,s,t){"use strict";t.d(s,{ko:function(){return C},kY:function(){return E},s6:function(){return I}});var n=t(47765);const o="$inf$";var e=t(44194);const u=n.i&&window.__SWR_DEVTOOLS_USE__,l=u?window.__SWR_DEVTOOLS_USE__:[],d=()=>{u&&(window.__SWR_DEVTOOLS_REACT__=e)},a=_=>(0,n.a)(_[1])?[_[0],_[1],_[2]||{}]:[_[0],null,(_[1]===null?_[2]:_[1])||{}],E=()=>{const _=(0,e.useContext)(n.S);return(0,e.useMemo)(()=>(0,n.m)(n.d,_),[_])},c=(_,p)=>{const[T,U]=serialize(_),[,,,F]=SWRGlobalState.get(cache);if(F[T])return F[T];const H=p(U);return F[T]=H,H},i=_=>(p,T,U)=>_(p,T&&((...H)=>{const[$]=(0,n.s)(p),[,,,Y]=n.b.get(n.c);if($.startsWith(o))return T(...H);const Z=Y[$];return(0,n.e)(Z)?T(...H):(delete Y[$],Z)}),U),f=l.concat(i),I=_=>function(...T){const U=E(),[F,H,$]=a(T),Y=(0,n.f)(U,$);let Z=_;const{use:v}=Y,A=(v||[]).concat(f);for(let x=A.length;x--;)Z=A[x](Z);return Z(F,H||Y.fetcher||null,Y)},C=(_,p,T)=>{const U=p[_]||(p[_]=[]);return U.push(T),()=>{const F=U.indexOf(T);F>=0&&(U[F]=U[U.length-1],U.pop())}},R=(_,p)=>(...T)=>{const[U,F,H]=a(T),$=(H.use||[]).concat(p);return _(U,F,Nt(St({},H),{use:$}))};d()},19764:function(h,s,t){"use strict";t.d(s,{J$:function(){return Y},ZP:function(){return Z}});var n=t(44194),o=t(66740),e=t(47765),u=t(71940),l=t(32497);const a=void 0,E=null,c=v=>v===a,i=v=>typeof v=="function",f=new WeakMap,I=v=>E.prototype.toString.call(v),C=(v,A)=>v===`[object ${A}]`;let R=0;const _=v=>{const A=typeof v,x=I(v),Q=C(x,"Date"),it=C(x,"RegExp"),k=C(x,"Object");let D,y;if(E(v)===v&&!Q&&!it){if(D=f.get(v),D)return D;if(D=++R+"~",f.set(v,D),Array.isArray(v)){for(D="@",y=0;y<v.length;y++)D+=_(v[y])+",";f.set(v,D)}if(k){D="#";const q=E.keys(v).sort();for(;!c(y=q.pop());)c(v[y])||(D+=y+":"+_(v[y])+",");f.set(v,D)}}else D=Q?v.toJSON():A=="symbol"?v.toString():A=="string"?JSON.stringify(v):""+v;return D},p=v=>{if(i(v))try{v=v()}catch(x){v=""}const A=v;return v=typeof v=="string"?v:(Array.isArray(v)?v.length:v)?_(v):"",[v,A]},T=v=>p(v)[0],U=n.use||(v=>{switch(v.status){case"pending":throw v;case"fulfilled":return v.value;case"rejected":throw v.reason;default:throw v.status="pending",v.then(A=>{v.status="fulfilled",v.value=A},A=>{v.status="rejected",v.reason=A}),v}}),F={dedupe:!0},H=Promise.resolve(e.U),$=(v,A,x)=>{const{cache:Q,compare:it,suspense:k,fallbackData:D,revalidateOnMount:y,revalidateIfStale:q,refreshInterval:st,refreshWhenHidden:Dt,refreshWhenOffline:It,keepPreviousData:Mt}=x,[Tt,tt,K,bt]=e.b.get(Q),[g,P]=(0,e.s)(v),vt=(0,n.useRef)(!1),ft=(0,n.useRef)(!1),ht=(0,n.useRef)(g),Et=(0,n.useRef)(A),wt=(0,n.useRef)(x),j=()=>wt.current,mt=()=>j().isVisible()&&j().isOnline(),[ut,Ot,Ct,gt]=(0,e.z)(Q,g),nt=(0,n.useRef)({}).current,r=(0,e.e)(D)?(0,e.e)(x.fallback)?e.U:x.fallback[g]:D,m=(S,N)=>{for(const z in nt){const w=z;if(w==="data"){if(!it(S[w],N[w])&&(!(0,e.e)(S[w])||!it(ct,N[w])))return!1}else if(N[w]!==S[w])return!1}return!0},O=(0,n.useMemo)(()=>{const S=!g||!A?!1:(0,e.e)(y)?j().isPaused()||k?!1:q!==!1:y,N=X=>{const _t=(0,e.m)(X);return delete _t._k,S?St({isValidating:!0,isLoading:!0},_t):_t},z=ut(),w=gt(),et=N(z),dt=z===w?et:N(w);let J=et;return[()=>{const X=N(ut());return m(X,J)?(J.data=X.data,J.isLoading=X.isLoading,J.isValidating=X.isValidating,J.error=X.error,J):(J=X,X)},()=>dt]},[Q,g]),b=(0,o.useSyncExternalStore)((0,n.useCallback)(S=>Ct(g,(N,z)=>{m(z,N)||S()}),[Q,g]),O[0],O[1]),L=!vt.current,W=Tt[g]&&Tt[g].length>0,M=b.data,B=(0,e.e)(M)?r&&(0,e.B)(r)?U(r):r:M,V=b.error,At=(0,n.useRef)(B),ct=Mt?(0,e.e)(M)?(0,e.e)(At.current)?B:At.current:M:B,lt=W&&!(0,e.e)(V)?!1:L&&!(0,e.e)(y)?y:j().isPaused()?!1:k?(0,e.e)(B)?!1:q:(0,e.e)(B)||q,rt=!!(g&&A&&L&&lt),ot=(0,e.e)(b.isValidating)?rt:b.isValidating,pt=(0,e.e)(b.isLoading)?rt:b.isLoading,at=(0,n.useCallback)(S=>Bt(this,null,function*(){const N=Et.current;if(!g||!N||ft.current||j().isPaused())return!1;let z,w,et=!0;const dt=S||{},J=!K[g]||!dt.dedupe,X=()=>e.I?!ft.current&&g===ht.current&&vt.current:g===ht.current,_t={isValidating:!1,isLoading:!1},yt=()=>{Ot(_t)},Pt=()=>{const G=K[g];G&&G[1]===w&&delete K[g]},Lt={isValidating:!0};(0,e.e)(ut().data)&&(Lt.isLoading=!0);try{if(J&&(Ot(Lt),x.loadingTimeout&&(0,e.e)(ut().data)&&setTimeout(()=>{et&&X()&&j().onLoadingSlow(g,x)},x.loadingTimeout),K[g]=[N(P),(0,e.o)()]),[z,w]=K[g],z=yield z,J&&setTimeout(Pt,x.dedupingInterval),!K[g]||K[g][1]!==w)return J&&X()&&j().onDiscarded(g),!1;_t.error=e.U;const G=tt[g];if(!(0,e.e)(G)&&(w<=G[0]||w<=G[1]||G[1]===0))return yt(),J&&X()&&j().onDiscarded(g),!1;const Rt=ut().data;_t.data=it(Rt,z)?Rt:z,J&&X()&&j().onSuccess(z,g,x)}catch(G){Pt();const Rt=j(),{shouldRetryOnError:Ut}=Rt;Rt.isPaused()||(_t.error=G,J&&X()&&(Rt.onError(G,g,Rt),(Ut===!0||(0,e.a)(Ut)&&Ut(G))&&(!j().revalidateOnFocus||!j().revalidateOnReconnect||mt())&&Rt.onErrorRetry(G,g,Rt,Vt=>{const Zt=Tt[g];Zt&&Zt[0]&&Zt[0](u.aU,Vt)},{retryCount:(dt.retryCount||0)+1,dedupe:!0})))}return et=!1,yt(),!0}),[g,Q]),xt=(0,n.useCallback)((...S)=>(0,e.n)(Q,ht.current,...S),[]);if((0,e.u)(()=>{Et.current=A,wt.current=x,(0,e.e)(M)||(At.current=M)}),(0,e.u)(()=>{if(!g)return;const S=at.bind(e.U,F);let N=0;j().revalidateOnFocus&&(N=Date.now()+j().focusThrottleInterval);const z=(et,dt={})=>{if(et==u.N4){const J=Date.now();j().revalidateOnFocus&&J>N&&mt()&&(N=J+j().focusThrottleInterval,S())}else if(et==u.l2)j().revalidateOnReconnect&&mt()&&S();else{if(et==u.QQ)return at();if(et==u.aU)return at(dt)}},w=(0,l.ko)(g,Tt,z);return ft.current=!1,ht.current=g,vt.current=!0,Ot({_k:P}),lt&&(K[g]||((0,e.e)(B)||e.r?S():(0,e.t)(S))),()=>{ft.current=!0,w()}},[g]),(0,e.u)(()=>{let S;function N(){const w=(0,e.a)(st)?st(ut().data):st;w&&S!==-1&&(S=setTimeout(z,w))}function z(){!ut().error&&(Dt||j().isVisible())&&(It||j().isOnline())?at(F).then(N):N()}return N(),()=>{S&&(clearTimeout(S),S=-1)}},[st,Dt,It,g]),(0,n.useDebugValue)(ct),k){const S=g&&(0,e.e)(B);if(!e.I&&e.r&&S)throw new Error("Fallback data is required when using Suspense in SSR.");S&&(Et.current=A,wt.current=x,ft.current=!1);const N=bt[g],z=!(0,e.e)(N)&&S?xt(N):H;if(U(z),!(0,e.e)(V)&&S)throw V;const w=S?at(F):H;!(0,e.e)(ct)&&S&&(w.status="fulfilled",w.value=!0),U(w)}return{mutate:xt,get data(){return nt.data=!0,ct},get error(){return nt.error=!0,V},get isValidating(){return nt.isValidating=!0,ot},get isLoading(){return nt.isLoading=!0,pt}}},Y=e.O.defineProperty(e.g,"defaultValue",{value:e.d}),Z=(0,l.s6)($)}}]);
2
- }());