@abtnode/blocklet-services 1.16.36 → 1.16.37-beta-20241225-042616-74a39677
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.
- package/api/index.js +1 -1
- package/api/services/auth/session.js +14 -0
- package/api/services/notification/blocklet-events-notifier.js +12 -3
- package/api/services/static.js +4 -2
- package/api/socket/channel/did.js +180 -73
- package/api/socket/util.js +3 -2
- package/dist/assets/{Add-CX1vjsKw.js → Add-BkB4hzWP.js} +1 -1
- package/dist/assets/{Alert-D87dZ3UW.js → Alert-ChKHObzy.js} +1 -1
- package/dist/assets/{ArrowDropDown-DHIEui26.js → ArrowDropDown-NI0e1CcL.js} +1 -1
- package/dist/assets/{Autocomplete-MtOZ_ddo.js → Autocomplete-p5GqoeXs.js} +1 -1
- package/dist/assets/{Avatar-BBmwGXNJ.js → Avatar-DlUYYqzV.js} +1 -1
- package/dist/assets/{ButtonGroup-B4-Fg7jI.js → ButtonGroup-BYk4i3Xj.js} +1 -1
- package/dist/assets/CSSTransition-BiICcXS_.js +1 -0
- package/dist/assets/{CheckCircle-Rp6PMEen.js → CheckCircle-rLcqJXM-.js} +1 -1
- package/dist/assets/Checkbox-Bhkb2Q7e.js +1 -0
- package/dist/assets/{ChevronLeft-c5m-YpM0.js → ChevronLeft-DpZEnYw8.js} +1 -1
- package/dist/assets/{ChevronRight-Bu3ZuWG0.js → ChevronRight-zqeMGTU8.js} +1 -1
- package/dist/assets/{Clear-b8hVwHGB.js → Clear-CDTgnxEs.js} +1 -1
- package/dist/assets/CloseOutlined-5KxLf6kj.js +1 -0
- package/dist/assets/Delete-WEUwYpNY.js +1 -0
- package/dist/assets/{DeleteOutline-D9nJXz7t.js → DeleteOutline-CLetbYHM.js} +1 -1
- package/dist/assets/DialogContentText-ClFxaW7v.js +1 -0
- package/dist/assets/{Done-BXX9mmcA.js → Done-B2yIKbPe.js} +1 -1
- package/dist/assets/{Download-CW9qYXvX.js → Download-D3oyzH2g.js} +1 -1
- package/dist/assets/{EditIcon-ntr6a7to.js → EditIcon-C5qnPQPK.js} +1 -1
- package/dist/assets/{Error-C3Gec5vv.js → Error-DCiGz0W4.js} +1 -1
- package/dist/assets/{ExpandMore-z223TCGt.js → ExpandMore-A8864VcF.js} +1 -1
- package/dist/assets/FormControl-BnCs9TYC.js +1 -0
- package/dist/assets/FormControlLabel-gmMi3Y73.js +1 -0
- package/dist/assets/FormGroup-DAS3Wdrs.js +1 -0
- package/dist/assets/{Google-C-eSdThA.js → Google-CZkEeoSf.js} +1 -1
- package/dist/assets/{Grid-DvGS1eT-.js → Grid-OTVy8H2X.js} +1 -1
- package/dist/assets/{HelpOutline-CA0yuFPz.js → HelpOutline-C4qxhpk-.js} +1 -1
- package/dist/assets/Hidden-NKkV7HZo.js +1 -0
- package/dist/assets/{InfoOutlined-De7efdSI.js → InfoOutlined-D5Xbo4zj.js} +1 -1
- package/dist/assets/InputAdornment-CSzQ4LZF.js +1 -0
- package/dist/assets/{LastPage-Cr9Ak46f.js → LastPage-kYHf2Jgz.js} +1 -1
- package/dist/assets/{Launch-CjTqTNC0.js → Launch-BPdkR5Yb.js} +1 -1
- package/dist/assets/{LaunchOutlined-ClaHGU-X.js → LaunchOutlined-C4F_A-BZ.js} +1 -1
- package/dist/assets/Link-C_kVN1IN.js +1 -0
- package/dist/assets/{ListItemButton-s5WMuSEH.js → ListItemButton-CUd7HZtZ.js} +1 -1
- package/dist/assets/{ListSubheader-Db7_5hOm.js → ListSubheader-BtQjujI6.js} +1 -1
- package/dist/assets/{LoadingButton-C8kGVq5n.js → LoadingButton-aRwO6vTQ.js} +1 -1
- package/dist/assets/{LockIcon-BRURbClv.js → LockIcon-mSZR8Wpo.js} +1 -1
- package/dist/assets/{Loop-DhCMxpbJ.js → Loop-BW41YAf5.js} +1 -1
- package/dist/assets/{MarkEmailRead-DsCr6k83.js → MarkEmailRead-DDXcmvAD.js} +1 -1
- package/dist/assets/{Menu-C83cJ_lX.js → Menu-BEfro0go.js} +1 -1
- package/dist/assets/{MoreHoriz-CYspaAXh.js → MoreHoriz-CchvQ4x8.js} +1 -1
- package/dist/assets/MoreVert-CvexrbHc.js +1 -0
- package/dist/assets/{OpenInNew-Bmg-7bFA.js → OpenInNew-DEvTVCLv.js} +1 -1
- package/dist/assets/{OutlinedInput-BZLbG5DR.js → OutlinedInput-CciGoCMS.js} +2 -2
- package/dist/assets/{Pagination-oz0udlom.js → Pagination-kuH1inkO.js} +1 -1
- package/dist/assets/{PlayArrow-BhhCt6rD.js → PlayArrow-Bp2splvT.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-BSLU-5QJ.js → QuestionMarkCircle-C6CYRmzY.js} +1 -1
- package/dist/assets/RadioGroup-DeYUiM4a.js +1 -0
- package/dist/assets/{Search-CVIzSYhH.js → Search-C5TLLWdE.js} +1 -1
- package/dist/assets/{Select-oWe_u-D6.js → Select-B2258gYR.js} +1 -1
- package/dist/assets/{ServerLogo-DU1L-HB-.js → ServerLogo-BZwoaegZ.js} +1 -1
- package/dist/assets/{Skeleton-CX8Tt8Bo.js → Skeleton-BuEuviLL.js} +5 -5
- package/dist/assets/{Stepper-oUEFYvV_.js → Stepper-B0-CbxVQ.js} +1 -1
- package/dist/assets/TextField-DdBwv6WG.js +1 -0
- package/dist/assets/Toolbar-BHvcJ4YW.js +1 -0
- package/dist/assets/{ViewColumn-l6xqEHMP.js → ViewColumn-CGSCYe5U.js} +1 -1
- package/dist/assets/{ViewList-DI9CqBFa.js → ViewList-BQkleo17.js} +1 -1
- package/dist/assets/_createAggregator-CL0QbW5c.js +1 -0
- package/dist/assets/access-control-gTPVrvEV.js +13 -0
- package/dist/assets/{actions-CONPytvg.js → actions-B0wpb8WP.js} +1 -1
- package/dist/assets/{add-component-core-Ptms3VM0.js → add-component-core-DEP3pvl3.js} +1 -1
- package/dist/assets/add-resource-B6KGvflZ.js +1 -0
- package/dist/assets/{addon-C9BRq2rr.js → addon-CWvLtMZJ.js} +1 -1
- package/dist/assets/{analytics-BV-2dIsZ.js → analytics-l5gy5arJ.js} +8 -8
- package/dist/assets/api-BhCBiRAm.js +1 -0
- package/dist/assets/ar-DJ10cGfc.js +3 -0
- package/dist/assets/audit-logs-Du8bIKSU.js +58 -0
- package/dist/assets/{base32-Bha8goHw.js → base32-imhHGclO.js} +1 -1
- package/dist/assets/{branding-B-Xki6ZL.js → branding-Csm-KHUR.js} +3 -3
- package/dist/assets/bundle-avatar-B9RBzSN1.js +1 -0
- package/dist/assets/{button-DnXjylQA.js → button-C8ULfHVF.js} +1 -1
- package/dist/assets/{click-to-copy-DziDdr0B.js → click-to-copy-v_Opm3QR.js} +1 -1
- package/dist/assets/{complete-93121Q5T.js → complete-CygXvKWj.js} +2 -2
- package/dist/assets/{component-CUWDsqls.js → component-B0HYQmUN.js} +66 -66
- package/dist/assets/{config-fZzyLL4i.js → config-DXrpezKF.js} +2 -2
- package/dist/assets/{config-BOzIhp1x.js → config-Df-SNcsy.js} +1 -1
- package/dist/assets/{config-navigation-sGa37CFt.js → config-navigation-BEHsCO8s.js} +6 -6
- package/dist/assets/{config-space-BudRzV_5.js → config-space-D5bEt5Gp.js} +1 -1
- package/dist/assets/confirm-DYfoP4Se.js +7 -0
- package/dist/assets/{connect-RlFAKnw-.js → connect-BFdPgdv_.js} +1 -1
- package/dist/assets/{connect-DmL9t9Pb.js → connect-BVMwZTAm.js} +1 -1
- package/dist/assets/connect-to-D6szP_mS.js +29 -0
- package/dist/assets/{content-layout-j_ijfe5V.js → content-layout-BWfZStKw.js} +1 -1
- package/dist/assets/createSuper-DKliGZhT.js +1 -0
- package/dist/assets/dashboard-DD-yzt8D.js +122 -0
- package/dist/assets/de-5ORoKwiw.js +3 -0
- package/dist/assets/{deprecate-Czw83fWw.js → deprecate-Osa-TpP_.js} +1 -1
- package/dist/assets/{did-address-plg0jYw3.js → did-address-fJXOgCji.js} +1 -1
- package/dist/assets/domain-AZtYfQs6.js +9 -0
- package/dist/assets/domain-list-BtZxFC7u.js +15 -0
- package/dist/assets/{email-D7G1smCL.js → email-C58FE35W.js} +3 -3
- package/dist/assets/emotion-cache.browser.esm-Di9JeT_p.js +1 -0
- package/dist/assets/es-CWClvbjs.js +3 -0
- package/dist/assets/{exchange-passport-CK56AJBa.js → exchange-passport-DICDwXnl.js} +1 -1
- package/dist/assets/{fallback-7BFwIxSy.js → fallback-4BqcBhXb.js} +1 -1
- package/dist/assets/{form-text-input-1DixbtmZ.js → form-text-input-CAY-lMxo.js} +2 -2
- package/dist/assets/{format-error-D7O1LvF5.js → format-error-CUK_a_10.js} +1 -1
- package/dist/assets/fr-CE8mlhdK.js +3 -0
- package/dist/assets/{fuel-PkYrmKwo.js → fuel-BKd5UYAP.js} +1 -1
- package/dist/assets/{fullpage-Dzbv_Bjr.js → fullpage-BYwrS6HY.js} +1 -1
- package/dist/assets/get-safe-url-DnaY_sIP.js +1 -0
- package/dist/assets/get-safe-url-ZoRLtlYY.js +1 -0
- package/dist/assets/hi-DVuJdQme.js +1 -0
- package/dist/assets/home-Ch-Nd7rN.js +1 -0
- package/dist/assets/id-L6JUyxUh.js +3 -0
- package/dist/assets/iframe-DvGgn53X.js +1 -0
- package/dist/assets/{index-DVHJpsNX.js → index-9sT6N2YX.js} +27 -27
- package/dist/assets/{index-C2bGI7WK.js → index-BE21Hh0c.js} +2 -2
- package/dist/assets/{index-DBd8RuKA.js → index-BUvP8QK5.js} +1 -1
- package/dist/assets/index-B_PrlAJB.js +4 -0
- package/dist/assets/{index-B8JIUDX2.js → index-BsTptIhN.js} +1 -1
- package/dist/assets/{index-BTC9PSrm.js → index-C2homhPJ.js} +9 -9
- package/dist/assets/index-C8Sskh3w.js +1 -0
- package/dist/assets/{index-_mYSbTn_.js → index-CJPKRS_9.js} +2 -2
- package/dist/assets/{index-ib_nAWaQ.js → index-CJRqLJP3.js} +8 -8
- package/dist/assets/{index-CfOAEOXT.js → index-Ciyml8mD.js} +1 -1
- package/dist/assets/{index-BU-yWCAN.js → index-Cl7SKZEV.js} +1 -1
- package/dist/assets/{index-wIzEIL5u.js → index-Cq2_T2PN.js} +1 -1
- package/dist/assets/{index-aL8XFphi.js → index-Cu3ENsjg.js} +2 -2
- package/dist/assets/index-CvLkRg-n.js +5 -0
- package/dist/assets/index-D09LFMFr.js +1 -0
- package/dist/assets/index-D8L2UAAh.js +1365 -0
- package/dist/assets/{index-jWRQUWQQ.js → index-DH1QaI_0.js} +4 -4
- package/dist/assets/{index-De03g9F6.js → index-DIP4uyR4.js} +11 -11
- package/dist/assets/{index-B8pYs6qw.js → index-DNbmG1Aj.js} +1 -1
- package/dist/assets/{index-c_geTDzQ.js → index-DT7yCya3.js} +1 -1
- package/dist/assets/{index-BP4DTdBA.js → index-DTirNi8X.js} +6 -6
- package/dist/assets/{index-BTolZrGR.js → index-DTlA_n5o.js} +32 -32
- package/dist/assets/{index-BKasVuE9.js → index-DZIZsduD.js} +11 -11
- package/dist/assets/{index-BkHfBdHS.js → index-D_G--uzQ.js} +1 -1
- package/dist/assets/{index-DcgOvNoU.js → index-DbWPFW9j.js} +1 -1
- package/dist/assets/index-DcfIKM1A.js +9 -0
- package/dist/assets/index-DduAmTQM.js +11 -0
- package/dist/assets/{index-Bhigy6bC.js → index-DoUsy4Am.js} +22 -22
- package/dist/assets/{index-CA1fJOyr.js → index-DvlFQr4i.js} +1 -1
- package/dist/assets/{index-ClbUoDwd.js → index-H94hXmzT.js} +1 -1
- package/dist/assets/{index-L1YQQop8.js → index-IGQ16zgs.js} +1 -1
- package/dist/assets/index-jBwf2OX8.js +1 -0
- package/dist/assets/{index-B5rvRUtU.js → index-rwuCoVH7.js} +1 -1
- package/dist/assets/{index-CM4iFAJQ.js → index-tiK1UfUP.js} +1 -1
- package/dist/assets/index-uahSiLR3.js +1 -0
- package/dist/assets/{invitation-etE_VFdX.js → invitation-Cmm6wjCf.js} +1 -1
- package/dist/assets/{invite-DhviMHhg.js → invite-Bqr2ffuS.js} +1 -1
- package/dist/assets/{isEmail-DoX_u6Zd.js → isEmail-xeQb73BU.js} +1 -1
- package/dist/assets/{issue-passport-C8DsPT0-.js → issue-passport-uOjBXSvI.js} +1 -1
- package/dist/assets/{item-B9A7WgaT.js → item-B4MlNECd.js} +1 -1
- package/dist/assets/ja-C5orBePq.js +3 -0
- package/dist/assets/jss-plugin-props-sort.esm-CYd_rw6C.js +13 -0
- package/dist/assets/ko-BeIurXFC.js +3 -0
- package/dist/assets/{launch-result-message-BF-pkAdo.js → launch-result-message-DDgbpHDK.js} +1 -1
- package/dist/assets/{layout-BLKVO1aA.js → layout-B2RjMoIa.js} +2 -2
- package/dist/assets/{list-header-CkJhELTK.js → list-header-DUgbQ6vJ.js} +1 -1
- package/dist/assets/localization-CScrEYZO.js +1 -0
- package/dist/assets/{log-BQVpfJU-.js → log-BtJnPSoV.js} +1 -1
- package/dist/assets/{login-Bv1YL4-f.js → login-DSWRkLwv.js} +1 -1
- package/dist/assets/{login-oauth-callback-Df2Wy7r-.js → login-oauth-callback-BLXm9APb.js} +1 -1
- package/dist/assets/logo-uploader-B0QlJBxO.js +133 -0
- package/dist/assets/{lost-passport-BL6kwgdn.js → lost-passport-BaQoJYDp.js} +3 -3
- package/dist/assets/{lottie-react.esm-CQpztMV_.js → lottie-react.esm-C6oeX0f_.js} +1 -1
- package/dist/assets/notifications-BXkrhdJX.js +65 -0
- package/dist/assets/objectWithoutProperties-BENPtOBN.js +1 -0
- package/dist/assets/{open-window-Bw74ZDo1.js → open-window-rLjL3D-p.js} +1 -1
- package/dist/assets/overview-CE7qiKaY.js +12 -0
- package/dist/assets/{page-header-XtrSmZfg.js → page-header-Czj7nA0M.js} +1 -1
- package/dist/assets/permission-BbBZ-Q07.js +1 -0
- package/dist/assets/{preferences-wTD0jKLE.js → preferences-DuqeK6jY.js} +1 -1
- package/dist/assets/pt-BED0VqHV.js +1 -0
- package/dist/assets/publish-resource-DZ0_g98Y.js +1 -0
- package/dist/assets/{raf-schd.esm--VHqQAwf.js → raf-schd.esm-BsOKAQic.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-JkjWkb1g.js → react-beautiful-dnd.esm-D8as9nxo.js} +4 -4
- package/dist/assets/refType-wiGU_CYL.js +1 -0
- package/dist/assets/relative-time-Co8rNTBz.js +1 -0
- package/dist/assets/resource-dialog-jqPe2lGW.js +299 -0
- package/dist/assets/ru-B5wj2v7e.js +1 -0
- package/dist/assets/sdk-JrWngYdm.js +1 -0
- package/dist/assets/{selector-bHfmQq2F.js → selector-COWEdXx0.js} +3 -3
- package/dist/assets/session-B7F0NwQP.js +1 -0
- package/dist/assets/setup-Cnkq73eJ.js +19 -0
- package/dist/assets/{shorten-label-AXaOgv3N.js → shorten-label-OkrzWx8E.js} +1 -1
- package/dist/assets/{simple-select-BvdSFcAP.js → simple-select-D5ETdYI4.js} +1 -1
- package/dist/assets/slicedToArray-D4TxSsqm.js +2 -0
- package/dist/assets/{start-CLF-sxGf.js → start-qZ58zL2F.js} +1 -1
- package/dist/assets/{step-actions-BOih4mzv.js → step-actions-Bz29BFsU.js} +1 -1
- package/dist/assets/{studio-BX29D64q.js → studio-DprXN3bN.js} +1 -1
- package/dist/assets/{switch-control-50NvsOor.js → switch-control-WXuqJlxM.js} +1 -1
- package/dist/assets/tag-b_Ohy0yl.js +13 -0
- package/dist/assets/th-CKxPcxWD.js +1 -0
- package/dist/assets/toConsumableArray-Dwhm2s8G.js +2 -0
- package/dist/assets/{toUpper-C7snz8mS.js → toUpper-Cei2i7zM.js} +1 -1
- package/dist/assets/{transfer-DcUjnU0J.js → transfer-DIpg3uLY.js} +1 -1
- package/dist/assets/trim-CS2xCjjU.js +1 -0
- package/dist/assets/uniqBy-nJKEYOxf.js +1 -0
- package/dist/assets/{unsubscribe-Dinsbdr7.js → unsubscribe-_HykDKcM.js} +1 -1
- package/dist/assets/{url-join-CnY0czxB.js → url-join-M3fXRJn0.js} +1 -1
- package/dist/assets/{use-mobile-CFfSxdXP.js → use-mobile-CPjGL-vp.js} +1 -1
- package/dist/assets/{use-mobile-CaIg2l3g.js → use-mobile-CtPmWX3g.js} +1 -1
- package/dist/assets/{useAsync-CUPYfNit.js → useAsync-9px8VBp_.js} +1 -1
- package/dist/assets/useAsyncRetry-D9I5b4ls.js +7 -0
- package/dist/assets/{useFormControl-BSba3oCv.js → useFormControl-CJf6eDNE.js} +1 -1
- package/dist/assets/{useLocalStorage-D1AGu-lb.js → useLocalStorage-CE9vPTSl.js} +1 -1
- package/dist/assets/{useSetState-DSX8AlnY.js → useSetState-DrfWhk6y.js} +1 -1
- package/dist/assets/useSlot-BOWweaUi.js +1 -0
- package/dist/assets/{useThemeProps-BXP-249z.js → useThemeProps-BsjQj15M.js} +1 -1
- package/dist/assets/user-center-DcUzUPto.js +448 -0
- package/dist/assets/{util-UrDod__A.js → util-COsFrtKD.js} +1 -1
- package/dist/assets/{utils-iop7lDec.js → utils-DoM3o7-Q.js} +1 -1
- package/dist/assets/vi-DsheN6LQ.js +1 -0
- package/dist/assets/wrap-locale-Lg1ICLx4.js +1 -0
- package/dist/assets/zh-BJMvTFip.js +4 -0
- package/dist/assets/zh-tw-B_su4eMW.js +3 -0
- package/dist/index.html +1 -1
- package/dist/manifest.webmanifest +1 -1
- package/dist/registerSW.js +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +35 -35
- package/dist/assets/CSSTransition-Mh3ysxT1.js +0 -1
- package/dist/assets/Delete-DJJRj5Hb.js +0 -1
- package/dist/assets/DialogContentText-DKQ0aeHG.js +0 -1
- package/dist/assets/DialogTitle-LVWjEooN.js +0 -1
- package/dist/assets/FormControl-C7Nj6lk8.js +0 -1
- package/dist/assets/FormControlLabel-CsOaFzYE.js +0 -1
- package/dist/assets/FormGroup-9S4EZF14.js +0 -1
- package/dist/assets/Hidden-D8s2OkVT.js +0 -1
- package/dist/assets/InputAdornment-DLaj8suy.js +0 -1
- package/dist/assets/Link-Cfv3qknB.js +0 -1
- package/dist/assets/MoreVert-cgL2UwiF.js +0 -1
- package/dist/assets/RadioGroup-BxfFSGKO.js +0 -1
- package/dist/assets/Stack-ouMqQ5wb.js +0 -1
- package/dist/assets/TextField-BA4i5NsI.js +0 -1
- package/dist/assets/Toolbar-Dsg-eB8s.js +0 -1
- package/dist/assets/_createAggregator-DHQaEdHP.js +0 -1
- package/dist/assets/access-control-Co4RM0Bo.js +0 -13
- package/dist/assets/add-resource-62Kg3wZP.js +0 -1
- package/dist/assets/api-Bc9Mc47C.js +0 -1
- package/dist/assets/ar-BDRVvPrM.js +0 -3
- package/dist/assets/audit-logs-P5V7cojf.js +0 -58
- package/dist/assets/bundle-avatar-DnRgcM-q.js +0 -1
- package/dist/assets/confirm-C5GHlmsL.js +0 -7
- package/dist/assets/connect-to-C9RrMw8y.js +0 -1
- package/dist/assets/dashboard-DWfGuG2f.js +0 -165
- package/dist/assets/de-B227a1no.js +0 -3
- package/dist/assets/domain-DGmKsEPb.js +0 -9
- package/dist/assets/domain-list-b8qyOv0K.js +0 -15
- package/dist/assets/emotion-cache.browser.esm-jEAge-b7.js +0 -1
- package/dist/assets/es-DAn9P2pX.js +0 -3
- package/dist/assets/fr-hW_Tvq9a.js +0 -3
- package/dist/assets/get-safe-url-B7F64ILl.js +0 -1
- package/dist/assets/get-safe-url-B_9CHKiR.js +0 -1
- package/dist/assets/hi-6yAhJdFx.js +0 -1
- package/dist/assets/home-Ba5jkT5T.js +0 -1
- package/dist/assets/id-BMkTW_Ii.js +0 -3
- package/dist/assets/iframe-B-WoBAzH.js +0 -1
- package/dist/assets/index-BZlD6OXo.js +0 -11
- package/dist/assets/index-BiEwRwlx.js +0 -1
- package/dist/assets/index-CURuTEb2.js +0 -1354
- package/dist/assets/index-CixjtzIf.js +0 -1
- package/dist/assets/index-CncNyG59.js +0 -29
- package/dist/assets/index-D7S1biYx.js +0 -4
- package/dist/assets/index-DTEEl-sV.js +0 -1
- package/dist/assets/index-yknVcz6a.js +0 -5
- package/dist/assets/ja-DMoxkdsA.js +0 -3
- package/dist/assets/jss-plugin-props-sort.esm-DxbPrUtX.js +0 -14
- package/dist/assets/ko-C926kBBj.js +0 -3
- package/dist/assets/localization-CBfrOcuo.js +0 -1
- package/dist/assets/logo-uploader-vzgZfcsx.js +0 -133
- package/dist/assets/notifications-Dq9FGpST.js +0 -65
- package/dist/assets/overview-DRggHObA.js +0 -12
- package/dist/assets/permission-a4KWdWdi.js +0 -7
- package/dist/assets/pt-S0JrQ9Y4.js +0 -1
- package/dist/assets/publish-resource-DDUATmJ8.js +0 -1
- package/dist/assets/refType-Bzs0bPAl.js +0 -1
- package/dist/assets/resource-dialog-D_g0Ux18.js +0 -271
- package/dist/assets/ru-Qa5qbmx5.js +0 -1
- package/dist/assets/sdk-BLFRAhju.js +0 -1
- package/dist/assets/session-CROK8kXg.js +0 -1
- package/dist/assets/setup-DeIVwtAN.js +0 -19
- package/dist/assets/slicedToArray-BWTfB_HY.js +0 -2
- package/dist/assets/th-BoRhU51f.js +0 -1
- package/dist/assets/trim-DXlOBONx.js +0 -1
- package/dist/assets/uniqBy-VaPfeDts.js +0 -1
- package/dist/assets/useSlot-BYwgFHQI.js +0 -1
- package/dist/assets/useSlotProps-BniFm7V2.js +0 -1
- package/dist/assets/user-center-DeRfl05a.js +0 -1
- package/dist/assets/user-sessions-DXOv0sUo.js +0 -1
- package/dist/assets/vi-klSG5jCL.js +0 -1
- package/dist/assets/wrap-locale-B5FvTTmq.js +0 -1
- package/dist/assets/zh-Bbb3gm_K.js +0 -4
- package/dist/assets/zh-tw-D9dNfXQ_.js +0 -3
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
import{P as de,r as d,j as H,B as st,aN as Hc,b as uo,bm as ne,bn as $i,bo as Dc,bp as We,bq as fa,br as ce,bs as Wc,bt as Gs,bu as Yp,bv as Uc,c as Ks,a4 as Qt,u as ni,a6 as va,ap as qc,aO as Ri,k as Xs,n as Ti,bk as Gc,bw as Kc,H as Xc,L as Qc}from"./index-D8L2UAAh.js";import{U as Zc}from"./resource-dialog-jqPe2lGW.js";import{B as Yc}from"./index-DduAmTQM.js";import{E as Jc}from"./index-Ciyml8mD.js";import{B as Qs}from"./bundle-avatar-B9RBzSN1.js";import{B as eu}from"./index-jBwf2OX8.js";import{R as tu}from"./relative-time-Co8rNTBz.js";import{L as Zs}from"./Link-C_kVN1IN.js";import{S as fo}from"./Skeleton-BuEuviLL.js";import{_ as Je,a as Ys,b as Q,c as ru}from"./toConsumableArray-Dwhm2s8G.js";import{_ as F,a as T}from"./Clear-CDTgnxEs.js";import{_ as mr,a as et,b as bt,c as nu}from"./objectWithoutProperties-BENPtOBN.js";import{c as he}from"./index-Cq2_T2PN.js";import{_ as se}from"./toPropertyKey-PLuKRk1e.js";import{r as _a}from"./index-DcfIKM1A.js";import{_ as pr,a as au}from"./createSuper-DKliGZhT.js";import{N as ou}from"./tag-b_Ohy0yl.js";import{A as iu}from"./Avatar-DlUYYqzV.js";import{T as su}from"./index-9sT6N2YX.js";import{F as lu}from"./FormControl-BnCs9TYC.js";import{S as cu}from"./Select-B2258gYR.js";import{L as uu}from"./ListSubheader-BtQjujI6.js";import{T as du}from"./TextField-DdBwv6WG.js";import"./index-H94hXmzT.js";import"./fallback-4BqcBhXb.js";import"./ExpandMore-A8864VcF.js";import"./index-DTirNi8X.js";import"./Menu-BEfro0go.js";import"./Toolbar-BHvcJ4YW.js";import"./Hidden-NKkV7HZo.js";import"./index-IGQ16zgs.js";import"./emotion-cache.browser.esm-Di9JeT_p.js";import"./purify.es-DutPtr9A.js";import"./uniqBy-nJKEYOxf.js";import"./index-D09LFMFr.js";import"./FormControlLabel-gmMi3Y73.js";import"./useFormControl-CJf6eDNE.js";import"./index-BsTptIhN.js";import"./InputAdornment-CSzQ4LZF.js";import"./Alert-ChKHObzy.js";import"./useSlot-BOWweaUi.js";import"./OpenInNew-DEvTVCLv.js";import"./CloseOutlined-5KxLf6kj.js";import"./index-CJPKRS_9.js";import"./ButtonGroup-BYk4i3Xj.js";import"./HelpOutline-C4qxhpk-.js";import"./DialogContentText-ClFxaW7v.js";import"./use-mobile-CtPmWX3g.js";import"./MoreVert-CvexrbHc.js";import"./ListItemButton-CUd7HZtZ.js";import"./selector-COWEdXx0.js";import"./useThemeProps-BsjQj15M.js";import"./Checkbox-Bhkb2Q7e.js";import"./ViewColumn-CGSCYe5U.js";import"./FormGroup-DAS3Wdrs.js";import"./Grid-OTVy8H2X.js";import"./Delete-WEUwYpNY.js";import"./LastPage-kYHf2Jgz.js";import"./OutlinedInput-CciGoCMS.js";import"./utils-DoM3o7-Q.js";import"./Search-C5TLLWdE.js";Js.propTypes={theme:de.string,type:de.oneOf(["button","line"]),onSelectType:de.func,extra:de.node,currentTab:de.oneOf(["info","success","warning","error",""])};function Js({theme:e="dark",type:t="button",onSelectType:r,extra:n=void 0,currentTab:a="",...o}){const i=[{label:"All",value:""},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}],[s,l]=d.useState(a||i[0].value),c=g=>{g!==s&&(l(g),r(g))},u=d.useMemo(()=>{const g={width:"100%",bgcolor:e==="dark"?"#F9FAFB":"",overflowY:"auto",whiteSpace:"nowrap",borderRadius:0,display:"flex",justifyContent:"space-between",alignItems:"flex-end"};return t==="line"?Object.assign(g,{position:"relative",zIndex:2}):g},[t,e]),f=(g,m,p)=>H.jsx(uo,{onClick:()=>c(g.value),className:`profile-button ${m?"active":""}`,...o,children:g.label},g.value||p),v=(g,m,p)=>H.jsx(uo,{variant:"text",onClick:()=>c(g.value),className:`profile-line-button ${m?"active":""}`,...o,children:g.label},g.value||p);return H.jsxs(H.Fragment,{children:[H.jsxs(st,{className:"severity-tabs",sx:u,children:[H.jsx("div",{children:i==null?void 0:i.map((g,m)=>{const p=s===(g==null?void 0:g.value);return t==="line"?H.jsx(d.Fragment,{children:v(g,p,m)},g.value||m):H.jsx(d.Fragment,{children:f(g,p,m)},g.value||m)})}),n]}),t==="line"?H.jsx(Hc,{sx:{position:"relative",top:"-1px",zIndex:1,borderColor:"rgba(209, 213, 219, 1)"}}):null]})}var fu=Symbol.for("react.element"),vu=Symbol.for("react.transitional.element"),gu=Symbol.for("react.fragment");function el(e){return e&&se(e)==="object"&&(e.$$typeof===fu||e.$$typeof===vu)&&e.type===gu}function _r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return ne.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(_r(n)):el(n)&&n.props?r=r.concat(_r(n.props.children,t)):r.push(n))}),r}var vo={},hu=function(t){};function mu(e,t){}function pu(e,t){}function bu(){vo={}}function tl(e,t,r){!t&&!vo[r]&&(e(!1,r),vo[r]=!0)}function pt(e,t){tl(mu,e,t)}function yu(e,t){tl(pu,e,t)}pt.preMessage=hu;pt.resetWarned=bu;pt.noteOnce=yu;function an(e){return e instanceof HTMLElement||e instanceof SVGElement}function xu(e){return e&&se(e)==="object"&&an(e.nativeElement)?e.nativeElement:an(e)?e:null}function Yn(e){var t=xu(e);if(t)return t;if(e instanceof ne.Component){var r;return(r=$i.findDOMNode)===null||r===void 0?void 0:r.call($i,e)}return null}function ai(e,t,r){var n=d.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var oi=function(t,r){typeof t=="function"?t(r):se(t)==="object"&&t&&"current"in t&&(t.current=r)},ga=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.filter(Boolean);return a.length<=1?a[0]:function(o){r.forEach(function(i){oi(i,o)})}},ii=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ai(function(){return ga.apply(void 0,r)},r,function(a,o){return a.length!==o.length||a.every(function(i,s){return i!==o[s]})})},ha=function(t){var r,n;if(!t)return!1;if(rl(t)&&t.props.propertyIsEnumerable("ref"))return!0;var a=_a.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==_a.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==_a.ForwardRef)};function rl(e){return d.isValidElement(e)&&!el(e)}var si=function(t){if(t&&rl(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},go=d.createContext(null);function Su(e){var t=e.children,r=e.onBatchResize,n=d.useRef(0),a=d.useRef([]),o=d.useContext(go),i=d.useCallback(function(s,l,c){n.current+=1;var u=n.current;a.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r==null||r(a.current),a.current=[])}),o==null||o(s,l,c)},[r,o]);return d.createElement(go.Provider,{value:i},t)}var nr=new Map;function Cu(e){e.forEach(function(t){var r,n=t.target;(r=nr.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var nl=new Dc(Cu);function wu(e,t){nr.has(e)||(nr.set(e,new Set),nl.observe(e)),nr.get(e).add(t)}function Eu(e,t){nr.has(e)&&(nr.get(e).delete(t),nr.get(e).size||(nl.unobserve(e),nr.delete(e)))}var $u=function(e){mr(r,e);var t=pr(r);function r(){return et(this,r),t.apply(this,arguments)}return Je(r,[{key:"render",value:function(){return this.props.children}}]),r}(d.Component);function Ru(e,t){var r=e.children,n=e.disabled,a=d.useRef(null),o=d.useRef(null),i=d.useContext(go),s=typeof r=="function",l=s?r(a):r,c=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&d.isValidElement(l)&&ha(l),f=u?si(l):null,v=ii(f,a),g=function(){var y;return Yn(a.current)||(a.current&&se(a.current)==="object"?Yn((y=a.current)===null||y===void 0?void 0:y.nativeElement):null)||Yn(o.current)};d.useImperativeHandle(t,function(){return g()});var m=d.useRef(e);m.current=e;var p=d.useCallback(function(h){var y=m.current,b=y.onResize,x=y.data,E=h.getBoundingClientRect(),S=E.width,C=E.height,w=h.offsetWidth,M=h.offsetHeight,P=Math.floor(S),I=Math.floor(C);if(c.current.width!==P||c.current.height!==I||c.current.offsetWidth!==w||c.current.offsetHeight!==M){var N={width:P,height:I,offsetWidth:w,offsetHeight:M};c.current=N;var L=w===Math.round(S)?S:w,k=M===Math.round(C)?C:M,A=F(F({},N),{},{offsetWidth:L,offsetHeight:k});i==null||i(A,h,x),b&&Promise.resolve().then(function(){b(A,h)})}},[]);return d.useEffect(function(){var h=g();return h&&!n&&wu(h,p),function(){return Eu(h,p)}},[a.current,n]),d.createElement($u,{ref:o},u?d.cloneElement(l,{ref:v}):l)}var Tu=d.forwardRef(Ru),Pu="rc-observer-key";function Ou(e,t){var r=e.children,n=typeof r=="function"?[r]:_r(r);return n.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(Pu,"-").concat(o);return d.createElement(Tu,We({},e,{key:i,ref:o===0?t:void 0}),a)})}var mn=d.forwardRef(Ou);mn.Collection=Su;function al(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var ol=function(t){return+setTimeout(t,16)},il=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(ol=function(t){return window.requestAnimationFrame(t)},il=function(t){return window.cancelAnimationFrame(t)});var Pi=0,li=new Map;function sl(e){li.delete(e)}var on=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Pi+=1;var n=Pi;function a(o){if(o===0)sl(n),t();else{var i=ol(function(){a(o-1)});li.set(n,i)}}return a(r),n};on.cancel=function(e){var t=li.get(e);return sl(e),il(t)};function ll(e){if(Array.isArray(e))return e}function Mu(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}function cl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W(e,t){return ll(e)||Mu(e,t)||Ys(e,t)||cl()}function sn(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function lt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Fu(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Oi="data-rc-order",Mi="data-rc-priority",Au="rc-util-key",ho=new Map;function ul(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Au}function ma(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Iu(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ci(e){return Array.from((ho.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function dl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!lt())return null;var r=t.csp,n=t.prepend,a=t.priority,o=a===void 0?0:a,i=Iu(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Oi,i),s&&o&&l.setAttribute(Mi,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var c=ma(t),u=c.firstChild;if(n){if(s){var f=(t.styles||ci(c)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Oi)))return!1;var g=Number(v.getAttribute(Mi)||0);return o>=g});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function fl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ma(t);return(t.styles||ci(r)).find(function(n){return n.getAttribute(ul(t))===e})}function ln(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=fl(e,t);if(r){var n=ma(t);n.removeChild(r)}}function ju(e,t){var r=ho.get(e);if(!r||!Fu(document,r)){var n=dl("",t),a=n.parentNode;ho.set(e,a),e.removeChild(n)}}function Xt(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=ma(r),a=ci(n),o=F(F({},r),{},{styles:a});ju(n,o);var i=fl(t,o);if(i){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=dl(e,o);return u.setAttribute(ul(o),t),u}function mo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(o);if(pt(!l,"Warning: There may be circular references"),l)return!1;if(o===i)return!0;if(r&&s>1)return!1;n.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var u=0;u<o.length;u++)if(!a(o[u],i[u],c))return!1;return!0}if(o&&i&&se(o)==="object"&&se(i)==="object"){var f=Object.keys(o);return f.length!==Object.keys(i).length?!1:f.every(function(v){return a(o[v],i[v],c)})}return!1}return a(e,t)}var ku="%";function po(e){return e.join(ku)}var Nu=function(){function e(t){et(this,e),T(this,"instanceId",void 0),T(this,"cache",new Map),this.instanceId=t}return Je(e,[{key:"get",value:function(r){return this.opGet(po(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(po(r),n)}},{key:"opUpdate",value:function(r,n){var a=this.cache.get(r),o=n(a);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e}(),zr="data-token-hash",Ot="data-css-hash",ar="__cssinjs_instance__";function Lu(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ot,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[ar]=a[ar]||e,a[ar]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Ot,"]"))).forEach(function(a){var o=a.getAttribute(Ot);if(n[o]){if(a[ar]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else n[o]=!0})}return new Nu(e)}var pa=d.createContext({hashPriority:"low",cache:Lu(),defaultCache:!0});function _u(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var ui=function(){function e(){et(this,e),T(this,"cache",void 0),T(this,"keys",void 0),T(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Je(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var f=W(c,2),v=f[1];return a.internalGet(u)[1]<v?[u,a.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=W(o,1),s=i[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,u){if(u===r.length-1)l.set(c,{value:[n,a.cacheCallTimes++]});else{var f=l.get(c);f?f.map||(f.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var a=r.get(n[0]);if(n.length===1){var o;return a.map?r.set(n[0],{map:a.map}):r.delete(n[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var i=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!_u(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();T(ui,"MAX_CACHE_SIZE",20);T(ui,"MAX_CACHE_OFFSET",5);var Fi=0,vl=function(){function e(t){et(this,e),T(this,"derivatives",void 0),T(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Fi,t.length===0&&(t.length>0,void 0),Fi+=1}return Je(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),za=new ui;function bo(e){var t=Array.isArray(e)?e:[e];return za.has(t)||za.set(t,new vl(t)),za.get(t)}var zu=new WeakMap,Va={};function Vu(e,t){for(var r=zu,n=0;n<t.length;n+=1){var a=t[n];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(Va)||r.set(Va,e()),r.get(Va)}var Ai=new WeakMap;function tn(e){var t=Ai.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof vl?t+=n.id:n&&se(n)==="object"?t+=tn(n):t+=n}),t=sn(t),Ai.set(e,t)),t}function Ii(e,t){return sn("".concat(t,"_").concat(tn(e)))}var yo=lt();function we(e){return typeof e=="number"?"".concat(e,"px"):e}function oa(e,t,r){var n,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=F(F({},a),{},(n={},T(n,zr,t),T(n,Ot,r),n)),s=Object.keys(i).map(function(l){var c=i[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var Jn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Bu=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var o=W(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},gl=function(t,r,n){var a={},o={};return Object.entries(t).forEach(function(i){var s,l,c=W(i,2),u=c[0],f=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])o[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var v,g=Jn(u,n==null?void 0:n.prefix);a[g]=typeof f=="number"&&!(n!=null&&(v=n.unitless)!==null&&v!==void 0&&v[u])?"".concat(f,"px"):String(f),o[u]="var(".concat(g,")")}}),[o,Bu(a,r,{scope:n==null?void 0:n.scope})]},ji=lt()?d.useLayoutEffect:d.useEffect,Ae=function(t,r){var n=d.useRef(!0);ji(function(){return t(n.current)},r),ji(function(){return n.current=!1,function(){n.current=!0}},[])},ki=function(t,r){Ae(function(n){if(!n)return t()},r)},Hu=F({},fa),Ni=Hu.useInsertionEffect,Du=function(t,r,n){d.useMemo(t,n),Ae(function(){return r(!0)},n)},Wu=Ni?function(e,t,r){return Ni(function(){return e(),t()},r)}:Du,Uu=F({},fa),qu=Uu.useInsertionEffect,Gu=function(t){var r=[],n=!1;function a(o){n||r.push(o)}return d.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(o){return o()})}},t),a},Ku=function(){return function(t){t()}},Xu=typeof qu<"u"?Gu:Ku;function di(e,t,r,n,a){var o=d.useContext(pa),i=o.cache,s=[e].concat(Q(t)),l=po(s),c=Xu([l]),u=function(m){i.opUpdate(l,function(p){var h=p||[void 0,void 0],y=W(h,2),b=y[0],x=b===void 0?0:b,E=y[1],S=E,C=S||r(),w=[x,C];return m?m(w):w})};d.useMemo(function(){u()},[l]);var f=i.opGet(l),v=f[1];return Wu(function(){a==null||a(v)},function(g){return u(function(m){var p=W(m,2),h=p[0],y=p[1];return g&&h===0&&(a==null||a(v)),[h+1,y]}),function(){i.opUpdate(l,function(m){var p=m||[],h=W(p,2),y=h[0],b=y===void 0?0:y,x=h[1],E=b-1;return E===0?(c(function(){(g||!i.opGet(l))&&(n==null||n(x,!1))}),null):[b-1,x]})}},[l]),v}var Qu={},Zu="css",fr=new Map;function Yu(e){fr.set(e,(fr.get(e)||0)+1)}function Ju(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(zr,'="').concat(e,'"]'));r.forEach(function(n){if(n[ar]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var ed=0;function td(e,t){fr.set(e,(fr.get(e)||0)-1);var r=Array.from(fr.keys()),n=r.filter(function(a){var o=fr.get(a)||0;return o<=0});r.length-n.length>ed&&n.forEach(function(a){Ju(a,t),fr.delete(a)})}var rd=function(t,r,n,a){var o=n.getDerivativeToken(t),i=F(F({},o),r);return a&&(i=a(i)),i},hl="token";function nd(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=d.useContext(pa),a=n.cache.instanceId,o=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,c=l===void 0?Qu:l,u=r.formatToken,f=r.getComputedToken,v=r.cssVar,g=Vu(function(){return Object.assign.apply(Object,[{}].concat(Q(t)))},t),m=tn(g),p=tn(c),h=v?tn(v):"",y=di(hl,[s,e.id,m,p,h],function(){var b,x=f?f(g,c,e):rd(g,c,e,u),E=F({},x),S="";if(v){var C=gl(x,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),w=W(C,2);x=w[0],S=w[1]}var M=Ii(x,s);x._tokenKey=M,E._tokenKey=Ii(E,s);var P=(b=v==null?void 0:v.key)!==null&&b!==void 0?b:M;x._themeKey=P,Yu(P);var I="".concat(Zu,"-").concat(sn(M));return x._hashId=I,[x,I,E,S,(v==null?void 0:v.key)||""]},function(b){td(b[0]._themeKey,a)},function(b){var x=W(b,4),E=x[0],S=x[3];if(v&&S){var C=Xt(S,sn("css-variables-".concat(E._themeKey)),{mark:Ot,prepend:"queue",attachTo:o,priority:-999});C[ar]=a,C.setAttribute(zr,E._themeKey)}});return y}var ad=function(t,r,n){var a=W(t,5),o=a[2],i=a[3],s=a[4],l=n||{},c=l.plain;if(!i)return null;var u=o._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=oa(i,s,u,v,c);return[f,u,g]},od={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ml="comm",pl="rule",bl="decl",id="@import",sd="@keyframes",ld="@layer",yl=Math.abs,fi=String.fromCharCode;function xl(e){return e.trim()}function ea(e,t,r){return e.replace(t,r)}function cd(e,t,r){return e.indexOf(t,r)}function cn(e,t){return e.charCodeAt(t)|0}function Vr(e,t,r){return e.slice(t,r)}function Lt(e){return e.length}function ud(e){return e.length}function _n(e,t){return t.push(e),e}var ba=1,Br=1,Sl=0,wt=0,Ve=0,Ur="";function vi(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:ba,column:Br,length:i,return:"",siblings:s}}function dd(){return Ve}function fd(){return Ve=wt>0?cn(Ur,--wt):0,Br--,Ve===10&&(Br=1,ba--),Ve}function Mt(){return Ve=wt<Sl?cn(Ur,wt++):0,Br++,Ve===10&&(Br=1,ba++),Ve}function or(){return cn(Ur,wt)}function ta(){return wt}function ya(e,t){return Vr(Ur,e,t)}function un(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vd(e){return ba=Br=1,Sl=Lt(Ur=e),wt=0,[]}function gd(e){return Ur="",e}function Ba(e){return xl(ya(wt-1,xo(e===91?e+2:e===40?e+1:e)))}function hd(e){for(;(Ve=or())&&Ve<33;)Mt();return un(e)>2||un(Ve)>3?"":" "}function md(e,t){for(;--t&&Mt()&&!(Ve<48||Ve>102||Ve>57&&Ve<65||Ve>70&&Ve<97););return ya(e,ta()+(t<6&&or()==32&&Mt()==32))}function xo(e){for(;Mt();)switch(Ve){case e:return wt;case 34:case 39:e!==34&&e!==39&&xo(Ve);break;case 40:e===41&&xo(e);break;case 92:Mt();break}return wt}function pd(e,t){for(;Mt()&&e+Ve!==57;)if(e+Ve===84&&or()===47)break;return"/*"+ya(t,wt-1)+"*"+fi(e===47?e:Mt())}function bd(e){for(;!un(or());)Mt();return ya(e,wt)}function yd(e){return gd(ra("",null,null,null,[""],e=vd(e),0,[0],e))}function ra(e,t,r,n,a,o,i,s,l){for(var c=0,u=0,f=i,v=0,g=0,m=0,p=1,h=1,y=1,b=0,x="",E=a,S=o,C=n,w=x;h;)switch(m=b,b=Mt()){case 40:if(m!=108&&cn(w,f-1)==58){cd(w+=ea(Ba(b),"&","&\f"),"&\f",yl(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=Ba(b);break;case 9:case 10:case 13:case 32:w+=hd(m);break;case 92:w+=md(ta()-1,7);continue;case 47:switch(or()){case 42:case 47:_n(xd(pd(Mt(),ta()),t,r,l),l),(un(m||1)==5||un(or()||1)==5)&&Lt(w)&&Vr(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*p:s[c++]=Lt(w)*y;case 125*p:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:y==-1&&(w=ea(w,/\f/g,"")),g>0&&(Lt(w)-f||p===0&&m===47)&&_n(g>32?_i(w+";",n,r,f-1,l):_i(ea(w," ","")+";",n,r,f-2,l),l);break;case 59:w+=";";default:if(_n(C=Li(w,t,r,c,u,a,s,x,E=[],S=[],f,o),o),b===123)if(u===0)ra(w,t,C,C,E,o,f,s,S);else switch(v===99&&cn(w,3)===110?100:v){case 100:case 108:case 109:case 115:ra(e,C,C,n&&_n(Li(e,C,C,0,0,a,s,x,a,E=[],f,S),S),a,S,f,s,n?E:S);break;default:ra(w,C,C,C,[""],S,0,s,S)}}c=u=g=0,p=y=1,x=w="",f=i;break;case 58:f=1+Lt(w),g=m;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&fd()==125)continue}switch(w+=fi(b),b*p){case 38:y=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Lt(w)-1)*y,y=1;break;case 64:or()===45&&(w+=Ba(Mt())),v=or(),u=f=Lt(x=w+=bd(ta())),b++;break;case 45:m===45&&Lt(w)==2&&(p=0)}}return o}function Li(e,t,r,n,a,o,i,s,l,c,u,f){for(var v=a-1,g=a===0?o:[""],m=ud(g),p=0,h=0,y=0;p<n;++p)for(var b=0,x=Vr(e,v+1,v=yl(h=i[p])),E=e;b<m;++b)(E=xl(h>0?g[b]+" "+x:ea(x,/&\f/g,g[b])))&&(l[y++]=E);return vi(e,t,r,a===0?pl:s,l,c,u,f)}function xd(e,t,r,n){return vi(e,t,r,ml,fi(dd()),Vr(e,2,-2),0,n)}function _i(e,t,r,n,a){return vi(e,t,r,bl,Vr(e,0,n),Vr(e,n+1,-1),n,a)}function So(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Sd(e,t,r,n){switch(e.type){case ld:if(e.children.length)break;case id:case bl:return e.return=e.return||e.value;case ml:return"";case sd:return e.return=e.value+"{"+So(e.children,n)+"}";case pl:if(!Lt(e.value=e.props.join(",")))return""}return Lt(r=So(e.children,n))?e.return=e.value+"{"+r+"}":""}var zi="data-ant-cssinjs-cache-path",Cl="_FILE_STYLE__",hr,wl=!0;function Cd(){if(!hr&&(hr={},lt())){var e=document.createElement("div");e.className=zi,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var o=a.split(":"),i=W(o,2),s=i[0],l=i[1];hr[s]=l});var r=document.querySelector("style[".concat(zi,"]"));if(r){var n;wl=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function wd(e){return Cd(),!!hr[e]}function Ed(e){var t=hr[e],r=null;if(t&<())if(wl)r=Cl;else{var n=document.querySelector("style[".concat(Ot,'="').concat(hr[e],'"]'));n?r=n.innerHTML:delete hr[e]}return[r,t]}var $d="_skip_check_",El="_multi_value_";function na(e){var t=So(yd(e),Sd);return t.replace(/\{%%%\:[^;];}/g,";")}function Rd(e){return se(e)==="object"&&e&&($d in e||El in e)}function Vi(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(a).concat(c.slice(u.length)),[c].concat(Q(l.slice(1))).join(" ")});return o.join(",")}var Td=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,o=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer;r.path;var c=r.hashPriority,u=r.transformers,f=u===void 0?[]:u;r.linters;var v="",g={};function m(y){var b=y.getName(s);if(!g[b]){var x=e(y.style,r,{root:!1,parentSelectors:i}),E=W(x,1),S=E[0];g[b]="@keyframes ".concat(y.getName(s)).concat(S)}}function p(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(x){Array.isArray(x)?p(x,b):x&&b.push(x)}),b}var h=p(Array.isArray(t)?t:[t]);return h.forEach(function(y){var b=typeof y=="string"&&!a?{}:y;if(typeof b=="string")v+="".concat(b,`
|
|
3
|
+
`);else if(b._keyframe)m(b);else{var x=f.reduce(function(E,S){var C;return(S==null||(C=S.visit)===null||C===void 0?void 0:C.call(S,E))||E},b);Object.keys(x).forEach(function(E){var S=x[E];if(se(S)==="object"&&S&&(E!=="animationName"||!S._keyframe)&&!Rd(S)){var C=!1,w=E.trim(),M=!1;(a||o)&&s?w.startsWith("@")?C=!0:w==="&"?w=Vi("",s,c):w=Vi(E,s,c):a&&!s&&(w==="&"||w==="")&&(w="",M=!0);var P=e(S,r,{root:M,injectHash:C,parentSelectors:[].concat(Q(i),[w])}),I=W(P,2),N=I[0],L=I[1];g=F(F({},g),L),v+="".concat(w).concat(N)}else{let z=function(R,$){var O=R.replace(/[A-Z]/g,function(_){return"-".concat(_.toLowerCase())}),j=$;!od[R]&&typeof j=="number"&&j!==0&&(j="".concat(j,"px")),R==="animationName"&&$!==null&&$!==void 0&&$._keyframe&&(m($),j=$.getName(s)),v+="".concat(O,":").concat(j,";")};var k,A=(k=S==null?void 0:S.value)!==null&&k!==void 0?k:S;se(S)==="object"&&S!==null&&S!==void 0&&S[El]&&Array.isArray(A)?A.forEach(function(R){z(E,R)}):z(E,A)}})}}),a?l&&(v&&(v="@layer ".concat(l.name," {").concat(v,"}")),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(l.name,";")}).join(`
|
|
4
|
+
`))):v="{".concat(v,"}"),[v,g]};function $l(e,t){return sn("".concat(e.join("%")).concat(t))}function Pd(){return null}var Rl="style";function Co(e,t){var r=e.token,n=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(pa),f=u.autoClear;u.mock;var v=u.defaultCache,g=u.hashPriority,m=u.container,p=u.ssrInline,h=u.transformers,y=u.linters,b=u.cache,x=u.layer,E=r._tokenKey,S=[E];x&&S.push("layer"),S.push.apply(S,Q(n));var C=yo,w=di(Rl,S,function(){var L=S.join("|");if(wd(L)){var k=Ed(L),A=W(k,2),z=A[0],R=A[1];if(z)return[z,E,R,{},s,c]}var $=t(),O=Td($,{hashId:a,hashPriority:g,layer:x?o:void 0,path:n.join("-"),transformers:h,linters:y}),j=W(O,2),_=j[0],V=j[1],D=na(_),U=$l(S,D);return[D,E,U,V,s,c]},function(L,k){var A=W(L,3),z=A[2];(k||f)&&yo&&ln(z,{mark:Ot})},function(L){var k=W(L,4),A=k[0];k[1];var z=k[2],R=k[3];if(C&&A!==Cl){var $={mark:Ot,prepend:x?!1:"queue",attachTo:m,priority:c},O=typeof i=="function"?i():i;O&&($.csp={nonce:O});var j=[],_=[];Object.keys(R).forEach(function(D){D.startsWith("@layer")?j.push(D):_.push(D)}),j.forEach(function(D){Xt(na(R[D]),"_layer-".concat(D),F(F({},$),{},{prepend:!0}))});var V=Xt(A,z,$);V[ar]=b.instanceId,V.setAttribute(zr,E),_.forEach(function(D){Xt(na(R[D]),"_effect-".concat(D),$)})}}),M=W(w,3),P=M[0],I=M[1],N=M[2];return function(L){var k;if(!p||C||!v)k=d.createElement(Pd,null);else{var A;k=d.createElement("style",We({},(A={},T(A,zr,I),T(A,Ot,N),A),{dangerouslySetInnerHTML:{__html:P}}))}return d.createElement(d.Fragment,null,k,L)}}var Od=function(t,r,n){var a=W(t,6),o=a[0],i=a[1],s=a[2],l=a[3],c=a[4],u=a[5],f=n||{},v=f.plain;if(c)return null;var g=o,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return g=oa(o,i,s,m,v),l&&Object.keys(l).forEach(function(p){if(!r[p]){r[p]=!0;var h=na(l[p]),y=oa(h,i,"_effect-".concat(p),m,v);p.startsWith("@layer")?g=y+g:g+=y}}),[u,s,g]},Tl="cssVar",Md=function(t,r){var n=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(pa),f=u.cache.instanceId,v=u.container,g=s._tokenKey,m=[].concat(Q(t.path),[n,c,g]),p=di(Tl,m,function(){var h=r(),y=gl(h,n,{prefix:a,unitless:o,ignore:i,scope:c}),b=W(y,2),x=b[0],E=b[1],S=$l(m,E);return[x,E,S,n]},function(h){var y=W(h,3),b=y[2];yo&&ln(b,{mark:Ot})},function(h){var y=W(h,3),b=y[1],x=y[2];if(b){var E=Xt(b,x,{mark:Ot,prepend:"queue",attachTo:v,priority:-999});E[ar]=f,E.setAttribute(zr,n)}});return p},Fd=function(t,r,n){var a=W(t,4),o=a[1],i=a[2],s=a[3],l=n||{},c=l.plain;if(!o)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},v=oa(o,s,i,f,c);return[u,i,v]},Zr;Zr={},T(Zr,Rl,Od),T(Zr,hl,ad),T(Zr,Tl,Fd);var Et=function(){function e(t,r){et(this,e),T(this,"name",void 0),T(this,"style",void 0),T(this,"_keyframe",!0),this.name=t,this.style=r}return Je(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function Tr(e){return e.notSplit=!0,e}Tr(["borderTop","borderBottom"]),Tr(["borderTop"]),Tr(["borderBottom"]),Tr(["borderLeft","borderRight"]),Tr(["borderLeft"]),Tr(["borderRight"]);var gi=d.createContext({});function Ad(e){return ll(e)||ru(e)||Ys(e)||cl()}function _t(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function Pl(e,t,r,n){if(!t.length)return r;var a=Ad(t),o=a[0],i=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=Q(e):s=F({},e),n&&r===void 0&&i.length===1?delete s[o][i[0]]:s[o]=Pl(s[o],i,r,n),s}function Tt(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!_t(e,t.slice(0,-1))?e:Pl(e,t,r,n)}function Id(e){return se(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Bi(e){return Array.isArray(e)?[]:{}}var jd=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function jr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Bi(t[0]);return t.forEach(function(a){function o(i,s){var l=new Set(s),c=_t(a,i),u=Array.isArray(c);if(u||Id(c)){if(!l.has(c)){l.add(c);var f=_t(n,i);u?n=Tt(n,i,[]):(!f||se(f)!=="object")&&(n=Tt(n,i,Bi(c))),jd(c).forEach(function(v){o([].concat(Q(i),[v]),l)})}}else n=Tt(n,i,c)}o([])}),n}function kd(){}const Nd=d.createContext({}),Ol=()=>{const e=()=>{};return e.deprecated=kd,e},Ld=d.createContext(void 0);var _d={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},zd={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Vd=F(F({},zd),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Ml={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Hi={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Vd),timePickerLocale:Object.assign({},Ml)},dt="${label} is not a valid ${type}",Hr={locale:"en",Pagination:_d,DatePicker:Hi,TimePicker:Ml,Calendar:Hi,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:dt,method:dt,array:dt,object:dt,number:dt,date:dt,boolean:dt,integer:dt,float:dt,regexp:dt,email:dt,url:dt,hex:dt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Hr.Modal);let aa=[];const Di=()=>aa.reduce((e,t)=>Object.assign(Object.assign({},e),t),Hr.Modal);function Bd(e){if(e){const t=Object.assign({},e);return aa.push(t),Di(),()=>{aa=aa.filter(r=>r!==t),Di()}}Object.assign({},Hr.Modal)}const hi=d.createContext(void 0),Hd=(e,t)=>{const r=d.useContext(hi),n=d.useMemo(()=>{var o;const i=Hr[e],s=(o=r==null?void 0:r[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,r]),a=d.useMemo(()=>{const o=r==null?void 0:r.locale;return r!=null&&r.exist&&!o?Hr.locale:o},[r]);return[n,a]},Dd="internalMark",Wd=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;d.useEffect(()=>Bd(t==null?void 0:t.Modal),[t]);const a=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(hi.Provider,{value:a},r)};function Ke(e,t){Ud(e)&&(e="100%");var r=qd(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function zn(e){return Math.min(1,Math.max(0,e))}function Ud(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function qd(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Fl(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Vn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function vr(e){return e.length===1?"0"+e:String(e)}function Gd(e,t,r){return{r:Ke(e,255)*255,g:Ke(t,255)*255,b:Ke(r,255)*255}}function Wi(e,t,r){e=Ke(e,255),t=Ke(t,255),r=Ke(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=0,s=(n+a)/2;if(n===a)i=0,o=0;else{var l=n-a;switch(i=s>.5?l/(2-n-a):l/(n+a),n){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4;break}o/=6}return{h:o,s:i,l:s}}function Ha(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Kd(e,t,r){var n,a,o;if(e=Ke(e,360),t=Ke(t,100),r=Ke(r,100),t===0)a=r,o=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=Ha(s,i,e+1/3),a=Ha(s,i,e),o=Ha(s,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function wo(e,t,r){e=Ke(e,255),t=Ke(t,255),r=Ke(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=n,s=n-a,l=n===0?0:s/n;if(n===a)o=0;else{switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:i}}function Xd(e,t,r){e=Ke(e,360)*6,t=Ke(t,100),r=Ke(r,100);var n=Math.floor(e),a=e-n,o=r*(1-t),i=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,c=[r,i,o,o,s,r][l],u=[s,r,r,i,o,o][l],f=[o,o,s,r,r,i][l];return{r:c*255,g:u*255,b:f*255}}function Eo(e,t,r,n){var a=[vr(Math.round(e).toString(16)),vr(Math.round(t).toString(16)),vr(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Qd(e,t,r,n,a){var o=[vr(Math.round(e).toString(16)),vr(Math.round(t).toString(16)),vr(Math.round(r).toString(16)),vr(Zd(n))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Zd(e){return Math.round(parseFloat(e)*255).toString(16)}function Ui(e){return gt(e)/255}function gt(e){return parseInt(e,16)}function Yd(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var $o={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ir(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=tf(e)),typeof e=="object"&&(Kt(e.r)&&Kt(e.g)&&Kt(e.b)?(t=Gd(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Kt(e.h)&&Kt(e.s)&&Kt(e.v)?(n=Vn(e.s),a=Vn(e.v),t=Xd(e.h,n,a),i=!0,s="hsv"):Kt(e.h)&&Kt(e.s)&&Kt(e.l)&&(n=Vn(e.s),o=Vn(e.l),t=Kd(e.h,n,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Fl(r),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var Jd="[-\\+]?\\d+%?",ef="[-\\+]?\\d*\\.\\d+%?",ir="(?:".concat(ef,")|(?:").concat(Jd,")"),Da="[\\s|\\(]+(".concat(ir,")[,|\\s]+(").concat(ir,")[,|\\s]+(").concat(ir,")\\s*\\)?"),Wa="[\\s|\\(]+(".concat(ir,")[,|\\s]+(").concat(ir,")[,|\\s]+(").concat(ir,")[,|\\s]+(").concat(ir,")\\s*\\)?"),Rt={CSS_UNIT:new RegExp(ir),rgb:new RegExp("rgb"+Da),rgba:new RegExp("rgba"+Wa),hsl:new RegExp("hsl"+Da),hsla:new RegExp("hsla"+Wa),hsv:new RegExp("hsv"+Da),hsva:new RegExp("hsva"+Wa),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function tf(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if($o[e])e=$o[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Rt.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Rt.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Rt.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Rt.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Rt.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Rt.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Rt.hex8.exec(e),r?{r:gt(r[1]),g:gt(r[2]),b:gt(r[3]),a:Ui(r[4]),format:t?"name":"hex8"}:(r=Rt.hex6.exec(e),r?{r:gt(r[1]),g:gt(r[2]),b:gt(r[3]),format:t?"name":"hex"}:(r=Rt.hex4.exec(e),r?{r:gt(r[1]+r[1]),g:gt(r[2]+r[2]),b:gt(r[3]+r[3]),a:Ui(r[4]+r[4]),format:t?"name":"hex8"}:(r=Rt.hex3.exec(e),r?{r:gt(r[1]+r[1]),g:gt(r[2]+r[2]),b:gt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Kt(e){return!!Rt.CSS_UNIT.exec(String(e))}var at=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=Yd(t)),this.originalInput=t;var a=Ir(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Fl(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=wo(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=wo(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Wi(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Wi(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Eo(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Qd(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Ke(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Ke(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Eo(this.r,this.g,this.b,!1),r=0,n=Object.entries($o);r<n.length;r++){var a=n[r],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,o=!r&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=zn(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=zn(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=zn(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=zn(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),o=r/100,i={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return new e(i)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,o=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(new e({h:n,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(n+i*o)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Bn=2,qi=.16,rf=.05,nf=.05,af=.15,Al=5,Il=4,of=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Gi(e){var t=e.r,r=e.g,n=e.b,a=wo(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function Hn(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Eo(t,r,n,!1))}function sf(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function Ki(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Bn*t:Math.round(e.h)+Bn*t:n=r?Math.round(e.h)+Bn*t:Math.round(e.h)-Bn*t,n<0?n+=360:n>=360&&(n-=360),n}function Xi(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-qi*t:t===Il?n=e.s+qi:n=e.s+rf*t,n>1&&(n=1),r&&t===Al&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Qi(e,t,r){var n;return r?n=e.v+nf*t:n=e.v-af*t,n>1&&(n=1),Number(n.toFixed(2))}function dn(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Ir(e),a=Al;a>0;a-=1){var o=Gi(n),i=Hn(Ir({h:Ki(o,a,!0),s:Xi(o,a,!0),v:Qi(o,a,!0)}));r.push(i)}r.push(Hn(n));for(var s=1;s<=Il;s+=1){var l=Gi(n),c=Hn(Ir({h:Ki(l,s),s:Xi(l,s),v:Qi(l,s)}));r.push(c)}return t.theme==="dark"?of.map(function(u){var f=u.index,v=u.opacity,g=Hn(sf(Ir(t.backgroundColor||"#141414"),Ir(r[f]),v*100));return g}):r}var Ua={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Ro=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ro.primary=Ro[5];var To=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];To.primary=To[5];var Po=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Po.primary=Po[5];var ia=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ia.primary=ia[5];var Oo=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Oo.primary=Oo[5];var Mo=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Mo.primary=Mo[5];var Fo=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Fo.primary=Fo[5];var Ao=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ao.primary=Ao[5];var sa=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];sa.primary=sa[5];var Io=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Io.primary=Io[5];var jo=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];jo.primary=jo[5];var ko=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ko.primary=ko[5];var No=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];No.primary=No[5];var qa={red:Ro,volcano:To,orange:Po,gold:ia,yellow:Oo,lime:Mo,green:Fo,cyan:Ao,blue:sa,geekblue:Io,purple:jo,magenta:ko,grey:No};const jl={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},fn=Object.assign(Object.assign({},jl),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
5
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
6
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function lf(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=r(l),v=r(a),g=r(o),m=r(i),p=r(s),h=n(c,u),y=e.colorLink||e.colorInfo,b=r(y),x=new at(m[1]).mix(new at(m[3]),50).toHexString();return Object.assign(Object.assign({},h),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:x,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new at("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const cf=e=>{let t=e,r=e,n=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:a}};function uf(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:a+1},cf(n))}const df=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ff(e){return(e+8)/e}function vf(e){const t=new Array(10).fill(null).map((r,n)=>{const a=n-1,o=e*Math.pow(Math.E,a/5),i=n>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:ff(r)}))}const gf=e=>{const t=vf(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),a=r[1],o=r[0],i=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*a),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function hf(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const xt=(e,t)=>new at(e).setAlpha(t).toRgbString(),Yr=(e,t)=>new at(e).darken(t).toHexString(),mf=e=>{const t=dn(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},pf=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:xt(n,.88),colorTextSecondary:xt(n,.65),colorTextTertiary:xt(n,.45),colorTextQuaternary:xt(n,.25),colorFill:xt(n,.15),colorFillSecondary:xt(n,.06),colorFillTertiary:xt(n,.04),colorFillQuaternary:xt(n,.02),colorBgSolid:xt(n,1),colorBgSolidHover:xt(n,.75),colorBgSolidActive:xt(n,.95),colorBgLayout:Yr(r,4),colorBgContainer:Yr(r,0),colorBgElevated:Yr(r,0),colorBgSpotlight:xt(n,.85),colorBgBlur:"transparent",colorBorder:Yr(r,15),colorBorderSecondary:Yr(r,6)}};function bf(e){Ua.pink=Ua.magenta,qa.pink=qa.magenta;const t=Object.keys(jl).map(r=>{const n=e[r]===Ua[r]?qa[r]:dn(e[r]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${r}-${i+1}`]=n[i],a[`${r}${i+1}`]=n[i],a),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),lf(e,{generateColorPalettes:mf,generateNeutralColorPalettes:pf})),gf(e.fontSize)),hf(e)),df(e)),uf(e))}const kl=bo(bf),Lo={token:fn,override:{override:fn},hashed:!0},Nl=ne.createContext(Lo),_o="ant",Ll="anticon",yf=["outlined","borderless","filled"],xf=(e,t)=>t||(e?`${_o}-${e}`:_o),Ft=d.createContext({getPrefixCls:xf,iconPrefixCls:Ll}),Sf=`-ant-${Date.now()}-${Math.random()}`;function Cf(e,t){const r={},n=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},a=(i,s)=>{const l=new at(i),c=dn(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new at(t.primaryColor),s=dn(i.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(i,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(i,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(i,c=>c.setAlpha(c.getAlpha()*.12));const l=new at(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setAlpha(c.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
|
|
7
|
+
:root {
|
|
8
|
+
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
9
|
+
`)}
|
|
10
|
+
}
|
|
11
|
+
`.trim()}function wf(e,t){const r=Cf(e,t);lt()&&Xt(r,`${Sf}-dynamic-theme`)}const la=d.createContext(!1),Ef=e=>{let{children:t,disabled:r}=e;const n=d.useContext(la);return d.createElement(la.Provider,{value:r??n},t)},Dr=d.createContext(void 0),$f=e=>{let{children:t,size:r}=e;const n=d.useContext(Dr);return d.createElement(Dr.Provider,{value:r||n},t)};function Rf(){const e=d.useContext(la),t=d.useContext(Dr);return{componentDisabled:e,componentSize:t}}var _l=Je(function e(){et(this,e)}),zl="CALC_UNIT",Tf=new RegExp(zl,"g");function Ga(e){return typeof e=="number"?"".concat(e).concat(zl):e}var Pf=function(e){mr(r,e);var t=pr(r);function r(n,a){var o;et(this,r),o=t.call(this),T(ce(o),"result",""),T(ce(o),"unitlessCssVar",void 0),T(ce(o),"lowPriority",void 0);var i=se(n);return o.unitlessCssVar=a,n instanceof r?o.result="(".concat(n.result,")"):i==="number"?o.result=Ga(n):i==="string"&&(o.result=n),o}return Je(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(Ga(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(Ga(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(Tf,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(_l),Of=function(e){mr(r,e);var t=pr(r);function r(n){var a;return et(this,r),a=t.call(this),T(ce(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return Je(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}(_l),Mf=function(t,r){var n=t==="css"?Pf:Of;return function(a){return new n(a,r)}},Zi=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function ht(e){var t=d.useRef();t.current=e;var r=d.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}function vn(e){var t=d.useRef(!1),r=d.useState(e),n=W(r,2),a=n[0],o=n[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||o(s)}return[a,i]}function Ka(e){return e!==void 0}function gn(e,t){var r=t||{},n=r.defaultValue,a=r.value,o=r.onChange,i=r.postState,s=vn(function(){return Ka(a)?a:Ka(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=W(s,2),c=l[0],u=l[1],f=a!==void 0?a:c,v=i?i(f):f,g=ht(o),m=vn([f]),p=W(m,2),h=p[0],y=p[1];ki(function(){var x=h[0];c!==x&&g(c,x)},[h]),ki(function(){Ka(a)||u(a)},[a]);var b=ht(function(x,E){u(x,E),y([f],E)});return[v,b]}function Yi(e,t,r,n){var a=F({},t[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(s){var l=W(s,2),c=l[0],u=l[1];if(a!=null&&a[c]||a!=null&&a[u]){var f;(f=a[u])!==null&&f!==void 0||(a[u]=a==null?void 0:a[c])}})}var i=F(F({},r),a);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Vl=typeof CSSINJS_STATISTIC<"u",zo=!0;function br(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Vl)return Object.assign.apply(Object,[{}].concat(t));zo=!1;var n={};return t.forEach(function(a){if(se(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),zo=!0,n}var Ji={};function Ff(){}var Af=function(t){var r,n=t,a=Ff;return Vl&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){if(zo){var l;(l=r)===null||l===void 0||l.add(s)}return i[s]}}),a=function(i,s){var l;Ji[i]={global:Array.from(r),component:F(F({},(l=Ji[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:a}};function es(e,t,r){if(typeof r=="function"){var n;return r(br(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function If(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"max(".concat(n.map(function(o){return we(o)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"min(".concat(n.map(function(o){return we(o)}).join(","),")")}}}var jf=1e3*60*10,kf=function(){function e(){et(this,e),T(this,"map",new Map),T(this,"objectIDMap",new WeakMap),T(this,"nextID",0),T(this,"lastAccessBeat",new Map),T(this,"accessBeat",0)}return Je(e,[{key:"set",value:function(r,n){this.clear();var a=this.getCompositeKey(r);this.map.set(a,n),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),a=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(r){var n=this,a=r.map(function(o){return o&&se(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(se(o),"_").concat(o)});return a.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,o){n-a>jf&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),ts=new kf;function Nf(e,t){return ne.useMemo(function(){var r=ts.get(t);if(r)return r;var n=e();return ts.set(t,n),n},t)}var Lf=function(){return{}};function _f(e){var t=e.useCSP,r=t===void 0?Lf:t,n=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(v,g,m,p){var h=Array.isArray(v)?v[0]:v;function y(M){return"".concat(String(h)).concat(M.slice(0,1).toUpperCase()).concat(M.slice(1))}var b=(p==null?void 0:p.unitless)||{},x=typeof s=="function"?s(v):{},E=F(F({},x),{},T({},y("zIndexPopup"),!0));Object.keys(b).forEach(function(M){E[y(M)]=b[M]});var S=F(F({},p),{},{unitless:E,prefixToken:y}),C=u(v,g,m,S),w=c(h,m,S);return function(M){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,I=C(M,P),N=W(I,2),L=N[1],k=w(P),A=W(k,2),z=A[0],R=A[1];return[z,L,R]}}function c(v,g,m){var p=m.unitless,h=m.injectStyle,y=h===void 0?!0:h,b=m.prefixToken,x=m.ignore,E=function(w){var M=w.rootCls,P=w.cssVar,I=P===void 0?{}:P,N=n(),L=N.realToken;return Md({path:[v],prefix:I.prefix,key:I.key,unitless:p,ignore:x,token:L,scope:M},function(){var k=es(v,L,g),A=Yi(v,L,k,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(k).forEach(function(z){A[b(z)]=A[z],delete A[z]}),A}),null},S=function(w){var M=n(),P=M.cssVar;return[function(I){return y&&P?ne.createElement(ne.Fragment,null,ne.createElement(E,{rootCls:w,cssVar:P,component:v}),I):I},P==null?void 0:P.key]};return S}function u(v,g,m){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(v)?v:[v,v],y=W(h,1),b=y[0],x=h.join("-"),E=e.layer||{name:"antd"};return function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,w=n(),M=w.theme,P=w.realToken,I=w.hashId,N=w.token,L=w.cssVar,k=a(),A=k.rootPrefixCls,z=k.iconPrefixCls,R=r(),$=L?"css":"js",O=Nf(function(){var B=new Set;return L&&Object.keys(p.unitless||{}).forEach(function(K){B.add(Jn(K,L.prefix)),B.add(Jn(K,Zi(b,L.prefix)))}),Mf($,B)},[$,b,L==null?void 0:L.prefix]),j=If($),_=j.max,V=j.min,D={theme:M,token:N,hashId:I,nonce:function(){return R.nonce},clientOnly:p.clientOnly,layer:E,order:p.order||-999};typeof o=="function"&&Co(F(F({},D),{},{clientOnly:!1,path:["Shared",A]}),function(){return o(N,{prefix:{rootPrefixCls:A,iconPrefixCls:z},csp:R})});var U=Co(F(F({},D),{},{path:[x,S,z]}),function(){if(p.injectStyle===!1)return[];var B=Af(N),K=B.token,oe=B.flush,ie=es(b,P,m),Ee=".".concat(S),me=Yi(b,P,ie,{deprecatedTokens:p.deprecatedTokens});L&&ie&&se(ie)==="object"&&Object.keys(ie).forEach(function(ve){ie[ve]="var(".concat(Jn(ve,Zi(b,L.prefix)),")")});var pe=br(K,{componentCls:Ee,prefixCls:S,iconCls:".".concat(z),antCls:".".concat(A),calc:O,max:_,min:V},L?ie:me),be=g(pe,{hashId:I,prefixCls:S,rootPrefixCls:A,iconPrefixCls:z});oe(b,me);var te=typeof i=="function"?i(pe,S,C,p.resetFont):null;return[p.resetStyle===!1?null:te,be]});return[U,I]}}function f(v,g,m){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=u(v,g,m,F({resetStyle:!1,order:-998},p)),y=function(x){var E=x.prefixCls,S=x.rootCls,C=S===void 0?E:S;return h(E,C),null};return y}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const ca=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],zf="5.22.2";function Xa(e){return e>=0&&e<=255}function Dn(e,t){const{r,g:n,b:a,a:o}=new at(e).toRgb();if(o<1)return e;const{r:i,g:s,b:l}=new at(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-i*(1-c))/c),f=Math.round((n-s*(1-c))/c),v=Math.round((a-l*(1-c))/c);if(Xa(u)&&Xa(f)&&Xa(v))return new at({r:u,g:f,b:v,a:Math.round(c*100)/100}).toRgbString()}return new at({r,g:n,b:a,a:1}).toRgbString()}var Vf=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Bl(e){const{override:t}=e,r=Vf(e,["override"]),n=Object.assign({},t);Object.keys(fn).forEach(v=>{delete n[v]});const a=Object.assign(Object.assign({},r),n),o=480,i=576,s=768,l=992,c=1200,u=1600;if(a.motion===!1){const v="0s";a.motionDurationFast=v,a.motionDurationMid=v,a.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Dn(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Dn(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Dn(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Dn(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
|
|
12
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
13
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
14
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
15
|
+
`,boxShadowSecondary:`
|
|
16
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
17
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
18
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
19
|
+
`,boxShadowTertiary:`
|
|
20
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
21
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
22
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
23
|
+
`,screenXS:o,screenXSMin:o,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
24
|
+
0 1px 2px -2px ${new at("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
25
|
+
0 3px 6px 0 ${new at("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
26
|
+
0 5px 12px 4px ${new at("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
27
|
+
`,boxShadowDrawerRight:`
|
|
28
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
29
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
30
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
31
|
+
`,boxShadowDrawerLeft:`
|
|
32
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
33
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
34
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
35
|
+
`,boxShadowDrawerUp:`
|
|
36
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
37
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
38
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
39
|
+
`,boxShadowDrawerDown:`
|
|
40
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
41
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
42
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
43
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var rs=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Hl={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Bf={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Hf={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Dl=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a}=t,o=rs(t,["override"]);let i=Object.assign(Object.assign({},n),{override:a});return i=Bl(i),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=rs(c,["theme"]);let v=f;u&&(v=Dl(Object.assign(Object.assign({},i),f),{override:f},u)),i[l]=v}),i};function qr(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=ne.useContext(Nl),o=`${zf}-${t||""}`,i=r||kl,[s,l,c]=nd(i,[fn,e],{salt:o,override:n,getComputedToken:Dl,formatToken:Bl,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:Hl,ignore:Bf,preserve:Hf}});return[i,c,t?l:"",s,a]}const mi=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Df=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Wf=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Uf=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),qf=(e,t,r,n)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},Gf=e=>({outline:`${we(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Kf=e=>({"&:focus-visible":Object.assign({},Gf(e))}),Wl=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Kf(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Ul=(e,t)=>{const[r,n]=qr();return Co({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},Df()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:pi,genComponentStyleHook:ob,genSubStyleComponent:ib}=_f({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(Ft);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=qr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=d.useContext(Ft);return Ul(t,e),e??{}},getResetStyles:e=>[{"&":Uf(e)}],getCommonStyle:qf,getCompUnitless:()=>Hl});function Xf(e,t){return ca.reduce((r,n)=>{const a=e[`${n}1`],o=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const Qf=Object.assign({},fa),{useId:ns}=Qf,Zf=()=>"",Yf=typeof ns>"u"?Zf:ns;function Jf(e,t,r){var n;Ol();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},Lo),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:Lo.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=Yf();return ai(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(v=>{c[v]=Object.assign(Object.assign({},c[v]),e.components[v])});const u=`css-var-${i.replace(/:/g,"")}`,f=((s=a.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((l=a.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:c,cssVar:f})},[a,o],(s,l)=>s.some((c,u)=>{const f=l[u];return!mo(c,f,!0)}))}var ev=["children"],ql=d.createContext({});function tv(e){var t=e.children,r=bt(e,ev);return d.createElement(ql.Provider,{value:r},t)}var rv=function(e){mr(r,e);var t=pr(r);function r(){return et(this,r),t.apply(this,arguments)}return Je(r,[{key:"render",value:function(){return this.props.children}}]),r}(d.Component);function nv(e){var t=d.useReducer(function(s){return s+1},0),r=W(t,2),n=r[1],a=d.useRef(e),o=ht(function(){return a.current}),i=ht(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[o,i]}var rr="none",Wn="appear",Un="enter",qn="leave",as="none",Pt="prepare",kr="start",Nr="active",bi="end",Gl="prepared";function os(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function av(e,t){var r={animationend:os("Animation","AnimationEnd"),transitionend:os("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var ov=av(lt(),typeof window<"u"?window:{}),Kl={};if(lt()){var iv=document.createElement("div");Kl=iv.style}var Gn={};function Xl(e){if(Gn[e])return Gn[e];var t=ov[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var o=r[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Kl)return Gn[e]=t[o],Gn[e]}return""}var Ql=Xl("animationend"),Zl=Xl("transitionend"),Yl=!!(Ql&&Zl),is=Ql||"animationend",ss=Zl||"transitionend";function ls(e,t){if(!e)return null;if(se(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const sv=function(e){var t=d.useRef();function r(a){a&&(a.removeEventListener(ss,e),a.removeEventListener(is,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(ss,e),a.addEventListener(is,e),t.current=a)}return d.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var Jl=lt()?d.useLayoutEffect:d.useEffect;const lv=function(){var e=d.useRef(null);function t(){on.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=on(function(){a<=1?n({isCanceled:function(){return o!==e.current}}):r(n,a-1)});e.current=o}return d.useEffect(function(){return function(){t()}},[]),[r,t]};var cv=[Pt,kr,Nr,bi],uv=[Pt,Gl],ec=!1,dv=!0;function tc(e){return e===Nr||e===bi}const fv=function(e,t,r){var n=vn(as),a=W(n,2),o=a[0],i=a[1],s=lv(),l=W(s,2),c=l[0],u=l[1];function f(){i(Pt,!0)}var v=t?uv:cv;return Jl(function(){if(o!==as&&o!==bi){var g=v.indexOf(o),m=v[g+1],p=r(o);p===ec?i(m,!0):m&&c(function(h){function y(){h.isCanceled()||i(m,!0)}p===!0?y():Promise.resolve(p).then(y)})}},[e,o]),d.useEffect(function(){return function(){u()}},[]),[f,o]};function vv(e,t,r,n){var a=n.motionEnter,o=a===void 0?!0:a,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,f=n.motionLeaveImmediately,v=n.onAppearPrepare,g=n.onEnterPrepare,m=n.onLeavePrepare,p=n.onAppearStart,h=n.onEnterStart,y=n.onLeaveStart,b=n.onAppearActive,x=n.onEnterActive,E=n.onLeaveActive,S=n.onAppearEnd,C=n.onEnterEnd,w=n.onLeaveEnd,M=n.onVisibleChanged,P=vn(),I=W(P,2),N=I[0],L=I[1],k=nv(rr),A=W(k,2),z=A[0],R=A[1],$=vn(null),O=W($,2),j=O[0],_=O[1],V=z(),D=d.useRef(!1),U=d.useRef(null);function B(){return r()}var K=d.useRef(!1);function oe(){R(rr),_(null,!0)}var ie=ht(function(xe){var ae=z();if(ae!==rr){var Ie=B();if(!(xe&&!xe.deadline&&xe.target!==Ie)){var X=K.current,Fe;ae===Wn&&X?Fe=S==null?void 0:S(Ie,xe):ae===Un&&X?Fe=C==null?void 0:C(Ie,xe):ae===qn&&X&&(Fe=w==null?void 0:w(Ie,xe)),X&&Fe!==!1&&oe()}}}),Ee=sv(ie),me=W(Ee,1),pe=me[0],be=function(ae){switch(ae){case Wn:return T(T(T({},Pt,v),kr,p),Nr,b);case Un:return T(T(T({},Pt,g),kr,h),Nr,x);case qn:return T(T(T({},Pt,m),kr,y),Nr,E);default:return{}}},te=d.useMemo(function(){return be(V)},[V]),ve=fv(V,!e,function(xe){if(xe===Pt){var ae=te[Pt];return ae?ae(B()):ec}if(ue in te){var Ie;_(((Ie=te[ue])===null||Ie===void 0?void 0:Ie.call(te,B(),null))||null)}return ue===Nr&&V!==rr&&(pe(B()),u>0&&(clearTimeout(U.current),U.current=setTimeout(function(){ie({deadline:!0})},u))),ue===Gl&&oe(),dv}),Se=W(ve,2),le=Se[0],ue=Se[1],Te=tc(ue);K.current=Te,Jl(function(){L(t);var xe=D.current;D.current=!0;var ae;!xe&&t&&s&&(ae=Wn),xe&&t&&o&&(ae=Un),(xe&&!t&&c||!xe&&f&&!t&&c)&&(ae=qn);var Ie=be(ae);ae&&(e||Ie[Pt])?(R(ae),le()):R(rr)},[t]),d.useEffect(function(){(V===Wn&&!s||V===Un&&!o||V===qn&&!c)&&R(rr)},[s,o,c]),d.useEffect(function(){return function(){D.current=!1,clearTimeout(U.current)}},[]);var ye=d.useRef(!1);d.useEffect(function(){N&&(ye.current=!0),N!==void 0&&V===rr&&((ye.current||N)&&(M==null||M(N)),ye.current=!0)},[N,V]);var Oe=j;return te[Pt]&&ue===kr&&(Oe=F({transition:"none"},Oe)),[V,ue,Oe,N??t]}function gv(e){var t=e;se(e)==="object"&&(t=e.transitionSupport);function r(a,o){return!!(a.motionName&&t&&o!==!1)}var n=d.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,l=a.removeOnLeave,c=l===void 0?!0:l,u=a.forceRender,f=a.children,v=a.motionName,g=a.leavedClassName,m=a.eventProps,p=d.useContext(ql),h=p.motion,y=r(a,h),b=d.useRef(),x=d.useRef();function E(){try{return b.current instanceof HTMLElement?b.current:Yn(x.current)}catch{return null}}var S=vv(y,s,E,a),C=W(S,4),w=C[0],M=C[1],P=C[2],I=C[3],N=d.useRef(I);I&&(N.current=!0);var L=d.useCallback(function(O){b.current=O,oi(o,O)},[o]),k,A=F(F({},m),{},{visible:s});if(!f)k=null;else if(w===rr)I?k=f(F({},A),L):!c&&N.current&&g?k=f(F(F({},A),{},{className:g}),L):u||!c&&!g?k=f(F(F({},A),{},{style:{display:"none"}}),L):k=null;else{var z;M===Pt?z="prepare":tc(M)?z="active":M===kr&&(z="start");var R=ls(v,"".concat(w,"-").concat(z));k=f(F(F({},A),{},{className:he(ls(v,w),T(T({},R,R&&z),v,typeof v=="string")),style:P}),L)}if(d.isValidElement(k)&&ha(k)){var $=si(k);$||(k=d.cloneElement(k,{ref:L}))}return d.createElement(rv,{ref:x},k)});return n.displayName="CSSMotion",n}const yi=gv(Yl);var Vo="add",Bo="keep",Ho="remove",Qa="removed";function hv(e){var t;return e&&se(e)==="object"&&"key"in e?t=e:t={key:e},F(F({},t),{},{key:String(t.key)})}function Do(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(hv)}function mv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,o=Do(e),i=Do(t);o.forEach(function(c){for(var u=!1,f=n;f<a;f+=1){var v=i[f];if(v.key===c.key){n<f&&(r=r.concat(i.slice(n,f).map(function(g){return F(F({},g),{},{status:Vo})})),n=f),r.push(F(F({},v),{},{status:Bo})),n+=1,u=!0;break}}u||r.push(F(F({},c),{},{status:Ho}))}),n<a&&(r=r.concat(i.slice(n).map(function(c){return F(F({},c),{},{status:Vo})})));var s={};r.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,v=u.status;return f!==c||v!==Ho}),r.forEach(function(u){u.key===c&&(u.status=Bo)})}),r}var pv=["component","children","onVisibleChanged","onAllRemoved"],bv=["status"],yv=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function xv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yi,r=function(n){mr(o,n);var a=pr(o);function o(){var i;et(this,o);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=a.call.apply(a,[this].concat(l)),T(ce(i),"state",{keyEntities:[]}),T(ce(i),"removeKey",function(u){i.setState(function(f){var v=f.keyEntities.map(function(g){return g.key!==u?g:F(F({},g),{},{status:Qa})});return{keyEntities:v}},function(){var f=i.state.keyEntities,v=f.filter(function(g){var m=g.status;return m!==Qa}).length;v===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return Je(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,f=c.children,v=c.onVisibleChanged;c.onAllRemoved;var g=bt(c,pv),m=u||d.Fragment,p={};return yv.forEach(function(h){p[h]=g[h],delete g[h]}),delete g.keys,d.createElement(m,g,l.map(function(h,y){var b=h.status,x=bt(h,bv),E=b===Vo||b===Bo;return d.createElement(t,We({},p,{key:x.key,visible:E,eventProps:x,onVisibleChanged:function(C){v==null||v(C,{key:x.key}),C||s.removeKey(x.key)}}),function(S,C){return f(F(F({},S),{},{index:y}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=Do(c),v=mv(u,f);return{keyEntities:v.filter(function(g){var m=u.find(function(p){var h=p.key;return g.key===h});return!(m&&m.status===Qa&&g.status===Ho)})}}}]),o}(d.Component);return T(r,"defaultProps",{component:"div"}),r}xv(Yl);function Sv(e){const{children:t}=e,[,r]=qr(),{motion:n}=r,a=d.useRef(!1);return a.current=a.current||n===!1,a.current?d.createElement(tv,{motion:n},t):t}const Cv=()=>null;var wv=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Ev=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let rc;function $v(){return rc||_o}function Rv(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Tv=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(rc=t),n&&Rv(n)&&wf($v(),n)},Pv=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:a,anchor:o,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:v,dropdownMatchSelectWidth:g,popupMatchSelectWidth:m,popupOverflow:p,legacyLocale:h,parentContext:y,iconPrefixCls:b,theme:x,componentDisabled:E,segmented:S,statistic:C,spin:w,calendar:M,carousel:P,cascader:I,collapse:N,typography:L,checkbox:k,descriptions:A,divider:z,drawer:R,skeleton:$,steps:O,image:j,layout:_,list:V,mentions:D,modal:U,progress:B,result:K,slider:oe,breadcrumb:ie,menu:Ee,pagination:me,input:pe,textArea:be,empty:te,badge:ve,radio:Se,rate:le,switch:ue,transfer:Te,avatar:ye,message:Oe,tag:xe,table:ae,card:Ie,tabs:X,timeline:Fe,timePicker:Ne,upload:Le,notification:ot,tree:tt,colorPicker:ct,datePicker:Xe,rangePicker:It,flex:Ue,wave:ge,dropdown:ee,warning:Qe,tour:G,floatButtonGroup:Y,variant:_e,inputNumber:zt,treeSelect:Yt}=e,yr=d.useCallback((Pe,Ce)=>{const{prefixCls:nt}=e;if(Ce)return Ce;const Ye=nt||y.getPrefixCls("");return Pe?`${Ye}-${Pe}`:Ye},[y.getPrefixCls,e.prefixCls]),Vt=b||y.iconPrefixCls||Ll,Ze=r||y.csp;Ul(Vt,Ze);const qe=Jf(x,y.theme,{prefixCls:yr("")}),Bt={csp:Ze,autoInsertSpaceInButton:n,alert:a,anchor:o,locale:s||h,direction:c,space:u,splitter:f,virtual:v,popupMatchSelectWidth:m??g,popupOverflow:p,getPrefixCls:yr,iconPrefixCls:Vt,theme:qe,segmented:S,statistic:C,spin:w,calendar:M,carousel:P,cascader:I,collapse:N,typography:L,checkbox:k,descriptions:A,divider:z,drawer:R,skeleton:$,steps:O,image:j,input:pe,textArea:be,layout:_,list:V,mentions:D,modal:U,progress:B,result:K,slider:oe,breadcrumb:ie,menu:Ee,pagination:me,empty:te,badge:ve,radio:Se,rate:le,switch:ue,transfer:Te,avatar:ye,message:Oe,tag:xe,table:ae,card:Ie,tabs:X,timeline:Fe,timePicker:Ne,upload:Le,notification:ot,tree:tt,colorPicker:ct,datePicker:Xe,rangePicker:It,flex:Ue,wave:ge,dropdown:ee,warning:Qe,tour:G,floatButtonGroup:Y,variant:_e,inputNumber:zt,treeSelect:Yt},je=Object.assign({},y);Object.keys(Bt).forEach(Pe=>{Bt[Pe]!==void 0&&(je[Pe]=Bt[Pe])}),Ev.forEach(Pe=>{const Ce=e[Pe];Ce&&(je[Pe]=Ce)}),typeof n<"u"&&(je.button=Object.assign({autoInsertSpace:n},je.button));const rt=ai(()=>je,je,(Pe,Ce)=>{const nt=Object.keys(Pe),Ye=Object.keys(Ce);return nt.length!==Ye.length||nt.some(ut=>Pe[ut]!==Ce[ut])}),$e=d.useMemo(()=>({prefixCls:Vt,csp:Ze}),[Vt,Ze]);let re=d.createElement(d.Fragment,null,d.createElement(Cv,{dropdownMatchSelectWidth:g}),t);const it=d.useMemo(()=>{var Pe,Ce,nt,Ye;return jr(((Pe=Hr.Form)===null||Pe===void 0?void 0:Pe.defaultValidateMessages)||{},((nt=(Ce=rt.locale)===null||Ce===void 0?void 0:Ce.Form)===null||nt===void 0?void 0:nt.defaultValidateMessages)||{},((Ye=rt.form)===null||Ye===void 0?void 0:Ye.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[rt,i==null?void 0:i.validateMessages]);Object.keys(it).length>0&&(re=d.createElement(Ld.Provider,{value:it},re)),s&&(re=d.createElement(Wd,{locale:s,_ANT_MARK__:Dd},re)),(Vt||Ze)&&(re=d.createElement(gi.Provider,{value:$e},re)),l&&(re=d.createElement($f,{size:l},re)),re=d.createElement(Sv,null,re);const Ht=d.useMemo(()=>{const Pe=qe||{},{algorithm:Ce,token:nt,components:Ye,cssVar:ut}=Pe,xr=wv(Pe,["algorithm","token","components","cssVar"]),Sr=Ce&&(!Array.isArray(Ce)||Ce.length>0)?bo(Ce):kl,Dt={};Object.entries(Ye||{}).forEach(sr=>{let[Ut,qt]=sr;const Be=Object.assign({},qt);"algorithm"in Be&&(Be.algorithm===!0?Be.theme=Sr:(Array.isArray(Be.algorithm)||typeof Be.algorithm=="function")&&(Be.theme=bo(Be.algorithm)),delete Be.algorithm),Dt[Ut]=Be});const Wt=Object.assign(Object.assign({},fn),nt);return Object.assign(Object.assign({},xr),{theme:Sr,token:Wt,components:Dt,override:Object.assign({override:Wt},Dt),cssVar:ut})},[qe]);return x&&(re=d.createElement(Nl.Provider,{value:Ht},re)),rt.warning&&(re=d.createElement(Nd.Provider,{value:rt.warning},re)),E!==void 0&&(re=d.createElement(Ef,{disabled:E},re)),d.createElement(Ft.Provider,{value:rt},re)},pn=e=>{const t=d.useContext(Ft),r=d.useContext(hi);return d.createElement(Pv,Object.assign({parentContext:t,legacyLocale:r},e))};pn.ConfigContext=Ft;pn.SizeContext=Dr;pn.config=Tv;pn.useConfig=Rf;Object.defineProperty(pn,"SizeContext",{get:()=>Dr});function nc(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ov(e){return nc(e)instanceof ShadowRoot}function ua(e){return Ov(e)?nc(e):null}function Mv(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Fv(e,t){pt(e,"[@ant-design/icons] ".concat(t))}function cs(e){return se(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(se(e.icon)==="object"||typeof e.icon=="function")}function us(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Mv(r)]=n}return t},{})}function Wo(e,t,r){return r?ne.createElement(e.tag,F(F({key:t},us(e.attrs)),r),(e.children||[]).map(function(n,a){return Wo(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ne.createElement(e.tag,F({key:t},us(e.attrs)),(e.children||[]).map(function(n,a){return Wo(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function ac(e){return dn(e)[0]}function oc(e){return e?Array.isArray(e)?e:[e]:[]}var Av=`
|
|
44
|
+
.anticon {
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
color: inherit;
|
|
48
|
+
font-style: normal;
|
|
49
|
+
line-height: 0;
|
|
50
|
+
text-align: center;
|
|
51
|
+
text-transform: none;
|
|
52
|
+
vertical-align: -0.125em;
|
|
53
|
+
text-rendering: optimizeLegibility;
|
|
54
|
+
-webkit-font-smoothing: antialiased;
|
|
55
|
+
-moz-osx-font-smoothing: grayscale;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.anticon > * {
|
|
59
|
+
line-height: 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.anticon svg {
|
|
63
|
+
display: inline-block;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.anticon::before {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.anticon .anticon-icon {
|
|
71
|
+
display: block;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.anticon[tabindex] {
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.anticon-spin::before,
|
|
79
|
+
.anticon-spin {
|
|
80
|
+
display: inline-block;
|
|
81
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
82
|
+
animation: loadingCircle 1s infinite linear;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@-webkit-keyframes loadingCircle {
|
|
86
|
+
100% {
|
|
87
|
+
-webkit-transform: rotate(360deg);
|
|
88
|
+
transform: rotate(360deg);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@keyframes loadingCircle {
|
|
93
|
+
100% {
|
|
94
|
+
-webkit-transform: rotate(360deg);
|
|
95
|
+
transform: rotate(360deg);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
`,Iv=function(t){var r=d.useContext(gi),n=r.csp,a=r.prefixCls,o=Av;a&&(o=o.replace(/anticon/g,a)),d.useEffect(function(){var i=t.current,s=ua(i);Xt(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},jv=["icon","className","onClick","style","primaryColor","secondaryColor"],rn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function kv(e){var t=e.primaryColor,r=e.secondaryColor;rn.primaryColor=t,rn.secondaryColor=r||ac(t),rn.calculated=!!r}function Nv(){return F({},rn)}var Gr=function(t){var r=t.icon,n=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,l=bt(t,jv),c=d.useRef(),u=rn;if(i&&(u={primaryColor:i,secondaryColor:s||ac(i)}),Iv(c),Fv(cs(r),"icon should be icon definiton, but got ".concat(r)),!cs(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=F(F({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Wo(f.icon,"svg-".concat(f.name),F(F({className:n,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Gr.displayName="IconReact";Gr.getTwoToneColors=Nv;Gr.setTwoToneColors=kv;function ic(e){var t=oc(e),r=W(t,2),n=r[0],a=r[1];return Gr.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Lv(){var e=Gr.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var _v=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ic(sa.primary);var Zt=d.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=bt(e,_v),u=d.useContext(gi),f=u.prefixCls,v=f===void 0?"anticon":f,g=u.rootClassName,m=he(g,v,T(T({},"".concat(v,"-").concat(n.name),!!n.name),"".concat(v,"-spin"),!!a||n.name==="loading"),r),p=i;p===void 0&&s&&(p=-1);var h=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,y=oc(l),b=W(y,2),x=b[0],E=b[1];return d.createElement("span",We({role:"img","aria-label":n.name},c,{ref:t,tabIndex:p,onClick:s,className:m}),d.createElement(Gr,{icon:n,primaryColor:x,secondaryColor:E,style:h}))});Zt.displayName="AntdIcon";Zt.getTwoToneColor=Lv;Zt.setTwoToneColor=ic;var zv={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Vv=function(t,r){return d.createElement(Zt,We({},t,{ref:r,icon:zv}))},Bv=d.forwardRef(Vv);function Hv(e){return e&&ne.isValidElement(e)&&e.type===ne.Fragment}const Dv=(e,t,r)=>ne.isValidElement(e)?ne.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function sc(e,t){return Dv(e,e,t)}const Wv=e=>{const[,,,,t]=qr();return t?`${e}-css-var`:""};var Z={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=Z.F1&&r<=Z.F12)return!1;switch(r){case Z.ALT:case Z.CAPS_LOCK:case Z.CONTEXT_MENU:case Z.CTRL:case Z.DOWN:case Z.END:case Z.ESC:case Z.HOME:case Z.INSERT:case Z.LEFT:case Z.MAC_FF_META:case Z.META:case Z.NUMLOCK:case Z.NUM_CENTER:case Z.PAGE_DOWN:case Z.PAGE_UP:case Z.PAUSE:case Z.PRINT_SCREEN:case Z.RIGHT:case Z.SHIFT:case Z.UP:case Z.WIN_KEY:case Z.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Z.ZERO&&t<=Z.NINE||t>=Z.NUM_ZERO&&t<=Z.NUM_MULTIPLY||t>=Z.A&&t<=Z.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Z.SPACE:case Z.QUESTION_MARK:case Z.NUM_PLUS:case Z.NUM_MINUS:case Z.NUM_PERIOD:case Z.NUM_DIVISION:case Z.SEMICOLON:case Z.DASH:case Z.EQUALS:case Z.COMMA:case Z.PERIOD:case Z.SLASH:case Z.APOSTROPHE:case Z.SINGLE_QUOTE:case Z.OPEN_SQUARE_BRACKET:case Z.BACKSLASH:case Z.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Uv={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},qv=function(t,r){return d.createElement(Zt,We({},t,{ref:r,icon:Uv}))},Gv=d.forwardRef(qv);const lc=ne.createContext(void 0),dr=100,cc={Modal:dr,Drawer:dr,Popover:dr,Popconfirm:dr,Tooltip:dr,Tour:dr,FloatButton:dr},Kv={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Xv(e){return e in cc}const Qv=(e,t)=>{const[,r]=qr(),n=ne.useContext(lc),a=Xv(e);let o;if(t!==void 0)o=[t,t];else{let i=n??0;a?i+=(n?0:r.zIndexPopupBase)+cc[e]:i+=Kv[e],o=[n===void 0?t:i,i]}return o};function At(){At=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(R,$,O){R[$]=O.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(R,$,O){return Object.defineProperty(R,$,{value:O,enumerable:!0,configurable:!0,writable:!0}),R[$]}try{c({},"")}catch{c=function(O,j,_){return O[j]=_}}function u(R,$,O,j){var _=$&&$.prototype instanceof y?$:y,V=Object.create(_.prototype),D=new A(j||[]);return a(V,"_invoke",{value:I(R,O,D)}),V}function f(R,$,O){try{return{type:"normal",arg:R.call($,O)}}catch(j){return{type:"throw",arg:j}}}t.wrap=u;var v="suspendedStart",g="suspendedYield",m="executing",p="completed",h={};function y(){}function b(){}function x(){}var E={};c(E,i,function(){return this});var S=Object.getPrototypeOf,C=S&&S(S(z([])));C&&C!==r&&n.call(C,i)&&(E=C);var w=x.prototype=y.prototype=Object.create(E);function M(R){["next","throw","return"].forEach(function($){c(R,$,function(O){return this._invoke($,O)})})}function P(R,$){function O(_,V,D,U){var B=f(R[_],R,V);if(B.type!=="throw"){var K=B.arg,oe=K.value;return oe&&se(oe)=="object"&&n.call(oe,"__await")?$.resolve(oe.__await).then(function(ie){O("next",ie,D,U)},function(ie){O("throw",ie,D,U)}):$.resolve(oe).then(function(ie){K.value=ie,D(K)},function(ie){return O("throw",ie,D,U)})}U(B.arg)}var j;a(this,"_invoke",{value:function(V,D){function U(){return new $(function(B,K){O(V,D,B,K)})}return j=j?j.then(U,U):U()}})}function I(R,$,O){var j=v;return function(_,V){if(j===m)throw Error("Generator is already running");if(j===p){if(_==="throw")throw V;return{value:e,done:!0}}for(O.method=_,O.arg=V;;){var D=O.delegate;if(D){var U=N(D,O);if(U){if(U===h)continue;return U}}if(O.method==="next")O.sent=O._sent=O.arg;else if(O.method==="throw"){if(j===v)throw j=p,O.arg;O.dispatchException(O.arg)}else O.method==="return"&&O.abrupt("return",O.arg);j=m;var B=f(R,$,O);if(B.type==="normal"){if(j=O.done?p:g,B.arg===h)continue;return{value:B.arg,done:O.done}}B.type==="throw"&&(j=p,O.method="throw",O.arg=B.arg)}}}function N(R,$){var O=$.method,j=R.iterator[O];if(j===e)return $.delegate=null,O==="throw"&&R.iterator.return&&($.method="return",$.arg=e,N(R,$),$.method==="throw")||O!=="return"&&($.method="throw",$.arg=new TypeError("The iterator does not provide a '"+O+"' method")),h;var _=f(j,R.iterator,$.arg);if(_.type==="throw")return $.method="throw",$.arg=_.arg,$.delegate=null,h;var V=_.arg;return V?V.done?($[R.resultName]=V.value,$.next=R.nextLoc,$.method!=="return"&&($.method="next",$.arg=e),$.delegate=null,h):V:($.method="throw",$.arg=new TypeError("iterator result is not an object"),$.delegate=null,h)}function L(R){var $={tryLoc:R[0]};1 in R&&($.catchLoc=R[1]),2 in R&&($.finallyLoc=R[2],$.afterLoc=R[3]),this.tryEntries.push($)}function k(R){var $=R.completion||{};$.type="normal",delete $.arg,R.completion=$}function A(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(L,this),this.reset(!0)}function z(R){if(R||R===""){var $=R[i];if($)return $.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var O=-1,j=function _(){for(;++O<R.length;)if(n.call(R,O))return _.value=R[O],_.done=!1,_;return _.value=e,_.done=!0,_};return j.next=j}}throw new TypeError(se(R)+" is not iterable")}return b.prototype=x,a(w,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=c(x,l,"GeneratorFunction"),t.isGeneratorFunction=function(R){var $=typeof R=="function"&&R.constructor;return!!$&&($===b||($.displayName||$.name)==="GeneratorFunction")},t.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,x):(R.__proto__=x,c(R,l,"GeneratorFunction")),R.prototype=Object.create(w),R},t.awrap=function(R){return{__await:R}},M(P.prototype),c(P.prototype,s,function(){return this}),t.AsyncIterator=P,t.async=function(R,$,O,j,_){_===void 0&&(_=Promise);var V=new P(u(R,$,O,j),_);return t.isGeneratorFunction($)?V:V.next().then(function(D){return D.done?D.value:V.next()})},M(w),c(w,l,"Generator"),c(w,i,function(){return this}),c(w,"toString",function(){return"[object Generator]"}),t.keys=function(R){var $=Object(R),O=[];for(var j in $)O.push(j);return O.reverse(),function _(){for(;O.length;){var V=O.pop();if(V in $)return _.value=V,_.done=!1,_}return _.done=!0,_}},t.values=z,A.prototype={constructor:A,reset:function($){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!$)for(var O in this)O.charAt(0)==="t"&&n.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=e)},stop:function(){this.done=!0;var $=this.tryEntries[0].completion;if($.type==="throw")throw $.arg;return this.rval},dispatchException:function($){if(this.done)throw $;var O=this;function j(K,oe){return D.type="throw",D.arg=$,O.next=K,oe&&(O.method="next",O.arg=e),!!oe}for(var _=this.tryEntries.length-1;_>=0;--_){var V=this.tryEntries[_],D=V.completion;if(V.tryLoc==="root")return j("end");if(V.tryLoc<=this.prev){var U=n.call(V,"catchLoc"),B=n.call(V,"finallyLoc");if(U&&B){if(this.prev<V.catchLoc)return j(V.catchLoc,!0);if(this.prev<V.finallyLoc)return j(V.finallyLoc)}else if(U){if(this.prev<V.catchLoc)return j(V.catchLoc,!0)}else{if(!B)throw Error("try statement without catch or finally");if(this.prev<V.finallyLoc)return j(V.finallyLoc)}}}},abrupt:function($,O){for(var j=this.tryEntries.length-1;j>=0;--j){var _=this.tryEntries[j];if(_.tryLoc<=this.prev&&n.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var V=_;break}}V&&($==="break"||$==="continue")&&V.tryLoc<=O&&O<=V.finallyLoc&&(V=null);var D=V?V.completion:{};return D.type=$,D.arg=O,V?(this.method="next",this.next=V.finallyLoc,h):this.complete(D)},complete:function($,O){if($.type==="throw")throw $.arg;return $.type==="break"||$.type==="continue"?this.next=$.arg:$.type==="return"?(this.rval=this.arg=$.arg,this.method="return",this.next="end"):$.type==="normal"&&O&&(this.next=O),h},finish:function($){for(var O=this.tryEntries.length-1;O>=0;--O){var j=this.tryEntries[O];if(j.finallyLoc===$)return this.complete(j.completion,j.afterLoc),k(j),h}},catch:function($){for(var O=this.tryEntries.length-1;O>=0;--O){var j=this.tryEntries[O];if(j.tryLoc===$){var _=j.completion;if(_.type==="throw"){var V=_.arg;k(j)}return V}}throw Error("illegal catch attempt")},delegateYield:function($,O,j){return this.delegate={iterator:z($),resultName:O,nextLoc:j},this.method==="next"&&(this.arg=e),h}},t}function ds(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function bn(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(l){ds(o,n,a,i,s,"next",l)}function s(l){ds(o,n,a,i,s,"throw",l)}i(void 0)})}}const Zv=(e,t,r)=>r!==void 0?r:`${e}-${t}`,Yv=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},Jv=e=>{const t=ne.useContext(Dr);return ne.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},eg=d.createContext(null),tg=e=>{let{children:t}=e;return d.createElement(eg.Provider,{value:null},t)},rg=e=>({animationDuration:e,animationFillMode:"both"}),ng=e=>({animationDuration:e,animationFillMode:"both"}),ag=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
99
|
+
${o}${e}-enter,
|
|
100
|
+
${o}${e}-appear
|
|
101
|
+
`]:Object.assign(Object.assign({},rg(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},ng(n)),{animationPlayState:"paused"}),[`
|
|
102
|
+
${o}${e}-enter${e}-enter-active,
|
|
103
|
+
${o}${e}-appear${e}-appear-active
|
|
104
|
+
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},og=new Et("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ig=new Et("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),fs=new Et("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vs=new Et("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),sg=new Et("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),lg=new Et("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),cg=new Et("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ug=new Et("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),dg=new Et("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),fg=new Et("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),vg=new Et("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),gg=new Et("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),hg={zoom:{inKeyframes:og,outKeyframes:ig},"zoom-big":{inKeyframes:fs,outKeyframes:vs},"zoom-big-fast":{inKeyframes:fs,outKeyframes:vs},"zoom-left":{inKeyframes:cg,outKeyframes:ug},"zoom-right":{inKeyframes:dg,outKeyframes:fg},"zoom-up":{inKeyframes:sg,outKeyframes:lg},"zoom-down":{inKeyframes:vg,outKeyframes:gg}},mg=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=hg[t];return[ag(n,a,o,e.motionDurationFast),{[`
|
|
105
|
+
${n}-enter,
|
|
106
|
+
${n}-appear
|
|
107
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function pg(e,t,r){const{focusElCls:n,focus:a,borderElCls:o}=r,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function bg(e,t,r){const{borderElCls:n}=r,a=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function yg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},pg(e,n,t)),bg(r,n,t))}}var uc=d.createContext(null),gs=[];function xg(e,t){var r=d.useState(function(){if(!lt())return null;var m=document.createElement("div");return m}),n=W(r,1),a=n[0],o=d.useRef(!1),i=d.useContext(uc),s=d.useState(gs),l=W(s,2),c=l[0],u=l[1],f=i||(o.current?void 0:function(m){u(function(p){var h=[m].concat(Q(p));return h})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function g(){var m;(m=a.parentElement)===null||m===void 0||m.removeChild(a),o.current=!1}return Ae(function(){return e?i?i(v):v():g(),g},[e]),Ae(function(){c.length&&(c.forEach(function(m){return m()}),u(gs))},[c]),[a,f]}function Sg(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";Xt(`
|
|
108
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
109
|
+
`).concat(u,`
|
|
110
|
+
`).concat(f,`
|
|
111
|
+
}`),t)}catch(m){console.error(m),a=l,o=c}}document.body.appendChild(r);var v=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,g=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),ln(t),{width:v,height:g}}function Cg(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Sg(e)}function wg(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Eg="rc-util-locker-".concat(Date.now()),hs=0;function $g(e){var t=!!e,r=d.useState(function(){return hs+=1,"".concat(Eg,"_").concat(hs)}),n=W(r,1),a=n[0];Ae(function(){if(t){var o=Cg(document.body).width,i=wg();Xt(`
|
|
112
|
+
html body {
|
|
113
|
+
overflow-y: hidden;
|
|
114
|
+
`.concat(i?"width: calc(100% - ".concat(o,"px);"):"",`
|
|
115
|
+
}`),a)}else ln(a);return function(){ln(a)}},[t,a])}var Rg=!1;function Tg(e){return Rg}var ms=function(t){return t===!1?!1:!lt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},dc=d.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=o===void 0?!0:o,s=e.children,l=d.useState(r),c=W(l,2),u=c[0],f=c[1],v=u||r;d.useEffect(function(){(i||r)&&f(r)},[r,i]);var g=d.useState(function(){return ms(a)}),m=W(g,2),p=m[0],h=m[1];d.useEffect(function(){var N=ms(a);h(N??null)});var y=xg(v&&!p),b=W(y,2),x=b[0],E=b[1],S=p??x;$g(n&&r&<()&&(S===x||S===document.body));var C=null;if(s&&ha(s)&&t){var w=s;C=w.ref}var M=ii(C,t);if(!v||!lt()||p===void 0)return null;var P=S===!1||Tg(),I=s;return t&&(I=d.cloneElement(s,{ref:M})),d.createElement(uc.Provider,{value:E},P?I:Wc.createPortal(I,S))});function Pg(){var e=F({},fa);return e.useId}var ps=0,bs=Pg();const Og=bs?function(t){var r=bs();return t||r}:function(t){var r=d.useState("ssr-id"),n=W(r,2),a=n[0],o=n[1];return d.useEffect(function(){var i=ps;ps+=1,o("rc_unique_".concat(i))},[]),t||a};var gr="RC_FORM_INTERNAL_HOOKS",Re=function(){pt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Wr=d.createContext({getFieldValue:Re,getFieldsValue:Re,getFieldError:Re,getFieldWarning:Re,getFieldsError:Re,isFieldsTouched:Re,isFieldTouched:Re,isFieldValidating:Re,isFieldsValidating:Re,resetFields:Re,setFields:Re,setFieldValue:Re,setFieldsValue:Re,validateFields:Re,submit:Re,getInternalHooks:function(){return Re(),{dispatch:Re,initEntityValue:Re,registerField:Re,useSubscribe:Re,setInitialValues:Re,destroyForm:Re,setCallbacks:Re,registerWatch:Re,getFields:Re,setValidateMessages:Re,setPreserve:Re,getInitialValue:Re}}}),da=d.createContext(null);function Uo(e){return e==null?[]:Array.isArray(e)?e:[e]}function Mg(e){return e&&!!e._init}function qo(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Go=qo();function Fg(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Ag(e,t,r){if(au())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&Gs(a,r.prototype),a}function Ko(e){var t=typeof Map=="function"?new Map:void 0;return Ko=function(n){if(n===null||!Fg(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Ag(n,arguments,nu(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Gs(a,n)},Ko(e)}var Ig=/%[sdj%]/g,jg=function(){};function Xo(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function mt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(Ig,function(s){if(s==="%%")return"%";if(a>=o)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function kg(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function De(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||kg(t)&&typeof e=="string"&&!e)}function Ng(e,t,r){var n=[],a=0,o=e.length;function i(s){n.push.apply(n,Q(s||[])),a++,a===o&&r(n)}e.forEach(function(s){t(s,i)})}function ys(e,t,r){var n=0,a=e.length;function o(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<a?t(e[s],o):r([])}o([])}function Lg(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,Q(e[r]||[]))}),t}var xs=function(e){mr(r,e);var t=pr(r);function r(n,a){var o;return et(this,r),o=t.call(this,"Async Validation Error"),T(ce(o),"errors",void 0),T(ce(o),"fields",void 0),o.errors=n,o.fields=a,o}return Je(r)}(Ko(Error));function _g(e,t,r,n,a){if(t.first){var o=new Promise(function(v,g){var m=function(y){return n(y),y.length?g(new xs(y,Xo(y))):v(a)},p=Lg(e);ys(p,r,m)});return o.catch(function(v){return v}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(v,g){var m=function(h){if(u.push.apply(u,h),c++,c===l)return n(u),u.length?g(new xs(u,Xo(u))):v(a)};s.length||(n(u),v(a)),s.forEach(function(p){var h=e[p];i.indexOf(p)!==-1?ys(h,r,m):Ng(h,r,m)})});return f.catch(function(v){return v}),f}function zg(e){return!!(e&&e.message!==void 0)}function Vg(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Ss(e,t){return function(r){var n;return e.fullFields?n=Vg(t,e.fullFields):n=t[r.field||e.fullField],zg(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Cs(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];se(n)==="object"&&se(e[r])==="object"?e[r]=F(F({},e[r]),n):e[r]=n}}return e}var Pr="enum",Bg=function(t,r,n,a,o){t[Pr]=Array.isArray(t[Pr])?t[Pr]:[],t[Pr].indexOf(r)===-1&&a.push(mt(o.messages[Pr],t.fullField,t[Pr].join(", ")))},Hg=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(mt(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||a.push(mt(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Dg=function(t,r,n,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,f=null,v=typeof r=="number",g=typeof r=="string",m=Array.isArray(r);if(v?f="number":g?f="string":m&&(f="array"),!f)return!1;m&&(u=r.length),g&&(u=r.replace(c,"_").length),i?u!==t.len&&a.push(mt(o.messages[f].len,t.fullField,t.len)):s&&!l&&u<t.min?a.push(mt(o.messages[f].min,t.fullField,t.min)):l&&!s&&u>t.max?a.push(mt(o.messages[f].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&a.push(mt(o.messages[f].range,t.fullField,t.min,t.max))},fc=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||De(r,i||t.type))&&a.push(mt(o.messages.required,t.fullField))},Kn;const Wg=function(){if(Kn)return Kn;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(i,"$")),u=function(C){return C&&C.exact?s:new RegExp("(?:".concat(t(C)).concat(r).concat(t(C),")|(?:").concat(t(C)).concat(i).concat(t(C),")"),"g")};u.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},u.v6=function(S){return S&&S.exact?c:new RegExp("".concat(t(S)).concat(i).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,m=u.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',E="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(g,"|").concat(m,"|").concat(p).concat(h).concat(y,")").concat(b).concat(x);return Kn=new RegExp("(?:^".concat(E,"$)"),"i"),Kn};var ws={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},en={integer:function(t){return en.number(t)&&parseInt(t,10)===t},float:function(t){return en.number(t)&&!en.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return se(t)==="object"&&!en.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(ws.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Wg())},hex:function(t){return typeof t=="string"&&!!t.match(ws.hex)}},Ug=function(t,r,n,a,o){if(t.required&&r===void 0){fc(t,r,n,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?en[s](r)||a.push(mt(o.messages.types[s],t.fullField,t.type)):s&&se(r)!==t.type&&a.push(mt(o.messages.types[s],t.fullField,t.type))},qg=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(mt(o.messages.whitespace,t.fullField))};const fe={required:fc,whitespace:qg,type:Ug,range:Dg,enum:Bg,pattern:Hg};var Gg=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(De(r)&&!t.required)return n();fe.required(t,r,a,i,o)}n(i)},Kg=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();fe.required(t,r,a,i,o,"array"),r!=null&&(fe.type(t,r,a,i,o),fe.range(t,r,a,i,o))}n(i)},Xg=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(De(r)&&!t.required)return n();fe.required(t,r,a,i,o),r!==void 0&&fe.type(t,r,a,i,o)}n(i)},Qg=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(De(r,"date")&&!t.required)return n();if(fe.required(t,r,a,i,o),!De(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),fe.type(t,l,a,i,o),l&&fe.range(t,l.getTime(),a,i,o)}}n(i)},Zg="enum",Yg=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(De(r)&&!t.required)return n();fe.required(t,r,a,i,o),r!==void 0&&fe[Zg](t,r,a,i,o)}n(i)},Jg=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(De(r)&&!t.required)return n();fe.required(t,r,a,i,o),r!==void 0&&(fe.type(t,r,a,i,o),fe.range(t,r,a,i,o))}n(i)},eh=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(De(r)&&!t.required)return n();fe.required(t,r,a,i,o),r!==void 0&&(fe.type(t,r,a,i,o),fe.range(t,r,a,i,o))}n(i)},th=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(De(r)&&!t.required)return n();fe.required(t,r,a,i,o),r!==void 0&&fe.type(t,r,a,i,o)}n(i)},rh=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),De(r)&&!t.required)return n();fe.required(t,r,a,i,o),r!==void 0&&(fe.type(t,r,a,i,o),fe.range(t,r,a,i,o))}n(i)},nh=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(De(r)&&!t.required)return n();fe.required(t,r,a,i,o),r!==void 0&&fe.type(t,r,a,i,o)}n(i)},ah=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(De(r,"string")&&!t.required)return n();fe.required(t,r,a,i,o),De(r,"string")||fe.pattern(t,r,a,i,o)}n(i)},oh=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(De(r)&&!t.required)return n();fe.required(t,r,a,i,o),De(r)||fe.type(t,r,a,i,o)}n(i)},ih=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":se(r);fe.required(t,r,a,i,o,s),n(i)},sh=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(De(r,"string")&&!t.required)return n();fe.required(t,r,a,i,o,"string"),De(r,"string")||(fe.type(t,r,a,i,o),fe.range(t,r,a,i,o),fe.pattern(t,r,a,i,o),t.whitespace===!0&&fe.whitespace(t,r,a,i,o))}n(i)},Za=function(t,r,n,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(De(r,i)&&!t.required)return n();fe.required(t,r,a,s,o,i),De(r,i)||fe.type(t,r,a,s,o)}n(s)};const nn={string:sh,method:th,number:rh,boolean:Xg,regexp:oh,integer:eh,float:Jg,array:Kg,object:nh,enum:Yg,pattern:ah,date:Qg,url:Za,hex:Za,email:Za,required:ih,any:Gg};var yn=function(){function e(t){et(this,e),T(this,"rules",null),T(this,"_messages",Go),this.define(t)}return Je(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(se(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var o=r[a];n.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=Cs(qo(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=a,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function c(m){var p=[],h={};function y(x){if(Array.isArray(x)){var E;p=(E=p).concat.apply(E,Q(x))}else p.push(x)}for(var b=0;b<m.length;b++)y(m[b]);p.length?(h=Xo(p),l(p,h)):l(null,i)}if(s.messages){var u=this.messages();u===Go&&(u=qo()),Cs(u,s.messages),s.messages=u}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(m){var p=n.rules[m],h=i[m];p.forEach(function(y){var b=y;typeof b.transform=="function"&&(i===r&&(i=F({},i)),h=i[m]=b.transform(h),h!=null&&(b.type=b.type||(Array.isArray(h)?"array":se(h)))),typeof b=="function"?b={validator:b}:b=F({},b),b.validator=n.getValidationMethod(b),b.validator&&(b.field=m,b.fullField=b.fullField||m,b.type=n.getType(b),f[m]=f[m]||[],f[m].push({rule:b,value:h,source:i,field:m}))})});var g={};return _g(f,s,function(m,p){var h=m.rule,y=(h.type==="object"||h.type==="array")&&(se(h.fields)==="object"||se(h.defaultField)==="object");y=y&&(h.required||!h.required&&m.value),h.field=m.field;function b(w,M){return F(F({},M),{},{fullField:"".concat(h.fullField,".").concat(w),fullFields:h.fullFields?[].concat(Q(h.fullFields),[w]):[w]})}function x(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=Array.isArray(w)?w:[w];!s.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&h.message!==void 0&&(M=[].concat(h.message));var P=M.map(Ss(h,i));if(s.first&&P.length)return g[h.field]=1,p(P);if(!y)p(P);else{if(h.required&&!m.value)return h.message!==void 0?P=[].concat(h.message).map(Ss(h,i)):s.error&&(P=[s.error(h,mt(s.messages.required,h.field))]),p(P);var I={};h.defaultField&&Object.keys(m.value).map(function(k){I[k]=h.defaultField}),I=F(F({},I),m.rule.fields);var N={};Object.keys(I).forEach(function(k){var A=I[k],z=Array.isArray(A)?A:[A];N[k]=z.map(b.bind(null,k))});var L=new e(N);L.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),L.validate(m.value,m.rule.options||s,function(k){var A=[];P&&P.length&&A.push.apply(A,Q(P)),k&&k.length&&A.push.apply(A,Q(k)),p(A.length?A:null)})}}var E;if(h.asyncValidator)E=h.asyncValidator(h,m.value,x,m.source,s);else if(h.validator){try{E=h.validator(h,m.value,x,m.source,s)}catch(w){var S,C;(S=(C=console).error)===null||S===void 0||S.call(C,w),s.suppressValidatorError||setTimeout(function(){throw w},0),x(w.message)}E===!0?x():E===!1?x(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):E instanceof Array?x(E):E instanceof Error&&x(E.message)}E&&E.then&&E.then(function(){return x()},function(w){return x(w)})},function(m){c(m)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!nn.hasOwnProperty(r.type))throw new Error(mt("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?nn.required:nn[this.getType(r)]||void 0}}]),e}();T(yn,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");nn[t]=r});T(yn,"warning",jg);T(yn,"messages",Go);T(yn,"validators",nn);var ft="'${name}' is not a valid ${type}",vc={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:ft,method:ft,array:ft,object:ft,number:ft,date:ft,boolean:ft,integer:ft,float:ft,regexp:ft,email:ft,url:ft,hex:ft},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Es=yn;function lh(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var $s="CODE_LOGIC_ERROR";function Qo(e,t,r,n,a){return Zo.apply(this,arguments)}function Zo(){return Zo=bn(At().mark(function e(t,r,n,a,o){var i,s,l,c,u,f,v,g,m;return At().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return i=F({},n),delete i.ruleIndex,Es.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject($s)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new Es(T({},t,[i])),u=jr(vc,a.validateMessages),c.messages(u),f=[],h.prev=10,h.next=13,Promise.resolve(c.validate(T({},t,r),F({},a)));case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(10),h.t0.errors&&(f=h.t0.errors.map(function(y,b){var x=y.message,E=x===$s?u.default:x;return d.isValidElement(E)?d.cloneElement(E,{key:"error_".concat(b)}):E}));case 18:if(!(!f.length&&l)){h.next=23;break}return h.next=21,Promise.all(r.map(function(y,b){return Qo("".concat(t,".").concat(b),y,l,a,o)}));case 21:return v=h.sent,h.abrupt("return",v.reduce(function(y,b){return[].concat(Q(y),Q(b))},[]));case 23:return g=F(F({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),m=f.map(function(y){return typeof y=="string"?lh(y,g):y}),h.abrupt("return",m);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),Zo.apply(this,arguments)}function ch(e,t,r,n,a,o){var i=e.join("."),s=r.map(function(u,f){var v=u.validator,g=F(F({},u),{},{ruleIndex:f});return v&&(g.validator=function(m,p,h){var y=!1,b=function(){for(var S=arguments.length,C=new Array(S),w=0;w<S;w++)C[w]=arguments[w];Promise.resolve().then(function(){pt(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||h.apply(void 0,C)})},x=v(m,p,b);y=x&&typeof x.then=="function"&&typeof x.catch=="function",pt(y,"`callback` is deprecated. Please return a promise instead."),y&&x.then(function(){h()}).catch(function(E){h(E||" ")})}),g}).sort(function(u,f){var v=u.warningOnly,g=u.ruleIndex,m=f.warningOnly,p=f.ruleIndex;return!!v==!!m?g-p:v?1:-1}),l;if(a===!0)l=new Promise(function(){var u=bn(At().mark(function f(v,g){var m,p,h;return At().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:m=0;case 1:if(!(m<s.length)){b.next=12;break}return p=s[m],b.next=5,Qo(i,t,p,n,o);case 5:if(h=b.sent,!h.length){b.next=9;break}return g([{errors:h,rule:p}]),b.abrupt("return");case 9:m+=1,b.next=1;break;case 12:v([]);case 13:case"end":return b.stop()}},f)}));return function(f,v){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return Qo(i,t,u,n,o).then(function(f){return{errors:f,rule:u}})});l=(a?dh(c):uh(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function uh(e){return Yo.apply(this,arguments)}function Yo(){return Yo=bn(At().mark(function e(t){return At().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,Q(a));return i}));case 1:case"end":return n.stop()}},e)})),Yo.apply(this,arguments)}function dh(e){return Jo.apply(this,arguments)}function Jo(){return Jo=bn(At().mark(function e(t){var r;return At().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),Jo.apply(this,arguments)}function ze(e){return Uo(e)}function Rs(e,t){var r={};return t.forEach(function(n){var a=_t(e,n);r=Tt(r,n,a)}),r}function Lr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return gc(t,n,r)})}function gc(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function fh(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||se(e)!=="object"||se(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return Q(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function vh(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&se(t.target)==="object"&&e in t.target?t.target[e]:t}function Ts(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],o=t-r;return o>0?[].concat(Q(e.slice(0,r)),[a],Q(e.slice(r,t)),Q(e.slice(t+1,n))):o<0?[].concat(Q(e.slice(0,t)),Q(e.slice(t+1,r+1)),[a],Q(e.slice(r+1,n))):e}var gh=["name"],St=[];function Ya(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var xi=function(e){mr(r,e);var t=pr(r);function r(n){var a;if(et(this,r),a=t.call(this,n),T(ce(a),"state",{resetCount:0}),T(ce(a),"cancelRegisterFunc",null),T(ce(a),"mounted",!1),T(ce(a),"touched",!1),T(ce(a),"dirty",!1),T(ce(a),"validatePromise",void 0),T(ce(a),"prevValidating",void 0),T(ce(a),"errors",St),T(ce(a),"warnings",St),T(ce(a),"cancelRegister",function(){var l=a.props,c=l.preserve,u=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(u,c,ze(f)),a.cancelRegisterFunc=null}),T(ce(a),"getNamePath",function(){var l=a.props,c=l.name,u=l.fieldContext,f=u.prefixName,v=f===void 0?[]:f;return c!==void 0?[].concat(Q(v),Q(c)):[]}),T(ce(a),"getRules",function(){var l=a.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(v){return typeof v=="function"?v(f):v})}),T(ce(a),"refresh",function(){a.mounted&&a.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),T(ce(a),"metaCache",null),T(ce(a),"triggerMetaEvent",function(l){var c=a.props.onMetaChange;if(c){var u=F(F({},a.getMeta()),{},{destroy:l});mo(a.metaCache,u)||c(u),a.metaCache=u}else a.metaCache=null}),T(ce(a),"onStoreChange",function(l,c,u){var f=a.props,v=f.shouldUpdate,g=f.dependencies,m=g===void 0?[]:g,p=f.onReset,h=u.store,y=a.getNamePath(),b=a.getValue(l),x=a.getValue(h),E=c&&Lr(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!mo(b,x)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=St,a.warnings=St,a.triggerMetaEvent()),u.type){case"reset":if(!c||E){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=St,a.warnings=St,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(v&&Ya(v,l,h,b,x,u)){a.reRender();return}break}case"setField":{var S=u.data;if(E){"touched"in S&&(a.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(a.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(a.errors=S.errors||St),"warnings"in S&&(a.warnings=S.warnings||St),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in S&&Lr(c,y,!0)){a.reRender();return}if(v&&!y.length&&Ya(v,l,h,b,x,u)){a.reRender();return}break}case"dependenciesUpdate":{var C=m.map(ze);if(C.some(function(w){return Lr(u.relatedFields,w)})){a.reRender();return}break}default:if(E||(!m.length||y.length||v)&&Ya(v,l,h,b,x,u)){a.reRender();return}break}v===!0&&a.reRender()}),T(ce(a),"validateRules",function(l){var c=a.getNamePath(),u=a.getValue(),f=l||{},v=f.triggerName,g=f.validateOnly,m=g===void 0?!1:g,p=Promise.resolve().then(bn(At().mark(function h(){var y,b,x,E,S,C,w;return At().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(a.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(y=a.props,b=y.validateFirst,x=b===void 0?!1:b,E=y.messageVariables,S=y.validateDebounce,C=a.getRules(),v&&(C=C.filter(function(I){return I}).filter(function(I){var N=I.validateTrigger;if(!N)return!0;var L=Uo(N);return L.includes(v)})),!(S&&v)){P.next=10;break}return P.next=8,new Promise(function(I){setTimeout(I,S)});case 8:if(a.validatePromise===p){P.next=10;break}return P.abrupt("return",[]);case 10:return w=ch(c,u,C,l,x,E),w.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:St;if(a.validatePromise===p){var N;a.validatePromise=null;var L=[],k=[];(N=I.forEach)===null||N===void 0||N.call(I,function(A){var z=A.rule.warningOnly,R=A.errors,$=R===void 0?St:R;z?k.push.apply(k,Q($)):L.push.apply(L,Q($))}),a.errors=L,a.warnings=k,a.triggerMetaEvent(),a.reRender()}}),P.abrupt("return",w);case 13:case"end":return P.stop()}},h)})));return m||(a.validatePromise=p,a.dirty=!0,a.errors=St,a.warnings=St,a.triggerMetaEvent(),a.reRender()),p}),T(ce(a),"isFieldValidating",function(){return!!a.validatePromise}),T(ce(a),"isFieldTouched",function(){return a.touched}),T(ce(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,c=l.getInternalHooks(gr),u=c.getInitialValue;return u(a.getNamePath())!==void 0}),T(ce(a),"getErrors",function(){return a.errors}),T(ce(a),"getWarnings",function(){return a.warnings}),T(ce(a),"isListField",function(){return a.props.isListField}),T(ce(a),"isList",function(){return a.props.isList}),T(ce(a),"isPreserve",function(){return a.props.preserve}),T(ce(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),T(ce(a),"getOnlyChild",function(l){if(typeof l=="function"){var c=a.getMeta();return F(F({},a.getOnlyChild(l(a.getControlled(),c,a.props.fieldContext))),{},{isFunction:!0})}var u=_r(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),T(ce(a),"getValue",function(l){var c=a.props.fieldContext.getFieldsValue,u=a.getNamePath();return _t(l||c(!0),u)}),T(ce(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=a.props,u=c.name,f=c.trigger,v=c.validateTrigger,g=c.getValueFromEvent,m=c.normalize,p=c.valuePropName,h=c.getValueProps,y=c.fieldContext,b=v!==void 0?v:y.validateTrigger,x=a.getNamePath(),E=y.getInternalHooks,S=y.getFieldsValue,C=E(gr),w=C.dispatch,M=a.getValue(),P=h||function(A){return T({},p,A)},I=l[f],N=u!==void 0?P(M):{},L=F(F({},l),N);L[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var A,z=arguments.length,R=new Array(z),$=0;$<z;$++)R[$]=arguments[$];g?A=g.apply(void 0,R):A=vh.apply(void 0,[p].concat(R)),m&&(A=m(A,M,S(!0))),A!==M&&w({type:"updateValue",namePath:x,value:A}),I&&I.apply(void 0,R)};var k=Uo(b||[]);return k.forEach(function(A){var z=L[A];L[A]=function(){z&&z.apply(void 0,arguments);var R=a.props.rules;R&&R.length&&w({type:"validateField",namePath:x,triggerName:A})}}),L}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(gr),s=i.initEntityValue;s(ce(a))}return a}return Je(r,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,i=a.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(gr),c=l.registerField;this.cancelRegisterFunc=c(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),s=i.child,l=i.isFunction,c;return l?c=s:d.isValidElement(s)?c=d.cloneElement(s,this.getControlled(s.props)):(pt(!s,"`children` of Field is not validate ReactElement."),c=s),d.createElement(d.Fragment,{key:a},c)}}]),r}(d.Component);T(xi,"contextType",Wr);T(xi,"defaultProps",{trigger:"onChange",valuePropName:"value"});function hc(e){var t=e.name,r=bt(e,gh),n=d.useContext(Wr),a=d.useContext(da),o=t!==void 0?ze(t):void 0,i="keep";return r.isListField||(i="_".concat((o||[]).join("_"))),d.createElement(xi,We({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function hh(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=d.useContext(Wr),l=d.useContext(da),c=d.useRef({keys:[],id:0}),u=c.current,f=d.useMemo(function(){var p=ze(s.prefixName)||[];return[].concat(Q(p),Q(ze(t)))},[s.prefixName,t]),v=d.useMemo(function(){return F(F({},s),{},{prefixName:f})},[s,f]),g=d.useMemo(function(){return{getKey:function(h){var y=f.length,b=h[y];return[u.keys[b],h.slice(y+1)]}}},[f]);if(typeof n!="function")return pt(!1,"Form.List only accepts function as children."),null;var m=function(h,y,b){var x=b.source;return x==="internal"?!1:h!==y};return d.createElement(da.Provider,{value:g},d.createElement(Wr.Provider,{value:v},d.createElement(hc,{name:[],shouldUpdate:m,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!l},function(p,h){var y=p.value,b=y===void 0?[]:y,x=p.onChange,E=s.getFieldValue,S=function(){var P=E(f||[]);return P||[]},C={add:function(P,I){var N=S();I>=0&&I<=N.length?(u.keys=[].concat(Q(u.keys.slice(0,I)),[u.id],Q(u.keys.slice(I))),x([].concat(Q(N.slice(0,I)),[P],Q(N.slice(I))))):(u.keys=[].concat(Q(u.keys),[u.id]),x([].concat(Q(N),[P]))),u.id+=1},remove:function(P){var I=S(),N=new Set(Array.isArray(P)?P:[P]);N.size<=0||(u.keys=u.keys.filter(function(L,k){return!N.has(k)}),x(I.filter(function(L,k){return!N.has(k)})))},move:function(P,I){if(P!==I){var N=S();P<0||P>=N.length||I<0||I>=N.length||(u.keys=Ts(u.keys,P,I),x(Ts(N,P,I)))}}},w=b||[];return Array.isArray(w)||(w=[]),n(w.map(function(M,P){var I=u.keys[P];return I===void 0&&(u.keys[P]=u.id,I=u.keys[P],u.id+=1),{name:P,key:I,isListField:!0}}),C,h)})))}function mh(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&o(n),a(n))})})}):Promise.resolve([])}var mc="__@field_split__";function Ja(e){return e.map(function(t){return"".concat(se(t),":").concat(t)}).join(mc)}var Or=function(){function e(){et(this,e),T(this,"kvs",new Map)}return Je(e,[{key:"set",value:function(r,n){this.kvs.set(Ja(r),n)}},{key:"get",value:function(r){return this.kvs.get(Ja(r))}},{key:"update",value:function(r,n){var a=this.get(r),o=n(a);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Ja(r))}},{key:"map",value:function(r){return Q(this.kvs.entries()).map(function(n){var a=W(n,2),o=a[0],i=a[1],s=o.split(mc);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=W(c,3),f=u[1],v=u[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,o=n.value;return r[a.join(".")]=o,null}),r}}]),e}(),ph=["name"],bh=Je(function e(t){var r=this;et(this,e),T(this,"formHooked",!1),T(this,"forceRootUpdate",void 0),T(this,"subscribable",!0),T(this,"store",{}),T(this,"fieldEntities",[]),T(this,"initialValues",{}),T(this,"callbacks",{}),T(this,"validateMessages",null),T(this,"preserve",null),T(this,"lastValidatePromise",null),T(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),T(this,"getInternalHooks",function(n){return n===gr?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(pt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),T(this,"useSubscribe",function(n){r.subscribable=n}),T(this,"prevWithoutPreserves",null),T(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var o,i=jr(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=Tt(i,l,_t(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),T(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new Or;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),T(this,"getInitialValue",function(n){var a=_t(r.initialValues,n);return n.length?jr(a):a}),T(this,"setCallbacks",function(n){r.callbacks=n}),T(this,"setValidateMessages",function(n){r.validateMessages=n}),T(this,"setPreserve",function(n){r.preserve=n}),T(this,"watchList",[]),T(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),T(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(a,o,n)})}}),T(this,"timeoutId",null),T(this,"warningUnhooked",function(){}),T(this,"updateStore",function(n){r.store=n}),T(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),T(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Or;return r.getFieldEntities(n).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),T(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(o){var i=ze(o);return a.get(i)||{INVALIDATE_NAME_PATH:ze(o)}})}),T(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&se(n)==="object"&&(s=n.strict,i=n.filter),o===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(u){var f,v,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var m,p;if((m=(p=u).isList)!==null&&m!==void 0&&m.call(p))return}else if(!o&&(f=(v=u).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)c.push(g);else{var h="getMeta"in u?u.getMeta():null;i(h)&&c.push(g)}}),Rs(r.store,c.map(ze))}),T(this,"getFieldValue",function(n){r.warningUnhooked();var a=ze(n);return _t(r.store,a)}),T(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:ze(n[i]),errors:[],warnings:[]}})}),T(this,"getFieldError",function(n){r.warningUnhooked();var a=ze(n),o=r.getFieldsError([a])[0];return o.errors}),T(this,"getFieldWarning",function(n){r.warningUnhooked();var a=ze(n),o=r.getFieldsError([a])[0];return o.warnings}),T(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=a[0],s=a[1],l,c=!1;a.length===0?l=null:a.length===1?Array.isArray(i)?(l=i.map(ze),c=!1):(l=null,c=i):(l=i.map(ze),c=s);var u=r.getFieldEntities(!0),f=function(h){return h.isFieldTouched()};if(!l)return c?u.every(function(p){return f(p)||p.isList()}):u.some(f);var v=new Or;l.forEach(function(p){v.set(p,[])}),u.forEach(function(p){var h=p.getNamePath();l.forEach(function(y){y.every(function(b,x){return h[x]===b})&&v.update(y,function(b){return[].concat(Q(b),[p])})})});var g=function(h){return h.some(f)},m=v.map(function(p){var h=p.value;return h});return c?m.every(g):m.some(g)}),T(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),T(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(i){return i.isFieldValidating()});var o=n.map(ze);return a.some(function(i){var s=i.getNamePath();return Lr(o,s)&&i.isFieldValidating()})}),T(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),T(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new Or,o=r.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=a.get(u)||new Set;f.add({entity:l,value:c}),a.set(u,f)}});var i=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var v=u.getNamePath(),g=r.getInitialValue(v);if(g!==void 0)pt(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var m=a.get(v);if(m&&m.size>1)pt(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var p=r.getFieldValue(v),h=u.isListField();!h&&(!n.skipExist||p===void 0)&&r.updateStore(Tt(r.store,v,Q(m)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=a.get(l);if(c){var u;(u=s).push.apply(u,Q(Q(c).map(function(f){return f.entity})))}})):s=o,i(s)}),T(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(jr(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(ze);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(Tt(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(a,o,{type:"reset"}),r.notifyWatch(o)}),T(this,"setFields",function(n){r.warningUnhooked();var a=r.store,o=[];n.forEach(function(i){var s=i.name,l=bt(i,ph),c=ze(s);o.push(c),"value"in l&&r.updateStore(Tt(r.store,c,l.value)),r.notifyObservers(a,[c],{type:"setField",data:i})}),r.notifyWatch(o)}),T(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(o){var i=o.getNamePath(),s=o.getMeta(),l=F(F({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),T(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var o=n.getNamePath(),i=_t(r.store,o);i===void 0&&r.updateStore(Tt(r.store,o,a))}}),T(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),T(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==c&&r.fieldEntities.every(function(f){return!gc(f.getNamePath(),a)})){var u=r.store;r.updateStore(Tt(u,a,c,!0)),r.notifyObservers(u,[a],{type:"remove"}),r.triggerDependenciesUpdate(u,a)}}r.notifyWatch([a])}}),T(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,o=n.value;r.updateValue(a,o);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),T(this,"notifyObservers",function(n,a,o){if(r.subscribable){var i=F(F({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,i)})}else r.forceRootUpdate()}),T(this,"triggerDependenciesUpdate",function(n,a){var o=r.getDependencyChildrenFields(a);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Q(o))}),o}),T(this,"updateValue",function(n,a){var o=ze(n),i=r.store;r.updateStore(Tt(r.store,o,a)),r.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(i,o),l=r.callbacks.onValuesChange;if(l){var c=Rs(r.store,[o]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(Q(s)))}),T(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var o=jr(r.store,n);r.updateStore(o)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),T(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a}])}),T(this,"getDependencyChildrenFields",function(n){var a=new Set,o=[],i=new Or;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=ze(u);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(l),v})})});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(f){if(!a.has(f)){a.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(o.push(v),l(v))}})};return s(n),o}),T(this,"triggerOnFieldsChange",function(n,a){var o=r.callbacks.onFieldsChange;if(o){var i=r.getFields();if(a){var s=new Or;a.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var u=c.name;return Lr(n,u)});l.length&&o(l,i)}}),T(this,"validateFields",function(n,a){r.warningUnhooked();var o,i;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(o=n,i=a):i=n;var s=!!o,l=s?o.map(ze):[],c=[],u=String(Date.now()),f=new Set,v=i||{},g=v.recursive,m=v.dirty;r.getFieldEntities(!0).forEach(function(b){if(s||l.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(m&&!b.isFieldDirty())){var x=b.getNamePath();if(f.add(x.join(u)),!s||Lr(l,x,g)){var E=b.validateRules(F({validateMessages:F(F({},vc),r.validateMessages)},i));c.push(E.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(S){var C,w=[],M=[];return(C=S.forEach)===null||C===void 0||C.call(S,function(P){var I=P.rule.warningOnly,N=P.errors;I?M.push.apply(M,Q(N)):w.push.apply(w,Q(N))}),w.length?Promise.reject({name:x,errors:w,warnings:M}):{name:x,errors:w,warnings:M}}))}}});var p=mh(c);r.lastValidatePromise=p,p.catch(function(b){return b}).then(function(b){var x=b.map(function(E){var S=E.name;return S});r.notifyObservers(r.store,x,{type:"validateFinish"}),r.triggerOnFieldsChange(x,b)});var h=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(b){var x=b.filter(function(E){return E&&E.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:x,outOfDate:r.lastValidatePromise!==p})});h.catch(function(b){return b});var y=l.filter(function(b){return f.has(b.join(u))});return r.triggerOnFieldsChange(y),h}),T(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(o){console.error(o)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function pc(e){var t=d.useRef(),r=d.useState({}),n=W(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new bh(o);t.current=i.getForm()}return[t.current]}var ei=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),yh=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,o=t.children,i=d.useContext(ei),s=d.useRef({});return d.createElement(ei.Provider,{value:F(F({},i),{},{validateMessages:F(F({},i.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),i.triggerFormChange(c,u)},triggerFormFinish:function(c,u){a&&a(c,{values:u,forms:s.current}),i.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=F(F({},s.current),{},T({},c,u))),i.registerForm(c,u)},unregisterForm:function(c){var u=F({},s.current);delete u[c],s.current=u,i.unregisterForm(c)}})},o)},xh=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Sh=function(t,r){var n=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,v=t.validateTrigger,g=v===void 0?"onChange":v,m=t.onValuesChange,p=t.onFieldsChange,h=t.onFinish,y=t.onFinishFailed,b=t.clearOnDestroy,x=bt(t,xh),E=d.useRef(null),S=d.useContext(ei),C=pc(i),w=W(C,1),M=w[0],P=M.getInternalHooks(gr),I=P.useSubscribe,N=P.setInitialValues,L=P.setCallbacks,k=P.setValidateMessages,A=P.setPreserve,z=P.destroyForm;d.useImperativeHandle(r,function(){return F(F({},M),{},{nativeElement:E.current})}),d.useEffect(function(){return S.registerForm(n,M),function(){S.unregisterForm(n)}},[S,M,n]),k(F(F({},S.validateMessages),f)),L({onValuesChange:m,onFieldsChange:function(B){if(S.triggerFormChange(n,B),p){for(var K=arguments.length,oe=new Array(K>1?K-1:0),ie=1;ie<K;ie++)oe[ie-1]=arguments[ie];p.apply(void 0,[B].concat(oe))}},onFinish:function(B){S.triggerFormFinish(n,B),h&&h(B)},onFinishFailed:y}),A(s);var R=d.useRef(null);N(a,!R.current),R.current||(R.current=!0),d.useEffect(function(){return function(){return z(b)}},[]);var $,O=typeof l=="function";if(O){var j=M.getFieldsValue(!0);$=l(j,M)}else $=l;I(!O);var _=d.useRef();d.useEffect(function(){fh(_.current||[],o||[])||M.setFields(o||[]),_.current=o},[o,M]);var V=d.useMemo(function(){return F(F({},M),{},{validateTrigger:g})},[M,g]),D=d.createElement(da.Provider,{value:null},d.createElement(Wr.Provider,{value:V},$));return u===!1?D:d.createElement(u,We({},x,{ref:E,onSubmit:function(B){B.preventDefault(),B.stopPropagation(),M.submit()},onReset:function(B){var K;B.preventDefault(),M.resetFields(),(K=x.onReset)===null||K===void 0||K.call(x,B)}}),D)};function Ps(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Ch(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],o=a===void 0?{}:a,i=Mg(o)?{form:o}:o,s=i.form,l=d.useState(),c=W(l,2),u=c[0],f=c[1],v=d.useMemo(function(){return Ps(u)},[u]),g=d.useRef(v);g.current=v;var m=d.useContext(Wr),p=s||m,h=p&&p._init,y=ze(n),b=d.useRef(y);return b.current=y,d.useEffect(function(){if(h){var x=p.getFieldsValue,E=p.getInternalHooks,S=E(gr),C=S.registerWatch,w=function(N,L){var k=i.preserve?L:N;return typeof n=="function"?n(k):_t(k,b.current)},M=C(function(I,N){var L=w(I,N),k=Ps(L);g.current!==k&&(g.current=k,f(L))}),P=w(x(),x(!0));return u!==P&&f(P),M}},[h]),u}var wh=d.forwardRef(Sh),xn=wh;xn.FormProvider=yh;xn.Field=hc;xn.List=hh;xn.useForm=pc;xn.useWatch=Ch;const ti=d.createContext({}),Eh=e=>{let{children:t,status:r,override:n}=e;const a=d.useContext(ti),o=d.useMemo(()=>{const i=Object.assign({},a);return n&&delete i.isFormItemInput,r&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[r,n,a]);return d.createElement(ti.Provider,{value:o},t)},$h=d.createContext(void 0),Rh=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=ne.createElement(Eh,{override:!0,status:!0},a)),t&&(a=ne.createElement(tg,null,a)),a};var bc=function(t){if(lt()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},Th=function(t,r){if(!bc(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function Os(e,t){return!Array.isArray(e)&&t!==void 0?Th(e,t):bc(e)}const Ph=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};function Oh(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,o=n||{},i=o.className,s=o.content,l=a.x,c=l===void 0?0:l,u=a.y,f=u===void 0?0:u,v=d.useRef();if(!r||!r.points)return null;var g={position:"absolute"};if(r.autoArrow!==!1){var m=r.points[0],p=r.points[1],h=m[0],y=m[1],b=p[0],x=p[1];h===b||!["t","b"].includes(h)?g.top=f:h==="t"?g.top=0:g.bottom=0,y===x||!["l","r"].includes(y)?g.left=c:y==="l"?g.left=0:g.right=0}return d.createElement("div",{ref:v,className:he("".concat(t,"-arrow"),i),style:g},s)}function Mh(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?d.createElement(yi,We({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return d.createElement("div",{style:{zIndex:n},className:he("".concat(t,"-mask"),s)})}):null}var Fh=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),Ah=d.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,v=e.mask,g=e.arrow,m=e.arrowPos,p=e.align,h=e.motion,y=e.maskMotion,b=e.forceRender,x=e.getPopupContainer,E=e.autoDestroy,S=e.portal,C=e.zIndex,w=e.onMouseEnter,M=e.onMouseLeave,P=e.onPointerEnter,I=e.onPointerDownCapture,N=e.ready,L=e.offsetX,k=e.offsetY,A=e.offsetR,z=e.offsetB,R=e.onAlign,$=e.onPrepare,O=e.stretch,j=e.targetWidth,_=e.targetHeight,V=typeof r=="function"?r():r,D=l||c,U=(x==null?void 0:x.length)>0,B=d.useState(!x||!U),K=W(B,2),oe=K[0],ie=K[1];if(Ae(function(){!oe&&U&&i&&ie(!0)},[oe,U,i]),!oe)return null;var Ee="auto",me={left:"-1000vw",top:"-1000vh",right:Ee,bottom:Ee};if(N||!l){var pe,be=p.points,te=p.dynamicInset||((pe=p._experimental)===null||pe===void 0?void 0:pe.dynamicInset),ve=te&&be[0][1]==="r",Se=te&&be[0][0]==="b";ve?(me.right=A,me.left=Ee):(me.left=L,me.right=Ee),Se?(me.bottom=z,me.top=Ee):(me.top=k,me.bottom=Ee)}var le={};return O&&(O.includes("height")&&_?le.height=_:O.includes("minHeight")&&_&&(le.minHeight=_),O.includes("width")&&j?le.width=j:O.includes("minWidth")&&j&&(le.minWidth=j)),l||(le.pointerEvents="none"),d.createElement(S,{open:b||D,getContainer:x&&function(){return x(i)},autoDestroy:E},d.createElement(Mh,{prefixCls:a,open:l,zIndex:C,mask:v,motion:y}),d.createElement(mn,{onResize:R,disabled:!l},function(ue){return d.createElement(yi,We({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(a,"-hidden")},h,{onAppearPrepare:$,onEnterPrepare:$,visible:l,onVisibleChanged:function(ye){var Oe;h==null||(Oe=h.onVisibleChanged)===null||Oe===void 0||Oe.call(h,ye),s(ye)}}),function(Te,ye){var Oe=Te.className,xe=Te.style,ae=he(a,Oe,n);return d.createElement("div",{ref:ga(ue,t,ye),className:ae,style:F(F(F(F({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},me),le),xe),{},{boxSizing:"border-box",zIndex:C},o),onMouseEnter:w,onMouseLeave:M,onPointerEnter:P,onClick:f,onPointerDownCapture:I},g&&d.createElement(Oh,{prefixCls:a,arrow:g,arrowPos:m,align:p}),d.createElement(Fh,{cache:!l&&!u},V))})}))}),Ih=d.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=ha(r),o=d.useCallback(function(s){oi(t,n?n(s):s)},[n]),i=ii(o,si(r));return a?d.cloneElement(r,{ref:i}):r}),Ms=d.createContext(null);function Fs(e){return e?Array.isArray(e)?e:[e]:[]}function jh(e,t,r,n){return d.useMemo(function(){var a=Fs(r??t),o=Fs(n??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,r,n])}function kh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Nh(e,t,r,n){for(var a=r.points,o=Object.keys(e),i=0;i<o.length;i+=1){var s,l=o[i];if(kh((s=e[l])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(l)}return""}function As(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Sn(e){return e.ownerDocument.defaultView}function ri(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=Sn(r).getComputedStyle(r),o=a.overflowX,i=a.overflowY,s=a.overflow;[o,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function hn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Jr(e){return hn(parseFloat(e),0)}function Is(e,t){var r=F({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=Sn(n).getComputedStyle(n),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,c=a.borderLeftWidth,u=a.borderRightWidth,f=n.getBoundingClientRect(),v=n.offsetHeight,g=n.clientHeight,m=n.offsetWidth,p=n.clientWidth,h=Jr(s),y=Jr(l),b=Jr(c),x=Jr(u),E=hn(Math.round(f.width/m*1e3)/1e3),S=hn(Math.round(f.height/v*1e3)/1e3),C=(m-p-b-x)*E,w=(v-g-h-y)*S,M=h*S,P=y*S,I=b*E,N=x*E,L=0,k=0;if(o==="clip"){var A=Jr(i);L=A*E,k=A*S}var z=f.x+I-L,R=f.y+M-k,$=z+f.width+2*L-I-N-C,O=R+f.height+2*k-M-P-w;r.left=Math.max(r.left,z),r.top=Math.max(r.top,R),r.right=Math.min(r.right,$),r.bottom=Math.min(r.bottom,O)}}),r}function js(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function ks(e,t){var r=t||[],n=W(r,2),a=n[0],o=n[1];return[js(e.width,a),js(e.height,o)]}function Ns(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Mr(e,t){var r=t[0],n=t[1],a,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function tr(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function Lh(e,t,r,n,a,o,i){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[n]||{}}),l=W(s,2),c=l[0],u=l[1],f=d.useRef(0),v=d.useMemo(function(){return t?ri(t):[]},[t]),g=d.useRef({}),m=function(){g.current={}};e||m();var p=ht(function(){if(t&&r&&e){let yt=function(Rr,Jt){var er=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fe,Qr=B.x+Rr,kn=B.y+Jt,ja=Qr+ve,ka=kn+te,Na=Math.max(Qr,er.left),q=Math.max(kn,er.top),J=Math.min(ja,er.right),Me=Math.min(ka,er.bottom);return Math.max(0,(J-Na)*(Me-q))},jn=function(){Ut=B.y+re,qt=Ut+te,Be=B.x+$e,Cr=Be+ve};var b,x,E,S,C=t,w=C.ownerDocument,M=Sn(C),P=M.getComputedStyle(C),I=P.width,N=P.height,L=P.position,k=C.style.left,A=C.style.top,z=C.style.right,R=C.style.bottom,$=C.style.overflow,O=F(F({},a[n]),o),j=w.createElement("div");(b=C.parentElement)===null||b===void 0||b.appendChild(j),j.style.left="".concat(C.offsetLeft,"px"),j.style.top="".concat(C.offsetTop,"px"),j.style.position=L,j.style.height="".concat(C.offsetHeight,"px"),j.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var _;if(Array.isArray(r))_={x:r[0],y:r[1],width:0,height:0};else{var V,D,U=r.getBoundingClientRect();U.x=(V=U.x)!==null&&V!==void 0?V:U.left,U.y=(D=U.y)!==null&&D!==void 0?D:U.top,_={x:U.x,y:U.y,width:U.width,height:U.height}}var B=C.getBoundingClientRect();B.x=(x=B.x)!==null&&x!==void 0?x:B.left,B.y=(E=B.y)!==null&&E!==void 0?E:B.top;var K=w.documentElement,oe=K.clientWidth,ie=K.clientHeight,Ee=K.scrollWidth,me=K.scrollHeight,pe=K.scrollTop,be=K.scrollLeft,te=B.height,ve=B.width,Se=_.height,le=_.width,ue={left:0,top:0,right:oe,bottom:ie},Te={left:-be,top:-pe,right:Ee-be,bottom:me-pe},ye=O.htmlRegion,Oe="visible",xe="visibleFirst";ye!=="scroll"&&ye!==xe&&(ye=Oe);var ae=ye===xe,Ie=Is(Te,v),X=Is(ue,v),Fe=ye===Oe?X:Ie,Ne=ae?X:Fe;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var Le=C.getBoundingClientRect();C.style.left=k,C.style.top=A,C.style.right=z,C.style.bottom=R,C.style.overflow=$,(S=C.parentElement)===null||S===void 0||S.removeChild(j);var ot=hn(Math.round(ve/parseFloat(I)*1e3)/1e3),tt=hn(Math.round(te/parseFloat(N)*1e3)/1e3);if(ot===0||tt===0||an(r)&&!Yv(r))return;var ct=O.offset,Xe=O.targetOffset,It=ks(B,ct),Ue=W(It,2),ge=Ue[0],ee=Ue[1],Qe=ks(_,Xe),G=W(Qe,2),Y=G[0],_e=G[1];_.x-=Y,_.y-=_e;var zt=O.points||[],Yt=W(zt,2),yr=Yt[0],Vt=Yt[1],Ze=Ns(Vt),qe=Ns(yr),Bt=Mr(_,Ze),je=Mr(B,qe),rt=F({},O),$e=Bt.x-je.x+ge,re=Bt.y-je.y+ee,it=yt($e,re),Ht=yt($e,re,X),Pe=Mr(_,["t","l"]),Ce=Mr(B,["t","l"]),nt=Mr(_,["b","r"]),Ye=Mr(B,["b","r"]),ut=O.overflow||{},xr=ut.adjustX,Sr=ut.adjustY,Dt=ut.shiftX,Wt=ut.shiftY,sr=function(Jt){return typeof Jt=="boolean"?Jt:Jt>=0},Ut,qt,Be,Cr;jn();var lr=sr(Sr),wn=qe[0]===Ze[0];if(lr&&qe[0]==="t"&&(qt>Ne.bottom||g.current.bt)){var Ge=re;wn?Ge-=te-Se:Ge=Pe.y-Ye.y-ee;var En=yt($e,Ge),Ca=yt($e,Ge,X);En>it||En===it&&(!ae||Ca>=Ht)?(g.current.bt=!0,re=Ge,ee=-ee,rt.points=[tr(qe,0),tr(Ze,0)]):g.current.bt=!1}if(lr&&qe[0]==="b"&&(Ut<Ne.top||g.current.tb)){var cr=re;wn?cr+=te-Se:cr=nt.y-Ce.y-ee;var $n=yt($e,cr),wa=yt($e,cr,X);$n>it||$n===it&&(!ae||wa>=Ht)?(g.current.tb=!0,re=cr,ee=-ee,rt.points=[tr(qe,0),tr(Ze,0)]):g.current.tb=!1}var Rn=sr(xr),Tn=qe[1]===Ze[1];if(Rn&&qe[1]==="l"&&(Cr>Ne.right||g.current.rl)){var ur=$e;Tn?ur-=ve-le:ur=Pe.x-Ye.x-ge;var Pn=yt(ur,re),wr=yt(ur,re,X);Pn>it||Pn===it&&(!ae||wr>=Ht)?(g.current.rl=!0,$e=ur,ge=-ge,rt.points=[tr(qe,1),tr(Ze,1)]):g.current.rl=!1}if(Rn&&qe[1]==="r"&&(Be<Ne.left||g.current.lr)){var Gt=$e;Tn?Gt+=ve-le:Gt=nt.x-Ce.x-ge;var On=yt(Gt,re),Mn=yt(Gt,re,X);On>it||On===it&&(!ae||Mn>=Ht)?(g.current.lr=!0,$e=Gt,ge=-ge,rt.points=[tr(qe,1),tr(Ze,1)]):g.current.lr=!1}jn();var jt=Dt===!0?0:Dt;typeof jt=="number"&&(Be<X.left&&($e-=Be-X.left-ge,_.x+le<X.left+jt&&($e+=_.x-X.left+le-jt)),Cr>X.right&&($e-=Cr-X.right-ge,_.x>X.right-jt&&($e+=_.x-X.right+jt)));var $t=Wt===!0?0:Wt;typeof $t=="number"&&(Ut<X.top&&(re-=Ut-X.top-ee,_.y+Se<X.top+$t&&(re+=_.y-X.top+Se-$t)),qt>X.bottom&&(re-=qt-X.bottom-ee,_.y>X.bottom-$t&&(re+=_.y-X.bottom+$t)));var Er=B.x+$e,$r=Er+ve,kt=B.y+re,Ea=kt+te,Fn=_.x,$a=Fn+le,Kr=_.y,Ra=Kr+Se,Ta=Math.max(Er,Fn),Pa=Math.min($r,$a),An=(Ta+Pa)/2,Oa=An-Er,Ma=Math.max(kt,Kr),In=Math.min(Ea,Ra),Fa=(Ma+In)/2,Aa=Fa-kt;i==null||i(t,rt);var Xr=Le.right-B.x-($e+B.width),Nt=Le.bottom-B.y-(re+B.height);ot===1&&($e=Math.round($e),Xr=Math.round(Xr)),tt===1&&(re=Math.round(re),Nt=Math.round(Nt));var Ia={ready:!0,offsetX:$e/ot,offsetY:re/tt,offsetR:Xr/ot,offsetB:Nt/tt,arrowX:Oa/ot,arrowY:Aa/tt,scaleX:ot,scaleY:tt,align:rt};u(Ia)}}),h=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&p()})},y=function(){u(function(x){return F(F({},x),{},{ready:!1})})};return Ae(y,[n]),Ae(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,h]}function _h(e,t,r,n,a){Ae(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=ri(o),l=ri(i),c=Sn(i),u=new Set([c].concat(Q(s),Q(l)));return u.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),n(),function(){u.forEach(function(v){v.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,r])}function zh(e,t,r,n,a,o,i,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&n&&(!a||o)){var f=function(){c.current=!1},v=function(h){var y;l.current&&!i(((y=h.composedPath)===null||y===void 0||(y=y.call(h))===null||y===void 0?void 0:y[0])||h.target)&&!c.current&&s(!1)},g=Sn(n);g.addEventListener("pointerdown",f,!0),g.addEventListener("mousedown",v,!0),g.addEventListener("contextmenu",v,!0);var m=ua(r);return m&&(m.addEventListener("mousedown",v,!0),m.addEventListener("contextmenu",v,!0)),function(){g.removeEventListener("pointerdown",f,!0),g.removeEventListener("mousedown",v,!0),g.removeEventListener("contextmenu",v,!0),m&&(m.removeEventListener("mousedown",v,!0),m.removeEventListener("contextmenu",v,!0))}}},[t,r,n,a,o]);function u(){c.current=!0}return u}var Vh=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Bh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dc,t=d.forwardRef(function(r,n){var a=r.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,f=r.popupVisible,v=r.defaultPopupVisible,g=r.onPopupVisibleChange,m=r.afterPopupVisibleChange,p=r.mouseEnterDelay,h=r.mouseLeaveDelay,y=h===void 0?.1:h,b=r.focusDelay,x=r.blurDelay,E=r.mask,S=r.maskClosable,C=S===void 0?!0:S,w=r.getPopupContainer,M=r.forceRender,P=r.autoDestroy,I=r.destroyPopupOnHide,N=r.popup,L=r.popupClassName,k=r.popupStyle,A=r.popupPlacement,z=r.builtinPlacements,R=z===void 0?{}:z,$=r.popupAlign,O=r.zIndex,j=r.stretch,_=r.getPopupClassNameFromAlign,V=r.fresh,D=r.alignPoint,U=r.onPopupClick,B=r.onPopupAlign,K=r.arrow,oe=r.popupMotion,ie=r.maskMotion,Ee=r.popupTransitionName,me=r.popupAnimation,pe=r.maskTransitionName,be=r.maskAnimation,te=r.className,ve=r.getTriggerDOMNode,Se=bt(r,Vh),le=P||I||!1,ue=d.useState(!1),Te=W(ue,2),ye=Te[0],Oe=Te[1];Ae(function(){Oe(Ph())},[]);var xe=d.useRef({}),ae=d.useContext(Ms),Ie=d.useMemo(function(){return{registerSubPopup:function(J,Me){xe.current[J]=Me,ae==null||ae.registerSubPopup(J,Me)}}},[ae]),X=Og(),Fe=d.useState(null),Ne=W(Fe,2),Le=Ne[0],ot=Ne[1],tt=d.useRef(null),ct=ht(function(q){tt.current=q,an(q)&&Le!==q&&ot(q),ae==null||ae.registerSubPopup(X,q)}),Xe=d.useState(null),It=W(Xe,2),Ue=It[0],ge=It[1],ee=d.useRef(null),Qe=ht(function(q){an(q)&&Ue!==q&&(ge(q),ee.current=q)}),G=d.Children.only(i),Y=(G==null?void 0:G.props)||{},_e={},zt=ht(function(q){var J,Me,He=Ue;return(He==null?void 0:He.contains(q))||((J=ua(He))===null||J===void 0?void 0:J.host)===q||q===He||(Le==null?void 0:Le.contains(q))||((Me=ua(Le))===null||Me===void 0?void 0:Me.host)===q||q===Le||Object.values(xe.current).some(function(ke){return(ke==null?void 0:ke.contains(q))||q===ke})}),Yt=As(o,oe,me,Ee),yr=As(o,ie,be,pe),Vt=d.useState(v||!1),Ze=W(Vt,2),qe=Ze[0],Bt=Ze[1],je=f??qe,rt=ht(function(q){f===void 0&&Bt(q)});Ae(function(){Bt(f||!1)},[f]);var $e=d.useRef(je);$e.current=je;var re=d.useRef([]);re.current=[];var it=ht(function(q){var J;rt(q),((J=re.current[re.current.length-1])!==null&&J!==void 0?J:je)!==q&&(re.current.push(q),g==null||g(q))}),Ht=d.useRef(),Pe=function(){clearTimeout(Ht.current)},Ce=function(J){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Pe(),Me===0?it(J):Ht.current=setTimeout(function(){it(J)},Me*1e3)};d.useEffect(function(){return Pe},[]);var nt=d.useState(!1),Ye=W(nt,2),ut=Ye[0],xr=Ye[1];Ae(function(q){(!q||je)&&xr(!0)},[je]);var Sr=d.useState(null),Dt=W(Sr,2),Wt=Dt[0],sr=Dt[1],Ut=d.useState(null),qt=W(Ut,2),Be=qt[0],Cr=qt[1],lr=function(J){Cr([J.clientX,J.clientY])},wn=Lh(je,Le,D&&Be!==null?Be:Ue,A,R,$,B),Ge=W(wn,11),En=Ge[0],Ca=Ge[1],cr=Ge[2],$n=Ge[3],wa=Ge[4],Rn=Ge[5],Tn=Ge[6],ur=Ge[7],Pn=Ge[8],wr=Ge[9],Gt=Ge[10],On=jh(ye,l,c,u),Mn=W(On,2),jt=Mn[0],$t=Mn[1],Er=jt.has("click"),$r=$t.has("click")||$t.has("contextMenu"),kt=ht(function(){ut||Gt()}),Ea=function(){$e.current&&D&&$r&&Ce(!1)};_h(je,Ue,Le,kt,Ea),Ae(function(){kt()},[Be,A]),Ae(function(){je&&!(R!=null&&R[A])&&kt()},[JSON.stringify($)]);var Fn=d.useMemo(function(){var q=Nh(R,o,wr,D);return he(q,_==null?void 0:_(wr))},[wr,_,R,o,D]);d.useImperativeHandle(n,function(){return{nativeElement:ee.current,popupElement:tt.current,forceAlign:kt}});var $a=d.useState(0),Kr=W($a,2),Ra=Kr[0],Ta=Kr[1],Pa=d.useState(0),An=W(Pa,2),Oa=An[0],Ma=An[1],In=function(){if(j&&Ue){var J=Ue.getBoundingClientRect();Ta(J.width),Ma(J.height)}},Fa=function(){In(),kt()},Aa=function(J){xr(!1),Gt(),m==null||m(J)},Xr=function(){return new Promise(function(J){In(),sr(function(){return J})})};Ae(function(){Wt&&(Gt(),Wt(),sr(null))},[Wt]);function Nt(q,J,Me,He){_e[q]=function(ke){var Nn;He==null||He(ke),Ce(J,Me);for(var La=arguments.length,Ei=new Array(La>1?La-1:0),Ln=1;Ln<La;Ln++)Ei[Ln-1]=arguments[Ln];(Nn=Y[q])===null||Nn===void 0||Nn.call.apply(Nn,[Y,ke].concat(Ei))}}(Er||$r)&&(_e.onClick=function(q){var J;$e.current&&$r?Ce(!1):!$e.current&&Er&&(lr(q),Ce(!0));for(var Me=arguments.length,He=new Array(Me>1?Me-1:0),ke=1;ke<Me;ke++)He[ke-1]=arguments[ke];(J=Y.onClick)===null||J===void 0||J.call.apply(J,[Y,q].concat(He))});var Ia=zh(je,$r,Ue,Le,E,C,zt,Ce),yt=jt.has("hover"),jn=$t.has("hover"),Rr,Jt;yt&&(Nt("onMouseEnter",!0,p,function(q){lr(q)}),Nt("onPointerEnter",!0,p,function(q){lr(q)}),Rr=function(J){(je||ut)&&Le!==null&&Le!==void 0&&Le.contains(J.target)&&Ce(!0,p)},D&&(_e.onMouseMove=function(q){var J;(J=Y.onMouseMove)===null||J===void 0||J.call(Y,q)})),jn&&(Nt("onMouseLeave",!1,y),Nt("onPointerLeave",!1,y),Jt=function(){Ce(!1,y)}),jt.has("focus")&&Nt("onFocus",!0,b),$t.has("focus")&&Nt("onBlur",!1,x),jt.has("contextMenu")&&(_e.onContextMenu=function(q){var J;$e.current&&$t.has("contextMenu")?Ce(!1):(lr(q),Ce(!0)),q.preventDefault();for(var Me=arguments.length,He=new Array(Me>1?Me-1:0),ke=1;ke<Me;ke++)He[ke-1]=arguments[ke];(J=Y.onContextMenu)===null||J===void 0||J.call.apply(J,[Y,q].concat(He))}),te&&(_e.className=he(Y.className,te));var er=F(F({},Y),_e),Qr={},kn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];kn.forEach(function(q){Se[q]&&(Qr[q]=function(){for(var J,Me=arguments.length,He=new Array(Me),ke=0;ke<Me;ke++)He[ke]=arguments[ke];(J=er[q])===null||J===void 0||J.call.apply(J,[er].concat(He)),Se[q].apply(Se,He)})});var ja=d.cloneElement(G,F(F({},er),Qr)),ka={x:Rn,y:Tn},Na=K?F({},K!==!0?K:{}):null;return d.createElement(d.Fragment,null,d.createElement(mn,{disabled:!je,ref:Qe,onResize:Fa},d.createElement(Ih,{getTriggerDOMNode:ve},ja)),d.createElement(Ms.Provider,{value:Ie},d.createElement(Ah,{portal:e,ref:ct,prefixCls:o,popup:N,className:he(L,Fn),style:k,target:Ue,onMouseEnter:Rr,onMouseLeave:Jt,onPointerEnter:Rr,zIndex:O,open:je,keepDom:ut,fresh:V,onClick:U,onPointerDownCapture:Ia,mask:E,motion:Yt,maskMotion:yr,onVisibleChanged:Aa,onPrepare:Xr,forceRender:M,autoDestroy:le,getPopupContainer:w,align:wr,arrow:Na,arrowPos:ka,ready:En,offsetX:Ca,offsetY:cr,offsetR:$n,offsetB:wa,onAlign:kt,stretch:j,targetWidth:Ra/ur,targetHeight:Oa/Pn})))});return t}const Hh=Bh(dc);function Dh(e,t,r){return he({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Wh=(e,t)=>t||e,Uh=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,a;const{variant:o,[e]:i}=d.useContext(Ft),s=d.useContext($h),l=i==null?void 0:i.variant;let c;typeof t<"u"?c=t:r===!1?c="borderless":c=(a=(n=s??l)!==null&&n!==void 0?n:o)!==null&&a!==void 0?a:"outlined";const u=yf.includes(c);return[c,u]};var qh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Gh=function(t,r){return d.createElement(Zt,We({},t,{ref:r,icon:qh}))},Kh=d.forwardRef(Gh);function yc(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return d.createElement("div",{className:he("".concat(r,"-content"),o),style:i},d.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var Fr={shiftX:64,adjustY:1},Ar={adjustX:1,shiftY:!0},Ct=[0,0],Xh={left:{points:["cr","cl"],overflow:Ar,offset:[-4,0],targetOffset:Ct},right:{points:["cl","cr"],overflow:Ar,offset:[4,0],targetOffset:Ct},top:{points:["bc","tc"],overflow:Fr,offset:[0,-4],targetOffset:Ct},bottom:{points:["tc","bc"],overflow:Fr,offset:[0,4],targetOffset:Ct},topLeft:{points:["bl","tl"],overflow:Fr,offset:[0,-4],targetOffset:Ct},leftTop:{points:["tr","tl"],overflow:Ar,offset:[-4,0],targetOffset:Ct},topRight:{points:["br","tr"],overflow:Fr,offset:[0,-4],targetOffset:Ct},rightTop:{points:["tl","tr"],overflow:Ar,offset:[4,0],targetOffset:Ct},bottomRight:{points:["tr","br"],overflow:Fr,offset:[0,4],targetOffset:Ct},rightBottom:{points:["bl","br"],overflow:Ar,offset:[4,0],targetOffset:Ct},bottomLeft:{points:["tl","bl"],overflow:Fr,offset:[0,4],targetOffset:Ct},leftBottom:{points:["br","bl"],overflow:Ar,offset:[-4,0],targetOffset:Ct}},Qh=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Zh=function(t,r){var n=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,g=t.children,m=t.onVisibleChange,p=t.afterVisibleChange,h=t.transitionName,y=t.animation,b=t.motion,x=t.placement,E=x===void 0?"right":x,S=t.align,C=S===void 0?{}:S,w=t.destroyTooltipOnHide,M=w===void 0?!1:w,P=t.defaultVisible,I=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var L=t.overlay,k=t.id,A=t.showArrow,z=A===void 0?!0:A,R=bt(t,Qh),$=d.useRef(null);d.useImperativeHandle(r,function(){return $.current});var O=F({},R);"visible"in t&&(O.popupVisible=t.visible);var j=function(){return d.createElement(yc,{key:"content",prefixCls:v,id:k,overlayInnerStyle:N},L)};return d.createElement(Hh,We({popupClassName:n,prefixCls:v,popup:j,action:o,builtinPlacements:Xh,popupPlacement:E,ref:$,popupAlign:C,getPopupContainer:I,onPopupVisibleChange:m,afterPopupVisibleChange:p,popupTransitionName:h,popupAnimation:y,popupMotion:b,defaultPopupVisible:P,autoDestroy:M,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:z},O),g)};const Yh=d.forwardRef(Zh);function Jh(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,o=0,i=a,s=n*1/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),c=a-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*a-c,v=u,g=2*a-s,m=l,p=2*a-o,h=i,y=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1),x=`polygon(${b}px 100%, 50% ${b}px, ${2*a-b}px 100%, ${b}px 100%)`,E=`path('M ${o} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${f} ${v} L ${g} ${m} A ${n} ${n} 0 0 0 ${p} ${h} Z')`;return{arrowShadowWidth:y,arrowPath:E,arrowPolygon:x}}const em=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${we(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},xc=8;function Sc(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?xc:n}}function Xn(e,t){return e?t:{}}function tm(e,t,r){const{componentCls:n,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},em(e,t,a)),{"&:before":{background:t}})]},Xn(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${we(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Xn(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${we(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Xn(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),Xn(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function rm(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const a=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Ls={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},nm={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},am=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function om(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(Ls).forEach(c=>{const u=n&&nm[c]||Ls[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,am.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}const v=Sc({contentRadius:o,limitVerticalRadius:!0});if(n)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-v.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=v.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-v.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=v.arrowOffsetHorizontal*2-s;break}f.overflow=rm(c,v,t,r),i&&(f.htmlRegion="visibleFirst")}),l}const im=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mi(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${we(e.calc(c).div(2).equal())} ${we(u)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,xc)}},[`${t}-content`]:{position:"relative"}}),Xf(e,(f,v)=>{let{darkColor:g}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},tm(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},sm=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Sc({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Jh(br(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Cc=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return pi("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=br(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[im(s),mg(n,"zoom-big-fast")]},sm,{resetStyle:!1,injectStyle:t})(e)},lm=ca.map(e=>`${e}-inverse`);function cm(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Q(lm),Q(ca)).includes(e):ca.includes(e)}function wc(e,t){const r=cm(t),n=he({[`${e}-${t}`]:t&&r}),a={},o={};return t&&!r&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:o}}const um=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=d.useContext(Ft),l=s("tooltip",t),[c,u,f]=Cc(l),v=wc(l,o),g=v.arrowStyle,m=Object.assign(Object.assign({},i),v.overlayStyle),p=he(u,f,l,`${l}-pure`,`${l}-placement-${n}`,r,v.className);return c(d.createElement("div",{className:p,style:g},d.createElement("div",{className:`${l}-arrow`}),d.createElement(yc,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),a)))};var dm=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const fm=d.forwardRef((e,t)=>{var r,n;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:g,arrow:m=!0,title:p,overlay:h,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:x=!0}=e,E=!!m,[,S]=qr(),{getPopupContainer:C,getPrefixCls:w,direction:M}=d.useContext(Ft),P=Ol(),I=d.useRef(null),N=()=>{var X;(X=I.current)===null||X===void 0||X.forceAlign()};d.useImperativeHandle(t,()=>{var X;return{forceAlign:N,forcePopupAlign:()=>{P.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:(X=I.current)===null||X===void 0?void 0:X.nativeElement}});const[L,k]=gn(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),A=!p&&!h&&p!==0,z=X=>{var Fe,Ne;k(A?!1:X),A||((Fe=e.onOpenChange)===null||Fe===void 0||Fe.call(e,X),(Ne=e.onVisibleChange)===null||Ne===void 0||Ne.call(e,X))},R=d.useMemo(()=>{var X,Fe;let Ne=b;return typeof m=="object"&&(Ne=(Fe=(X=m.pointAtCenter)!==null&&X!==void 0?X:m.arrowPointAtCenter)!==null&&Fe!==void 0?Fe:b),y||om({arrowPointAtCenter:Ne,autoAdjustOverflow:x,arrowWidth:E?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[b,m,y,S]),$=d.useMemo(()=>p===0?p:h||p||"",[h,p]),O=d.createElement(Rh,{space:!0},typeof $=="function"?$():$),{getPopupContainer:j,placement:_="top",mouseEnterDelay:V=.1,mouseLeaveDelay:D=.1,overlayStyle:U,rootClassName:B}=e,K=dm(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),oe=w("tooltip",a),ie=w(),Ee=e["data-popover-inject"];let me=L;!("open"in e)&&!("visible"in e)&&A&&(me=!1);const pe=d.isValidElement(u)&&!Hv(u)?u:d.createElement("span",null,u),be=pe.props,te=!be.className||typeof be.className=="string"?he(be.className,o||`${oe}-open`):be.className,[ve,Se,le]=Cc(oe,!Ee),ue=wc(oe,l),Te=ue.arrowStyle,ye=Object.assign(Object.assign({},c),ue.overlayStyle),Oe=he(s,{[`${oe}-rtl`]:M==="rtl"},ue.className,B,Se,le),[xe,ae]=Qv("Tooltip",K.zIndex),Ie=d.createElement(Yh,Object.assign({},K,{zIndex:xe,showArrow:E,placement:_,mouseEnterDelay:V,mouseLeaveDelay:D,prefixCls:oe,overlayClassName:Oe,overlayStyle:Object.assign(Object.assign({},Te),U),getTooltipContainer:j||i||C,ref:I,builtinPlacements:R,overlay:O,visible:me,onVisibleChange:z,afterVisibleChange:f??v,overlayInnerStyle:ye,arrowContent:d.createElement("span",{className:`${oe}-arrow-content`}),motion:{motionName:Zv(ie,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),me?sc(pe,{className:te}):pe);return ve(d.createElement(lc.Provider,{value:ae},Ie))}),xa=fm;xa._InternalPanelDoNotUseOrYouWillBeFired=um;function vm(e){return br(e,{inputAffixPadding:e.paddingXXS})}const gm=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:g,colorPrimary:m,controlOutlineWidth:p,controlOutline:h,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:x}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-r*n)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-a,paddingInline:c-a,paddingInlineSM:u-a,paddingInlineLG:f-a,addonBg:v,activeBorderColor:m,hoverBorderColor:g,activeShadow:`0 0 0 ${p}px ${h}`,errorActiveShadow:`0 0 0 ${p}px ${y}`,warningActiveShadow:`0 0 0 ${p}px ${b}`,hoverBg:x,activeBg:x,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},hm=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Si=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},hm(br(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Ec=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),_s=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ec(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),mm=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ec(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Si(e))}),_s(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),_s(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),zs=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),pm=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},zs(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),zs(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Si(e))}})}),bm=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},$c=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Vs=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},$c(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),ym=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$c(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Si(e))}),Vs(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Vs(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Bs=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),xm=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${we(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${we(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Bs(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Bs(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Sm=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Rc=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${we(t)} ${we(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},Tc=e=>({padding:`${we(e.paddingBlockSM)} ${we(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Pc=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${we(e.paddingBlock)} ${we(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Sm(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Rc(e)),"&-sm":Object.assign({},Tc(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Cm=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Rc(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Tc(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${we(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${we(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${we(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${we(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${we(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Wf()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
116
|
+
& > ${t}-affix-wrapper,
|
|
117
|
+
& > ${t}-number-affix-wrapper,
|
|
118
|
+
& > ${r}-picker-range
|
|
119
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
|
|
120
|
+
& > ${r}-select-auto-complete ${t},
|
|
121
|
+
& > ${r}-cascader-picker ${t},
|
|
122
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
123
|
+
& > ${r}-select:first-child > ${r}-select-selector,
|
|
124
|
+
& > ${r}-select-auto-complete:first-child ${t},
|
|
125
|
+
& > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
126
|
+
& > ${r}-select:last-child > ${r}-select-selector,
|
|
127
|
+
& > ${r}-cascader-picker:last-child ${t},
|
|
128
|
+
& > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},wm=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:a}=e,i=a(r).sub(a(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mi(e)),Pc(e)),mm(e)),ym(e)),bm(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Em=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${we(e.inputAffixPadding)}`}}}},$m=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Pc(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),Em(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}}),[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},Rm=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},mi(e)),Cm(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},pm(e)),xm(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Tm=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
129
|
+
> ${t},
|
|
130
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Pm=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
131
|
+
&-allow-clear > ${t},
|
|
132
|
+
&-affix-wrapper${n}-has-feedback ${t}
|
|
133
|
+
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Om=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Mm=pi("Input",e=>{const t=br(e,vm(e));return[wm(t),Pm(t),$m(t),Rm(t),Tm(t),Om(t),yg(t)]},gm,{resetFont:!1});function Fm(e){return!!(e.addonBefore||e.addonAfter)}function Am(e){return!!(e.prefix||e.suffix||e.allowClear)}function Hs(e,t,r){var n=t.cloneNode(!0),a=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function Ds(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=Hs(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=Hs(t,e,n),r(a);return}r(a)}}function Im(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var jm=ne.forwardRef(function(e,t){var r,n,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,v=e.style,g=e.disabled,m=e.readOnly,p=e.focused,h=e.triggerFocus,y=e.allowClear,b=e.value,x=e.handleReset,E=e.hidden,S=e.classes,C=e.classNames,w=e.dataAttrs,M=e.styles,P=e.components,I=e.onClear,N=o??a,L=(P==null?void 0:P.affixWrapper)||"span",k=(P==null?void 0:P.groupWrapper)||"span",A=(P==null?void 0:P.wrapper)||"span",z=(P==null?void 0:P.groupAddon)||"span",R=d.useRef(null),$=function(Se){var le;(le=R.current)!==null&&le!==void 0&&le.contains(Se.target)&&(h==null||h())},O=Am(e),j=d.cloneElement(N,{value:b,className:he(N.props.className,!O&&(C==null?void 0:C.variant))||null}),_=d.useRef(null);if(ne.useImperativeHandle(t,function(){return{nativeElement:_.current||R.current}}),O){var V=null;if(y){var D=!g&&!m&&b,U="".concat(i,"-clear-icon"),B=se(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";V=ne.createElement("span",{onClick:function(Se){x==null||x(Se),I==null||I()},onMouseDown:function(Se){return Se.preventDefault()},className:he(U,T(T({},"".concat(U,"-hidden"),!D),"".concat(U,"-has-suffix"),!!l)),role:"button",tabIndex:-1},B)}var K="".concat(i,"-affix-wrapper"),oe=he(K,T(T(T(T(T({},"".concat(i,"-disabled"),g),"".concat(K,"-disabled"),g),"".concat(K,"-focused"),p),"".concat(K,"-readonly"),m),"".concat(K,"-input-with-clear-btn"),l&&y&&b),S==null?void 0:S.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),ie=(l||y)&&ne.createElement("span",{className:he("".concat(i,"-suffix"),C==null?void 0:C.suffix),style:M==null?void 0:M.suffix},V,l);j=ne.createElement(L,We({className:oe,style:M==null?void 0:M.affixWrapper,onClick:$},w==null?void 0:w.affixWrapper,{ref:R}),s&&ne.createElement("span",{className:he("".concat(i,"-prefix"),C==null?void 0:C.prefix),style:M==null?void 0:M.prefix},s),j,ie)}if(Fm(e)){var Ee="".concat(i,"-group"),me="".concat(Ee,"-addon"),pe="".concat(Ee,"-wrapper"),be=he("".concat(i,"-wrapper"),Ee,S==null?void 0:S.wrapper,C==null?void 0:C.wrapper),te=he(pe,T({},"".concat(pe,"-disabled"),g),S==null?void 0:S.group,C==null?void 0:C.groupWrapper);j=ne.createElement(k,{className:te,ref:_},ne.createElement(A,{className:be},c&&ne.createElement(z,{className:me},c),j,u&&ne.createElement(z,{className:me},u)))}return ne.cloneElement(j,{className:he((r=j.props)===null||r===void 0?void 0:r.className,f)||null,style:F(F({},(n=j.props)===null||n===void 0?void 0:n.style),v),hidden:E})}),km=["show"];function Nm(e,t){return d.useMemo(function(){var r={};t&&(r.show=se(t)==="object"&&t.formatter?t.formatter:!!t),r=F(F({},r),e);var n=r,a=n.show,o=bt(n,km);return F(F({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}const Lm=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ne.createElement(Bv,null)}),t};var _m=`
|
|
134
|
+
min-height:0 !important;
|
|
135
|
+
max-height:none !important;
|
|
136
|
+
height:0 !important;
|
|
137
|
+
visibility:hidden !important;
|
|
138
|
+
overflow:hidden !important;
|
|
139
|
+
position:absolute !important;
|
|
140
|
+
z-index:-1000 !important;
|
|
141
|
+
top:0 !important;
|
|
142
|
+
right:0 !important;
|
|
143
|
+
pointer-events: none !important;
|
|
144
|
+
`,zm=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],eo={},vt;function Vm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&eo[r])return eo[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=zm.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&r&&(eo[r]=l),l}function Bm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;vt||(vt=document.createElement("textarea"),vt.setAttribute("tab-index","-1"),vt.setAttribute("aria-hidden","true"),vt.setAttribute("name","hiddenTextarea"),document.body.appendChild(vt)),e.getAttribute("wrap")?vt.setAttribute("wrap",e.getAttribute("wrap")):vt.removeAttribute("wrap");var a=Vm(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,l=a.sizingStyle;vt.setAttribute("style","".concat(l,";").concat(_m)),vt.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,v=vt.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=o),r!==null||n!==null){vt.value=" ";var g=vt.scrollHeight-o;r!==null&&(c=g*r,s==="border-box"&&(c=c+o+i),v=Math.max(c,v)),n!==null&&(u=g*n,s==="border-box"&&(u=u+o+i),f=v>u?"":"hidden",v=Math.min(u,v))}var m={height:v,overflowY:f,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}var Hm=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],to=0,ro=1,no=2,Dm=d.forwardRef(function(e,t){var r=e,n=r.prefixCls,a=r.defaultValue,o=r.value,i=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,f=r.onChange;r.onInternalAutoSize;var v=bt(r,Hm),g=gn(a,{value:o,postState:function(B){return B??""}}),m=W(g,2),p=m[0],h=m[1],y=function(B){h(B.target.value),f==null||f(B)},b=d.useRef();d.useImperativeHandle(t,function(){return{textArea:b.current}});var x=d.useMemo(function(){return i&&se(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),E=W(x,2),S=E[0],C=E[1],w=!!i,M=function(){try{if(document.activeElement===b.current){var B=b.current,K=B.selectionStart,oe=B.selectionEnd,ie=B.scrollTop;b.current.setSelectionRange(K,oe),b.current.scrollTop=ie}}catch{}},P=d.useState(no),I=W(P,2),N=I[0],L=I[1],k=d.useState(),A=W(k,2),z=A[0],R=A[1],$=function(){L(to)};Ae(function(){w&&$()},[o,S,C,w]),Ae(function(){if(N===to)L(ro);else if(N===ro){var U=Bm(b.current,!1,S,C);L(no),R(U)}else M()},[N]);var O=d.useRef(),j=function(){on.cancel(O.current)},_=function(B){N===no&&(s==null||s(B),i&&(j(),O.current=on(function(){$()})))};d.useEffect(function(){return j},[]);var V=w?z:null,D=F(F({},c),V);return(N===to||N===ro)&&(D.overflowY="hidden",D.overflowX="hidden"),d.createElement(mn,{onResize:_,disabled:!(i||s)},d.createElement("textarea",We({},v,{ref:b,style:D,className:he(n,l,T({},"".concat(n,"-disabled"),u)),disabled:u,value:p,onChange:y})))}),Wm=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Um=ne.forwardRef(function(e,t){var r,n=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,g=e.prefixCls,m=g===void 0?"rc-textarea":g,p=e.showCount,h=e.count,y=e.className,b=e.style,x=e.disabled,E=e.hidden,S=e.classNames,C=e.styles,w=e.onResize,M=e.onClear,P=e.onPressEnter,I=e.readOnly,N=e.autoSize,L=e.onKeyDown,k=bt(e,Wm),A=gn(n,{value:a,defaultValue:n}),z=W(A,2),R=z[0],$=z[1],O=R==null?"":String(R),j=ne.useState(!1),_=W(j,2),V=_[0],D=_[1],U=ne.useRef(!1),B=ne.useState(null),K=W(B,2),oe=K[0],ie=K[1],Ee=d.useRef(null),me=d.useRef(null),pe=function(){var ee;return(ee=me.current)===null||ee===void 0?void 0:ee.textArea},be=function(){pe().focus()};d.useImperativeHandle(t,function(){var ge;return{resizableTextArea:me.current,focus:be,blur:function(){pe().blur()},nativeElement:((ge=Ee.current)===null||ge===void 0?void 0:ge.nativeElement)||pe()}}),d.useEffect(function(){D(function(ge){return!x&&ge})},[x]);var te=ne.useState(null),ve=W(te,2),Se=ve[0],le=ve[1];ne.useEffect(function(){if(Se){var ge;(ge=pe()).setSelectionRange.apply(ge,Q(Se))}},[Se]);var ue=Nm(h,p),Te=(r=ue.max)!==null&&r!==void 0?r:c,ye=Number(Te)>0,Oe=ue.strategy(O),xe=!!Te&&Oe>Te,ae=function(ee,Qe){var G=Qe;!U.current&&ue.exceedFormatter&&ue.max&&ue.strategy(Qe)>ue.max&&(G=ue.exceedFormatter(Qe,{max:ue.max}),Qe!==G&&le([pe().selectionStart||0,pe().selectionEnd||0])),$(G),Ds(ee.currentTarget,ee,s,G)},Ie=function(ee){U.current=!0,u==null||u(ee)},X=function(ee){U.current=!1,ae(ee,ee.currentTarget.value),f==null||f(ee)},Fe=function(ee){ae(ee,ee.target.value)},Ne=function(ee){ee.key==="Enter"&&P&&P(ee),L==null||L(ee)},Le=function(ee){D(!0),o==null||o(ee)},ot=function(ee){D(!1),i==null||i(ee)},tt=function(ee){$(""),be(),Ds(pe(),ee,s)},ct=v,Xe;ue.show&&(ue.showFormatter?Xe=ue.showFormatter({value:O,count:Oe,maxLength:Te}):Xe="".concat(Oe).concat(ye?" / ".concat(Te):""),ct=ne.createElement(ne.Fragment,null,ct,ne.createElement("span",{className:he("".concat(m,"-data-count"),S==null?void 0:S.count),style:C==null?void 0:C.count},Xe)));var It=function(ee){var Qe;w==null||w(ee),(Qe=pe())!==null&&Qe!==void 0&&Qe.style.height&&ie(!0)},Ue=!N&&!p&&!l;return ne.createElement(jm,{ref:Ee,value:O,allowClear:l,handleReset:tt,suffix:ct,prefixCls:m,classNames:F(F({},S),{},{affixWrapper:he(S==null?void 0:S.affixWrapper,T(T({},"".concat(m,"-show-count"),p),"".concat(m,"-textarea-allow-clear"),l))}),disabled:x,focused:V,className:he(y,xe&&"".concat(m,"-out-of-range")),style:F(F({},b),oe&&!Ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Xe=="string"?Xe:void 0}},hidden:E,readOnly:I,onClear:M},ne.createElement(Dm,We({},k,{autoSize:N,maxLength:c,onKeyDown:Ne,onChange:Fe,onFocus:Le,onBlur:ot,onCompositionStart:Ie,onCompositionEnd:X,className:he(S==null?void 0:S.textarea),style:F(F({},C==null?void 0:C.textarea),{},{resize:b==null?void 0:b.resize}),disabled:x,prefixCls:m,onResize:It,ref:me,readOnly:I})))}),qm=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Gm=d.forwardRef((e,t)=>{var r,n;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:f,className:v,style:g,styles:m,variant:p}=e,h=qm(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:b,textArea:x}=d.useContext(Ft),E=Jv(i),S=d.useContext(la),C=s??S,{status:w,hasFeedback:M,feedbackIcon:P}=d.useContext(ti),I=Wh(w,l),N=d.useRef(null);d.useImperativeHandle(t,()=>{var _;return{resizableTextArea:(_=N.current)===null||_===void 0?void 0:_.resizableTextArea,focus:V=>{var D,U;Im((U=(D=N.current)===null||D===void 0?void 0:D.resizableTextArea)===null||U===void 0?void 0:U.textArea,V)},blur:()=>{var V;return(V=N.current)===null||V===void 0?void 0:V.blur()}}});const L=y("input",a),k=Wv(L),[A,z,R]=Mm(L,k),[$,O]=Uh("textArea",p,o),j=Lm(c??(x==null?void 0:x.allowClear));return A(d.createElement(Um,Object.assign({autoComplete:x==null?void 0:x.autoComplete},h,{style:Object.assign(Object.assign({},x==null?void 0:x.style),g),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),m),disabled:C,allowClear:j,className:he(R,k,v,f,x==null?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},u),x==null?void 0:x.classNames),{textarea:he({[`${L}-sm`]:E==="small",[`${L}-lg`]:E==="large"},z,u==null?void 0:u.textarea,(r=x==null?void 0:x.classNames)===null||r===void 0?void 0:r.textarea),variant:he({[`${L}-${$}`]:O},Dh(L,I)),affixWrapper:he(`${L}-textarea-affix-wrapper`,{[`${L}-affix-wrapper-rtl`]:b==="rtl",[`${L}-affix-wrapper-sm`]:E==="small",[`${L}-affix-wrapper-lg`]:E==="large",[`${L}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},z)}),prefixCls:L,suffix:M&&d.createElement("span",{className:`${L}-textarea-suffix`},P),ref:N})))});function Km(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}var Xm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Qm=function(t,r){return d.createElement(Zt,We({},t,{ref:r,icon:Xm}))},Zm=d.forwardRef(Qm),Ym={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"},Jm=function(t,r){return d.createElement(Zt,We({},t,{ref:r,icon:Ym}))},ep=d.forwardRef(Jm),tp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},rp=function(t,r){return d.createElement(Zt,We({},t,{ref:r,icon:tp}))},np=d.forwardRef(rp);const ap=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:o}=n;return{marginBottom:a,color:r,fontWeight:o,fontSize:e,lineHeight:t}},op=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
|
|
145
|
+
h${n}&,
|
|
146
|
+
div&-h${n},
|
|
147
|
+
div&-h${n} > textarea,
|
|
148
|
+
h${n}
|
|
149
|
+
`]=ap(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},ip=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Wl(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},sp=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ia[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),lp=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${we(n)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},cp=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),up=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),dp=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},op(e)),{[`
|
|
150
|
+
& + h1${t},
|
|
151
|
+
& + h2${t},
|
|
152
|
+
& + h3${t},
|
|
153
|
+
& + h4${t},
|
|
154
|
+
& + h5${t}
|
|
155
|
+
`]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),sp(e)),ip(e)),{[`
|
|
156
|
+
${t}-expand,
|
|
157
|
+
${t}-collapse,
|
|
158
|
+
${t}-edit,
|
|
159
|
+
${t}-copy
|
|
160
|
+
`]:Object.assign(Object.assign({},Wl(e)),{marginInlineStart:e.marginXXS})}),lp(e)),cp(e)),up()),{"&-rtl":{direction:"rtl"}})}},fp=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Oc=pi("Typography",e=>[dp(e)],fp),vp=e=>{const{prefixCls:t,"aria-label":r,className:n,style:a,direction:o,maxLength:i,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:f,component:v,enterIcon:g=d.createElement(np,null)}=e,m=d.useRef(null),p=d.useRef(!1),h=d.useRef(),[y,b]=d.useState(l);d.useEffect(()=>{b(l)},[l]),d.useEffect(()=>{var A;if(!((A=m.current)===null||A===void 0)&&A.resizableTextArea){const{textArea:z}=m.current.resizableTextArea;z.focus();const{length:R}=z.value;z.setSelectionRange(R,R)}},[]);const x=A=>{let{target:z}=A;b(z.value.replace(/[\n\r]/g,""))},E=()=>{p.current=!0},S=()=>{p.current=!1},C=A=>{let{keyCode:z}=A;p.current||(h.current=z)},w=()=>{c(y.trim())},M=A=>{let{keyCode:z,ctrlKey:R,altKey:$,metaKey:O,shiftKey:j}=A;h.current!==z||p.current||R||$||O||j||(z===Z.ENTER?(w(),f==null||f()):z===Z.ESC&&u())},P=()=>{w()},[I,N,L]=Oc(t),k=he(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${v}`]:!!v},n,N,L);return I(d.createElement("div",{className:k,style:a},d.createElement(Gm,{ref:m,maxLength:i,value:y,onChange:x,onKeyDown:C,onKeyUp:M,onCompositionStart:E,onCompositionEnd:S,onBlur:P,"aria-label":r,rows:1,autoSize:s}),g!==null?sc(g,{className:`${t}-edit-content-confirm`}):null))};var gp=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(u){try{c(n.next(u))}catch(f){i(f)}}function l(u){try{c(n.throw(u))}catch(f){i(f)}}function c(u){u.done?o(u.value):a(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const hp=e=>{let{copyConfig:t,children:r}=e;const[n,a]=d.useState(!1),[o,i]=d.useState(!1),s=d.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),d.useEffect(()=>l,[]);const u=ht(f=>gp(void 0,void 0,void 0,function*(){var v;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const g=typeof t.text=="function"?yield t.text():t.text;Uc(g||Km(r,!0).join("")||"",c),i(!1),a(!0),l(),s.current=setTimeout(()=>{a(!1)},3e3),(v=t.onCopy)===null||v===void 0||v.call(t,f)}catch(g){throw i(!1),g}}));return{copied:n,copyLoading:o,onClick:u}};function ao(e,t){return d.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const mp=e=>{const t=d.useRef();return d.useEffect(()=>{t.current=e}),t.current},pp=(e,t,r)=>d.useMemo(()=>e===!0?{title:t??r}:d.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]);var bp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Mc=d.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:c}=e,u=bp(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:g}=d.useContext(Ft),m=l??v,p=i?ga(t,i):t,h=f("typography",r),[y,b,x]=Oc(h),E=he(h,g==null?void 0:g.className,{[`${h}-rtl`]:m==="rtl"},a,o,b,x),S=Object.assign(Object.assign({},g==null?void 0:g.style),c);return y(d.createElement(n,Object.assign({className:E,style:S,ref:p},u),s))});function Ws(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function oo(e,t,r){return e===!0||e===void 0?t:e||r&&t}function yp(e){const t=document.createElement("em");e.appendChild(t);const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}const Ci=e=>["string","number"].includes(typeof e),xp=e=>{let{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,tabIndex:s,onCopy:l,loading:c}=e;const u=Ws(o),f=Ws(i),{copied:v,copy:g}=n??{},m=r?v:g,p=oo(u[r?1:0],m),h=typeof p=="string"?p:m;return d.createElement(xa,{title:p},d.createElement("button",{type:"button",className:he(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:l,"aria-label":h,tabIndex:s},r?oo(f[1],d.createElement(Kh,null),!0):oo(f[0],c?d.createElement(Gv,null):d.createElement(Zm,null),!0)))},Qn=d.forwardRef((e,t)=>{let{style:r,children:n}=e;const a=d.useRef(null);return d.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),d.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)}),Sp=e=>e.reduce((t,r)=>t+(Ci(r)?String(r).length:1),0);function Us(e,t){let r=0;const n=[];for(let a=0;a<e.length;a+=1){if(r===t)return n;const o=e[a],s=Ci(o)?String(o).length:1,l=r+s;if(l>t){const c=t-r;return n.push(String(o).slice(0,c)),n}n.push(o),r=l}return e}const io=0,so=1,lo=2,co=3,qs=4,Zn={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Cp(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,c=d.useMemo(()=>_r(n),[n]),u=d.useMemo(()=>Sp(c),[n]),f=d.useMemo(()=>a(c,!1),[n]),[v,g]=d.useState(null),m=d.useRef(null),p=d.useRef(null),h=d.useRef(null),y=d.useRef(null),b=d.useRef(null),[x,E]=d.useState(!1),[S,C]=d.useState(io),[w,M]=d.useState(0),[P,I]=d.useState(null);Ae(()=>{C(t&&r&&u?so:io)},[r,n,o,t,c]),Ae(()=>{var A,z,R,$;if(S===so){C(lo);const O=p.current&&getComputedStyle(p.current).whiteSpace;I(O)}else if(S===lo){const O=!!(!((A=h.current)===null||A===void 0)&&A.isExceed());C(O?co:qs),g(O?[0,u]:null),E(O);const j=((z=h.current)===null||z===void 0?void 0:z.getHeight())||0,_=o===1?0:((R=y.current)===null||R===void 0?void 0:R.getHeight())||0,V=(($=b.current)===null||$===void 0?void 0:$.getHeight())||0,D=Math.max(j,_+V);M(D+1),l(O)}},[S]);const N=v?Math.ceil((v[0]+v[1])/2):0;Ae(()=>{var A;const[z,R]=v||[0,0];if(z!==R){const O=(((A=m.current)===null||A===void 0?void 0:A.getHeight())||0)>w;let j=N;R-z===1&&(j=O?z:R),g(O?[z,j]:[j,R])}},[v,N]);const L=d.useMemo(()=>{if(!t)return a(c,!1);if(S!==co||!v||v[0]!==v[1]){const A=a(c,!1);return[qs,io].includes(S)?A:d.createElement("span",{style:Object.assign(Object.assign({},Zn),{WebkitLineClamp:o})},A)}return a(i?c:Us(c,v[0]),x)},[i,S,v,c].concat(Q(s))),k={width:r,margin:0,padding:0,whiteSpace:P==="nowrap"?"normal":"inherit"};return d.createElement(d.Fragment,null,L,S===lo&&d.createElement(d.Fragment,null,d.createElement(Qn,{style:Object.assign(Object.assign(Object.assign({},k),Zn),{WebkitLineClamp:o}),ref:h},f),d.createElement(Qn,{style:Object.assign(Object.assign(Object.assign({},k),Zn),{WebkitLineClamp:o-1}),ref:y},f),d.createElement(Qn,{style:Object.assign(Object.assign(Object.assign({},k),Zn),{WebkitLineClamp:1}),ref:b},a([],!0))),S===co&&v&&v[0]!==v[1]&&d.createElement(Qn,{style:Object.assign(Object.assign({},k),{top:400}),ref:m},a(Us(c,N),!0)),S===so&&d.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const wp=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:d.createElement(xa,Object.assign({open:r?void 0:!1},a),n)};var Ep=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function $p(e,t){let{mark:r,code:n,underline:a,delete:o,strong:i,keyboard:s,italic:l}=e,c=t;function u(f,v){v&&(c=d.createElement(f,{},c))}return u("strong",i),u("u",a),u("del",o),u("code",n),u("mark",r),u("kbd",s),u("i",l),c}const Rp="...",Sa=d.forwardRef((e,t)=>{var r;const{prefixCls:n,className:a,style:o,type:i,disabled:s,children:l,ellipsis:c,editable:u,copyable:f,component:v,title:g}=e,m=Ep(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:p,direction:h}=d.useContext(Ft),[y]=Hd("Text"),b=d.useRef(null),x=d.useRef(null),E=p("typography",n),S=al(m,["mark","code","delete","underline","strong","keyboard","italic"]),[C,w]=ao(u),[M,P]=gn(!1,{value:w.editing}),{triggerType:I=["icon"]}=w,N=G=>{var Y;G&&((Y=w.onStart)===null||Y===void 0||Y.call(w)),P(G)},L=mp(M);Ae(()=>{var G;!M&&L&&((G=x.current)===null||G===void 0||G.focus())},[M]);const k=G=>{G==null||G.preventDefault(),N(!0)},A=G=>{var Y;(Y=w.onChange)===null||Y===void 0||Y.call(w,G),N(!1)},z=()=>{var G;(G=w.onCancel)===null||G===void 0||G.call(w),N(!1)},[R,$]=ao(f),{copied:O,copyLoading:j,onClick:_}=hp({copyConfig:$,children:l}),[V,D]=d.useState(!1),[U,B]=d.useState(!1),[K,oe]=d.useState(!1),[ie,Ee]=d.useState(!1),[me,pe]=d.useState(!0),[be,te]=ao(c,{expandable:!1,symbol:G=>G?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ve,Se]=gn(te.defaultExpanded||!1,{value:te.expanded}),le=be&&(!ve||te.expandable==="collapsible"),{rows:ue=1}=te,Te=d.useMemo(()=>le&&(te.suffix!==void 0||te.onEllipsis||te.expandable||C||R),[le,te,C,R]);Ae(()=>{be&&!Te&&(D(Os("webkitLineClamp")),B(Os("textOverflow")))},[Te,be]);const[ye,Oe]=d.useState(le),xe=d.useMemo(()=>Te?!1:ue===1?U:V,[Te,U,V]);Ae(()=>{Oe(xe&&le)},[xe,le]);const ae=le&&(ye?ie:K),Ie=le&&ue===1&&ye,X=le&&ue>1&&ye,Fe=(G,Y)=>{var _e;Se(Y.expanded),(_e=te.onExpand)===null||_e===void 0||_e.call(te,G,Y)},[Ne,Le]=d.useState(0),ot=G=>{let{offsetWidth:Y}=G;Le(Y)},tt=G=>{var Y;oe(G),K!==G&&((Y=te.onEllipsis)===null||Y===void 0||Y.call(te,G))};d.useEffect(()=>{const G=b.current;if(be&&ye&&G){const Y=yp(G);ie!==Y&&Ee(Y)}},[be,ye,l,X,me,Ne]),d.useEffect(()=>{const G=b.current;if(typeof IntersectionObserver>"u"||!G||!ye||!le)return;const Y=new IntersectionObserver(()=>{pe(!!G.offsetParent)});return Y.observe(G),()=>{Y.disconnect()}},[ye,le]);const ct=pp(te.tooltip,w.text,l),Xe=d.useMemo(()=>{if(!(!be||ye))return[w.text,l,g,ct.title].find(Ci)},[be,ye,g,ct.title,ae]);if(M)return d.createElement(vp,{value:(r=w.text)!==null&&r!==void 0?r:typeof l=="string"?l:"",onSave:A,onCancel:z,onEnd:w.onEnd,prefixCls:E,className:a,style:o,direction:h,component:v,maxLength:w.maxLength,autoSize:w.autoSize,enterIcon:w.enterIcon});const It=()=>{const{expandable:G,symbol:Y}=te;return G?d.createElement("button",{type:"button",key:"expand",className:`${E}-${ve?"collapse":"expand"}`,onClick:_e=>Fe(_e,{expanded:!ve}),"aria-label":ve?y.collapse:y==null?void 0:y.expand},typeof Y=="function"?Y(ve):Y):null},Ue=()=>{if(!C)return;const{icon:G,tooltip:Y,tabIndex:_e}=w,zt=_r(Y)[0]||(y==null?void 0:y.edit),Yt=typeof zt=="string"?zt:"";return I.includes("icon")?d.createElement(xa,{key:"edit",title:Y===!1?"":zt},d.createElement("button",{type:"button",ref:x,className:`${E}-edit`,onClick:k,"aria-label":Yt,tabIndex:_e},G||d.createElement(ep,{role:"button"}))):null},ge=()=>R?d.createElement(xp,Object.assign({key:"copy"},$,{prefixCls:E,copied:O,locale:y,onCopy:_,loading:j,iconOnly:l==null})):null,ee=G=>[G&&It(),Ue(),ge()],Qe=G=>[G&&!ve&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Rp),te.suffix,ee(G)];return d.createElement(mn,{onResize:ot,disabled:!le},G=>d.createElement(wp,{tooltipProps:ct,enableEllipsis:le,isEllipsis:ae},d.createElement(Mc,Object.assign({className:he({[`${E}-${i}`]:i,[`${E}-disabled`]:s,[`${E}-ellipsis`]:be,[`${E}-ellipsis-single-line`]:Ie,[`${E}-ellipsis-multiple-line`]:X},a),prefixCls:n,style:Object.assign(Object.assign({},o),{WebkitLineClamp:X?ue:void 0}),component:v,ref:ga(G,b,t),direction:h,onClick:I.includes("text")?k:void 0,"aria-label":Xe==null?void 0:Xe.toString(),title:g},S),d.createElement(Cp,{enableMeasure:le&&!ye,text:l,rows:ue,width:Ne,onEllipsis:tt,expanded:ve,miscDeps:[O,ve,j,C,R,y]},(Y,_e)=>$p(e,d.createElement(d.Fragment,null,Y.length>0&&_e&&!ve&&Xe?d.createElement("span",{key:"show-content","aria-hidden":!0},Y):Y,Qe(_e)))))))});var Tp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Pp=d.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=Tp(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},a),{rel:n===void 0&&a.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,d.createElement(Sa,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),Op=d.forwardRef((e,t)=>d.createElement(Sa,Object.assign({ref:t},e,{component:"div"})));var Mp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Fp=(e,t)=>{var{ellipsis:r}=e,n=Mp(e,["ellipsis"]);const a=d.useMemo(()=>r&&typeof r=="object"?al(r,["expandable","rows"]):r,[r]);return d.createElement(Sa,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},Ap=d.forwardRef(Fp);var Ip=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const jp=[1,2,3,4,5],kp=d.forwardRef((e,t)=>{const{level:r=1}=e,n=Ip(e,["level"]),a=jp.includes(r)?`h${r}`:"h1";return d.createElement(Sa,Object.assign({ref:t},n,{component:a}))}),Cn=Mc;Cn.Text=Ap;Cn.Link=Pp;Cn.Title=kp;Cn.Paragraph=Op;function Fc(e){return e.startsWith("http")?e:Np(e)}function Np(e){const{blocklet:t={}}=window,{componentMountPoints:r=[]}=t,n=r.find(a=>a.did==="z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9");return Ks((n==null?void 0:n.mountPoint)||"/","/uploads",e)}function Ac({attachment:e}){const{data:t}=e;let r="";try{r=new URL(t.url).host}catch{r=t.url}return H.jsx(Lp,{children:H.jsx("div",{className:"attachment",children:H.jsxs(Zs,{href:t.url,className:"link",children:[!!r&&H.jsx("span",{className:"url",children:r}),!t.title&&H.jsx(fo,{variant:"rectangular",height:20}),!!t.title&&H.jsx(st,{className:"title",children:t.title}),!t.description&&H.jsx(fo,{sx:{mt:"10px"},variant:"rectangular",height:40}),!!t.description&&H.jsx("span",{className:"description",children:t.description}),!!t.image&&H.jsx("img",{className:"image",src:Fc(t.image),alt:""})]})})})}const Lp=Qt.div`
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: row;
|
|
163
|
+
justify-content: flex-start;
|
|
164
|
+
width: 100%;
|
|
165
|
+
.attachment {
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
flex: 1;
|
|
169
|
+
width: 0;
|
|
170
|
+
margin-top: 6px;
|
|
171
|
+
.url {
|
|
172
|
+
color: #9397a1;
|
|
173
|
+
font-size: 12px;
|
|
174
|
+
}
|
|
175
|
+
.title {
|
|
176
|
+
color: #4598fa;
|
|
177
|
+
font-size: 14px;
|
|
178
|
+
font-weight: bold;
|
|
179
|
+
margin-top: 4px;
|
|
180
|
+
line-height: 18px;
|
|
181
|
+
white-space: nowrap;
|
|
182
|
+
overflow: hidden;
|
|
183
|
+
text-overflow: ellipsis;
|
|
184
|
+
}
|
|
185
|
+
.description {
|
|
186
|
+
width: 100%;
|
|
187
|
+
display: inline-block;
|
|
188
|
+
color: #25292f;
|
|
189
|
+
font-size: 14px;
|
|
190
|
+
margin-top: 4px;
|
|
191
|
+
word-break: break-all;
|
|
192
|
+
white-space: nowrap;
|
|
193
|
+
overflow: hidden;
|
|
194
|
+
text-overflow: ellipsis;
|
|
195
|
+
}
|
|
196
|
+
.image {
|
|
197
|
+
margin-top: 8px;
|
|
198
|
+
height: 140px;
|
|
199
|
+
object-fit: cover;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
`;Ac.propTypes={attachment:de.object.isRequired};function Ic({attachment:e}){const{data:t}=e;return H.jsx(_p,{children:H.jsx("div",{className:"attachment",children:H.jsx("img",{className:"image",src:Fc(t.url),alt:t.alt})})})}const _p=Qt.div`
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-direction: row;
|
|
205
|
+
justify-content: flex-start;
|
|
206
|
+
width: 100%;
|
|
207
|
+
.attachment {
|
|
208
|
+
display: flex;
|
|
209
|
+
flex-direction: column;
|
|
210
|
+
flex: 1;
|
|
211
|
+
width: 0;
|
|
212
|
+
.image {
|
|
213
|
+
width: 180px;
|
|
214
|
+
object-fit: contain;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
`;Ic.propTypes={attachment:de.object.isRequired};function jc({attachment:e}){var a;const{data:t}=e,r=(a=t.color)==null?void 0:a.toLowerCase();let n="14px";return t.size==="small"?n="12px":t.size==="normal"?n="14px":t.size==="big"&&(n="16px"),H.jsx(zp,{children:H.jsx("div",{className:"attachment",children:H.jsx("span",{className:"title",style:{fontSize:n,color:r},children:t.text})})})}const zp=Qt.div`
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-direction: row;
|
|
220
|
+
justify-content: flex-start;
|
|
221
|
+
width: 100%;
|
|
222
|
+
.attachment {
|
|
223
|
+
display: flex;
|
|
224
|
+
flex-direction: column;
|
|
225
|
+
flex: 1;
|
|
226
|
+
width: 0;
|
|
227
|
+
white-space: pre-line;
|
|
228
|
+
}
|
|
229
|
+
`;jc.propTypes={attachment:de.object.isRequired};function kc({attachment:e,...t}){return H.jsxs(Vp,{...t,children:[e.type==="link"&&H.jsx(Ac,{attachment:e}),e.type==="image"&&H.jsx(Ic,{attachment:e}),e.type==="text"&&H.jsx(jc,{attachment:e})]})}const Vp=Qt.div`
|
|
230
|
+
display: flex;
|
|
231
|
+
flex-direction: column;
|
|
232
|
+
width: 100%;
|
|
233
|
+
margin-bottom: 8px;
|
|
234
|
+
&:last-child {
|
|
235
|
+
margin-bottom: 0;
|
|
236
|
+
}
|
|
237
|
+
`;kc.propTypes={attachment:de.object.isRequired};function wi({attachments:e,severity:t,showSke:r=!0}){if(!e||!e.length)return null;let n="#C4C5CA";t==="success"?n="#25C99B":t==="warning"?n="#DE9E37":t==="error"?n="#F16E6E":n="#C4C5CA";const a=o=>!o&&!Array.isArray(o)?null:o.map((i,s)=>i.type==="section"?H.jsx(d.Fragment,{children:a(i.fields)},s):H.jsx(kc,{attachment:i},s));return H.jsx(Bp,{leftLineColor:n,children:H.jsx("div",{className:"message-in-list",children:H.jsxs("div",{className:"left-part",children:[e.length>0&&H.jsx("div",{className:"message-container",children:H.jsx("div",{className:"attachment-container",children:a(e)})}),e.length===0&&r&&H.jsx(fo,{className:"attach-ske",style:{marginTop:10},variant:"rectangular",height:150})]})})})}const Bp=Qt.div`
|
|
238
|
+
display: flex;
|
|
239
|
+
flex-direction: column;
|
|
240
|
+
.message-in-list {
|
|
241
|
+
border: 1px solid #eee;
|
|
242
|
+
padding: 8px 8px 8px 0;
|
|
243
|
+
display: flex;
|
|
244
|
+
border-radius: 8px;
|
|
245
|
+
background: #eee;
|
|
246
|
+
.left-part {
|
|
247
|
+
flex: 1;
|
|
248
|
+
display: flex;
|
|
249
|
+
flex-direction: column;
|
|
250
|
+
.app-name {
|
|
251
|
+
font-weight: bold;
|
|
252
|
+
margin-bottom: 4px;
|
|
253
|
+
}
|
|
254
|
+
.left-part-top {
|
|
255
|
+
display: flex;
|
|
256
|
+
align-items: center;
|
|
257
|
+
.app-name {
|
|
258
|
+
flex: 1;
|
|
259
|
+
}
|
|
260
|
+
.time {
|
|
261
|
+
font-size: 14px;
|
|
262
|
+
color: #999;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
.message-in-list-title {
|
|
266
|
+
color: #666;
|
|
267
|
+
word-break: break-all;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
.message-title {
|
|
272
|
+
color: #25292f;
|
|
273
|
+
font-size: 18px;
|
|
274
|
+
font-weight: bold;
|
|
275
|
+
word-break: break-all;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.attach-ske {
|
|
279
|
+
position: relative;
|
|
280
|
+
margin-left: 10px;
|
|
281
|
+
&::after {
|
|
282
|
+
content: '';
|
|
283
|
+
position: absolute;
|
|
284
|
+
left: -10px;
|
|
285
|
+
top: 0;
|
|
286
|
+
height: 100%;
|
|
287
|
+
width: 4px;
|
|
288
|
+
background-color: ${e=>e.leftLineColor};
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.message-body {
|
|
293
|
+
color: #25292f;
|
|
294
|
+
font-size: 16px;
|
|
295
|
+
word-break: break-all;
|
|
296
|
+
white-space: pre-line;
|
|
297
|
+
}
|
|
298
|
+
.message-container {
|
|
299
|
+
display: flex;
|
|
300
|
+
flex-direction: column;
|
|
301
|
+
justify-content: flex-start;
|
|
302
|
+
width: 100%;
|
|
303
|
+
position: relative;
|
|
304
|
+
&::after {
|
|
305
|
+
content: '';
|
|
306
|
+
position: absolute;
|
|
307
|
+
height: 100%;
|
|
308
|
+
width: 3px;
|
|
309
|
+
background-color: ${e=>e.leftLineColor};
|
|
310
|
+
left: 0;
|
|
311
|
+
top: 0;
|
|
312
|
+
}
|
|
313
|
+
.attachment-container {
|
|
314
|
+
display: flex;
|
|
315
|
+
flex-direction: column;
|
|
316
|
+
width: 100%;
|
|
317
|
+
margin-left: 10px;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
.actions-container {
|
|
321
|
+
margin-top: 10px;
|
|
322
|
+
.actions-item {
|
|
323
|
+
margin-right: 8px;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
`;wi.propTypes={severity:de.string.isRequired,attachments:de.array.isRequired,showSke:de.bool};wi.defaultProps={showSke:!0};const{Paragraph:Hp}=Cn;Nc.propTypes={notification:de.object,rows:de.number};function Nc({notification:e,rows:t=2}){const[r,n]=d.useState(!1),{t:a}=ni(),o=d.useMemo(()=>{const{attachments:u}=e||{};if(!u)return!1;try{return u.length>0}catch{return!1}},[e]),i=d.useMemo(()=>{const{blocks:u}=e||{};if(!u)return!1;try{return u.length>0}catch{return!1}},[e]),s=d.useMemo(()=>{const{description:u}=e||{};return!!u},[e]),l=d.useMemo(()=>o||i||s,[o,i,s]),c=d.useMemo(()=>{if(!e.description)return e.description;const u=/^<([^<>()\n]+)\([^<>]*\)>/;return e.description.replace(u,(v,g)=>g)},[e.description]);return l?H.jsxs(Dp,{children:[H.jsxs(st,{className:"text-container",children:[H.jsx(Hp,{style:{marginBottom:"4px"},ellipsis:t>0?{rows:t,expandable:"collapsible",expanded:r,symbol:u=>a(u?"common.collapse":"common.expand"),onExpand:(u,f)=>n(f.expanded)}:{rows:2},children:c})," "]}),H.jsx(wi,{severity:e.severity,attachments:e.attachments})]}):null}const Dp=Qt(st)`
|
|
327
|
+
width: 100%;
|
|
328
|
+
.text-container {
|
|
329
|
+
word-wrap: break-word;
|
|
330
|
+
font-size: 14px;
|
|
331
|
+
color: rgba(75, 85, 99, 1);
|
|
332
|
+
&.collasped {
|
|
333
|
+
overflow: hidden;
|
|
334
|
+
text-overflow: ellipsis;
|
|
335
|
+
display: -webkit-box;
|
|
336
|
+
-webkit-line-clamp: 2;
|
|
337
|
+
-webkit-box-orient: vertical;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
.toggle-btn {
|
|
341
|
+
cursor: pointer;
|
|
342
|
+
margin-left: 4px;
|
|
343
|
+
font-size: 14px;
|
|
344
|
+
color: rgba(59, 130, 246, 1);
|
|
345
|
+
}
|
|
346
|
+
`,Wp=d.memo(Nc);_c.propTypes={data:de.array,blockletMap:de.object,onReadNotification:de.func,inDialog:de.bool};Lc.propTypes={notification:de.object,blocklet:de.object,onReadNotification:de.func,inDialog:de.bool};function Lc({notification:e,blocklet:t,onReadNotification:r=()=>{},inDialog:n=!1}){var u;const{locale:a}=d.useContext(va),o=qc(),i=d.useMemo(()=>{const{receivers:f=[]}=e;return f.length?f[0].read:!0},[e]),s=d.useMemo(()=>{const{actions:f,action:v}=e;let g=f??[];return!g.length&&v&&(g=[{name:"Visit",link:v}]),g},[e]),l=(t==null?void 0:t.did)||((u=t==null?void 0:t.meta)==null?void 0:u.did)||"",c=(t==null?void 0:t.appId)||(t==null?void 0:t.appDid)||(t==null?void 0:t.appPid)||"";return H.jsxs(Up,{className:"notification-row",display:"flex",gap:2,sx:{padding:"8px"},onClick:()=>r(e),children:[H.jsx(Yc,{variant:"dot",color:"error",invisible:i,children:t?H.jsx(st,{children:c===l?H.jsx(eu,{blocklet:t}):H.jsx(Qs,{blocklet:t,ancestors:t.ancestors??[]})}):H.jsx(iu,{children:e.entityType.substr(0,1).toUpperCase()})}),H.jsxs(st,{className:"notification",display:"flex",flexDirection:"column",alignItems:"start",children:[H.jsxs(st,{display:"flex",justifyContent:"start",alignItems:"center",gap:1,sx:{width:"100%"},children:[H.jsx(st,{className:"title",children:e.title}),"·",H.jsx(tu,{value:e.createdAt,locale:a,style:{color:o.palette.text.secondary,fontSize:"0.875rem"}})]}),e.severity!=="info"?H.jsx(ou,{className:"notification-tag",status:e.severity}):null,H.jsx(Wp,{notification:e,rows:n?0:2}),s.length>0?H.jsx(st,{display:"flex",justifyContent:"start",gap:1,children:s.map(f=>H.jsx(Zs,{href:f.link,className:"link",children:f.name},f.link))}):null]})]})}function _c({data:e,blockletMap:t,onReadNotification:r=()=>{},inDialog:n=!1}){const{t:a}=ni(),o=d.useMemo(()=>n?e==null?void 0:e.slice(0,5):e,[n,e]);return e!=null&&e.length?H.jsx(st,{display:"flex",flexDirection:"column",sx:{mt:1,...n?{maxHeight:"calc(-200px + 100vh)",overflow:"auto"}:{}},children:o==null?void 0:o.map(i=>{const s=t.get(i.componentDid||i.sender||i.entityId);return H.jsx(Lc,{inDialog:n,notification:i,blocklet:s,onReadNotification:()=>r(i)},i.id)})}):H.jsx(Jc,{children:a("common.empty")})}const Up=Qt(st)`
|
|
347
|
+
cursor: pointer;
|
|
348
|
+
// border-bottom: 1px solid rgba(0, 0, 0, 0.12);
|
|
349
|
+
|
|
350
|
+
&:hover {
|
|
351
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
352
|
+
}
|
|
353
|
+
.notification {
|
|
354
|
+
width: calc(100% - 50px);
|
|
355
|
+
|
|
356
|
+
.title {
|
|
357
|
+
min-width: 0;
|
|
358
|
+
overflow: hidden;
|
|
359
|
+
text-overflow: ellipsis;
|
|
360
|
+
white-space: nowrap;
|
|
361
|
+
color: rgba(3, 7, 18, 1);
|
|
362
|
+
font-size: 16px;
|
|
363
|
+
}
|
|
364
|
+
.description {
|
|
365
|
+
color: rgba(75, 85, 99, 1);
|
|
366
|
+
overflow: hidden;
|
|
367
|
+
text-overflow: ellipsis;
|
|
368
|
+
white-space: nowrap;
|
|
369
|
+
font-size: 12px;
|
|
370
|
+
transform: translateY(-1px);
|
|
371
|
+
}
|
|
372
|
+
.link {
|
|
373
|
+
color: rgba(59, 130, 246, 1);
|
|
374
|
+
font-size: 14px;
|
|
375
|
+
text-decoration: none;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
`;zc.propTypes={paging:de.objectOf(de.any).isRequired,loading:de.bool.isRequired,onChange:de.func.isRequired};function zc({loading:e,paging:t,onChange:r}){const{t:n}=d.useContext(va);if(t.pageCount<=1)return null;const a=(s,l)=>{r({page:l+1})},o=s=>{const l=Number(s.target.value);r({page:1,pageSize:l})},i=t.page-1<=0?0:t.page-1;return H.jsx(st,{mt:2,display:"flex",justifyContent:"flex-end",children:H.jsx(su,{disabled:e,count:t.total,page:i,rowsPerPageOptions:[10,20,50,100],labelRowsPerPage:n("pagination.rowsPerPage"),labelDisplayedRows:({from:s,to:l,count:c})=>`${s}–${l} / ${c!==-1?c:`${n()}more than ${l}`}`,rowsPerPage:t.pageSize,onPageChange:a,onRowsPerPageChange:o})})}const qp=d.memo(zc);Vc.propTypes={selectedId:de.string,blockletMap:de.object,onSelectChange:de.func,filterType:de.oneOf(["component","entity"])};const Gp=Qt.div`
|
|
379
|
+
display: flex;
|
|
380
|
+
justify-items: flex-start;
|
|
381
|
+
align-items: center;
|
|
382
|
+
gap: 8px;
|
|
383
|
+
.name {
|
|
384
|
+
display: block;
|
|
385
|
+
max-width: 260px;
|
|
386
|
+
white-space: nowrap;
|
|
387
|
+
overflow: hidden;
|
|
388
|
+
text-overflow: ellipsis;
|
|
389
|
+
}
|
|
390
|
+
`;function Vc({selectedId:e="",filterType:t="component",blockletMap:r=new Map,onSelectChange:n=()=>{}}){const[a,o]=d.useState(""),{t:i}=d.useContext(va),s=c=>{const u=c.target.value;n(u==="all"?"":u)},l=d.useMemo(()=>{if(!r.size)return[];const c=[];return Array.from(r).forEach(([,u])=>{var p,h;const f=u.did||((p=u.meta)==null?void 0:p.did),v=u.title||((h=u.meta)==null?void 0:h.title)||"",g=u.appPid||u.appDid,m=v.toLowerCase().includes(a.toLowerCase());(t==="component"&&g!==f&&m||t==="entity"&&g===f&&m)&&c.push(u)}),c},[r,a,t]);return r.size?H.jsx(lu,{sx:{minWidth:240,maxWidth:300},children:H.jsxs(cu,{MenuProps:{autoFocus:!1},value:e||"all",onChange:s,onClose:()=>o(""),size:"small",variant:"outlined",children:[H.jsx(uu,{children:H.jsx(du,{autoFocus:!0,value:a,placeholder:"Search",variant:"outlined",size:"small",fullWidth:!0,onChange:c=>o(c.target.value),onKeyDown:c=>{c.key!=="Escape"&&c.stopPropagation()}})}),H.jsx(Ri,{value:"all",children:i("common.all")}),l.map(c=>{var v,g;const u=c.did||((v=c.meta)==null?void 0:v.did),f=c.title||((g=c.meta)==null?void 0:g.title);return H.jsx(Ri,{value:u,children:H.jsxs(Gp,{children:[H.jsx(Qs,{size:24,blocklet:c,ancestors:c.ancestors}),H.jsx("span",{className:"name",children:f})]})},u)})]})}):null}const Kp=d.memo(Vc),Xp=Qt.div`
|
|
391
|
+
.MuiContainer-root {
|
|
392
|
+
padding-right: 0;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.profile-button.MuiButtonBase-root {
|
|
396
|
+
border-radius: 9999px;
|
|
397
|
+
margin-right: 2px;
|
|
398
|
+
color: #4b5563;
|
|
399
|
+
padding: 5px 12px;
|
|
400
|
+
line-height: 22px;
|
|
401
|
+
font-size: 13px;
|
|
402
|
+
border: 1px solid transparent;
|
|
403
|
+
}
|
|
404
|
+
.profile-button.active.MuiButtonBase-root {
|
|
405
|
+
background-color: #ffffff;
|
|
406
|
+
color: #030712;
|
|
407
|
+
border: 1px solid #e5e7eb !important;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.profile-line-button.MuiButtonBase-root {
|
|
411
|
+
margin-right: 2px;
|
|
412
|
+
color: #4b5563;
|
|
413
|
+
padding: 5px 12px;
|
|
414
|
+
line-height: 22px;
|
|
415
|
+
font-size: 13px;
|
|
416
|
+
border: none !important;
|
|
417
|
+
border-radius: 0;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.profile-line-button.active.MuiButtonBase-root {
|
|
421
|
+
color: rgba(3, 7, 18, 1);
|
|
422
|
+
border-bottom: 1px solid rgba(3, 7, 18, 1) !important;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.profile-button.MuiButtonBase-root:last-of-type,
|
|
426
|
+
.profile-line-button.MuiButtonBase-root {
|
|
427
|
+
margin-right: 0;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.profile-button.MuiButtonBase-root:hover {
|
|
431
|
+
background-color: #ffffff;
|
|
432
|
+
color: #030712;
|
|
433
|
+
border: 1px solid #e5e7eb;
|
|
434
|
+
}
|
|
435
|
+
.profile-line-button.MuiButtonBase-root:hover {
|
|
436
|
+
color: rgba(3, 7, 18, 1);
|
|
437
|
+
background-color: unset;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
* {
|
|
441
|
+
scrollbar-width: none; /* Firefox */
|
|
442
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
*::-webkit-scrollbar {
|
|
446
|
+
display: none; /* Chrome, Safari and Opera */
|
|
447
|
+
}
|
|
448
|
+
`;Bc.propTypes={blocklets:de.array,context:de.object,pagination:de.bool,inDialog:de.bool,filterType:de.oneOf(["component","entity"]),toViewAll:de.func,tabType:de.oneOf(["button","line"])};function Bc({blocklets:e=[],context:t,pagination:r=!0,tabType:n="button",inDialog:a=!1,filterType:o="component",toViewAll:i=()=>{}}){const{data:s,paging:l,refresh:c,loading:u,params:f,onReadNotification:v,unReadCount:g}=t,m=M=>{c({...f,severity:M,page:1})},{t:p}=d.useContext(va),[h,y]=d.useState(!1),b=async()=>{y(!0),t.makeAllAsRead&&typeof t.makeAllAsRead=="function"&&await t.makeAllAsRead(),y(!1)},x=d.useMemo(()=>{const M=new Map;return e.length&&e.forEach(P=>{var N,L;const I=(P==null?void 0:P.did)||((N=P.meta)==null?void 0:N.did);I&&!M.has(I)&&(P.ancestors=[],M.set(I,P)),((L=P==null?void 0:P.children)==null?void 0:L.length)>0&&P.children.forEach(k=>{var z;const A=(k==null?void 0:k.did)||((z=k.meta)==null?void 0:z.did);A&&!M.has(A)&&(k.ancestors=[P],M.set(A,k))})}),M},[e]),E=M=>{c({...f,...M})},S=M=>{var P,I;!M||(I=(P=M.receivers)==null?void 0:P[0])!=null&&I.read||v(M.id).then(()=>{a&&i()})},C=M=>{let P={};o==="component"?P={entityId:"",componentDid:M}:o==="entity"&&(P={componentDid:"",entityId:M}),c({...f,...P,page:1})},w=Xs(()=>o==="component"?f.componentDid||"":o==="entity"&&f.entityId||"",[f,o]);return H.jsxs(Xp,{children:[H.jsx(Js,{currentTab:f.severity,type:n,theme:"light",onSelectType:m,extra:a?null:H.jsxs(st,{children:[g>0&&H.jsxs(uo,{disabled:h,onClick:b,className:"",children:[h&&H.jsx(Ti,{size:16,style:{marginRight:"1em"}}),p("notification.markAllAsRead")]}),H.jsx(Kp,{onSelectChange:C,selectedId:w,filterType:o,blockletMap:x})]})}),u?H.jsx(st,{sx:{display:"flex",width:"100%",minHeight:400,justifyContent:"center",alignItems:"center"},children:H.jsx(Ti,{sx:{color:"#4598fa"}})}):H.jsx(_c,{data:s,blockletMap:x,onReadNotification:S,inDialog:a}),r?H.jsx(qp,{loading:u,paging:l,onChange:E}):null]})}const Qp=d.memo(Bc);function sb(){const t=Gc().tab,{t:r}=ni(),n=Kc(),a=Xs(()=>{var o;return{...window.blocklet,meta:{did:window.blocklet.did,name:window.blocklet.did},children:(o=window==null?void 0:window.blocklet)==null?void 0:o.componentMountPoints.map(i=>({...i,meta:{...i,did:i.did,name:i.name||i.title||"",logo:"logo.png"}}))}});return H.jsxs(H.Fragment,{children:[H.jsx(Xc,{children:H.jsx("title",{children:r("pageTitle.userCenter")})}),H.jsx(Zc,{currentTab:t?Ks(Qc.WELLKNOWN_SERVICE_PATH_PREFIX,"user",t):"",disableAutoRedirect:t==="settings",children:t==="notifications"?H.jsx(Qp,{blocklets:[a],context:n}):null})]})}export{sb as default};
|