@yuku123/z-cognition-component 2.0.2 → 2.0.3

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 (243) hide show
  1. package/dist-lib/BaseInput-DHrGPDB9.js +1096 -0
  2. package/dist-lib/ClockCircleOutlined-DP6fSLgk.js +12 -0
  3. package/dist-lib/Collapse-B77SsmFh.js +523 -0
  4. package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
  5. package/dist-lib/DeleteOutlined-BAZSAooQ.js +12 -0
  6. package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
  7. package/dist-lib/EllipsisOutlined-Dr4orLLw.js +1109 -0
  8. package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
  9. package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CudyDdjH.js} +1 -1
  10. package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
  11. package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-CJasZIyX.js} +1 -1
  12. package/dist-lib/{OntologyDetailPage-B8DyU8WW.js → OntologyDetailPage-mgK_NQxP.js} +99 -93
  13. package/dist-lib/{OntologyInferPage-CvcjxpBB.js → OntologyInferPage-NUaoaQpN.js} +38 -40
  14. package/dist-lib/{OntologyListPage-Cb0XfpWE.js → OntologyListPage-C9wH01y0.js} +47 -49
  15. package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +134 -0
  16. package/dist-lib/OntologyNodesPage-5kH7RHwE.js +2844 -0
  17. package/dist-lib/{OntologyValidatePage-abQVJwzV.js → OntologyValidatePage-DtkYK_l4.js} +49 -52
  18. package/dist-lib/Pagination-BJ8wnqAa.js +1112 -0
  19. package/dist-lib/PlusOutlined-BSTPGLOH.js +21 -0
  20. package/dist-lib/{ReloadOutlined-CS-e-TmN.js → ReloadOutlined-B26pDoyV.js} +19 -10
  21. package/dist-lib/{ResolvePage-rbQ-8nNZ.js → ResolvePage-Cz9HORZ3.js} +31 -33
  22. package/dist-lib/{RotateRightOutlined-q7zp2e47.js → RotateRightOutlined-DqyspFCO.js} +1 -1
  23. package/dist-lib/Skeleton-CxFsInYI.js +671 -0
  24. package/dist-lib/Table-Civ838nE.js +20514 -0
  25. package/dist-lib/{Table-CDagah-g.js → Table-J_7eBbi7.js} +414 -414
  26. package/dist-lib/TermDetailPage-BtkOpbPT.js +263 -0
  27. package/dist-lib/{TermsPage-CuufAyuL.js → TermsPage-BuzCMYov.js} +28 -31
  28. package/dist-lib/_commonjsHelpers-DaMA6jEr.js +8 -0
  29. package/dist-lib/accessAk-CA30m5eX.js +64 -0
  30. package/dist-lib/{agents-CvgRLQw2.js → agents-eZDKzePP.js} +41 -41
  31. package/dist-lib/{ai-DYDhijtn.js → ai-CNSn3-sd.js} +32 -32
  32. package/dist-lib/{ai-chat-share-DJnybJtS.js → ai-chat-share-Yrqt_J6a.js} +13 -14
  33. package/dist-lib/ak-manage-DklVFT5I.js +805 -0
  34. package/dist-lib/{approval-3IbhY8Lp.js → approval-B-bCSmfi.js} +25 -26
  35. package/dist-lib/{approvals-Cd6CVzz4.js → approvals-B0ggYiyD.js} +42 -43
  36. package/dist-lib/{assistant-cIXgilaE.js → assistant-Of0mgMsM.js} +33 -34
  37. package/dist-lib/{assistant-history-BQzH4ChB.js → assistant-history-DcyDhUzJ.js} +5 -5
  38. package/dist-lib/{assistant-summary-LKTj_HKM.js → assistant-summary-CjLaTyFz.js} +1 -1
  39. package/dist-lib/{audit-CxuJ5unU.js → audit-wDNCfmOy.js} +1 -1
  40. package/dist-lib/{bios-BplnCOF4.js → bios-CIwO1AUK.js} +128 -130
  41. package/dist-lib/callSuper-CpMOVGin.js +7 -0
  42. package/dist-lib/callSuper-CwIeyYoc.js +7 -0
  43. package/dist-lib/category-9gqNseEa.js +76 -0
  44. package/dist-lib/causal-CzAYukj9.js +789 -0
  45. package/dist-lib/{changelog-BoGqt_81.js → changelog-CQfIMS51.js} +2 -2
  46. package/dist-lib/changelog-sKJMQrlV.js +103 -0
  47. package/dist-lib/chat-panel-BPbqKckR.js +1543 -0
  48. package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
  49. package/dist-lib/code-space-D_ZE966E.js +1070 -0
  50. package/dist-lib/{colors-sdAcAcU3.js → colors-DpKdb8L-.js} +3 -3
  51. package/dist-lib/community-9_7ExHcm.js +70 -0
  52. package/dist-lib/community-CfWXxujB.js +217 -0
  53. package/dist-lib/community-material-page-Z_EZuBPl.js +747 -0
  54. package/dist-lib/connections-Bcqsp11M.js +1065 -0
  55. package/dist-lib/context-T27uno74.js +54 -0
  56. package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-CasBzL_Q.js} +1 -1
  57. package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
  58. package/dist-lib/detail-CV6xp_Jp.js +84 -0
  59. package/dist-lib/{detail-BaX7WiWV.js → detail-DioaWKWj.js} +5847 -7224
  60. package/dist-lib/{detail-Cx5c4KJH.js → detail-EyLdjGpX.js} +71 -72
  61. package/dist-lib/development-CFcOIUKc.js +167 -0
  62. package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
  63. package/dist-lib/{downloads-C3Oz04OW.js → downloads-DtV5hOQv.js} +3 -4
  64. package/dist-lib/{edit-Cbn2eJaJ.js → edit-NtXUNj5N.js} +262 -266
  65. package/dist-lib/{editor-mtaJBQXz.js → editor-KZhj-rwT.js} +25 -26
  66. package/dist-lib/editor-page-BaxK_OYm.js +1169 -0
  67. package/dist-lib/embed-mf8t3QXh.js +51841 -0
  68. package/dist-lib/embed.css +2 -2
  69. package/dist-lib/{evaluation-BoHiY8yT.js → evaluation-CZTpC9v3.js} +14 -15
  70. package/dist-lib/execution-B6HmOA2_.js +159 -0
  71. package/dist-lib/focus-set-lt52maBX.js +38 -0
  72. package/dist-lib/{format-UGmYKemG.js → format-CWI99NCN.js} +1 -1
  73. package/dist-lib/graph-BllA9bmL.js +44 -0
  74. package/dist-lib/graph-DHV-rdiK.js +640 -0
  75. package/dist-lib/{index-o65vKUwa.js → index--AI-htgA.js} +44 -45
  76. package/dist-lib/index-2SysmGHo.js +1166 -0
  77. package/dist-lib/{index-Bm1sK-VN.js → index-3J47mTL1.js} +10 -10
  78. package/dist-lib/index-4tbtbcAt.js +550 -0
  79. package/dist-lib/index-B12ZggsE.js +77 -0
  80. package/dist-lib/{index-D3GHtSlM.js → index-B5Roo82U.js} +49 -50
  81. package/dist-lib/{index-nQSVLWfW.js → index-B7SfTpox.js} +79 -81
  82. package/dist-lib/index-BEO8itgt.js +566 -0
  83. package/dist-lib/index-BPbOPT2j.js +413 -0
  84. package/dist-lib/index-BVgdmf6r.js +2487 -0
  85. package/dist-lib/index-Bd7AGv4a.js +34 -0
  86. package/dist-lib/index-BkJjYgKD.js +5012 -0
  87. package/dist-lib/{index-DBlG9uXV.js → index-BkTegt8T.js} +513 -590
  88. package/dist-lib/{index-B22_2Dzh.js → index-Bln3mJfp.js} +2 -2
  89. package/dist-lib/index-BoCtPJD4.js +915 -0
  90. package/dist-lib/{index-DMTPsTna.js → index-BqTsLClH.js} +3 -4
  91. package/dist-lib/index-Bs4MevzC.js +16075 -0
  92. package/dist-lib/index-BsoHetYT.js +236 -0
  93. package/dist-lib/{index-9aQ4BzIK.js → index-BvJ35WL3.js} +13 -14
  94. package/dist-lib/{index-BEjXaDfk.js → index-Bw4M9KLv.js} +84 -85
  95. package/dist-lib/index-C2CV4bte.js +242 -0
  96. package/dist-lib/{index-BSlCGnzo.js → index-CF0ucN_K.js} +12 -12
  97. package/dist-lib/{index-B57Fj7Y0.js → index-CLhLA2ig.js} +92 -94
  98. package/dist-lib/{index-Vu6sPBci.js → index-CSJA8wvL.js} +301 -296
  99. package/dist-lib/index-CSnvcFg-.js +543 -0
  100. package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
  101. package/dist-lib/{index-ounfql2z.js → index-CdJ5ggvp.js} +26 -28
  102. package/dist-lib/index-CgwK2maq.js +1987 -0
  103. package/dist-lib/{index-Bc-Vin3j.js → index-CtqUgNxs.js} +53 -55
  104. package/dist-lib/index-CvxfA0ZK.js +215 -0
  105. package/dist-lib/{index-y7jVGGI0.js → index-CwyFMPcr.js} +16 -18
  106. package/dist-lib/index-D35Ry0PG.js +1162 -0
  107. package/dist-lib/{index-Cj4DDWyj.js → index-D6ns_Xmf.js} +10 -11
  108. package/dist-lib/{index-DsuUGhTA.js → index-DGbjbjBY.js} +46 -48
  109. package/dist-lib/index-DKAGVWMX.js +390 -0
  110. package/dist-lib/index-DQ16Zb7x.js +546 -0
  111. package/dist-lib/index-DRcTwC17.js +418 -0
  112. package/dist-lib/index-DU6bO95v.js +2075 -0
  113. package/dist-lib/index-DaMLYomP.js +853 -0
  114. package/dist-lib/index-Dd9pPAT3.js +2192 -0
  115. package/dist-lib/{index-CHBNrCMy.js → index-DgfIEgir.js} +29 -29
  116. package/dist-lib/{index-Cy9i4Kx7.js → index-DhSCFLtV.js} +113 -117
  117. package/dist-lib/index-DxzorPvG.js +13960 -0
  118. package/dist-lib/index-If4xc1-H.js +559 -0
  119. package/dist-lib/index-QZ9JPfVR.js +251 -0
  120. package/dist-lib/index-VeAMz0iC.js +1719 -0
  121. package/dist-lib/index-mUlorJxp.js +3279 -0
  122. package/dist-lib/{index-CLTfICbf.js → index-xQmDaKK3.js} +6 -6
  123. package/dist-lib/{index-BwVZgt5s.js → index-zXwXfn-X.js} +48 -50
  124. package/dist-lib/index.js +3 -4
  125. package/dist-lib/json-field-COcz5F2R.js +196 -0
  126. package/dist-lib/{jszip.min-DcEHhn-b.js → jszip.min-dcaDnWUw.js} +1 -1
  127. package/dist-lib/{kb-form-modal-B0rM1ZvV.js → kb-form-modal-D9gnvXbE.js} +67 -67
  128. package/dist-lib/{kbTeam-Bh_FQH28.js → kbTeam-CorrPJFr.js} +3 -3
  129. package/dist-lib/{knowledge-base-Cl1Ka1e6.js → knowledge-base-DJkjMFHW.js} +103 -104
  130. package/dist-lib/{knowledge-hub-CPuzdRiq.js → knowledge-hub-DKiDlaZz.js} +54 -55
  131. package/dist-lib/login-56zv4aLO.js +36 -0
  132. package/dist-lib/{markdown-lite-Cu62Fl7J.js → markdown-lite-p1tiuSZM.js} +198 -202
  133. package/dist-lib/material-DtPASeqq.js +204 -0
  134. package/dist-lib/material-draft-markdown-281d5_GN.js +443 -0
  135. package/dist-lib/material-original-preview-CPGjdmbe.js +214 -0
  136. package/dist-lib/{material-preview-docx-CH-09KeC.js → material-preview-docx-lp_xPipj.js} +1 -1
  137. package/dist-lib/{material-preview-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
  138. package/dist-lib/material-workspace-model-QLsU5qUO.js +328 -0
  139. package/dist-lib/{member-DKDx77PD.js → member-Cz-OIdj9.js} +1 -1
  140. package/dist-lib/memory-reorganization-DgJnWIrW.js +8 -0
  141. package/dist-lib/memory-spaces-D-orVNR7.js +2340 -0
  142. package/dist-lib/{message-Dievi8Jw.js → message-C9gfvpGg.js} +1 -1
  143. package/dist-lib/{message-BrooQ3Q7.js → message-D6FhzB7J.js} +24 -25
  144. package/dist-lib/{messages-xTNmTS9g.js → messages-cctmEVcG.js} +15 -16
  145. package/dist-lib/meta-DT_O4zM9.js +708 -0
  146. package/dist-lib/{metrics-DiHYqBKB.js → metrics-BNeVcI8-.js} +2 -2
  147. package/dist-lib/mobile-D8kZjfQU.js +2413 -0
  148. package/dist-lib/{monitor-BXsdMJSV.js → monitor-DTUyqumg.js} +4 -4
  149. package/dist-lib/{monitor-BBCu3zRe.js → monitor-DexMYjzF.js} +8 -8
  150. package/dist-lib/{my-access-CEGErUgv.js → my-access-DWBV6ohp.js} +120 -132
  151. package/dist-lib/{my-permissions-wSr5zv7g.js → my-permissions-B-gJZQYM.js} +22 -23
  152. package/dist-lib/navigation-DVlyWnpD.js +102 -0
  153. package/dist-lib/{new-BevAuTe5.js → new-JmARyD88.js} +14 -15
  154. package/dist-lib/{ontology-DXGSJC-y.js → ontology-B4rkO33J.js} +50 -52
  155. package/dist-lib/ontology-dataprep-BwD5TKs2.js +322 -0
  156. package/dist-lib/{ontology-domains-jTG7CZm8.js → ontology-domains-zxFrjn0v.js} +89 -92
  157. package/dist-lib/ontology-extract-BHOxruRO.js +3199 -0
  158. package/dist-lib/ontology-extract-iR_rXxFe.js +295 -0
  159. package/dist-lib/ontology-flow-CW0SzeK7.js +456 -0
  160. package/dist-lib/ontology-flow-Dv5iQ20f.js +154 -0
  161. package/dist-lib/ontology-modeling-B9wswveh.js +510 -0
  162. package/dist-lib/ontology-modeling-hakCluBi.js +15136 -0
  163. package/dist-lib/{ontology-scenarios-J5kw6xgi.js → ontology-scenarios-C2kp7Rs-.js} +1466 -1482
  164. package/dist-lib/ontology-scenarios-DKnfydG6.js +675 -0
  165. package/dist-lib/ontology-task-config-DmnWyCCB.js +122 -0
  166. package/dist-lib/ontology-terms-BoNB-5ar.js +66 -0
  167. package/dist-lib/ontology-terms-C-NhpcIZ.js +1195 -0
  168. package/dist-lib/pages-CticGC6S.js +512 -0
  169. package/dist-lib/pages.js +3 -3
  170. package/dist-lib/{permission-BUXo69Ne.js → permission-Dq1-AOQw.js} +41 -41
  171. package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
  172. package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
  173. package/dist-lib/preset-Bp_mvsJm.js +56827 -0
  174. package/dist-lib/{preset-gh5SGoYT.js → preset-DCNSE--Y.js} +8 -8
  175. package/dist-lib/progress-CZxOOnIs.js +778 -0
  176. package/dist-lib/{quota-D31cXjul.js → quota-oICQRHFU.js} +4 -4
  177. package/dist-lib/row-By17TCiW.js +154 -0
  178. package/dist-lib/runs-DQTDpPaN.js +565 -0
  179. package/dist-lib/{save-blob-CiWNK-cX.js → save-blob-CwCZE1Dn.js} +2 -2
  180. package/dist-lib/{scenario-mapping-preview-DQ_OBV4Z.js → scenario-mapping-preview-sJtjgmry.js} +46 -48
  181. package/dist-lib/scenario-simple-form-BvKSPFzw.js +989 -0
  182. package/dist-lib/{schedule-BktxwX3S.js → schedule-CwkPPSuT.js} +8 -8
  183. package/dist-lib/script-gYJAFobb.js +2709 -0
  184. package/dist-lib/{settings-dsB3H65I.js → settings-CJd5Jj4y.js} +133 -134
  185. package/dist-lib/{shared-CTCzvhyE.js → shared-DG5-VCDM.js} +1 -1
  186. package/dist-lib/{shared-utils-BstybhBG.js → shared-utils-CFHws1DA.js} +2 -2
  187. package/dist-lib/{skills-CHPlMsgO.js → skills-lxpJ5Lzx.js} +39 -40
  188. package/dist-lib/{source-selection-tXqc855k.js → source-selection-DJnQQckl.js} +16 -16
  189. package/dist-lib/sources-C83LpCcV.js +279 -0
  190. package/dist-lib/style-B5THvtDY.js +191 -0
  191. package/dist-lib/{task-config-BiTOiZj0.js → task-config-BNYoOb79.js} +4 -4
  192. package/dist-lib/{tech-BKlGPkV0.js → tech-LuZvKDo6.js} +3 -4
  193. package/dist-lib/templates-a-kbCamr.js +58 -0
  194. package/dist-lib/tenant-login-COB-5h_2.js +338 -0
  195. package/dist-lib/{tools-CouQ4FWk.js → tools-CrA6GrY6.js} +14 -14
  196. package/dist-lib/{use-domain-access-BPlNfoiP.js → use-domain-access-ehGJBGvU.js} +15 -15
  197. package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-DfRnsBS6.js} +1 -1
  198. package/dist-lib/{use-graph-layers-ja-ZIC_R.js → use-graph-layers-CrhEeHfD.js} +48 -50
  199. package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
  200. package/dist-lib/useBreakpoint-Cul9y9Cu.js +87 -0
  201. package/dist-lib/{useForm-Byp1LopG.js → useForm-B-dwOwJ8.js} +11 -11
  202. package/dist-lib/{version-control-panel-CkBm36Yk.js → version-control-panel-mWXkC-uB.js} +26 -27
  203. package/dist-lib/{version-management-B4kIbdVc.js → version-management-nPlG7wQO.js} +6 -7
  204. package/dist-lib/{welcome-F5iZoFB1.js → welcome-Cqv1-rXT.js} +3 -4
  205. package/package.json +1 -1
  206. package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
  207. package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
  208. package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
  209. package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
  210. package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
  211. package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
  212. package/dist-lib/Pagination-Dxslodkq.js +0 -1344
  213. package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
  214. package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
  215. package/dist-lib/Skeleton-DXcERb5r.js +0 -557
  216. package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
  217. package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
  218. package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
  219. package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
  220. package/dist-lib/callSuper-DZEfdkXG.js +0 -7
  221. package/dist-lib/changelog-Cn81Dvgk.js +0 -69
  222. package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
  223. package/dist-lib/context-Buz0ggsK.js +0 -710
  224. package/dist-lib/context-DpmyNOn3.js +0 -21
  225. package/dist-lib/embed-CR8XVkMy.js +0 -31148
  226. package/dist-lib/focus-set-h0YtOUB2.js +0 -427
  227. package/dist-lib/index-CaXylbQR.js +0 -3419
  228. package/dist-lib/index-Cfu1W1H6.js +0 -535
  229. package/dist-lib/index-CrMcNEAZ.js +0 -9656
  230. package/dist-lib/index-CyKWCYMK.js +0 -218
  231. package/dist-lib/index-DBtGE89a.js +0 -168
  232. package/dist-lib/index-DjFPRXl5.js +0 -1484
  233. package/dist-lib/index-DvWHYX81.js +0 -450
  234. package/dist-lib/index-PBT9GksC.js +0 -340
  235. package/dist-lib/index-bOY1cBol.js +0 -4890
  236. package/dist-lib/meta-BD_qYTZu.js +0 -540
  237. package/dist-lib/ontology-modeling-CjRsa-DR.js +0 -1039
  238. package/dist-lib/ontology-modeling-DOj68TuI.js +0 -38946
  239. package/dist-lib/ontology-scenarios-CcAagMiP.js +0 -660
  240. package/dist-lib/pages-CsexFuEz.js +0 -73
  241. package/dist-lib/row-B5MnGm9M.js +0 -156
  242. package/dist-lib/scenario-simple-form-DESMvU7A.js +0 -2396
  243. package/dist-lib/useClosable-BY7FgWKy.js +0 -59
@@ -0,0 +1,778 @@
1
+ import * as i from "react";
2
+ import { useRef as re, useEffect as pe } from "react";
3
+ import { bi as me, bB as ye, bf as V, bg as ne, bh as he, b0 as ve, a6 as M, cX as ee, a7 as be, a8 as Ce, ao as $e, ap as Se, bT as ke, aq as le, bL as xe, a9 as Ee, aa as Pe, ax as we, aA as Ne, az as Oe, cO as Ie } from "./embed-mf8t3QXh.js";
4
+ import { T as _e } from "./index-zXwXfn-X.js";
5
+ var De = {
6
+ percent: 0,
7
+ prefixCls: "rc-progress",
8
+ strokeColor: "#2db7f5",
9
+ strokeLinecap: "round",
10
+ strokeWidth: 1,
11
+ trailColor: "#D9D9D9",
12
+ trailWidth: 1,
13
+ gapPosition: "bottom"
14
+ }, je = function() {
15
+ var t = re([]), r = re(null);
16
+ return pe(function() {
17
+ var n = Date.now(), o = !1;
18
+ t.current.forEach(function(c) {
19
+ if (c) {
20
+ o = !0;
21
+ var s = c.style;
22
+ s.transitionDuration = ".3s, .3s, .3s, .06s", r.current && n - r.current < 100 && (s.transitionDuration = "0s, 0s");
23
+ }
24
+ }), o && (r.current = Date.now());
25
+ }), t.current;
26
+ };
27
+ process.env.NODE_ENV;
28
+ var oe = 0, We = process.env.NODE_ENV !== "test" && ye();
29
+ function Ae() {
30
+ var e;
31
+ return We ? (e = oe, oe += 1) : e = "TEST_OR_SSR", e;
32
+ }
33
+ const Le = (function(e) {
34
+ var t = i.useState(), r = me(t, 2), n = r[0], o = r[1];
35
+ return i.useEffect(function() {
36
+ o("rc_progress_".concat(Ae()));
37
+ }, []), e || n;
38
+ });
39
+ var se = function(t) {
40
+ var r = t.bg, n = t.children;
41
+ return /* @__PURE__ */ i.createElement("div", {
42
+ style: {
43
+ width: "100%",
44
+ height: "100%",
45
+ background: r
46
+ }
47
+ }, n);
48
+ };
49
+ function ie(e, t) {
50
+ return Object.keys(e).map(function(r) {
51
+ var n = parseFloat(r), o = "".concat(Math.floor(n * t), "%");
52
+ return "".concat(e[r], " ").concat(o);
53
+ });
54
+ }
55
+ var de = /* @__PURE__ */ i.forwardRef(function(e, t) {
56
+ var r = e.prefixCls, n = e.color, o = e.gradientId, c = e.radius, s = e.style, l = e.ptg, a = e.strokeLinecap, g = e.strokeWidth, d = e.size, f = e.gapDegree, m = n && V(n) === "object", v = m ? "#FFF" : void 0, h = d / 2, b = /* @__PURE__ */ i.createElement("circle", {
57
+ className: "".concat(r, "-circle-path"),
58
+ r: c,
59
+ cx: h,
60
+ cy: h,
61
+ stroke: v,
62
+ strokeLinecap: a,
63
+ strokeWidth: g,
64
+ opacity: l === 0 ? 0 : 1,
65
+ style: s,
66
+ ref: t
67
+ });
68
+ if (!m)
69
+ return b;
70
+ var S = "".concat(o, "-conic"), p = f ? "".concat(180 + f / 2, "deg") : "0deg", y = ie(n, (360 - f) / 360), I = ie(n, 1), P = "conic-gradient(from ".concat(p, ", ").concat(y.join(", "), ")"), C = "linear-gradient(to ".concat(f ? "bottom" : "top", ", ").concat(I.join(", "), ")");
71
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("mask", {
72
+ id: S
73
+ }, b), /* @__PURE__ */ i.createElement("foreignObject", {
74
+ x: 0,
75
+ y: 0,
76
+ width: d,
77
+ height: d,
78
+ mask: "url(#".concat(S, ")")
79
+ }, /* @__PURE__ */ i.createElement(se, {
80
+ bg: C
81
+ }, /* @__PURE__ */ i.createElement(se, {
82
+ bg: P
83
+ }))));
84
+ });
85
+ process.env.NODE_ENV !== "production" && (de.displayName = "PtgCircle");
86
+ var z = 100, J = function(t, r, n, o, c, s, l, a, g, d) {
87
+ var f = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : 0, m = n / 100 * 360 * ((360 - s) / 360), v = s === 0 ? 0 : {
88
+ bottom: 0,
89
+ top: 180,
90
+ left: 90,
91
+ right: -90
92
+ }[l], h = (100 - o) / 100 * r;
93
+ g === "round" && o !== 100 && (h += d / 2, h >= r && (h = r - 0.01));
94
+ var b = z / 2;
95
+ return {
96
+ stroke: typeof a == "string" ? a : void 0,
97
+ strokeDasharray: "".concat(r, "px ").concat(t),
98
+ strokeDashoffset: h + f,
99
+ transform: "rotate(".concat(c + m + v, "deg)"),
100
+ transformOrigin: "".concat(b, "px ").concat(b, "px"),
101
+ transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",
102
+ fillOpacity: 0
103
+ };
104
+ }, Te = ["id", "prefixCls", "steps", "strokeWidth", "trailWidth", "gapDegree", "gapPosition", "trailColor", "strokeLinecap", "style", "className", "strokeColor", "percent"];
105
+ function ae(e) {
106
+ var t = e ?? [];
107
+ return Array.isArray(t) ? t : [t];
108
+ }
109
+ var ue = function(t) {
110
+ var r = ne(ne({}, De), t), n = r.id, o = r.prefixCls, c = r.steps, s = r.strokeWidth, l = r.trailWidth, a = r.gapDegree, g = a === void 0 ? 0 : a, d = r.gapPosition, f = r.trailColor, m = r.strokeLinecap, v = r.style, h = r.className, b = r.strokeColor, S = r.percent, p = he(r, Te), y = z / 2, I = Le(n), P = "".concat(I, "-gradient"), C = y - s / 2, $ = Math.PI * 2 * C, O = g > 0 ? 90 + g / 2 : -90, x = $ * ((360 - g) / 360), w = V(c) === "object" ? c : {
111
+ count: c,
112
+ gap: 2
113
+ }, u = w.count, B = w.gap, G = ae(S), j = ae(b), W = j.find(function(N) {
114
+ return N && V(N) === "object";
115
+ }), A = W && V(W) === "object", _ = A ? "butt" : m, F = J($, x, 0, 100, O, g, d, f, _, s), H = je(), k = function() {
116
+ var T = 0;
117
+ return G.map(function(L, R) {
118
+ var Y = j[R] || j[j.length - 1], X = J($, x, T, L, O, g, d, Y, _, s);
119
+ return T += L, /* @__PURE__ */ i.createElement(de, {
120
+ key: R,
121
+ color: Y,
122
+ ptg: L,
123
+ radius: C,
124
+ prefixCls: o,
125
+ gradientId: P,
126
+ style: X,
127
+ strokeLinecap: _,
128
+ strokeWidth: s,
129
+ gapDegree: g,
130
+ ref: function(Z) {
131
+ H[R] = Z;
132
+ },
133
+ size: z
134
+ });
135
+ }).reverse();
136
+ }, E = function() {
137
+ var T = Math.round(u * (G[0] / 100)), L = 100 / u, R = 0;
138
+ return new Array(u).fill(null).map(function(Y, X) {
139
+ var K = X <= T - 1 ? j[0] : f, Z = K && V(K) === "object" ? "url(#".concat(P, ")") : void 0, te = J($, x, R, L, O, g, d, K, "butt", s, B);
140
+ return R += (x - te.strokeDashoffset + B) * 100 / x, /* @__PURE__ */ i.createElement("circle", {
141
+ key: X,
142
+ className: "".concat(o, "-circle-path"),
143
+ r: C,
144
+ cx: y,
145
+ cy: y,
146
+ stroke: Z,
147
+ strokeWidth: s,
148
+ opacity: 1,
149
+ style: te,
150
+ ref: function(fe) {
151
+ H[X] = fe;
152
+ }
153
+ });
154
+ });
155
+ };
156
+ return /* @__PURE__ */ i.createElement("svg", ve({
157
+ className: M("".concat(o, "-circle"), h),
158
+ viewBox: "0 0 ".concat(z, " ").concat(z),
159
+ style: v,
160
+ id: n,
161
+ role: "presentation"
162
+ }, p), !u && /* @__PURE__ */ i.createElement("circle", {
163
+ className: "".concat(o, "-circle-trail"),
164
+ r: C,
165
+ cx: y,
166
+ cy: y,
167
+ stroke: f,
168
+ strokeLinecap: _,
169
+ strokeWidth: l || s,
170
+ style: F
171
+ }), u ? E() : k());
172
+ };
173
+ process.env.NODE_ENV !== "production" && (ue.displayName = "Circle");
174
+ function D(e) {
175
+ return !e || e < 0 ? 0 : e > 100 ? 100 : e;
176
+ }
177
+ function U({
178
+ success: e,
179
+ successPercent: t
180
+ }) {
181
+ let r = t;
182
+ return e && "progress" in e && (r = e.progress), e && "percent" in e && (r = e.percent), r;
183
+ }
184
+ const Re = ({
185
+ percent: e,
186
+ success: t,
187
+ successPercent: r
188
+ }) => {
189
+ const n = D(U({
190
+ success: t,
191
+ successPercent: r
192
+ }));
193
+ return [n, D(D(e) - n)];
194
+ }, Me = ({
195
+ success: e = {},
196
+ strokeColor: t
197
+ }) => {
198
+ const {
199
+ strokeColor: r
200
+ } = e;
201
+ return [r || ee.green, t || null];
202
+ }, Q = (e, t, r) => {
203
+ var n, o, c, s;
204
+ let l = -1, a = -1;
205
+ if (t === "step") {
206
+ const g = r.steps, d = r.strokeWidth;
207
+ typeof e == "string" || typeof e > "u" ? (l = e === "small" ? 2 : 14, a = d ?? 8) : typeof e == "number" ? [l, a] = [e, e] : [l = 14, a = 8] = Array.isArray(e) ? e : [e.width, e.height], l *= g;
208
+ } else if (t === "line") {
209
+ const g = r == null ? void 0 : r.strokeWidth;
210
+ typeof e == "string" || typeof e > "u" ? a = g || (e === "small" ? 6 : 8) : typeof e == "number" ? [l, a] = [e, e] : [l = -1, a = 8] = Array.isArray(e) ? e : [e.width, e.height];
211
+ } else (t === "circle" || t === "dashboard") && (typeof e == "string" || typeof e > "u" ? [l, a] = e === "small" ? [60, 60] : [120, 120] : typeof e == "number" ? [l, a] = [e, e] : Array.isArray(e) && (l = (o = (n = e[0]) !== null && n !== void 0 ? n : e[1]) !== null && o !== void 0 ? o : 120, a = (s = (c = e[0]) !== null && c !== void 0 ? c : e[1]) !== null && s !== void 0 ? s : 120));
212
+ return [l, a];
213
+ }, Be = 3, Fe = (e) => Be / e * 100, Xe = (e) => {
214
+ const {
215
+ prefixCls: t,
216
+ trailColor: r = null,
217
+ strokeLinecap: n = "round",
218
+ gapPosition: o,
219
+ gapDegree: c,
220
+ width: s = 120,
221
+ type: l,
222
+ children: a,
223
+ success: g,
224
+ size: d = s,
225
+ steps: f
226
+ } = e, [m, v] = Q(d, "circle");
227
+ let {
228
+ strokeWidth: h
229
+ } = e;
230
+ h === void 0 && (h = Math.max(Fe(m), 6));
231
+ const b = {
232
+ width: m,
233
+ height: v,
234
+ fontSize: m * 0.15 + 6
235
+ }, S = i.useMemo(() => {
236
+ if (c || c === 0)
237
+ return c;
238
+ if (l === "dashboard")
239
+ return 75;
240
+ }, [c, l]), p = Re(e), y = o || l === "dashboard" && "bottom" || void 0, I = Object.prototype.toString.call(e.strokeColor) === "[object Object]", P = Me({
241
+ success: g,
242
+ strokeColor: e.strokeColor
243
+ }), C = M(`${t}-inner`, {
244
+ [`${t}-circle-gradient`]: I
245
+ }), $ = /* @__PURE__ */ i.createElement(ue, {
246
+ steps: f,
247
+ percent: f ? p[1] : p,
248
+ strokeWidth: h,
249
+ trailWidth: h,
250
+ strokeColor: f ? P[1] : P,
251
+ strokeLinecap: n,
252
+ trailColor: r,
253
+ prefixCls: t,
254
+ gapDegree: S,
255
+ gapPosition: y
256
+ }), O = m <= 20, x = /* @__PURE__ */ i.createElement("div", {
257
+ className: C,
258
+ style: b
259
+ }, $, !O && a);
260
+ return O ? /* @__PURE__ */ i.createElement(_e, {
261
+ title: a
262
+ }, x) : x;
263
+ }, q = "--progress-line-stroke-color", ge = "--progress-percent", ce = (e) => {
264
+ const t = e ? "100%" : "-100%";
265
+ return new ke(`antProgress${e ? "RTL" : "LTR"}Active`, {
266
+ "0%": {
267
+ transform: `translateX(${t}) scaleX(0)`,
268
+ opacity: 0.1
269
+ },
270
+ "20%": {
271
+ transform: `translateX(${t}) scaleX(0)`,
272
+ opacity: 0.5
273
+ },
274
+ to: {
275
+ transform: "translateX(0) scaleX(1)",
276
+ opacity: 0
277
+ }
278
+ });
279
+ }, Ve = (e) => {
280
+ const {
281
+ componentCls: t,
282
+ iconCls: r
283
+ } = e;
284
+ return {
285
+ [t]: Object.assign(Object.assign({}, $e(e)), {
286
+ display: "inline-block",
287
+ "&-rtl": {
288
+ direction: "rtl"
289
+ },
290
+ "&-line": {
291
+ position: "relative",
292
+ width: "100%",
293
+ fontSize: e.fontSize
294
+ },
295
+ [`${t}-outer`]: {
296
+ display: "inline-flex",
297
+ alignItems: "center",
298
+ width: "100%"
299
+ },
300
+ [`${t}-inner`]: {
301
+ position: "relative",
302
+ display: "inline-block",
303
+ width: "100%",
304
+ flex: 1,
305
+ overflow: "hidden",
306
+ verticalAlign: "middle",
307
+ backgroundColor: e.remainingColor,
308
+ borderRadius: e.lineBorderRadius
309
+ },
310
+ [`${t}-inner:not(${t}-circle-gradient)`]: {
311
+ [`${t}-circle-path`]: {
312
+ stroke: e.defaultColor
313
+ }
314
+ },
315
+ [`${t}-success-bg, ${t}-bg`]: {
316
+ position: "relative",
317
+ background: e.defaultColor,
318
+ borderRadius: e.lineBorderRadius,
319
+ transition: `all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`
320
+ },
321
+ [`${t}-layout-bottom`]: {
322
+ display: "flex",
323
+ flexDirection: "column",
324
+ alignItems: "center",
325
+ justifyContent: "center",
326
+ [`${t}-text`]: {
327
+ width: "max-content",
328
+ marginInlineStart: 0,
329
+ marginTop: e.marginXXS
330
+ }
331
+ },
332
+ [`${t}-bg`]: {
333
+ overflow: "hidden",
334
+ "&::after": {
335
+ content: '""',
336
+ background: {
337
+ _multi_value_: !0,
338
+ value: ["inherit", `var(${q})`]
339
+ },
340
+ height: "100%",
341
+ width: `calc(1 / var(${ge}) * 100%)`,
342
+ display: "block"
343
+ },
344
+ [`&${t}-bg-inner`]: {
345
+ minWidth: "max-content",
346
+ "&::after": {
347
+ content: "none"
348
+ },
349
+ [`${t}-text-inner`]: {
350
+ color: e.colorWhite,
351
+ [`&${t}-text-bright`]: {
352
+ color: "rgba(0, 0, 0, 0.45)"
353
+ }
354
+ }
355
+ }
356
+ },
357
+ [`${t}-success-bg`]: {
358
+ position: "absolute",
359
+ insetBlockStart: 0,
360
+ insetInlineStart: 0,
361
+ backgroundColor: e.colorSuccess
362
+ },
363
+ [`${t}-text`]: {
364
+ display: "inline-block",
365
+ marginInlineStart: e.marginXS,
366
+ color: e.colorText,
367
+ lineHeight: 1,
368
+ width: "2em",
369
+ whiteSpace: "nowrap",
370
+ textAlign: "start",
371
+ verticalAlign: "middle",
372
+ wordBreak: "normal",
373
+ [r]: {
374
+ fontSize: e.fontSize
375
+ },
376
+ [`&${t}-text-outer`]: {
377
+ width: "max-content"
378
+ },
379
+ [`&${t}-text-outer${t}-text-start`]: {
380
+ width: "max-content",
381
+ marginInlineStart: 0,
382
+ marginInlineEnd: e.marginXS
383
+ }
384
+ },
385
+ [`${t}-text-inner`]: {
386
+ display: "flex",
387
+ justifyContent: "center",
388
+ alignItems: "center",
389
+ width: "100%",
390
+ height: "100%",
391
+ marginInlineStart: 0,
392
+ padding: `0 ${Se(e.paddingXXS)}`,
393
+ [`&${t}-text-start`]: {
394
+ justifyContent: "start"
395
+ },
396
+ [`&${t}-text-end`]: {
397
+ justifyContent: "end"
398
+ }
399
+ },
400
+ [`&${t}-status-active`]: {
401
+ [`${t}-bg::before`]: {
402
+ position: "absolute",
403
+ inset: 0,
404
+ backgroundColor: e.colorBgContainer,
405
+ borderRadius: e.lineBorderRadius,
406
+ opacity: 0,
407
+ animationName: ce(),
408
+ animationDuration: e.progressActiveMotionDuration,
409
+ animationTimingFunction: e.motionEaseOutQuint,
410
+ animationIterationCount: "infinite",
411
+ content: '""'
412
+ }
413
+ },
414
+ [`&${t}-rtl${t}-status-active`]: {
415
+ [`${t}-bg::before`]: {
416
+ animationName: ce(!0)
417
+ }
418
+ },
419
+ [`&${t}-status-exception`]: {
420
+ [`${t}-bg`]: {
421
+ backgroundColor: e.colorError
422
+ },
423
+ [`${t}-text`]: {
424
+ color: e.colorError
425
+ }
426
+ },
427
+ [`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]: {
428
+ [`${t}-circle-path`]: {
429
+ stroke: e.colorError
430
+ }
431
+ },
432
+ [`&${t}-status-success`]: {
433
+ [`${t}-bg`]: {
434
+ backgroundColor: e.colorSuccess
435
+ },
436
+ [`${t}-text`]: {
437
+ color: e.colorSuccess
438
+ }
439
+ },
440
+ [`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]: {
441
+ [`${t}-circle-path`]: {
442
+ stroke: e.colorSuccess
443
+ }
444
+ }
445
+ })
446
+ };
447
+ }, ze = (e) => {
448
+ const {
449
+ componentCls: t,
450
+ iconCls: r
451
+ } = e;
452
+ return {
453
+ [t]: {
454
+ [`${t}-circle-trail`]: {
455
+ stroke: e.remainingColor
456
+ },
457
+ [`&${t}-circle ${t}-inner`]: {
458
+ position: "relative",
459
+ lineHeight: 1,
460
+ backgroundColor: "transparent"
461
+ },
462
+ [`&${t}-circle ${t}-text`]: {
463
+ position: "absolute",
464
+ insetBlockStart: "50%",
465
+ insetInlineStart: 0,
466
+ width: "100%",
467
+ margin: 0,
468
+ padding: 0,
469
+ color: e.circleTextColor,
470
+ fontSize: e.circleTextFontSize,
471
+ lineHeight: 1,
472
+ whiteSpace: "normal",
473
+ textAlign: "center",
474
+ transform: "translateY(-50%)",
475
+ [r]: {
476
+ fontSize: e.circleIconFontSize
477
+ }
478
+ },
479
+ [`${t}-circle&-status-exception`]: {
480
+ [`${t}-text`]: {
481
+ color: e.colorError
482
+ }
483
+ },
484
+ [`${t}-circle&-status-success`]: {
485
+ [`${t}-text`]: {
486
+ color: e.colorSuccess
487
+ }
488
+ }
489
+ },
490
+ [`${t}-inline-circle`]: {
491
+ lineHeight: 1,
492
+ [`${t}-inner`]: {
493
+ verticalAlign: "bottom"
494
+ }
495
+ }
496
+ };
497
+ }, Ge = (e) => {
498
+ const {
499
+ componentCls: t
500
+ } = e;
501
+ return {
502
+ [t]: {
503
+ [`${t}-steps`]: {
504
+ display: "inline-block",
505
+ "&-outer": {
506
+ display: "flex",
507
+ flexDirection: "row",
508
+ alignItems: "center"
509
+ },
510
+ "&-item": {
511
+ flexShrink: 0,
512
+ minWidth: e.progressStepMinWidth,
513
+ marginInlineEnd: e.progressStepMarginInlineEnd,
514
+ backgroundColor: e.remainingColor,
515
+ transition: `all ${e.motionDurationSlow}`,
516
+ "&-active": {
517
+ backgroundColor: e.defaultColor
518
+ }
519
+ }
520
+ }
521
+ }
522
+ };
523
+ }, He = (e) => {
524
+ const {
525
+ componentCls: t,
526
+ iconCls: r
527
+ } = e;
528
+ return {
529
+ [t]: {
530
+ [`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]: {
531
+ fontSize: e.fontSizeSM
532
+ }
533
+ }
534
+ };
535
+ }, Ke = (e) => ({
536
+ circleTextColor: e.colorText,
537
+ defaultColor: e.colorInfo,
538
+ remainingColor: e.colorFillSecondary,
539
+ lineBorderRadius: 100,
540
+ // magic for capsule shape, should be a very large number
541
+ circleTextFontSize: "1em",
542
+ circleIconFontSize: `${e.fontSize / e.fontSizeSM}em`
543
+ }), Ue = be("Progress", (e) => {
544
+ const t = e.calc(e.marginXXS).div(2).equal(), r = Ce(e, {
545
+ progressStepMarginInlineEnd: t,
546
+ progressStepMinWidth: t,
547
+ progressActiveMotionDuration: "2.4s"
548
+ });
549
+ return [Ve(r), ze(r), Ge(r), He(r)];
550
+ }, Ke);
551
+ var qe = function(e, t) {
552
+ var r = {};
553
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
554
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
555
+ t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
556
+ return r;
557
+ };
558
+ const Qe = (e) => {
559
+ let t = [];
560
+ return Object.keys(e).forEach((r) => {
561
+ const n = Number.parseFloat(r.replace(/%/g, ""));
562
+ Number.isNaN(n) || t.push({
563
+ key: n,
564
+ value: e[r]
565
+ });
566
+ }), t = t.sort((r, n) => r.key - n.key), t.map(({
567
+ key: r,
568
+ value: n
569
+ }) => `${n} ${r}%`).join(", ");
570
+ }, Ye = (e, t) => {
571
+ const {
572
+ from: r = ee.blue,
573
+ to: n = ee.blue,
574
+ direction: o = t === "rtl" ? "to left" : "to right"
575
+ } = e, c = qe(e, ["from", "to", "direction"]);
576
+ if (Object.keys(c).length !== 0) {
577
+ const l = Qe(c), a = `linear-gradient(${o}, ${l})`;
578
+ return {
579
+ background: a,
580
+ [q]: a
581
+ };
582
+ }
583
+ const s = `linear-gradient(${o}, ${r}, ${n})`;
584
+ return {
585
+ background: s,
586
+ [q]: s
587
+ };
588
+ }, Ze = (e) => {
589
+ const {
590
+ prefixCls: t,
591
+ direction: r,
592
+ percent: n,
593
+ size: o,
594
+ strokeWidth: c,
595
+ strokeColor: s,
596
+ strokeLinecap: l = "round",
597
+ children: a,
598
+ trailColor: g = null,
599
+ percentPosition: d,
600
+ success: f
601
+ } = e, {
602
+ align: m,
603
+ type: v
604
+ } = d, h = s && typeof s != "string" ? Ye(s, r) : {
605
+ [q]: s,
606
+ background: s
607
+ }, b = l === "square" || l === "butt" ? 0 : void 0, S = o ?? [-1, c || (o === "small" ? 6 : 8)], [p, y] = Q(S, "line", {
608
+ strokeWidth: c
609
+ });
610
+ process.env.NODE_ENV !== "production" && le("Progress").deprecated(!("strokeWidth" in e), "strokeWidth", "size");
611
+ const I = {
612
+ backgroundColor: g || void 0,
613
+ borderRadius: b
614
+ }, P = Object.assign(Object.assign({
615
+ width: `${D(n)}%`,
616
+ height: y,
617
+ borderRadius: b
618
+ }, h), {
619
+ [ge]: D(n) / 100
620
+ }), C = U(e), $ = {
621
+ width: `${D(C)}%`,
622
+ height: y,
623
+ borderRadius: b,
624
+ backgroundColor: f == null ? void 0 : f.strokeColor
625
+ }, O = {
626
+ width: p < 0 ? "100%" : p
627
+ }, x = /* @__PURE__ */ i.createElement("div", {
628
+ className: `${t}-inner`,
629
+ style: I
630
+ }, /* @__PURE__ */ i.createElement("div", {
631
+ className: M(`${t}-bg`, `${t}-bg-${v}`),
632
+ style: P
633
+ }, v === "inner" && a), C !== void 0 && /* @__PURE__ */ i.createElement("div", {
634
+ className: `${t}-success-bg`,
635
+ style: $
636
+ })), w = v === "outer" && m === "start", u = v === "outer" && m === "end";
637
+ return v === "outer" && m === "center" ? /* @__PURE__ */ i.createElement("div", {
638
+ className: `${t}-layout-bottom`
639
+ }, x, a) : /* @__PURE__ */ i.createElement("div", {
640
+ className: `${t}-outer`,
641
+ style: O
642
+ }, w && a, x, u && a);
643
+ }, Je = (e) => {
644
+ const {
645
+ size: t,
646
+ steps: r,
647
+ rounding: n = Math.round,
648
+ percent: o = 0,
649
+ strokeWidth: c = 8,
650
+ strokeColor: s,
651
+ trailColor: l = null,
652
+ prefixCls: a,
653
+ children: g
654
+ } = e, d = n(r * (o / 100)), m = t ?? [t === "small" ? 2 : 14, c], [v, h] = Q(m, "step", {
655
+ steps: r,
656
+ strokeWidth: c
657
+ }), b = v / r, S = Array.from({
658
+ length: r
659
+ });
660
+ for (let p = 0; p < r; p++) {
661
+ const y = Array.isArray(s) ? s[p] : s;
662
+ S[p] = /* @__PURE__ */ i.createElement("div", {
663
+ key: p,
664
+ className: M(`${a}-steps-item`, {
665
+ [`${a}-steps-item-active`]: p <= d - 1
666
+ }),
667
+ style: {
668
+ backgroundColor: p <= d - 1 ? y : l,
669
+ width: b,
670
+ height: h
671
+ }
672
+ });
673
+ }
674
+ return /* @__PURE__ */ i.createElement("div", {
675
+ className: `${a}-steps-outer`
676
+ }, S, g);
677
+ };
678
+ var et = function(e, t) {
679
+ var r = {};
680
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
681
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
682
+ t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
683
+ return r;
684
+ };
685
+ const tt = ["normal", "exception", "active", "success"], rt = /* @__PURE__ */ i.forwardRef((e, t) => {
686
+ const {
687
+ prefixCls: r,
688
+ className: n,
689
+ rootClassName: o,
690
+ steps: c,
691
+ strokeColor: s,
692
+ percent: l = 0,
693
+ size: a = "default",
694
+ showInfo: g = !0,
695
+ type: d = "line",
696
+ status: f,
697
+ format: m,
698
+ style: v,
699
+ percentPosition: h = {}
700
+ } = e, b = et(e, ["prefixCls", "className", "rootClassName", "steps", "strokeColor", "percent", "size", "showInfo", "type", "status", "format", "style", "percentPosition"]), {
701
+ align: S = "end",
702
+ type: p = "outer"
703
+ } = h, y = Array.isArray(s) ? s[0] : s, I = typeof s == "string" || Array.isArray(s) ? s : void 0, P = i.useMemo(() => {
704
+ if (y) {
705
+ const k = typeof y == "string" ? y : Object.values(y)[0];
706
+ return new xe(k).isLight();
707
+ }
708
+ return !1;
709
+ }, [s]), C = i.useMemo(() => {
710
+ var k, E;
711
+ const N = U(e);
712
+ return Number.parseInt(N !== void 0 ? (k = N ?? 0) === null || k === void 0 ? void 0 : k.toString() : (E = l ?? 0) === null || E === void 0 ? void 0 : E.toString(), 10);
713
+ }, [l, e.success, e.successPercent]), $ = i.useMemo(() => !tt.includes(f) && C >= 100 ? "success" : f || "normal", [f, C]), {
714
+ getPrefixCls: O,
715
+ direction: x,
716
+ progress: w
717
+ } = i.useContext(Ee), u = O("progress", r), [B, G, j] = Ue(u), W = d === "line", A = W && !c, _ = i.useMemo(() => {
718
+ if (!g)
719
+ return null;
720
+ const k = U(e);
721
+ let E;
722
+ const N = m || ((L) => `${L}%`), T = W && P && p === "inner";
723
+ return p === "inner" || m || $ !== "exception" && $ !== "success" ? E = N(D(l), D(k)) : $ === "exception" ? E = W ? /* @__PURE__ */ i.createElement(we, null) : /* @__PURE__ */ i.createElement(Ne, null) : $ === "success" && (E = W ? /* @__PURE__ */ i.createElement(Oe, null) : /* @__PURE__ */ i.createElement(Ie, null)), /* @__PURE__ */ i.createElement("span", {
724
+ className: M(`${u}-text`, {
725
+ [`${u}-text-bright`]: T,
726
+ [`${u}-text-${S}`]: A,
727
+ [`${u}-text-${p}`]: A
728
+ }),
729
+ title: typeof E == "string" ? E : void 0
730
+ }, E);
731
+ }, [g, l, C, $, d, u, m]);
732
+ if (process.env.NODE_ENV !== "production") {
733
+ const k = le("Progress");
734
+ k.deprecated(!("successPercent" in e), "successPercent", "success.percent"), k.deprecated(!("width" in e), "width", "size"), (d === "circle" || d === "dashboard") && (Array.isArray(a) ? process.env.NODE_ENV !== "production" && k(!1, "usage", 'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.') : typeof a == "object" && process.env.NODE_ENV !== "production" && k(!1, "usage", 'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')), e.success && "progress" in e.success && k.deprecated(!1, "success.progress", "success.percent");
735
+ }
736
+ let F;
737
+ d === "line" ? F = c ? /* @__PURE__ */ i.createElement(Je, Object.assign({}, e, {
738
+ strokeColor: I,
739
+ prefixCls: u,
740
+ steps: typeof c == "object" ? c.count : c
741
+ }), _) : /* @__PURE__ */ i.createElement(Ze, Object.assign({}, e, {
742
+ strokeColor: y,
743
+ prefixCls: u,
744
+ direction: x,
745
+ percentPosition: {
746
+ align: S,
747
+ type: p
748
+ }
749
+ }), _) : (d === "circle" || d === "dashboard") && (F = /* @__PURE__ */ i.createElement(Xe, Object.assign({}, e, {
750
+ strokeColor: y,
751
+ prefixCls: u,
752
+ progressStatus: $
753
+ }), _));
754
+ const H = M(u, `${u}-status-${$}`, {
755
+ [`${u}-${d === "dashboard" && "circle" || d}`]: d !== "line",
756
+ [`${u}-inline-circle`]: d === "circle" && Q(a, "circle")[0] <= 20,
757
+ [`${u}-line`]: A,
758
+ [`${u}-line-align-${S}`]: A,
759
+ [`${u}-line-position-${p}`]: A,
760
+ [`${u}-steps`]: c,
761
+ [`${u}-show-info`]: g,
762
+ [`${u}-${a}`]: typeof a == "string",
763
+ [`${u}-rtl`]: x === "rtl"
764
+ }, w == null ? void 0 : w.className, n, o, G, j);
765
+ return B(/* @__PURE__ */ i.createElement("div", Object.assign({
766
+ ref: t,
767
+ style: Object.assign(Object.assign({}, w == null ? void 0 : w.style), v),
768
+ className: H,
769
+ role: "progressbar",
770
+ "aria-valuenow": C,
771
+ "aria-valuemin": 0,
772
+ "aria-valuemax": 100
773
+ }, Pe(b, ["trailColor", "strokeWidth", "width", "gapDegree", "gapPosition", "strokeLinecap", "success", "successPercent"])), F));
774
+ });
775
+ process.env.NODE_ENV !== "production" && (rt.displayName = "Progress");
776
+ export {
777
+ rt as P
778
+ };