diff --git a/.DS_Store b/.DS_Store index a47eeb6928..6266ae76e3 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/modules/.DS_Store b/modules/.DS_Store index 1b187718cb..863bf7bafb 100644 Binary files a/modules/.DS_Store and b/modules/.DS_Store differ diff --git a/modules/ai/.DS_Store b/modules/ai/.DS_Store index c6286d2b2b..40c6463d88 100644 Binary files a/modules/ai/.DS_Store and b/modules/ai/.DS_Store differ diff --git a/modules/blog/.DS_Store b/modules/ai/src/.DS_Store similarity index 86% rename from modules/blog/.DS_Store rename to modules/ai/src/.DS_Store index c8e40f1f7e..59bd9a3a4a 100644 Binary files a/modules/blog/.DS_Store and b/modules/ai/src/.DS_Store differ diff --git a/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDoc.java b/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDoc.java index c60e01c11c..46b4568e1d 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDoc.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDoc.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 16:21:15 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-25 12:49:42 + * @LastEditTime: 2024-05-04 10:56:47 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -15,14 +15,10 @@ package com.bytedesk.ai.doc; import com.bytedesk.ai.file.KbFile; -import com.bytedesk.core.utils.AuditModel; -import jakarta.persistence.Column; +import com.bytedesk.core.utils.AbstractEntity; import jakarta.persistence.ConstraintMode; import jakarta.persistence.Entity; import jakarta.persistence.ForeignKey; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.JoinColumn; import jakarta.persistence.Lob; import jakarta.persistence.Table; @@ -45,14 +41,12 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "ai_kb_doc") -public class KbDoc extends AuditModel { +public class KbDoc extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - @Column(name = "did", unique = true, nullable = false) - private String did; + // @Column(name = "did", unique = true, nullable = false) + // private String did; @Lob private String content; diff --git a/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDocRequest.java b/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDocRequest.java index aecc2fa8f0..8a10e6a932 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDocRequest.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDocRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 17:00:31 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-27 17:32:24 + * @LastEditTime: 2024-05-04 10:55:22 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -27,7 +27,7 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = false) public class KbDocRequest extends BaseRequest { - private String did; + // private String did; private String meta; diff --git a/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDocResponse.java b/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDocResponse.java index 80e1c29575..3a15fd43bf 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDocResponse.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDocResponse.java @@ -25,7 +25,7 @@ import lombok.ToString; @ToString public class KbDocResponse { - private String did; + // private String did; private String content; diff --git a/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDocService.java b/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDocService.java index 6a2f23f965..44c5f27953 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDocService.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/doc/KbDocService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 17:00:07 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-26 17:00:57 + * @LastEditTime: 2024-05-04 10:55:40 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -33,10 +33,17 @@ public class KbDocService { public Page query(KbDocRequest kbDocRequest) { - Pageable pageable = PageRequest.of(kbDocRequest.getPageNumber(), kbDocRequest.getPageSize(), Sort.Direction.DESC, + Pageable pageable = PageRequest.of(kbDocRequest.getPageNumber(), kbDocRequest.getPageSize(), + Sort.Direction.DESC, "id"); - return null; + Page kbDocPage = kbDocRepository.findAll(pageable); + + return kbDocPage.map(this::convertToDocResponse); + } + + public KbDocResponse convertToDocResponse(KbDoc kbDoc) { + return modelMapper.map(kbDoc, KbDocResponse.class); } } diff --git a/modules/ai/src/main/java/com/bytedesk/ai/file/KbFile.java b/modules/ai/src/main/java/com/bytedesk/ai/file/KbFile.java index aec6cc42d3..13c8a1cdc7 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/file/KbFile.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/file/KbFile.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 16:23:35 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-26 14:01:15 + * @LastEditTime: 2024-05-04 10:56:57 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -16,17 +16,13 @@ package com.bytedesk.ai.file; import com.bytedesk.ai.kb.Kb; import com.bytedesk.core.upload.Upload; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.fasterxml.jackson.annotation.JsonIgnore; -import jakarta.persistence.Column; import jakarta.persistence.ConstraintMode; import jakarta.persistence.Entity; import jakarta.persistence.FetchType; import jakarta.persistence.ForeignKey; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.JoinColumn; import jakarta.persistence.ManyToOne; import jakarta.persistence.Table; @@ -49,14 +45,12 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "ai_kb_file") -public class KbFile extends AuditModel { +public class KbFile extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - @Column(name = "fid", unique = true, nullable = false) - private String fid; + // @Column(name = "fid", unique = true, nullable = false) + // private String fid; private String loader; diff --git a/modules/ai/src/main/java/com/bytedesk/ai/file/KbFileRequest.java b/modules/ai/src/main/java/com/bytedesk/ai/file/KbFileRequest.java index 1fdafeb1d2..52f94b61dd 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/file/KbFileRequest.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/file/KbFileRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 16:59:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-27 17:30:47 + * @LastEditTime: 2024-05-04 10:57:04 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -28,7 +28,7 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = false) public class KbFileRequest extends BaseRequest { - private String fid; + // private String fid; private String loader; diff --git a/modules/ai/src/main/java/com/bytedesk/ai/file/KbFileResponse.java b/modules/ai/src/main/java/com/bytedesk/ai/file/KbFileResponse.java index f83b3b6273..f29f45ef1f 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/file/KbFileResponse.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/file/KbFileResponse.java @@ -25,7 +25,7 @@ import lombok.ToString; @ToString public class KbFileResponse { - private String fid; + // private String fid; private String loader; diff --git a/modules/ai/src/main/java/com/bytedesk/ai/file/KbFileService.java b/modules/ai/src/main/java/com/bytedesk/ai/file/KbFileService.java index 72a8188988..8ad0353b41 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/file/KbFileService.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/file/KbFileService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 16:59:15 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-27 17:48:53 + * @LastEditTime: 2024-05-04 10:57:17 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -32,10 +32,17 @@ public class KbFileService { public Page query(KbFileRequest kbFileRequest) { - Pageable pageable = PageRequest.of(kbFileRequest.getPageNumber(), kbFileRequest.getPageSize(), Sort.Direction.DESC, + Pageable pageable = PageRequest.of(kbFileRequest.getPageNumber(), kbFileRequest.getPageSize(), + Sort.Direction.DESC, "id"); - return null; + Page kbFiles = kbFileRepository.findAll(pageable); + + return kbFiles.map(this::convertToKbFileResponse); + } + + public KbFileResponse convertToKbFileResponse(KbFile kbFile) { + return modelMapper.map(kbFile, KbFileResponse.class); } diff --git a/modules/ai/src/main/java/com/bytedesk/ai/kb/Kb.java b/modules/ai/src/main/java/com/bytedesk/ai/kb/Kb.java index 985286c86f..5518c3455a 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/kb/Kb.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/kb/Kb.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 16:13:38 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-25 12:48:33 + * @LastEditTime: 2024-05-04 10:58:05 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,12 +14,8 @@ */ package com.bytedesk.ai.kb; -import com.bytedesk.core.utils.AuditModel; -import jakarta.persistence.Column; +import com.bytedesk.core.utils.AbstractEntity; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -40,14 +36,12 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "ai_kb") -public class Kb extends AuditModel { +public class Kb extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - @Column(name = "kid", unique = true, nullable = false) - private String kid; + // @Column(name = "kid", unique = true, nullable = false) + // private String kid; private String name; diff --git a/modules/ai/src/main/java/com/bytedesk/ai/kb/KbService.java b/modules/ai/src/main/java/com/bytedesk/ai/kb/KbService.java index cacd155134..79347c0884 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/kb/KbService.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/kb/KbService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 16:46:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-11 12:08:49 + * @LastEditTime: 2024-05-04 10:58:11 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -39,14 +39,16 @@ public class KbService { Pageable pageable = PageRequest.of(kbRequest.getPageNumber(), kbRequest.getPageSize(), Sort.Direction.DESC, "id"); + + Page kbList = kbRepository.findAll(pageable); // - return null; + return kbList.map(this::convertToKbResponse); } public JsonResult create(KbRequest kbRequest) { Kb kb = modelMapper.map(kbRequest, Kb.class); - kb.setKid(uidUtils.getCacheSerialUid()); + kb.setUid(uidUtils.getCacheSerialUid()); // kb.setUser(authService.getCurrentUser()); @@ -55,15 +57,19 @@ public class KbService { return JsonResult.success(); } + public KbResponse convertToKbResponse(Kb kb) { + return modelMapper.map(kb, KbResponse.class); + } public Kb getKb(String name) { Kb kb = Kb.builder() - .kid(uidUtils.getCacheSerialUid()) + // .kid(uidUtils.getCacheSerialUid()) .name(name) .vectorStore("redis") .embeddings("m3e-base") .build(); + kb.setUid(uidUtils.getCacheSerialUid()); return kbRepository.save(kb); } diff --git a/modules/ai/src/main/java/com/bytedesk/ai/llm/Llm.java b/modules/ai/src/main/java/com/bytedesk/ai/llm/Llm.java index 8d7fcfa78b..bae5999d1a 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/llm/Llm.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/llm/Llm.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-25 11:13:28 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-25 12:31:52 + * @LastEditTime: 2024-05-04 10:59:11 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,12 +14,9 @@ */ package com.bytedesk.ai.llm; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -41,14 +38,12 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "ai_llm") -public class Llm extends AuditModel { +public class Llm extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - @Column(name = "lid", unique = true, nullable = false) - private String lid; + // @Column(name = "lid", unique = true, nullable = false) + // private String lid; // private String name; diff --git a/modules/ai/src/main/java/com/bytedesk/ai/llm/LlmService.java b/modules/ai/src/main/java/com/bytedesk/ai/llm/LlmService.java index a2cae1a8d6..078fbbb23f 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/llm/LlmService.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/llm/LlmService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-25 12:08:16 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-11 12:09:01 + * @LastEditTime: 2024-05-04 10:59:23 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -36,7 +36,7 @@ public class LlmService { public Llm getLlm(String type) { Llm llm = new Llm(); - llm.setLid(uidUtils.getCacheSerialUid()); + llm.setUid(uidUtils.getCacheSerialUid()); llm.setName("智谱AI"); llm.setDescription("对接智谱API"); llm.setType(type); diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/Robot.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/Robot.java index a1d77f9761..e62c16250f 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/robot/Robot.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/Robot.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 16:16:26 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-26 16:02:39 + * @LastEditTime: 2024-05-04 10:59:40 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -17,7 +17,7 @@ package com.bytedesk.ai.robot; import com.bytedesk.ai.kb.Kb; import com.bytedesk.ai.llm.Llm; import com.bytedesk.core.rbac.user.User; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.fasterxml.jackson.annotation.JsonIgnore; import jakarta.persistence.Column; @@ -25,9 +25,6 @@ import jakarta.persistence.ConstraintMode; import jakarta.persistence.Entity; import jakarta.persistence.FetchType; import jakarta.persistence.ForeignKey; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.JoinColumn; import jakarta.persistence.ManyToOne; import jakarta.persistence.Table; @@ -51,14 +48,12 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "ai_robot") -public class Robot extends AuditModel { +public class Robot extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - @Column(name = "rid", unique = true, nullable = false) - private String rid; + // @Column(name = "rid", unique = true, nullable = false) + // private String rid; private String name; diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotResponse.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotResponse.java index 18801d8170..6aa053f563 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotResponse.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 16:45:18 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-27 17:00:34 + * @LastEditTime: 2024-05-04 10:59:48 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,18 +14,22 @@ */ package com.bytedesk.ai.robot; +import com.bytedesk.core.utils.BaseResponse; + import lombok.AllArgsConstructor; import lombok.Data; +import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import lombok.ToString; @Data +@EqualsAndHashCode(callSuper=false) @AllArgsConstructor @NoArgsConstructor @ToString -public class RobotResponse { +public class RobotResponse extends BaseResponse { - private String rid; + // private String rid; private String name; diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotService.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotService.java index 7a33bce20d..c5e045e14a 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotService.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotService.java @@ -74,7 +74,7 @@ public class RobotService { Robot robot = modelMapper.map(robotRequest, Robot.class); // String rid = uidUtils.getCacheSerialUid(); - robot.setRid(rid); + robot.setUid(rid); robot.setAvatar(AvatarConsts.DEFAULT_AVATAR_URL); robot.setDescription("default robot description"); @@ -105,7 +105,7 @@ public class RobotService { // String rid = uidUtils.getCacheSerialUid(); Robot robot = Robot.builder() - .rid(rid) + // .rid(rid) .name("客服机器人") .avatar(AvatarConsts.DEFAULT_AVATAR_URL) .description("客服机器人") @@ -116,6 +116,7 @@ public class RobotService { .kb(kbService.getKb(rid)) .user(adminOptional.get()) .build(); + robot.setUid(rid); robotRepository.save(robot); } diff --git a/modules/blog/.gitignore b/modules/blog/.gitignore deleted file mode 100644 index 549e00a2a9..0000000000 --- a/modules/blog/.gitignore +++ /dev/null @@ -1,33 +0,0 @@ -HELP.md -target/ -!.mvn/wrapper/maven-wrapper.jar -!**/src/main/**/target/ -!**/src/test/**/target/ - -### STS ### -.apt_generated -.classpath -.factorypath -.project -.settings -.springBeans -.sts4-cache - -### IntelliJ IDEA ### -.idea -*.iws -*.iml -*.ipr - -### NetBeans ### -/nbproject/private/ -/nbbuild/ -/dist/ -/nbdist/ -/.nb-gradle/ -build/ -!**/src/main/**/build/ -!**/src/test/**/build/ - -### VS Code ### -.vscode/ diff --git a/modules/blog/.mvn/wrapper/maven-wrapper.jar b/modules/blog/.mvn/wrapper/maven-wrapper.jar deleted file mode 100644 index cb28b0e37c..0000000000 Binary files a/modules/blog/.mvn/wrapper/maven-wrapper.jar and /dev/null differ diff --git a/modules/blog/.mvn/wrapper/maven-wrapper.properties b/modules/blog/.mvn/wrapper/maven-wrapper.properties deleted file mode 100644 index 5f0536eb74..0000000000 --- a/modules/blog/.mvn/wrapper/maven-wrapper.properties +++ /dev/null @@ -1,2 +0,0 @@ -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip -wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar diff --git a/modules/blog/build.gradle b/modules/blog/build.gradle deleted file mode 100644 index 3bddbfe813..0000000000 --- a/modules/blog/build.gradle +++ /dev/null @@ -1,50 +0,0 @@ -plugins { - id 'java' - id 'org.springframework.boot' version '3.2.0' - id 'io.spring.dependency-management' version '1.1.4' -} - -group = 'com.bytedesk' -version = '0.0.1-SNAPSHOT' - -java { - sourceCompatibility = '17' -} - -repositories { - mavenCentral() -} - -dependencies { - // - implementation project(':core') - // - compileOnly 'org.springframework.boot:spring-boot-starter-web' - compileOnly 'org.springframework.boot:spring-boot-starter-thymeleaf' - // - implementation 'org.springframework.boot:spring-boot-starter-data-jpa' - // implementation 'com.mysql:mysql-connector-j' - // - implementation 'org.springframework.boot:spring-boot-starter-data-redis' - // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation - implementation 'org.springframework.boot:spring-boot-starter-validation' - // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-rest - // https://spring.io/guides/tutorials/react-and-spring-data-rest/ - implementation 'org.springframework.boot:spring-boot-starter-data-rest' - // - // for api docs - // https://springdoc.org/ - // https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui - // http://localhost:9003/swagger-ui/index.html - // http://localhost:9003/v3/api-docs - implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0' - // - compileOnly 'org.projectlombok:lombok' - developmentOnly 'org.springframework.boot:spring-boot-devtools' - annotationProcessor 'org.projectlombok:lombok' - testImplementation 'org.springframework.boot:spring-boot-starter-test' -} - -tasks.named('test') { - useJUnitPlatform() -} diff --git a/modules/blog/gradle/wrapper/gradle-wrapper.jar b/modules/blog/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index d64cd49177..0000000000 Binary files a/modules/blog/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/modules/blog/gradle/wrapper/gradle-wrapper.properties b/modules/blog/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 1af9e0930b..0000000000 --- a/modules/blog/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,7 +0,0 @@ -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip -networkTimeout=10000 -validateDistributionUrl=true -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists diff --git a/modules/blog/gradlew b/modules/blog/gradlew deleted file mode 100755 index 1aa94a4269..0000000000 --- a/modules/blog/gradlew +++ /dev/null @@ -1,249 +0,0 @@ -#!/bin/sh - -# -# Copyright © 2015-2021 the original authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -############################################################################## -# -# Gradle start up script for POSIX generated by Gradle. -# -# Important for running: -# -# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is -# noncompliant, but you have some other compliant shell such as ksh or -# bash, then to run this script, type that shell name before the whole -# command line, like: -# -# ksh Gradle -# -# Busybox and similar reduced shells will NOT work, because this script -# requires all of these POSIX shell features: -# * functions; -# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», -# «${var#prefix}», «${var%suffix}», and «$( cmd )»; -# * compound commands having a testable exit status, especially «case»; -# * various built-in commands including «command», «set», and «ulimit». -# -# Important for patching: -# -# (2) This script targets any POSIX shell, so it avoids extensions provided -# by Bash, Ksh, etc; in particular arrays are avoided. -# -# The "traditional" practice of packing multiple parameters into a -# space-separated string is a well documented source of bugs and security -# problems, so this is (mostly) avoided, by progressively accumulating -# options in "$@", and eventually passing that to Java. -# -# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, -# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; -# see the in-line comments for details. -# -# There are tweaks for specific operating systems such as AIX, CygWin, -# Darwin, MinGW, and NonStop. -# -# (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt -# within the Gradle project. -# -# You can find Gradle at https://github.com/gradle/gradle/. -# -############################################################################## - -# Attempt to set APP_HOME - -# Resolve links: $0 may be a link -app_path=$0 - -# Need this for daisy-chained symlinks. -while - APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path - [ -h "$app_path" ] -do - ls=$( ls -ld "$app_path" ) - link=${ls#*' -> '} - case $link in #( - /*) app_path=$link ;; #( - *) app_path=$APP_HOME$link ;; - esac -done - -# This is normally unused -# shellcheck disable=SC2034 -APP_BASE_NAME=${0##*/} -# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD=maximum - -warn () { - echo "$*" -} >&2 - -die () { - echo - echo "$*" - echo - exit 1 -} >&2 - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -nonstop=false -case "$( uname )" in #( - CYGWIN* ) cygwin=true ;; #( - Darwin* ) darwin=true ;; #( - MSYS* | MINGW* ) msys=true ;; #( - NONSTOP* ) nonstop=true ;; -esac - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD=$JAVA_HOME/jre/sh/java - else - JAVACMD=$JAVA_HOME/bin/java - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD=java - if ! command -v java >/dev/null 2>&1 - then - die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -fi - -# Increase the maximum file descriptors if we can. -if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then - case $MAX_FD in #( - max*) - # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC2039,SC3045 - MAX_FD=$( ulimit -H -n ) || - warn "Could not query maximum file descriptor limit" - esac - case $MAX_FD in #( - '' | soft) :;; #( - *) - # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC2039,SC3045 - ulimit -n "$MAX_FD" || - warn "Could not set maximum file descriptor limit to $MAX_FD" - esac -fi - -# Collect all arguments for the java command, stacking in reverse order: -# * args from the command line -# * the main class name -# * -classpath -# * -D...appname settings -# * --module-path (only if needed) -# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. - -# For Cygwin or MSYS, switch paths to Windows format before running java -if "$cygwin" || "$msys" ; then - APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) - CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) - - JAVACMD=$( cygpath --unix "$JAVACMD" ) - - # Now convert the arguments - kludge to limit ourselves to /bin/sh - for arg do - if - case $arg in #( - -*) false ;; # don't mess with options #( - /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath - [ -e "$t" ] ;; #( - *) false ;; - esac - then - arg=$( cygpath --path --ignore --mixed "$arg" ) - fi - # Roll the args list around exactly as many times as the number of - # args, so each arg winds up back in the position where it started, but - # possibly modified. - # - # NB: a `for` loop captures its iteration list before it begins, so - # changing the positional parameters here affects neither the number of - # iterations, nor the values presented in `arg`. - shift # remove old arg - set -- "$@" "$arg" # push replacement arg - done -fi - - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - -# Collect all arguments for the java command: -# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, -# and any embedded shellness will be escaped. -# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be -# treated as '${Hostname}' itself on the command line. - -set -- \ - "-Dorg.gradle.appname=$APP_BASE_NAME" \ - -classpath "$CLASSPATH" \ - org.gradle.wrapper.GradleWrapperMain \ - "$@" - -# Stop when "xargs" is not available. -if ! command -v xargs >/dev/null 2>&1 -then - die "xargs is not available" -fi - -# Use "xargs" to parse quoted args. -# -# With -n1 it outputs one arg per line, with the quotes and backslashes removed. -# -# In Bash we could simply go: -# -# readarray ARGS < <( xargs -n1 <<<"$var" ) && -# set -- "${ARGS[@]}" "$@" -# -# but POSIX shell has neither arrays nor command substitution, so instead we -# post-process each arg (as a line of input to sed) to backslash-escape any -# character that might be a shell metacharacter, then use eval to reverse -# that process (while maintaining the separation between arguments), and wrap -# the whole thing up as a single "set" statement. -# -# This will of course break if any of these variables contains a newline or -# an unmatched quote. -# - -eval "set -- $( - printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | - xargs -n1 | - sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | - tr '\n' ' ' - )" '"$@"' - -exec "$JAVACMD" "$@" diff --git a/modules/blog/gradlew.bat b/modules/blog/gradlew.bat deleted file mode 100644 index 6689b85bee..0000000000 --- a/modules/blog/gradlew.bat +++ /dev/null @@ -1,92 +0,0 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%"=="" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%"=="" set DIRNAME=. -@rem This is normally unused -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if %ERRORLEVEL% equ 0 goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if %ERRORLEVEL% equ 0 goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -set EXIT_CODE=%ERRORLEVEL% -if %EXIT_CODE% equ 0 set EXIT_CODE=1 -if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% -exit /b %EXIT_CODE% - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/modules/blog/mvnw b/modules/blog/mvnw deleted file mode 100755 index 66df285428..0000000000 --- a/modules/blog/mvnw +++ /dev/null @@ -1,308 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Apache Maven Wrapper startup batch script, version 3.2.0 -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /usr/local/etc/mavenrc ] ; then - . /usr/local/etc/mavenrc - fi - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "$(uname)" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - JAVA_HOME="$(/usr/libexec/java_home)"; export JAVA_HOME - else - JAVA_HOME="/Library/Java/Home"; export JAVA_HOME - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=$(java-config --jre-home) - fi -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$JAVA_HOME" ] && - JAVA_HOME=$(cygpath --unix "$JAVA_HOME") - [ -n "$CLASSPATH" ] && - CLASSPATH=$(cygpath --path --unix "$CLASSPATH") -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] && - JAVA_HOME="$(cd "$JAVA_HOME" || (echo "cannot cd into $JAVA_HOME."; exit 1); pwd)" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="$(which javac)" - if [ -n "$javaExecutable" ] && ! [ "$(expr "\"$javaExecutable\"" : '\([^ ]*\)')" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=$(which readlink) - if [ ! "$(expr "$readLink" : '\([^ ]*\)')" = "no" ]; then - if $darwin ; then - javaHome="$(dirname "\"$javaExecutable\"")" - javaExecutable="$(cd "\"$javaHome\"" && pwd -P)/javac" - else - javaExecutable="$(readlink -f "\"$javaExecutable\"")" - fi - javaHome="$(dirname "\"$javaExecutable\"")" - javaHome=$(expr "$javaHome" : '\(.*\)/bin') - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="$(\unset -f command 2>/dev/null; \command -v java)" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=$(cd "$wdir/.." || exit 1; pwd) - fi - # end of workaround - done - printf '%s' "$(cd "$basedir" || exit 1; pwd)" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - # Remove \r in case we run on Windows within Git Bash - # and check out the repository with auto CRLF management - # enabled. Otherwise, we may read lines that are delimited with - # \r\n and produce $'-Xarg\r' rather than -Xarg due to word - # splitting rules. - tr -s '\r\n' ' ' < "$1" - fi -} - -log() { - if [ "$MVNW_VERBOSE" = true ]; then - printf '%s\n' "$1" - fi -} - -BASE_DIR=$(find_maven_basedir "$(dirname "$0")") -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}; export MAVEN_PROJECTBASEDIR -log "$MAVEN_PROJECTBASEDIR" - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" -if [ -r "$wrapperJarPath" ]; then - log "Found $wrapperJarPath" -else - log "Couldn't find $wrapperJarPath, downloading it ..." - - if [ -n "$MVNW_REPOURL" ]; then - wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" - else - wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" - fi - while IFS="=" read -r key value; do - # Remove '\r' from value to allow usage on windows as IFS does not consider '\r' as a separator ( considers space, tab, new line ('\n'), and custom '=' ) - safeValue=$(echo "$value" | tr -d '\r') - case "$key" in (wrapperUrl) wrapperUrl="$safeValue"; break ;; - esac - done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties" - log "Downloading from: $wrapperUrl" - - if $cygwin; then - wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath") - fi - - if command -v wget > /dev/null; then - log "Found wget ... using wget" - [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet" - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget $QUIET "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - else - wget $QUIET --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - log "Found curl ... using curl" - [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent" - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl $QUIET -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath" - else - curl $QUIET --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath" - fi - else - log "Falling back to using Java to download" - javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java" - javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaSource=$(cygpath --path --windows "$javaSource") - javaClass=$(cygpath --path --windows "$javaClass") - fi - if [ -e "$javaSource" ]; then - if [ ! -e "$javaClass" ]; then - log " - Compiling MavenWrapperDownloader.java ..." - ("$JAVA_HOME/bin/javac" "$javaSource") - fi - if [ -e "$javaClass" ]; then - log " - Running MavenWrapperDownloader.java ..." - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath" - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -# If specified, validate the SHA-256 sum of the Maven wrapper jar file -wrapperSha256Sum="" -while IFS="=" read -r key value; do - case "$key" in (wrapperSha256Sum) wrapperSha256Sum=$value; break ;; - esac -done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties" -if [ -n "$wrapperSha256Sum" ]; then - wrapperSha256Result=false - if command -v sha256sum > /dev/null; then - if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c > /dev/null 2>&1; then - wrapperSha256Result=true - fi - elif command -v shasum > /dev/null; then - if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c > /dev/null 2>&1; then - wrapperSha256Result=true - fi - else - echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." - echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties." - exit 1 - fi - if [ $wrapperSha256Result = false ]; then - echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2 - echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2 - echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2 - exit 1 - fi -fi - -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$JAVA_HOME" ] && - JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME") - [ -n "$CLASSPATH" ] && - CLASSPATH=$(cygpath --path --windows "$CLASSPATH") - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR") -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $*" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -# shellcheck disable=SC2086 # safe args -exec "$JAVACMD" \ - $MAVEN_OPTS \ - $MAVEN_DEBUG_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/modules/blog/mvnw.cmd b/modules/blog/mvnw.cmd deleted file mode 100644 index 95ba6f54ac..0000000000 --- a/modules/blog/mvnw.cmd +++ /dev/null @@ -1,205 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM https://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Apache Maven Wrapper startup batch script, version 3.2.0 -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* -if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" - -FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %WRAPPER_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM If specified, validate the SHA-256 sum of the Maven wrapper jar file -SET WRAPPER_SHA_256_SUM="" -FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B -) -IF NOT %WRAPPER_SHA_256_SUM%=="" ( - powershell -Command "&{"^ - "$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^ - "If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^ - " Write-Output 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^ - " Write-Output 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^ - " Write-Output 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^ - " exit 1;"^ - "}"^ - "}" - if ERRORLEVEL 1 goto error -) - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% ^ - %JVM_CONFIG_MAVEN_PROPS% ^ - %MAVEN_OPTS% ^ - %MAVEN_DEBUG_OPTS% ^ - -classpath %WRAPPER_JAR% ^ - "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ - %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" -if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%"=="on" pause - -if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% - -cmd /C exit /B %ERROR_CODE% diff --git a/modules/blog/pom.xml b/modules/blog/pom.xml deleted file mode 100644 index 7a5edbf842..0000000000 --- a/modules/blog/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - 4.0.0 - - - com.bytedesk - modules - - 0.0.1-SNAPSHOT - - - im-blog - - blog - Demo project for Spring Boot - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/modules/blog/settings.gradle b/modules/blog/settings.gradle deleted file mode 100644 index d0b56e297b..0000000000 --- a/modules/blog/settings.gradle +++ /dev/null @@ -1,3 +0,0 @@ -rootProject.name = 'blog' -include ':core' -project(':core').projectDir = new File('../core') \ No newline at end of file diff --git a/modules/blog/src/main/java/com/bytedesk/blog/BlogApplication.java b/modules/blog/src/main/java/com/bytedesk/blog/BlogApplication.java deleted file mode 100644 index 005183f96e..0000000000 --- a/modules/blog/src/main/java/com/bytedesk/blog/BlogApplication.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.bytedesk.blog; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication -public class BlogApplication { - - public static void main(String[] args) { - SpringApplication.run(BlogApplication.class, args); - } - -} diff --git a/modules/blog/src/main/resources/application.properties b/modules/blog/src/main/resources/application.properties deleted file mode 100644 index 4d636cbf1a..0000000000 --- a/modules/blog/src/main/resources/application.properties +++ /dev/null @@ -1 +0,0 @@ -spring.application.name=blog diff --git a/modules/blog/src/test/java/com/bytedesk/blog/BlogApplicationTests.java b/modules/blog/src/test/java/com/bytedesk/blog/BlogApplicationTests.java deleted file mode 100644 index 5d0c65ed41..0000000000 --- a/modules/blog/src/test/java/com/bytedesk/blog/BlogApplicationTests.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.bytedesk.blog; - -import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; - -@SpringBootTest -class BlogApplicationTests { - - @Test - void contextLoads() { - } - -} diff --git a/modules/core/.DS_Store b/modules/core/.DS_Store index 4a0beaf22b..594c6bd762 100644 Binary files a/modules/core/.DS_Store and b/modules/core/.DS_Store differ diff --git a/modules/core/src/.DS_Store b/modules/core/src/.DS_Store index 02ee4a24dd..8b8148b304 100644 Binary files a/modules/core/src/.DS_Store and b/modules/core/src/.DS_Store differ diff --git a/modules/core/src/main/java/com/bytedesk/core/action/Action.java b/modules/core/src/main/java/com/bytedesk/core/action/Action.java index a3c3ac7305..efa15a1c81 100644 --- a/modules/core/src/main/java/com/bytedesk/core/action/Action.java +++ b/modules/core/src/main/java/com/bytedesk/core/action/Action.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-25 15:31:38 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-25 15:36:07 + * @LastEditTime: 2024-05-04 11:37:26 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,13 +14,9 @@ */ package com.bytedesk.core.action; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; -import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -40,14 +36,13 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "core_action") -public class Action extends AuditModel { +public class Action extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; - - @Column(unique = true, nullable = false) - private String aid; + private static final long serialVersionUID = 1L; + + // @NotBlank + // @Column(unique = true, nullable = false) + // private String aid; private String title; @@ -55,4 +50,9 @@ public class Action extends AuditModel { private String description; + // + private String userUid; + + private String orgUid; + } diff --git a/modules/core/src/main/java/com/bytedesk/core/annotation/ActionLog.java b/modules/core/src/main/java/com/bytedesk/core/action/ActionLogAnnotation.java similarity index 89% rename from modules/core/src/main/java/com/bytedesk/core/annotation/ActionLog.java rename to modules/core/src/main/java/com/bytedesk/core/action/ActionLogAnnotation.java index 1f60741f8f..3030579c9b 100644 --- a/modules/core/src/main/java/com/bytedesk/core/annotation/ActionLog.java +++ b/modules/core/src/main/java/com/bytedesk/core/action/ActionLogAnnotation.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-17 16:53:05 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-25 15:38:58 + * @LastEditTime: 2024-05-04 12:53:51 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -12,7 +12,7 @@ * 联系:270580156@qq.com * Copyright (c) 2024 by bytedesk.com, All Rights Reserved. */ -package com.bytedesk.core.annotation; +package com.bytedesk.core.action; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; @@ -29,7 +29,7 @@ import java.lang.annotation.Target; @Target({ ElementType.PARAMETER, ElementType.METHOD }) @Retention(RetentionPolicy.RUNTIME) @Documented -public @interface ActionLog { +public @interface ActionLogAnnotation { public String title() default ""; diff --git a/modules/core/src/main/java/com/bytedesk/core/action/ActionLogAspect.java b/modules/core/src/main/java/com/bytedesk/core/action/ActionLogAspect.java index 8772273868..339be7ed88 100644 --- a/modules/core/src/main/java/com/bytedesk/core/action/ActionLogAspect.java +++ b/modules/core/src/main/java/com/bytedesk/core/action/ActionLogAspect.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-17 16:53:12 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-25 23:41:33 + * @LastEditTime: 2024-05-04 12:33:32 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -21,7 +21,6 @@ import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Component; -import com.bytedesk.core.annotation.ActionLog; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -44,7 +43,7 @@ public class ActionLogAspect { * 处理请求前执行 */ @Before(value = "@annotation(controllerLog)") - public void doBefore(JoinPoint joinPoint, ActionLog controllerLog) { + public void doBefore(JoinPoint joinPoint, ActionLogAnnotation controllerLog) { log.debug("actionLog before: model {}, action {}", controllerLog.title(), controllerLog.action()); } @@ -54,11 +53,11 @@ public class ActionLogAspect { * @param joinPoint 切点 */ @AfterReturning(pointcut = "@annotation(controllerLog)", returning = "jsonResult") - public void doAfterReturning(JoinPoint joinPoint, ActionLog controllerLog, Object jsonResult) { + public void doAfterReturning(JoinPoint joinPoint, ActionLogAnnotation controllerLog, Object jsonResult) { log.debug("actionLog after returning: model {}, action {}, jsonResult {}", controllerLog.title(), controllerLog.action(), jsonResult); // handleLog(joinPoint, controllerLog, null, jsonResult); - // + // TODO: 记录具体用户 ActionRequest actionRequest = ActionRequest.builder() .title(controllerLog.title()) .action(controllerLog.action()) @@ -74,7 +73,7 @@ public class ActionLogAspect { * @param e 异常 */ @AfterThrowing(value = "@annotation(controllerLog)", throwing = "e") - public void doAfterThrowing(JoinPoint joinPoint, ActionLog controllerLog, Exception e) { + public void doAfterThrowing(JoinPoint joinPoint, ActionLogAnnotation controllerLog, Exception e) { log.info("actionLog after throwing: model {}, action {}", controllerLog.title(), controllerLog.action()); // handleLog(joinPoint, controllerLog, e, null); } diff --git a/modules/core/src/main/java/com/bytedesk/core/action/ActionRequest.java b/modules/core/src/main/java/com/bytedesk/core/action/ActionRequest.java index 83bc1c7d68..70c947eea1 100644 --- a/modules/core/src/main/java/com/bytedesk/core/action/ActionRequest.java +++ b/modules/core/src/main/java/com/bytedesk/core/action/ActionRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-25 15:40:29 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-25 23:41:25 + * @LastEditTime: 2024-05-04 11:49:01 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -29,9 +29,9 @@ import lombok.experimental.Accessors; @AllArgsConstructor public class ActionRequest extends BaseRequest { - private static final long serialVersionUID = 2108168382L; + private static final long serialVersionUID = 1L; - private String aid; + // private String aid; private String title; diff --git a/modules/core/src/main/java/com/bytedesk/core/action/ActionResponse.java b/modules/core/src/main/java/com/bytedesk/core/action/ActionResponse.java index df05728bfe..be1f1853dd 100644 --- a/modules/core/src/main/java/com/bytedesk/core/action/ActionResponse.java +++ b/modules/core/src/main/java/com/bytedesk/core/action/ActionResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-25 15:40:39 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-25 15:46:33 + * @LastEditTime: 2024-05-04 11:49:07 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -27,9 +27,9 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = false) public class ActionResponse extends BaseResponse { - private static final long serialVersionUID = -4636716962L; + private static final long serialVersionUID = 1L; - private String aid; + // private String aid; private String title; diff --git a/modules/core/src/main/java/com/bytedesk/core/action/ActionService.java b/modules/core/src/main/java/com/bytedesk/core/action/ActionService.java index 8249129ceb..ded0de70c0 100644 --- a/modules/core/src/main/java/com/bytedesk/core/action/ActionService.java +++ b/modules/core/src/main/java/com/bytedesk/core/action/ActionService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-25 15:41:47 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-25 15:52:51 + * @LastEditTime: 2024-05-04 11:37:38 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -34,7 +34,7 @@ public class ActionService { public Action create(ActionRequest actionRequest) { Action action = modelMapper.map(actionRequest, Action.class); - action.setAid(uidUtils.getCacheSerialUid()); + action.setUid(uidUtils.getCacheSerialUid()); return save(action); } diff --git a/modules/core/src/main/java/com/bytedesk/core/annotation/ApiRateLimiter.java b/modules/core/src/main/java/com/bytedesk/core/apilimit/ApiRateLimiter.java similarity index 95% rename from modules/core/src/main/java/com/bytedesk/core/annotation/ApiRateLimiter.java rename to modules/core/src/main/java/com/bytedesk/core/apilimit/ApiRateLimiter.java index e3df9852e9..a5c24696c3 100644 --- a/modules/core/src/main/java/com/bytedesk/core/annotation/ApiRateLimiter.java +++ b/modules/core/src/main/java/com/bytedesk/core/apilimit/ApiRateLimiter.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-09 11:58:06 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-09 11:58:12 + * @LastEditTime: 2024-05-04 12:54:59 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -12,7 +12,7 @@ * 联系:270580156@qq.com * Copyright (c) 2024 by bytedesk.com, All Rights Reserved. */ -package com.bytedesk.core.annotation; +package com.bytedesk.core.apilimit; import java.lang.annotation.*; import java.util.concurrent.TimeUnit; diff --git a/modules/core/src/main/java/com/bytedesk/core/aop/ApiRateLimiterAspect.java b/modules/core/src/main/java/com/bytedesk/core/apilimit/ApiRateLimiterAspect.java similarity index 93% rename from modules/core/src/main/java/com/bytedesk/core/aop/ApiRateLimiterAspect.java rename to modules/core/src/main/java/com/bytedesk/core/apilimit/ApiRateLimiterAspect.java index c4a32cf73f..8382ad40f2 100644 --- a/modules/core/src/main/java/com/bytedesk/core/aop/ApiRateLimiterAspect.java +++ b/modules/core/src/main/java/com/bytedesk/core/apilimit/ApiRateLimiterAspect.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-09 11:59:04 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-09 12:49:23 + * @LastEditTime: 2024-05-04 13:02:47 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -12,7 +12,7 @@ * 联系:270580156@qq.com * Copyright (c) 2024 by bytedesk.com, All Rights Reserved. */ -package com.bytedesk.core.aop; +package com.bytedesk.core.apilimit; import java.lang.reflect.Method; import java.util.concurrent.ConcurrentHashMap; @@ -26,7 +26,6 @@ import org.aspectj.lang.reflect.MethodSignature; import org.springframework.core.annotation.AnnotationUtils; import org.springframework.stereotype.Component; -import com.bytedesk.core.annotation.ApiRateLimiter; import com.bytedesk.core.utils.JsonResult; import lombok.extern.slf4j.Slf4j; @@ -34,6 +33,7 @@ import com.google.common.util.concurrent.RateLimiter; /** + * https://springdoc.cn/spring/core.html#aop * https://blog.csdn.net/MICHAELKING1/article/details/106058874 */ @Slf4j @@ -43,7 +43,7 @@ public class ApiRateLimiterAspect { private static final ConcurrentMap RATE_LIMITER_CACHE = new ConcurrentHashMap<>(); - @Pointcut("@annotation(com.bytedesk.core.annotation.ApiRateLimiter)") + @Pointcut("@annotation(com.bytedesk.core.apilimit.ApiRateLimiter)") public void apiRateLimit() {} @Around("apiRateLimit()") diff --git a/modules/core/src/main/java/com/bytedesk/core/asistant/Asistant.java b/modules/core/src/main/java/com/bytedesk/core/asistant/Asistant.java index 6aa5755ade..77d67fefd3 100644 --- a/modules/core/src/main/java/com/bytedesk/core/asistant/Asistant.java +++ b/modules/core/src/main/java/com/bytedesk/core/asistant/Asistant.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-26 20:32:23 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-28 10:55:02 + * @LastEditTime: 2024-05-04 10:46:28 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,14 +14,11 @@ */ package com.bytedesk.core.asistant; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.EntityListeners; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -42,14 +39,13 @@ import lombok.experimental.Accessors; @NoArgsConstructor @EntityListeners({ AsistantListener.class }) @Table(name = "core_asistant") -public class Asistant extends AuditModel { - - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; +public class Asistant extends AbstractEntity { - @Column(unique = true, nullable = false, length = 127) - private String aid; + private static final long serialVersionUID = 1L; + + // @NotBlank + // @Column(unique = true, nullable = false, length = 127) + // private String aid; private String topic; @@ -63,5 +59,5 @@ public class Asistant extends AuditModel { private String description; /** belong to org */ - private String orgOid; + private String orgUid; } diff --git a/modules/core/src/main/java/com/bytedesk/core/asistant/AsistantRequest.java b/modules/core/src/main/java/com/bytedesk/core/asistant/AsistantRequest.java index a69ae9ea51..a9f594fba6 100644 --- a/modules/core/src/main/java/com/bytedesk/core/asistant/AsistantRequest.java +++ b/modules/core/src/main/java/com/bytedesk/core/asistant/AsistantRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-26 21:05:09 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-27 12:51:21 + * @LastEditTime: 2024-05-04 10:45:56 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -27,7 +27,7 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = false) public class AsistantRequest extends BaseRequest { - private String aid; + // private String aid; private String topic; @@ -38,5 +38,5 @@ public class AsistantRequest extends BaseRequest { private String description; /** belong to org */ - private String orgOid; + private String orgUid; } diff --git a/modules/core/src/main/java/com/bytedesk/core/asistant/AsistantResponse.java b/modules/core/src/main/java/com/bytedesk/core/asistant/AsistantResponse.java index fc153d8dc7..d32aa3bed2 100644 --- a/modules/core/src/main/java/com/bytedesk/core/asistant/AsistantResponse.java +++ b/modules/core/src/main/java/com/bytedesk/core/asistant/AsistantResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-26 21:05:21 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-28 10:55:31 + * @LastEditTime: 2024-05-04 10:42:21 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -27,7 +27,7 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = false) public class AsistantResponse extends BaseResponse { - private String aid; + // private String aid; private String topic; @@ -40,5 +40,5 @@ public class AsistantResponse extends BaseResponse { private String description; /** belong to org */ - private String orgOid; + private String orgUid; } diff --git a/modules/core/src/main/java/com/bytedesk/core/asistant/AsistantService.java b/modules/core/src/main/java/com/bytedesk/core/asistant/AsistantService.java index 16bf06908c..b4c09df946 100644 --- a/modules/core/src/main/java/com/bytedesk/core/asistant/AsistantService.java +++ b/modules/core/src/main/java/com/bytedesk/core/asistant/AsistantService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-26 21:04:54 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-28 11:14:48 + * @LastEditTime: 2024-05-04 10:41:58 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -67,7 +67,7 @@ public class AsistantService { public Asistant create(AsistantRequest asistantRequest) { Asistant asistant = modelMapper.map(asistantRequest, Asistant.class); - asistant.setAid(uidUtils.getCacheSerialUid()); + asistant.setUid(uidUtils.getCacheSerialUid()); return save(asistant); } @@ -95,7 +95,7 @@ public class AsistantService { .name(I18Consts.I18_FILE_ASISTANT_NAME) .avatar(AvatarConsts.DEFAULT_FILE_ASISTANT_AVATAR_URL) .description(I18Consts.I18_FILE_ASISTANT_DESCRIPTION) - .orgOid(adminOptional.get().getOrgOid()) + .orgUid(adminOptional.get().getOrgUid()) .build(); asistantRequest.setType(TypeConsts.TYPE_SYSTEM); create(asistantRequest); @@ -109,21 +109,23 @@ public class AsistantService { userPage.forEach(user -> { // UserResponseSimple userSimple = UserResponseSimple.builder() - .uid(asistantRequest.getAid()) + // .uid(asistantRequest.getAid()) .nickname(asistantRequest.getName()) .avatar(asistantRequest.getAvatar()) .build(); + userSimple.setUid(asistantRequest.getUid()); // Thread thread = Thread.builder() - .tid(uidUtils.getCacheSerialUid()) + // .tid(uidUtils.getCacheSerialUid()) .type(ThreadTypeConsts.ASISTANT) .topic(TopicConsts.TOPIC_FILE_ASISTANT + "/" + user.getUid()) .status(StatusConsts.THREAD_STATUS_INIT) .client(TypeConsts.TYPE_SYSTEM) .user(JSON.toJSONString(userSimple)) .owner(user) - .orgOid(asistantRequest.getOrgOid()) + .orgUid(asistantRequest.getOrgUid()) .build(); + thread.setUid(uidUtils.getCacheSerialUid()); threadService.save(thread); }); diff --git a/modules/core/src/main/java/com/bytedesk/core/channel/Channel.java b/modules/core/src/main/java/com/bytedesk/core/channel/Channel.java index 2f115a7c94..c02fd6af18 100644 --- a/modules/core/src/main/java/com/bytedesk/core/channel/Channel.java +++ b/modules/core/src/main/java/com/bytedesk/core/channel/Channel.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-26 20:34:52 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-28 11:20:53 + * @LastEditTime: 2024-05-04 10:47:12 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,14 +14,11 @@ */ package com.bytedesk.core.channel; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.EntityListeners; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -42,14 +39,12 @@ import lombok.experimental.Accessors; @NoArgsConstructor @EntityListeners({ChannelListener.class}) @Table(name = "core_channel") -public class Channel extends AuditModel { +public class Channel extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - @Column(unique = true, nullable = false, length = 127) - private String cid; + // @Column(unique = true, nullable = false, length = 127) + // private String cid; private String topic; @@ -63,7 +58,7 @@ public class Channel extends AuditModel { private String description; /** belong to org */ - private String orgOid; + private String orgUid; } diff --git a/modules/core/src/main/java/com/bytedesk/core/channel/ChannelRequest.java b/modules/core/src/main/java/com/bytedesk/core/channel/ChannelRequest.java index b666cb192b..4a47b6953a 100644 --- a/modules/core/src/main/java/com/bytedesk/core/channel/ChannelRequest.java +++ b/modules/core/src/main/java/com/bytedesk/core/channel/ChannelRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-26 21:07:10 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-26 21:44:27 + * @LastEditTime: 2024-05-04 10:47:25 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -27,7 +27,7 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = false) public class ChannelRequest extends BaseRequest { - private String cid; + // private String cid; private String topic; @@ -38,5 +38,5 @@ public class ChannelRequest extends BaseRequest { private String description; /** belong to org */ - private String orgOid; + private String orgUid; } diff --git a/modules/core/src/main/java/com/bytedesk/core/channel/ChannelResponse.java b/modules/core/src/main/java/com/bytedesk/core/channel/ChannelResponse.java index 170de66301..a9219243f1 100644 --- a/modules/core/src/main/java/com/bytedesk/core/channel/ChannelResponse.java +++ b/modules/core/src/main/java/com/bytedesk/core/channel/ChannelResponse.java @@ -27,7 +27,7 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = false) public class ChannelResponse extends BaseResponse { - private String cid; + // private String cid; private String topic; @@ -40,5 +40,5 @@ public class ChannelResponse extends BaseResponse { private String description; /** belong to org */ - private String orgOid; + private String orgUid; } diff --git a/modules/core/src/main/java/com/bytedesk/core/channel/ChannelService.java b/modules/core/src/main/java/com/bytedesk/core/channel/ChannelService.java index 7e1232dafb..db9391e3a2 100644 --- a/modules/core/src/main/java/com/bytedesk/core/channel/ChannelService.java +++ b/modules/core/src/main/java/com/bytedesk/core/channel/ChannelService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-26 21:06:12 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-28 11:40:10 + * @LastEditTime: 2024-05-04 10:47:33 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -58,7 +58,7 @@ public class ChannelService { public Channel create(ChannelRequest channelRequest) { Channel channel = modelMapper.map(channelRequest, Channel.class); - channel.setCid(uidUtils.getCacheSerialUid()); + channel.setUid(uidUtils.getCacheSerialUid()); return save(channel); } @@ -84,7 +84,7 @@ public class ChannelService { .name(I18Consts.I18_SYSTEM_NOTIFICATION_NAME) .avatar(AvatarConsts.DEFAULT_SYSTEM_NOTIFICATION_AVATAR_URL) .description(I18Consts.I18_SYSTEM_NOTIFICATION_DESCRIPTION) - .orgOid(adminOptional.get().getOrgOid()) + .orgUid(adminOptional.get().getOrgUid()) .build(); channelRequest.setType(TypeConsts.TYPE_SYSTEM); create(channelRequest); diff --git a/modules/core/src/main/java/com/bytedesk/core/constant/I18Consts.java b/modules/core/src/main/java/com/bytedesk/core/constant/I18Consts.java index 5d7792b3cf..661f99dd8e 100644 --- a/modules/core/src/main/java/com/bytedesk/core/constant/I18Consts.java +++ b/modules/core/src/main/java/com/bytedesk/core/constant/I18Consts.java @@ -26,12 +26,12 @@ public class I18Consts { // public static final String ZH_CN = "zh-cn"; // "文件助手" - public static final String I18_FILE_ASISTANT_NAME = "file_asistant"; + public static final String I18_FILE_ASISTANT_NAME = "i18_file_asistant"; // "手机、电脑文件互传" - public static final String I18_FILE_ASISTANT_DESCRIPTION = "file_asistant_description"; + public static final String I18_FILE_ASISTANT_DESCRIPTION = "i18_file_asistant_description"; // 系统通知 - public static final String I18_SYSTEM_NOTIFICATION_NAME = "system_notification"; - public static final String I18_SYSTEM_NOTIFICATION_DESCRIPTION = "system_notification_description"; + public static final String I18_SYSTEM_NOTIFICATION_NAME = "i18_system_notification"; + public static final String I18_SYSTEM_NOTIFICATION_DESCRIPTION = "i18_system_notification_description"; } diff --git a/modules/core/src/main/java/com/bytedesk/core/constant/ThreadTypeConsts.java b/modules/core/src/main/java/com/bytedesk/core/constant/ThreadTypeConsts.java index 1b76322279..31bdb50a20 100644 --- a/modules/core/src/main/java/com/bytedesk/core/constant/ThreadTypeConsts.java +++ b/modules/core/src/main/java/com/bytedesk/core/constant/ThreadTypeConsts.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-22 16:01:14 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-27 12:37:31 + * @LastEditTime: 2024-04-30 14:43:37 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -31,4 +31,5 @@ public class ThreadTypeConsts { public static final String FEEDBACK = "feedback"; public static final String ASISTANT = "assistant"; public static final String CHANNEL = "channel"; + public static final String LOCAL = "local"; } diff --git a/modules/core/src/main/java/com/bytedesk/core/message/Message.java b/modules/core/src/main/java/com/bytedesk/core/message/Message.java index 7cf04e6534..891a653561 100644 --- a/modules/core/src/main/java/com/bytedesk/core/message/Message.java +++ b/modules/core/src/main/java/com/bytedesk/core/message/Message.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-22 22:21:00 + * @LastEditTime: 2024-05-04 10:36:46 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -22,7 +22,7 @@ import org.hibernate.type.SqlTypes; import com.bytedesk.core.constant.BdConstants; import com.bytedesk.core.thread.Thread; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.fasterxml.jackson.annotation.JsonIgnore; import jakarta.persistence.*; @@ -41,16 +41,13 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "core_message") -public class Message extends AuditModel { +public class Message extends AbstractEntity { - private static final long serialVersionUID = 6816837318L; + private static final long serialVersionUID = 1L; - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; - - @Column(unique = true, nullable = false) - private String mid; + // @NotBlank + // @Column(unique = true, nullable = false) + // private String mid; @Column(name = "by_type") private String type; @@ -91,6 +88,6 @@ public class Message extends AuditModel { // TODO: /** belong to org */ - private String orgOid; + private String orgUid; } diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessageRepository.java b/modules/core/src/main/java/com/bytedesk/core/message/MessageRepository.java index 30e0353177..845c1856cb 100644 --- a/modules/core/src/main/java/com/bytedesk/core/message/MessageRepository.java +++ b/modules/core/src/main/java/com/bytedesk/core/message/MessageRepository.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-17 09:43:34 + * @LastEditTime: 2024-05-04 11:29:27 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -31,14 +31,14 @@ import io.swagger.v3.oas.annotations.tags.Tag; @Tag(name = "message - 消息") public interface MessageRepository extends JpaRepository, JpaSpecificationExecutor { - Optional findByMid(String mid); + Optional findByUid(String mid); - Long deleteByMid(String mid); + Long deleteByUid(String mid); - Page findByThreadsTidIn(String[] threadTids, Pageable pageable); + Page findByThreadsUidIn(String[] threadTids, Pageable pageable); - Optional findFirstByThreadsTidInOrderByCreatedAtDesc(String[] threadTids); + Optional findFirstByThreadsUidInOrderByCreatedAtDesc(String[] threadTids); - boolean existsByMid(String mid); + boolean existsByUid(String mid); } diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessageRequest.java b/modules/core/src/main/java/com/bytedesk/core/message/MessageRequest.java index 6d8d73f9a1..9dac4f6622 100644 --- a/modules/core/src/main/java/com/bytedesk/core/message/MessageRequest.java +++ b/modules/core/src/main/java/com/bytedesk/core/message/MessageRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-21 10:00:32 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-01 16:11:47 + * @LastEditTime: 2024-05-04 10:47:53 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -23,7 +23,7 @@ import lombok.EqualsAndHashCode; @EqualsAndHashCode(callSuper=false) public class MessageRequest extends BaseRequest { - private String mid; + // private String mid; private String[] threads; diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessageResponse.java b/modules/core/src/main/java/com/bytedesk/core/message/MessageResponse.java index a324dd6025..b04d438c18 100644 --- a/modules/core/src/main/java/com/bytedesk/core/message/MessageResponse.java +++ b/modules/core/src/main/java/com/bytedesk/core/message/MessageResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-21 10:00:55 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-22 20:51:15 + * @LastEditTime: 2024-05-04 10:48:05 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -42,7 +42,7 @@ public class MessageResponse extends BaseResponse { private static final long serialVersionUID = 9911390153L; /** message */ - private String mid; + // private String mid; private String type; diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessageService.java b/modules/core/src/main/java/com/bytedesk/core/message/MessageService.java index 030fc00f79..348a421549 100644 --- a/modules/core/src/main/java/com/bytedesk/core/message/MessageService.java +++ b/modules/core/src/main/java/com/bytedesk/core/message/MessageService.java @@ -45,14 +45,14 @@ public class MessageService { Pageable pageable = PageRequest.of(request.getPageNumber(), request.getPageSize(), Sort.Direction.DESC, "id"); - Page messagePage = messageRepository.findByThreadsTidIn(request.getThreads(), pageable); + Page messagePage = messageRepository.findByThreadsUidIn(request.getThreads(), pageable); return messagePage.map(BdConvertUtils::convertToMessageResponse); } @Cacheable(value = "message", key = "#mid", unless="#result == null") public Optional findByMid(String mid) { - return messageRepository.findByMid(mid); + return messageRepository.findByUid(mid); } /** @@ -60,8 +60,8 @@ public class MessageService { * 找到当前会话中最新一条聊天记录 */ @Cacheable(value = "message", key = "#threadTid", unless="#result == null") - public Optional findByThreadsTidInOrderByCreatedAtDesc(String threadTid) { - return messageRepository.findFirstByThreadsTidInOrderByCreatedAtDesc(new String[]{threadTid}); + public Optional findByThreadsUidInOrderByCreatedAtDesc(String threadTid) { + return messageRepository.findFirstByThreadsUidInOrderByCreatedAtDesc(new String[]{threadTid}); } @Caching(put = { @@ -82,11 +82,11 @@ public class MessageService { @CacheEvict(value = "message", key = "#mid"), }) public void deleteByMid(String mid) { - messageRepository.deleteByMid(mid); + messageRepository.deleteByUid(mid); } public boolean existsByMid(String mid) { - return messageRepository.existsByMid(mid); + return messageRepository.existsByUid(mid); } // public MessageResponse convertToMessageResponse(Message message) { diff --git a/modules/core/src/main/java/com/bytedesk/core/push/Push.java b/modules/core/src/main/java/com/bytedesk/core/push/Push.java index d6485ee28a..e63531843c 100644 --- a/modules/core/src/main/java/com/bytedesk/core/push/Push.java +++ b/modules/core/src/main/java/com/bytedesk/core/push/Push.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-25 15:30:11 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-25 20:23:47 + * @LastEditTime: 2024-05-03 23:36:01 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -15,14 +15,12 @@ package com.bytedesk.core.push; import com.bytedesk.core.constant.StatusConsts; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; +import jakarta.validation.constraints.NotBlank; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -41,12 +39,11 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "core_push") -public class Push extends AuditModel { +public class Push extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; + @NotBlank @Column(unique = true, nullable = false) private String pid; diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplEmail.java b/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplEmail.java index 71029f2e6f..fdcd375cdc 100644 --- a/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplEmail.java +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplEmail.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-31 15:30:19 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-26 12:55:58 + * @LastEditTime: 2024-05-03 20:30:04 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -21,6 +21,11 @@ import com.bytedesk.core.message.Message; import lombok.extern.slf4j.Slf4j; +/** + * https://springdoc.cn/spring-boot-email/ + * https://springdoc.cn/spring/integration.html#mail + * https://mailtrap.io/blog/spring-send-email/ + */ @Slf4j @Service public class PushServiceImplEmail extends Notifier { diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/auth/AuthController.java b/modules/core/src/main/java/com/bytedesk/core/rbac/auth/AuthController.java index a1b4aeb3b0..8991fd9aab 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/auth/AuthController.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/auth/AuthController.java @@ -23,7 +23,7 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; -import com.bytedesk.core.annotation.ActionLog; +import com.bytedesk.core.action.ActionLogAnnotation; import com.bytedesk.core.push.PushService; import com.bytedesk.core.rbac.user.UserRequest; import com.bytedesk.core.rbac.user.UserResponse; @@ -72,7 +72,7 @@ public class AuthController { return ResponseEntity.ok(JsonResult.success("register success", userResponse)); } - @ActionLog(title = "Auth", action = "loginWithUsernamePassword", description = "Login With Username & Password") + @ActionLogAnnotation(title = "Auth", action = "loginWithUsernamePassword", description = "Login With Username & Password") @PostMapping("/login") public ResponseEntity loginWithUsernamePassword(@RequestBody AuthRequest authRequest) { log.debug("login {}", authRequest.toString()); diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/authority/Authority.java b/modules/core/src/main/java/com/bytedesk/core/rbac/authority/Authority.java index c88dfaa829..678c9d49b0 100755 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/authority/Authority.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/authority/Authority.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 11:13:15 + * @LastEditTime: 2024-05-04 10:39:34 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -22,7 +22,7 @@ import lombok.NoArgsConstructor; import lombok.experimental.Accessors; import jakarta.persistence.*; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; /** * @author im.bytedesk.com @@ -35,16 +35,13 @@ import com.bytedesk.core.utils.AuditModel; @AllArgsConstructor @NoArgsConstructor @Table(name = "core_authority") -public class Authority extends AuditModel { +public class Authority extends AbstractEntity { - private static final long serialVersionUID = -3232924689L; + private static final long serialVersionUID = 1L; - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; - - @Column(unique = true, nullable = false, length = 127) - private String aid; + // @NotBlank + // @Column(unique = true, nullable = false, length = 127) + // private String aid; private String name; diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityRepository.java b/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityRepository.java index e3804538af..7bf6871f00 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityRepository.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityRepository.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 11:04:52 + * @LastEditTime: 2024-05-04 11:25:14 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk@ * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -31,7 +31,7 @@ import java.util.Optional; @Tag(name = "authoritys - 权限") public interface AuthorityRepository extends JpaRepository, JpaSpecificationExecutor { - Optional findByAid(String aid); + Optional findByUid(String uid); Optional findByValue(String value); diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityRequest.java b/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityRequest.java index 0a0f602b8c..025694950a 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityRequest.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 10:41:37 + * @LastEditTime: 2024-05-04 11:45:13 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -27,7 +27,7 @@ import com.bytedesk.core.utils.BaseRequest; @EqualsAndHashCode(callSuper = true) public class AuthorityRequest extends BaseRequest { - private String aid; + // private String aid; private String name; diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityResponse.java b/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityResponse.java index 13df5433dc..d0e2ea7ead 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityResponse.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 11:19:54 + * @LastEditTime: 2024-05-04 11:45:10 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -23,7 +23,7 @@ import com.bytedesk.core.utils.BaseResponse; @EqualsAndHashCode(callSuper = true) public class AuthorityResponse extends BaseResponse { - private String aid; + // private String aid; private String name; diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityService.java b/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityService.java index 4e2a796d7b..2507d7f0be 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityService.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/authority/AuthorityService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 10:54:51 + * @LastEditTime: 2024-05-04 10:39:41 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -38,14 +38,14 @@ public class AuthorityService { public Authority create(AuthorityRequest authorityRequest) { // Authority authority = modelMapper.map(authorityRequest, Authority.class); - authority.setAid(uidUtils.getCacheSerialUid()); + authority.setUid(uidUtils.getCacheSerialUid()); return save(authority); } @Cacheable(value = "authority", key = "#aid", unless = "#result == null") public Optional findByAid(String aid) { - return authorityRepository.findByAid(aid); + return authorityRepository.findByUid(aid); } @Cacheable(value = "authority", key = "#value", unless = "#result == null") diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/role/Role.java b/modules/core/src/main/java/com/bytedesk/core/rbac/role/Role.java index f190cf880c..7b73b29c81 100755 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/role/Role.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/role/Role.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 11:06:52 + * @LastEditTime: 2024-05-04 10:39:48 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -15,6 +15,7 @@ package com.bytedesk.core.rbac.role; import jakarta.persistence.*; +import jakarta.validation.constraints.NotBlank; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -26,7 +27,7 @@ import java.util.Set; import java.util.HashSet; import com.bytedesk.core.rbac.authority.Authority; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.fasterxml.jackson.annotation.JsonIgnore; /** @@ -42,17 +43,16 @@ import com.fasterxml.jackson.annotation.JsonIgnore; @AllArgsConstructor @NoArgsConstructor @Table(name = "core_role") -public class Role extends AuditModel { +public class Role extends AbstractEntity { - private static final long serialVersionUID = -1470818087L; + private static final long serialVersionUID = 1L; - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; - - @Column(unique = true, nullable = false, length = 127) - private String rid; + // @NotBlank + // @Column(unique = true, nullable = false, length = 127) + // private String rid; + @NotBlank + @Column(unique = true, nullable = false) private String name; /** @@ -80,7 +80,7 @@ public class Role extends AuditModel { // @JsonBackReference("user-roles") // 避免无限递归 // private User user; - private String orgOid; + private String orgUid; public void addAuthority(Authority authority) { diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleRepository.java b/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleRepository.java index 80be87eb7d..d6bdbd534d 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleRepository.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleRepository.java @@ -41,7 +41,7 @@ public interface RoleRepository extends JpaRepository, JpaSpecificat List findByType(String type); // Page findByUser(User user, Pageable pageable); - Page findByOrgOid(String orgOid, Pageable pageable); + Page findByOrgUid(String orgUid, Pageable pageable); Boolean existsByName(String name); diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleRequest.java b/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleRequest.java index afad4d3c50..15aa998636 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleRequest.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 11:10:01 + * @LastEditTime: 2024-05-04 10:40:03 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -30,7 +30,7 @@ import com.bytedesk.core.utils.BaseRequest; @EqualsAndHashCode(callSuper = false) public class RoleRequest extends BaseRequest { - private String rid; + // private String rid; private String name; @@ -42,7 +42,7 @@ public class RoleRequest extends BaseRequest { private Set authorityAids = new HashSet<>(); // organization oid - private String orgOid; + private String orgUid; diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleResponse.java b/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleResponse.java index faf0289e12..57647db9ab 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleResponse.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 11:16:29 + * @LastEditTime: 2024-05-04 10:40:07 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -40,7 +40,7 @@ public class RoleResponse extends BaseResponse { private static final long serialVersionUID = 4082434575L; - private String rid; + // private String rid; private String name; diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleService.java b/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleService.java index 549fdc96be..b9ad8cf2c4 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleService.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/role/RoleService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-27 12:55:37 + * @LastEditTime: 2024-05-04 10:39:53 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -64,7 +64,7 @@ public class RoleService { } Role role = modelMapper.map(rolerRequest, Role.class); - role.setRid(uidUtils.getCacheSerialUid()); + role.setUid(uidUtils.getCacheSerialUid()); // Iterator iterator = rolerRequest.getAuthorityAids().iterator(); while (iterator.hasNext()) { @@ -84,7 +84,7 @@ public class RoleService { Sort.Direction.DESC, "id"); - Page rolePage = roleRepository.findByOrgOid(roleRequest.getOrgOid(), pageable); + Page rolePage = roleRepository.findByOrgUid(roleRequest.getOrgUid(), pageable); return rolePage.map(BdConvertUtils::convertToRoleResponse); } @@ -145,7 +145,7 @@ public class RoleService { // Optional authorityOptional = authorityService.findByValue(authority); if (authorityOptional.isPresent()) { - roleRequest.getAuthorityAids().add(authorityOptional.get().getAid()); + roleRequest.getAuthorityAids().add(authorityOptional.get().getUid()); } // create(roleRequest); @@ -161,7 +161,7 @@ public class RoleService { String roleName = TypeConsts.ROLE_ + authority; Optional roleOptional = findByName(roleName); roleOptional.ifPresent(role -> { - role.setOrgOid(adminOptional.get().getOrgOid()); + role.setOrgUid(adminOptional.get().getOrgUid()); roleRepository.save(role); }); }); diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/user/User.java b/modules/core/src/main/java/com/bytedesk/core/rbac/user/User.java index 6c294931d6..d597411f6c 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/user/User.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/user/User.java @@ -6,7 +6,7 @@ import java.util.Set; import com.bytedesk.core.constant.AvatarConsts; import com.bytedesk.core.constant.BdConstants; import com.bytedesk.core.rbac.role.Role; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.bytedesk.core.utils.StringSetConverter; import com.fasterxml.jackson.annotation.JsonIgnore; import jakarta.persistence.Column; @@ -14,14 +14,12 @@ import jakarta.persistence.Convert; import jakarta.persistence.Entity; import jakarta.persistence.EntityListeners; import jakarta.persistence.FetchType; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.ManyToMany; import jakarta.persistence.Table; // import jakarta.persistence.UniqueConstraint; // import jakarta.validation.constraints.Digits; import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.NotBlank; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -41,21 +39,15 @@ import lombok.experimental.Accessors; // @UniqueConstraint(columnNames = "username"), // @UniqueConstraint(columnNames = "email") }) -public class User extends AuditModel { +public class User extends AbstractEntity { - private static final long serialVersionUID = 3817197261L; - - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; - - @Column(name = "uuid", unique = true, nullable = false) - private String uid; + private static final long serialVersionUID = 1L; @Column(unique = true) private String num; // used in authjwtToken, should not be null + @NotBlank(message = "username is required") @Column(unique = true, nullable = false) private String username; @@ -104,7 +96,7 @@ public class User extends AuditModel { private Set organizations = new HashSet<>(); // return the first organization oid - public String getOrgOid() { + public String getOrgUid() { return this.organizations.isEmpty() ? null : this.organizations.iterator().next(); } diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserRequest.java b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserRequest.java index 5e301404df..9e66c05972 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserRequest.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-26 10:53:19 + * @LastEditTime: 2024-05-03 23:11:39 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -32,8 +32,6 @@ import lombok.NoArgsConstructor; @AllArgsConstructor public class UserRequest extends BaseRequest { - private Long id; - private String uid; private String num; diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserResponse.java b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserResponse.java index 113362f951..ca7d3d3c38 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserResponse.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-25 22:52:53 + * @LastEditTime: 2024-05-04 10:43:08 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -35,9 +35,9 @@ import com.bytedesk.core.utils.BaseResponse; @EqualsAndHashCode(callSuper = true) public class UserResponse extends BaseResponse { - private static final long serialVersionUID = -2015147462L; + private static final long serialVersionUID = 1L; - private String uid; + // private String uid; private String username; private String nickname; private String email; diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserResponseSimple.java b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserResponseSimple.java index 636b4f8e38..6e0613e7cf 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserResponseSimple.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserResponseSimple.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-16 17:04:38 + * @LastEditTime: 2024-05-04 10:43:13 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -33,7 +33,7 @@ public class UserResponseSimple extends BaseResponse { private static final long serialVersionUID = 4684010695L; - private String uid; + // private String uid; private String nickname; private String avatar; } diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserService.java b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserService.java index 9b725406f0..7bfb358288 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserService.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-27 12:24:01 + * @LastEditTime: 2024-05-04 10:22:24 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -170,10 +170,10 @@ public class UserService { @Transactional public User createUser(String nickname, String avatar, String password, String mobile, String email, boolean isVerified, - String orgOid) { + String orgUid) { User user = User.builder() - .uid(uidUtils.getCacheSerialUid()) + // .uid(uidUtils.getCacheSerialUid()) .avatar(avatar) // use email as default username .username(email) @@ -184,7 +184,8 @@ public class UserService { .superUser(false) .emailVerified(isVerified) .mobileVerified(isVerified) - .build(); + .build(); + user.setUid(uidUtils.getCacheSerialUid()); if (StringUtils.hasLength(password)) { user.setPassword(passwordEncoder.encode(password)); @@ -192,7 +193,7 @@ public class UserService { user.setPassword(passwordEncoder.encode("123456")); } - user.getOrganizations().add(orgOid); + user.getOrganizations().add(orgUid); return save(user); // return user; @@ -300,7 +301,7 @@ public class UserService { } User admin = User.builder() - .uid(uidUtils.getCacheSerialUid()) + // .uid(uidUtils.getCacheSerialUid()) .email(properties.getEmail()) .username(properties.getUsername()) .password(new BCryptPasswordEncoder().encode(properties.getPassword())) @@ -312,6 +313,7 @@ public class UserService { .emailVerified(true) .mobileVerified(true) .build(); + admin.setUid(uidUtils.getCacheSerialUid()); // Optional roleOptional = roleService.findByName(TypeConsts.ROLE_SUPER); Set roles = new HashSet<>(); diff --git a/modules/core/src/main/java/com/bytedesk/core/thread/Thread.java b/modules/core/src/main/java/com/bytedesk/core/thread/Thread.java index f00b4f02e9..dcb07994de 100644 --- a/modules/core/src/main/java/com/bytedesk/core/thread/Thread.java +++ b/modules/core/src/main/java/com/bytedesk/core/thread/Thread.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-23 09:55:39 + * @LastEditTime: 2024-05-04 10:40:42 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -21,10 +21,11 @@ import com.bytedesk.core.constant.BdConstants; import com.bytedesk.core.constant.StatusConsts; import com.bytedesk.core.constant.ThreadTypeConsts; import com.bytedesk.core.rbac.user.User; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.fasterxml.jackson.annotation.JsonIgnore; import jakarta.persistence.*; +import jakarta.validation.constraints.NotBlank; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -45,14 +46,13 @@ import lombok.experimental.Accessors; @NoArgsConstructor @EntityListeners({ ThreadListener.class }) @Table(name = "core_thread") -public class Thread extends AuditModel { +public class Thread extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - @Column(unique = true, nullable = false) - private String tid; + // @NotBlank + // @Column(unique = true, nullable = false) + // private String tid; /** * used to push message @@ -61,6 +61,7 @@ public class Thread extends AuditModel { * agent_aid + '/' + visitor_vid * such as: wid/vid or aid/vid */ + @NotBlank private String topic; @Builder.Default @@ -105,6 +106,6 @@ public class Thread extends AuditModel { // TODO: /** belong to org */ - private String orgOid; + private String orgUid; } diff --git a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadListener.java b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadListener.java index adda5ea2bd..fe62e3d2d4 100644 --- a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadListener.java +++ b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-15 09:30:56 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-27 12:12:59 + * @LastEditTime: 2024-05-04 10:40:48 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -35,7 +35,7 @@ public class ThreadListener { @PostPersist public void postPersist(Thread thread) { - log.info("thread postPersist {}", thread.getTid()); + log.info("thread postPersist {}", thread.getUid()); // 这里可以记录日志 // create thread topic TopicService topicService = ApplicationContextHolder.getBean(TopicService.class); @@ -52,7 +52,7 @@ public class ThreadListener { @PostUpdate public void postUpdate(Thread thread) { - log.info("postUpdate {}", thread.getTid()); + log.info("postUpdate {}", thread.getUid()); // BytedeskEventPublisher bytedeskEventPublisher = ApplicationContextHolder.getBean(BytedeskEventPublisher.class); bytedeskEventPublisher.publishThreadUpdateEvent(thread); diff --git a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadRepository.java b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadRepository.java index be76f3af97..94265f1aaa 100644 --- a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadRepository.java +++ b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadRepository.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-22 22:30:34 + * @LastEditTime: 2024-05-04 11:28:48 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -34,7 +34,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; @Repository @Tag(name = "thread - 会话") public interface ThreadRepository extends JpaRepository, JpaSpecificationExecutor { - Optional findByTid(String tid); + Optional findByUid(String uid); /** used for member thread type */ Optional findFirstByTopicAndOwner(String topic, User owner); diff --git a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadService.java b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadService.java index 38b0aa6132..a448790607 100644 --- a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadService.java +++ b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-27 12:29:48 + * @LastEditTime: 2024-05-04 10:41:00 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -86,7 +86,7 @@ public class ThreadService { } // Thread thread = modelMapper.map(threadRequest, Thread.class); - thread.setTid(uidUtils.getCacheSerialUid()); + thread.setUid(uidUtils.getCacheSerialUid()); thread.setStatus(StatusConsts.THREAD_STATUS_INIT); // String user = JSON.toJSONString(threadRequest.getUser()); @@ -102,7 +102,7 @@ public class ThreadService { /** */ public Thread getReverse(Thread thread) { - String reverseTid = new StringBuffer(thread.getTid()).reverse().toString(); + String reverseTid = new StringBuffer(thread.getUid()).reverse().toString(); Optional reverseThreadOptional = findByTid(reverseTid); if (reverseThreadOptional.isPresent()) { reverseThreadOptional.get().setContent(thread.getContent()); @@ -113,7 +113,7 @@ public class ThreadService { return null; } Thread reverseThread = new Thread(); - reverseThread.setTid(reverseTid); + reverseThread.setUid(reverseTid); reverseThread.setTopic(thread.getOwner().getUid()); // UserResponseSimple user = userService.convertToUserResponseSimple(thread.getOwner()); @@ -139,9 +139,9 @@ public class ThreadService { } - @Cacheable(value = "thread", key = "#tid", unless = "#result == null") - public Optional findByTid(String tid) { - return threadRepository.findByTid(tid); + @Cacheable(value = "thread", key = "#uid", unless = "#result == null") + public Optional findByTid(String uid) { + return threadRepository.findByUid(uid); } // TODO: how to cacheput or cacheevict? @@ -187,7 +187,7 @@ public class ThreadService { } @Caching(put = { - @CachePut(value = "thread", key = "#thread.tid"), + @CachePut(value = "thread", key = "#thread.uid"), @CachePut(value = "thread", key = "#thread.topic") }) public Thread save(@NonNull Thread thread) { @@ -195,7 +195,7 @@ public class ThreadService { } @Caching(evict = { - @CacheEvict(value = "thread", key = "#thread.tid"), + @CacheEvict(value = "thread", key = "#thread.uid"), @CacheEvict(value = "thread", key = "#thread.topic") }) public void delete(@NonNull Thread thread) { diff --git a/modules/core/src/main/java/com/bytedesk/core/topic/Topic.java b/modules/core/src/main/java/com/bytedesk/core/topic/Topic.java index 770bdac7c4..8821896392 100644 --- a/modules/core/src/main/java/com/bytedesk/core/topic/Topic.java +++ b/modules/core/src/main/java/com/bytedesk/core/topic/Topic.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-13 16:03:44 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-23 16:09:01 + * @LastEditTime: 2024-05-04 10:18:59 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -17,16 +17,14 @@ package com.bytedesk.core.topic; import java.util.Set; import java.util.HashSet; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.bytedesk.core.utils.StringSetConverter; import jakarta.persistence.Column; import jakarta.persistence.Convert; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; +import jakarta.validation.constraints.NotBlank; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -44,14 +42,13 @@ import lombok.experimental.Accessors; @Table(name = "core_topic", uniqueConstraints = { // @UniqueConstraint(columnNames = {"topic", "uuid"}), }) -public class Topic extends AuditModel { +public class Topic extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; - - @Column(unique = true, nullable = false) - private String tid; + private static final long serialVersionUID = 1L; + + // @NotBlank + // @Column(unique = true, nullable = false) + // private String tid; // @Column(nullable = false) // private String topic; @@ -63,8 +60,9 @@ public class Topic extends AuditModel { // private String topic; // user, no need map, just uid - @Column(name = "uuid", nullable = false) - private String uid; + @NotBlank + @Column(nullable = false) + private String userUid; /** AT_MOST_ONCE(0),AT_LEAST_ONCE(1), EXACTLY_ONCE(2), */ // @Builder.Default diff --git a/modules/core/src/main/java/com/bytedesk/core/topic/TopicRepository.java b/modules/core/src/main/java/com/bytedesk/core/topic/TopicRepository.java index 5338158af8..e95261e540 100644 --- a/modules/core/src/main/java/com/bytedesk/core/topic/TopicRepository.java +++ b/modules/core/src/main/java/com/bytedesk/core/topic/TopicRepository.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-13 16:14:47 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-23 16:16:14 + * @LastEditTime: 2024-05-04 10:20:26 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -25,9 +25,9 @@ import org.springframework.stereotype.Repository; @Repository public interface TopicRepository extends JpaRepository { - Optional findByTid(String tid); + Optional findByUid(String uid); - Optional findFirstByUid(String uid); + Optional findFirstByUserUid(String userUid); // boolean existsByTopicAndUid(String topic, String uid); diff --git a/modules/core/src/main/java/com/bytedesk/core/topic/TopicRequest.java b/modules/core/src/main/java/com/bytedesk/core/topic/TopicRequest.java index 05bf3cab08..88260278ca 100644 --- a/modules/core/src/main/java/com/bytedesk/core/topic/TopicRequest.java +++ b/modules/core/src/main/java/com/bytedesk/core/topic/TopicRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-13 16:15:11 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-22 14:23:43 + * @LastEditTime: 2024-05-04 10:37:19 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -34,11 +34,11 @@ import lombok.experimental.Accessors; @AllArgsConstructor public class TopicRequest extends BaseRequest { - private String tid; + // private String uid; private String topic; - private String uid; + private String userUid; /** AT_MOST_ONCE(0),AT_LEAST_ONCE(1), EXACTLY_ONCE(2), */ // @Builder.Default diff --git a/modules/core/src/main/java/com/bytedesk/core/topic/TopicResponse.java b/modules/core/src/main/java/com/bytedesk/core/topic/TopicResponse.java index 34a964dd40..da4ac3a34d 100644 --- a/modules/core/src/main/java/com/bytedesk/core/topic/TopicResponse.java +++ b/modules/core/src/main/java/com/bytedesk/core/topic/TopicResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-13 16:15:22 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-16 09:41:32 + * @LastEditTime: 2024-05-04 10:42:57 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -35,11 +35,11 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = true) public class TopicResponse extends BaseResponse { - private String tid; + // private String uid; private String topic; - private String uid; + private String userUid; /** AT_MOST_ONCE(0),AT_LEAST_ONCE(1), EXACTLY_ONCE(2), */ private int qos; diff --git a/modules/core/src/main/java/com/bytedesk/core/topic/TopicService.java b/modules/core/src/main/java/com/bytedesk/core/topic/TopicService.java index 5fe4fa455a..e9ea2daa7b 100644 --- a/modules/core/src/main/java/com/bytedesk/core/topic/TopicService.java +++ b/modules/core/src/main/java/com/bytedesk/core/topic/TopicService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-13 16:14:36 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-27 12:06:52 + * @LastEditTime: 2024-05-04 10:26:15 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -46,7 +46,7 @@ public class TopicService { public void create(String topic, String uid) { TopicRequest topicRequest = TopicRequest.builder() .topic(topic) - .uid(uid) + .userUid(uid) // .qos(1) .build(); create(topicRequest); @@ -59,7 +59,7 @@ public class TopicService { // return; // } - Optional topicOptional = findByUid(topicRequest.getUid()); + Optional topicOptional = findByUserUid(topicRequest.getUserUid()); if (topicOptional.isPresent()) { Topic topicElement = topicOptional.get(); if (topicElement.getTopics().contains(topicRequest.getTopic())) { @@ -73,7 +73,7 @@ public class TopicService { return; } // - topicRequest.setTid(uidUtils.getCacheSerialUid()); + topicRequest.setUid(uidUtils.getCacheSerialUid()); // Topic topic = modelMapper.map(topicRequest, Topic.class); topic.getTopics().add(topicRequest.getTopic()); @@ -103,7 +103,7 @@ public class TopicService { final String uid = clientId.split("/")[0]; TopicRequest topicRequest = TopicRequest.builder() .topic(topic) - .uid(uid) + .userUid(uid) // .qos(qos) .build(); topicRequest.getClientIds().add(clientId); @@ -155,21 +155,21 @@ public class TopicService { } } - @Cacheable(value = "topic", key = "#tid") - public Optional findByTid(String tid) { - return topicRepository.findByTid(tid); + @Cacheable(value = "topic", key = "#uid") + public Optional findByUid(String uid) { + return topicRepository.findByUid(uid); } @Cacheable(value = "topic", key = "#clientId", unless = "#result == null") public Optional findByClientId(String clientId) { // 用户clientId格式: uid/client final String uid = clientId.split("/")[0]; - return findByUid(uid); + return findByUserUid(uid); } @Cacheable(value = "topic", key = "#uid", unless = "#result == null") - public Optional findByUid(String uid) { - return topicRepository.findFirstByUid(uid); + public Optional findByUserUid(String uid) { + return topicRepository.findFirstByUserUid(uid); } @Cacheable(value = "topic", key = "#topic", unless="#result == null") @@ -181,7 +181,7 @@ public class TopicService { } @Caching(put = { - @CachePut(value = "topic", key = "#topic.uid") + @CachePut(value = "topic", key = "#topic.userUid") }) public Topic save(Topic topic) { return topicRepository.save(topic); @@ -189,15 +189,15 @@ public class TopicService { // TODO: 需要从原先uid的缓存列表中删除,然后添加到新的uid的换成列表中 // @CachePut(value = "topic", key = "#uid") - public void update(String tid, String uid) { - Optional optionalTopic = findByTid(tid); + public void update(String uid, String userUid) { + Optional optionalTopic = findByUid(uid); optionalTopic.ifPresent(topic -> { - topic.setUid(uid); + topic.setUserUid(userUid); topicRepository.save(topic); }); } - @CacheEvict(value = "topic", key = "#topic.uid") + @CacheEvict(value = "topic", key = "#topic.userUid") public void delete(Topic topic) { topicRepository.delete(topic); } diff --git a/modules/core/src/main/java/com/bytedesk/core/uid/UidGenerator.java b/modules/core/src/main/java/com/bytedesk/core/uid/UidGenerator.java index 97d24a2e0e..f0f648a47f 100644 --- a/modules/core/src/main/java/com/bytedesk/core/uid/UidGenerator.java +++ b/modules/core/src/main/java/com/bytedesk/core/uid/UidGenerator.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2021-02-24 15:52:39 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-13 11:37:17 + * @LastEditTime: 2024-05-04 11:20:03 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -17,12 +17,10 @@ package com.bytedesk.core.uid; import java.util.Date; import com.bytedesk.core.uid.worker.WorkerNodeType; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; +import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -44,15 +42,10 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "core_uid_generator") -public class UidGenerator extends AuditModel { - - /** - * Entity unique id (table unique) - */ - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; +public class UidGenerator extends AbstractEntity { + private static final long serialVersionUID = 1L; + /** * Type of CONTAINER: HostName, ACTUAL : IP. */ @@ -66,6 +59,7 @@ public class UidGenerator extends AuditModel { /** * type of {@link WorkerNodeType} */ + @Column(name = "by_type") private int type; /** diff --git a/modules/core/src/main/java/com/bytedesk/core/uid/worker/DisposableWorkerIdAssigner.java b/modules/core/src/main/java/com/bytedesk/core/uid/worker/DisposableWorkerIdAssigner.java index d295c64253..13a9f240db 100644 --- a/modules/core/src/main/java/com/bytedesk/core/uid/worker/DisposableWorkerIdAssigner.java +++ b/modules/core/src/main/java/com/bytedesk/core/uid/worker/DisposableWorkerIdAssigner.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2021-02-24 15:52:39 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-09 16:59:02 + * @LastEditTime: 2024-05-04 11:24:01 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -34,6 +34,7 @@ import com.bytedesk.core.uid.UidGenerator; import com.bytedesk.core.uid.UidGereratorRepository; // import com.bytedesk.core.uid.utils.DockerUtils; import com.bytedesk.core.uid.utils.NetUtils; +import com.bytedesk.core.utils.Utils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; @@ -97,6 +98,7 @@ public class DisposableWorkerIdAssigner implements WorkerIdAssigner { */ private UidGenerator buildWorkerNode() { UidGenerator workerNodeEntity = new UidGenerator(); + workerNodeEntity.setUid(Utils.getUid()); workerNodeEntity.setType(WorkerNodeType.ACTUAL.value()); workerNodeEntity.setHost(NetUtils.getLocalAddress()); @@ -109,6 +111,8 @@ public class DisposableWorkerIdAssigner implements WorkerIdAssigner { private UidGenerator buildFakeWorkerNode() { UidGenerator workerNodeEntity = new UidGenerator(); + workerNodeEntity.setUid(Utils.getUid()); + workerNodeEntity.setType(WorkerNodeType.FAKE.value()); workerNodeEntity.setHost(NetUtils.getLocalAddress()); // workerNodeEntity.setPort(System.currentTimeMillis() + "-" + new Random().nextInt(100000)); diff --git a/modules/core/src/main/java/com/bytedesk/core/upload/Upload.java b/modules/core/src/main/java/com/bytedesk/core/upload/Upload.java index 3cd769bd52..eb428a4ee6 100644 --- a/modules/core/src/main/java/com/bytedesk/core/upload/Upload.java +++ b/modules/core/src/main/java/com/bytedesk/core/upload/Upload.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-16 10:46:55 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-25 12:36:50 + * @LastEditTime: 2024-05-04 10:10:02 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -15,18 +15,12 @@ package com.bytedesk.core.upload; import com.bytedesk.core.rbac.user.User; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.fasterxml.jackson.annotation.JsonIgnore; import jakarta.persistence.Column; -import jakarta.persistence.ConstraintMode; import jakarta.persistence.Entity; import jakarta.persistence.FetchType; -import jakarta.persistence.ForeignKey; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; -import jakarta.persistence.JoinColumn; import jakarta.persistence.ManyToOne; import jakarta.persistence.Table; import lombok.AllArgsConstructor; @@ -48,17 +42,13 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "core_upload") -public class Upload extends AuditModel { +public class Upload extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - /** - * 唯一数字id,保证唯一性 替代id - */ - @Column(name = "uid", unique = true, nullable = false) - private String uid; + // @NotBlank + // @Column(name = "uuid", unique = true, nullable = false) + // private String uid; /** * 文件名 @@ -96,7 +86,7 @@ public class Upload extends AuditModel { */ @JsonIgnore @ManyToOne(fetch = FetchType.LAZY) - @JoinColumn(name = "user_id", foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT)) + // @JoinColumn(name = "user_id", foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT)) private User user; diff --git a/modules/core/src/main/java/com/bytedesk/core/utils/AuditModel.java b/modules/core/src/main/java/com/bytedesk/core/utils/AbstractEntity.java similarity index 74% rename from modules/core/src/main/java/com/bytedesk/core/utils/AuditModel.java rename to modules/core/src/main/java/com/bytedesk/core/utils/AbstractEntity.java index 61a811a287..c3048cc284 100644 --- a/modules/core/src/main/java/com/bytedesk/core/utils/AuditModel.java +++ b/modules/core/src/main/java/com/bytedesk/core/utils/AbstractEntity.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-18 12:35:49 + * @LastEditTime: 2024-05-04 10:18:33 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesa * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -16,9 +16,14 @@ package com.bytedesk.core.utils; import jakarta.persistence.Column; import jakarta.persistence.EntityListeners; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; import jakarta.persistence.MappedSuperclass; import jakarta.persistence.Temporal; import jakarta.persistence.TemporalType; +import jakarta.persistence.Version; +import jakarta.validation.constraints.NotBlank; // import org.springframework.beans.factory.annotation.Value; import org.springframework.data.annotation.CreatedDate; @@ -44,10 +49,23 @@ import java.util.Date; @Data @MappedSuperclass @EntityListeners(AuditingEntityListener.class) -public class AuditModel implements Serializable { +public abstract class AbstractEntity implements Serializable { // @Value("${bytedesk.timezone}") // private static final String timezone = "GMT+8"; + + @Id + @GeneratedValue(strategy = GenerationType.AUTO) + private Long id; + + // @NotBlank 在应用层(业务逻辑或表单验证)确保uid字段在提交时必须是非空且去除空格后有实际内容的。 + // nullable = false 通过@Column注解告知JPA,数据库中的uuid列不允许NULL值,这是一个数据库级别的约束 + @NotBlank(message = "uid is required") + @Column(name = "uuid", unique = true, nullable = false) + private String uid; + + @Version + private int version; @Temporal(TemporalType.TIMESTAMP) @Column(name = "created_at", updatable = false) diff --git a/modules/core/src/main/java/com/bytedesk/core/utils/BaseRequest.java b/modules/core/src/main/java/com/bytedesk/core/utils/BaseRequest.java index 5dad808b6f..ba3296a756 100644 --- a/modules/core/src/main/java/com/bytedesk/core/utils/BaseRequest.java +++ b/modules/core/src/main/java/com/bytedesk/core/utils/BaseRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-27 16:09:47 + * @LastEditTime: 2024-05-04 11:37:04 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -21,9 +21,11 @@ import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = false) -public class BaseRequest implements Serializable { +public abstract class BaseRequest implements Serializable { - public Long id; + // public Long id; + + private String uid; public int pageNumber; diff --git a/modules/core/src/main/java/com/bytedesk/core/utils/BaseResponse.java b/modules/core/src/main/java/com/bytedesk/core/utils/BaseResponse.java index 676875ec1e..ef91b85204 100644 --- a/modules/core/src/main/java/com/bytedesk/core/utils/BaseResponse.java +++ b/modules/core/src/main/java/com/bytedesk/core/utils/BaseResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-11 16:32:08 + * @LastEditTime: 2024-05-04 10:42:31 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -16,7 +16,11 @@ package com.bytedesk.core.utils; import java.io.Serializable; +import lombok.Data; -public class BaseResponse implements Serializable { +@Data +public abstract class BaseResponse implements Serializable { + + private String uid; } diff --git a/modules/local/.DS_Store b/modules/local/.DS_Store index 257957d8f2..9bf6b5b4c4 100644 Binary files a/modules/local/.DS_Store and b/modules/local/.DS_Store differ diff --git a/modules/local/src/.DS_Store b/modules/local/src/.DS_Store new file mode 100644 index 0000000000..e1e19e28bf Binary files /dev/null and b/modules/local/src/.DS_Store differ diff --git a/modules/pom.xml b/modules/pom.xml index 9b611783c8..328ef05193 100644 --- a/modules/pom.xml +++ b/modules/pom.xml @@ -17,7 +17,6 @@ ai - blog core local service @@ -82,7 +81,6 @@ spring-boot-starter-cache provided - org.springframework.boot @@ -103,6 +101,12 @@ provided + + org.springframework.boot + spring-boot-starter-mail + provided + + @@ -197,11 +201,11 @@ - + diff --git a/modules/service/.DS_Store b/modules/service/.DS_Store index 85b88949c7..899a0ec7bf 100644 Binary files a/modules/service/.DS_Store and b/modules/service/.DS_Store differ diff --git a/modules/service/src/.DS_Store b/modules/service/src/.DS_Store index 8e720825f7..82f7552c0e 100644 Binary files a/modules/service/src/.DS_Store and b/modules/service/src/.DS_Store differ diff --git a/modules/service/src/main/java/com/bytedesk/service/.DS_Store b/modules/service/src/main/java/com/bytedesk/service/.DS_Store index 98fa724ea3..af1b79d701 100644 Binary files a/modules/service/src/main/java/com/bytedesk/service/.DS_Store and b/modules/service/src/main/java/com/bytedesk/service/.DS_Store differ diff --git a/modules/service/src/main/java/com/bytedesk/service/agent/Agent.java b/modules/service/src/main/java/com/bytedesk/service/agent/Agent.java index 47c85e8d7d..d62c1164c2 100644 --- a/modules/service/src/main/java/com/bytedesk/service/agent/Agent.java +++ b/modules/service/src/main/java/com/bytedesk/service/agent/Agent.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:19:51 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 15:14:35 + * @LastEditTime: 2024-05-04 10:29:33 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -19,10 +19,15 @@ import org.hibernate.type.SqlTypes; import com.bytedesk.core.constant.BdConstants; import com.bytedesk.core.rbac.user.User; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.fasterxml.jackson.annotation.JsonIgnore; -import jakarta.persistence.*; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityListeners; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -44,14 +49,12 @@ import lombok.experimental.Accessors; @NoArgsConstructor @EntityListeners({ AgentListener.class }) @Table(name = "service_agent") -public class Agent extends AuditModel { +public class Agent extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - @Column(name = "uuid", unique = true, nullable = false) - private String uid; + // @Column(name = "uuid", unique = true, nullable = false) + // private String uid; /** * visible to visitors @@ -110,7 +113,7 @@ public class Agent extends AuditModel { // @JsonIgnore // @ManyToOne(fetch = FetchType.LAZY) // private Organization organization; - private String orgOid; + private String orgUid; /** * belongs to user diff --git a/modules/service/src/main/java/com/bytedesk/service/agent/AgentRepository.java b/modules/service/src/main/java/com/bytedesk/service/agent/AgentRepository.java index 2396537545..f2a57522b5 100644 --- a/modules/service/src/main/java/com/bytedesk/service/agent/AgentRepository.java +++ b/modules/service/src/main/java/com/bytedesk/service/agent/AgentRepository.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:19:51 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-22 12:17:20 + * @LastEditTime: 2024-05-04 10:33:16 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -42,5 +42,5 @@ public interface AgentRepository extends JpaRepository, JpaSpecific Optional findByUser_Uid(String uid); // Page findByOrganization_Oid(String oid, Pageable pageable); - Page findByOrgOid(String oid, Pageable pageable); + Page findByOrgUid(String oid, Pageable pageable); } diff --git a/modules/service/src/main/java/com/bytedesk/service/agent/AgentRequest.java b/modules/service/src/main/java/com/bytedesk/service/agent/AgentRequest.java index 69d5f1e274..f7e3a11a11 100644 --- a/modules/service/src/main/java/com/bytedesk/service/agent/AgentRequest.java +++ b/modules/service/src/main/java/com/bytedesk/service/agent/AgentRequest.java @@ -29,7 +29,7 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = false) public class AgentRequest extends BaseRequest { - private String uid; + // private String uid; private String nickname; @@ -46,6 +46,6 @@ public class AgentRequest extends BaseRequest { private String description = BdConstants.DEFAULT_AGENT_DESCRIPTION; // organization oid - private String orgOid; + private String orgUid; } diff --git a/modules/service/src/main/java/com/bytedesk/service/agent/AgentResponse.java b/modules/service/src/main/java/com/bytedesk/service/agent/AgentResponse.java index 61122add8a..508998945e 100644 --- a/modules/service/src/main/java/com/bytedesk/service/agent/AgentResponse.java +++ b/modules/service/src/main/java/com/bytedesk/service/agent/AgentResponse.java @@ -33,7 +33,7 @@ public class AgentResponse extends BaseResponse { private static final long serialVersionUID = 94072119L; - private String uid; + // private String uid; private String nickname; diff --git a/modules/service/src/main/java/com/bytedesk/service/agent/AgentResponseSimple.java b/modules/service/src/main/java/com/bytedesk/service/agent/AgentResponseSimple.java index 176f8be87c..02c62d0983 100644 --- a/modules/service/src/main/java/com/bytedesk/service/agent/AgentResponseSimple.java +++ b/modules/service/src/main/java/com/bytedesk/service/agent/AgentResponseSimple.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-06 10:17:01 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-16 17:07:43 + * @LastEditTime: 2024-05-04 10:44:30 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -33,7 +33,7 @@ public class AgentResponseSimple extends BaseResponse { private static final long serialVersionUID = 1219497968L; - private String uid; + // private String uid; private String nickname; diff --git a/modules/service/src/main/java/com/bytedesk/service/agent/AgentService.java b/modules/service/src/main/java/com/bytedesk/service/agent/AgentService.java index 59cbb013a3..e220928277 100644 --- a/modules/service/src/main/java/com/bytedesk/service/agent/AgentService.java +++ b/modules/service/src/main/java/com/bytedesk/service/agent/AgentService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:19:51 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-25 15:21:19 + * @LastEditTime: 2024-05-04 10:33:09 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -64,7 +64,7 @@ public class AgentService { agentRequest.getPageSize(), Sort.Direction.DESC, "id"); - Page agentPage = agentRepository.findByOrgOid(agentRequest.getOrgOid(), pageable); + Page agentPage = agentRepository.findByOrgUid(agentRequest.getOrgUid(), pageable); return agentPage.map(this::convertToAgentResponse); } @@ -92,7 +92,7 @@ public class AgentService { agentRequest.getMobile(), agentRequest.getEmail(), true, - agentRequest.getOrgOid() + agentRequest.getOrgUid() ); } else { // just return user @@ -175,7 +175,7 @@ public class AgentService { .email("agent1@email.com") .mobile("18888888008") .password("123456") - .orgOid(orgOptional.get().getOid()) + .orgUid(orgOptional.get().getUid()) .build(); create(agent1Request); // @@ -184,7 +184,7 @@ public class AgentService { .email("agent2@email.com") .mobile("18888888009") .password("123456") - .orgOid(orgOptional.get().getOid()) + .orgUid(orgOptional.get().getUid()) .build(); create(agent2Request); diff --git a/modules/service/src/main/java/com/bytedesk/service/browse/Browse.java b/modules/service/src/main/java/com/bytedesk/service/browse/Browse.java index 6ec97c7bf7..5604adaf8a 100644 --- a/modules/service/src/main/java/com/bytedesk/service/browse/Browse.java +++ b/modules/service/src/main/java/com/bytedesk/service/browse/Browse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-22 16:17:11 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-22 23:12:01 + * @LastEditTime: 2024-05-03 22:33:42 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,13 +14,10 @@ */ package com.bytedesk.service.browse; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -40,11 +37,12 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "service_browse") -public class Browse extends AuditModel { +public class Browse extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - @Column(name = "id") - private Long id; + private static final long serialVersionUID = 1L; + + @Column(name = "bid", unique = true, nullable = false) + private String bid; + } diff --git a/modules/service/src/main/java/com/bytedesk/service/customer/Customer.java b/modules/service/src/main/java/com/bytedesk/service/customer/Customer.java index dedba330b1..060bc01ba8 100644 --- a/modules/service/src/main/java/com/bytedesk/service/customer/Customer.java +++ b/modules/service/src/main/java/com/bytedesk/service/customer/Customer.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-22 16:52:52 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-26 22:53:21 + * @LastEditTime: 2024-05-03 22:34:17 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,15 +14,14 @@ */ package com.bytedesk.service.customer; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; +import jakarta.persistence.Column; import jakarta.persistence.Embeddable; import jakarta.persistence.Embedded; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; +import jakarta.validation.constraints.NotBlank; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -41,15 +40,18 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "service_customer") -public class Customer extends AuditModel { +public class Customer extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; + @NotBlank(message = "name is required") + @Column(nullable = false) private String name; + private String email; + private String mobile; + /** * https://docs.spring.io/spring-data/jpa/reference/repositories/projections.html */ diff --git a/modules/service/src/main/java/com/bytedesk/service/customer/CustomerDatatableFilter.java b/modules/service/src/main/java/com/bytedesk/service/customer/CustomerDatatableFilter.java new file mode 100644 index 0000000000..42c4f5b7bf --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/customer/CustomerDatatableFilter.java @@ -0,0 +1,54 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-05-03 21:18:44 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-05-03 21:53:33 + * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk + * Please be aware of the BSL license restrictions before installing Bytedesk IM – + * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署SaaS方式销售 + * Business Source License 1.1: https://github.com/Bytedesk/bytedesk/blob/main/LICENSE + * contact: 270580156@qq.com + * 联系:270580156@qq.com + * Copyright (c) 2024 by bytedesk.com, All Rights Reserved. + */ +package com.bytedesk.service.customer; + +import java.util.ArrayList; + +import org.springframework.data.jpa.domain.Specification; + +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Predicate; +import jakarta.persistence.criteria.Root; + + +/** + * https://github.com/tucanoo/crm_spring_boot + * https://tucanoo.com/build-a-crm-with-spring-boot-and-thymeleaf/ + */ +public class CustomerDatatableFilter implements Specification { + + String userQuery; + + public CustomerDatatableFilter(String queryString) { + this.userQuery = queryString; + } + + @Override + public Predicate toPredicate(Root root, CriteriaQuery query, CriteriaBuilder criteriaBuilder) { + ArrayList predicates = new ArrayList<>(); + + if (userQuery != null && userQuery != "") { + predicates.add(criteriaBuilder.like(root.get("name"), '%' + userQuery + '%')); + // predicates.add(criteriaBuilder.like(root.get("city"), '%' + userQuery + '%')); + // predicates.add(criteriaBuilder.like(root.get("email"), '%' + userQuery + '%')); + // predicates.add(criteriaBuilder.like(root.get("mobile"), '%' + userQuery + '%')); + // predicates.add(criteriaBuilder.like(root.get("country"), '%' + userQuery + '%')); + } + + return (! predicates.isEmpty() ? criteriaBuilder.or(predicates.toArray(new Predicate[predicates.size()])) : null); + } + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/customer/CustomerRepository.java b/modules/service/src/main/java/com/bytedesk/service/customer/CustomerRepository.java index 3f07f5a1a9..4439151a2b 100644 --- a/modules/service/src/main/java/com/bytedesk/service/customer/CustomerRepository.java +++ b/modules/service/src/main/java/com/bytedesk/service/customer/CustomerRepository.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 23:06:25 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-12 15:12:15 + * @LastEditTime: 2024-05-03 21:27:59 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -16,12 +16,19 @@ package com.bytedesk.service.customer; import java.util.Collection; -import org.springframework.data.repository.Repository; +// import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.JpaSpecificationExecutor; +import org.springframework.data.repository.CrudRepository; +import org.springframework.data.repository.PagingAndSortingRepository; /** * https://docs.spring.io/spring-data/jpa/reference/repositories/projections.html */ -public interface CustomerRepository extends Repository{ +public interface CustomerRepository extends //JpaRepository + CrudRepository, + PagingAndSortingRepository, + JpaSpecificationExecutor +{ Collection findByName(String name); // using a dynamic projection parameter diff --git a/modules/service/src/main/java/com/bytedesk/service/customer/CustomerService.java b/modules/service/src/main/java/com/bytedesk/service/customer/CustomerService.java index 7e32b7348f..e60680989c 100644 --- a/modules/service/src/main/java/com/bytedesk/service/customer/CustomerService.java +++ b/modules/service/src/main/java/com/bytedesk/service/customer/CustomerService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 23:06:15 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-22 23:06:17 + * @LastEditTime: 2024-05-03 21:26:46 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,6 +14,25 @@ */ package com.bytedesk.service.customer; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.Pageable; +import org.springframework.stereotype.Service; + +import lombok.RequiredArgsConstructor; + +/** + * + */ +@Service +@RequiredArgsConstructor public class CustomerService { + private final CustomerRepository customerRepository; + + public Page getCustomersForDatatable(String queryString, Pageable pageable) { + + CustomerDatatableFilter customerDatatableFilter = new CustomerDatatableFilter(queryString); + + return customerRepository.findAll(customerDatatableFilter, pageable); + } } diff --git a/modules/service/src/main/java/com/bytedesk/service/leave_msg/LeaveMessage.java b/modules/service/src/main/java/com/bytedesk/service/leave_msg/LeaveMessage.java index f16d23ea6b..43a9078f57 100644 --- a/modules/service/src/main/java/com/bytedesk/service/leave_msg/LeaveMessage.java +++ b/modules/service/src/main/java/com/bytedesk/service/leave_msg/LeaveMessage.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-22 16:11:42 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-22 23:12:28 + * @LastEditTime: 2024-05-03 22:34:46 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,13 +14,10 @@ */ package com.bytedesk.service.leave_msg; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -40,11 +37,11 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "service_leave_message") -public class LeaveMessage extends AuditModel { +public class LeaveMessage extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - @Column(name = "id") - private Long id; + private static final long serialVersionUID = 1L; + + @Column(name = "lid", unique = true, nullable = false) + private String lid; } diff --git a/modules/service/src/main/java/com/bytedesk/service/queue/Queue.java b/modules/service/src/main/java/com/bytedesk/service/queue/Queue.java index 8229042f13..682c6fd948 100644 --- a/modules/service/src/main/java/com/bytedesk/service/queue/Queue.java +++ b/modules/service/src/main/java/com/bytedesk/service/queue/Queue.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-22 16:12:53 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-25 11:16:16 + * @LastEditTime: 2024-05-03 22:35:18 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,13 +14,10 @@ */ package com.bytedesk.service.queue; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -40,12 +37,12 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "service_queue") -public class Queue extends AuditModel { +public class Queue extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - @Column(name = "id") - private Long id; + private static final long serialVersionUID = 1L; + + @Column(name = "qid", unique = true, nullable = false) + private String qid; diff --git a/modules/service/src/main/java/com/bytedesk/service/quick_button/QuickButton.java b/modules/service/src/main/java/com/bytedesk/service/quick_button/QuickButton.java index c8769b9311..b9a219bae0 100644 --- a/modules/service/src/main/java/com/bytedesk/service/quick_button/QuickButton.java +++ b/modules/service/src/main/java/com/bytedesk/service/quick_button/QuickButton.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-22 16:13:46 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-22 23:12:57 + * @LastEditTime: 2024-05-03 22:40:11 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,13 +14,10 @@ */ package com.bytedesk.service.quick_button; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -40,11 +37,11 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "service_quick_button") -public class QuickButton extends AuditModel { +public class QuickButton extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - @Column(name = "id") - private Long id; + private static final long serialVersionUID = 1L; + + @Column(name = "qid", unique = true, nullable = false) + private String qid; } diff --git a/modules/service/src/main/java/com/bytedesk/service/quick_reply/QuickReply.java b/modules/service/src/main/java/com/bytedesk/service/quick_reply/QuickReply.java index 4df8700d19..42cb0caada 100644 --- a/modules/service/src/main/java/com/bytedesk/service/quick_reply/QuickReply.java +++ b/modules/service/src/main/java/com/bytedesk/service/quick_reply/QuickReply.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-22 16:12:30 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-22 23:13:26 + * @LastEditTime: 2024-05-03 22:45:40 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,13 +14,10 @@ */ package com.bytedesk.service.quick_reply; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -40,11 +37,11 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "service_quick_reply") -public class QuickReply extends AuditModel { +public class QuickReply extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - @Column(name = "id") - private Long id; + private static final long serialVersionUID = 1L; + + @Column(name = "qid", unique = true, nullable = false) + private String qid; } diff --git a/modules/service/src/main/java/com/bytedesk/service/rate/Rate.java b/modules/service/src/main/java/com/bytedesk/service/rate/Rate.java index a776abb270..87d07abc7a 100644 --- a/modules/service/src/main/java/com/bytedesk/service/rate/Rate.java +++ b/modules/service/src/main/java/com/bytedesk/service/rate/Rate.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-22 16:11:17 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-22 23:13:38 + * @LastEditTime: 2024-05-03 22:56:58 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,13 +14,10 @@ */ package com.bytedesk.service.rate; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -40,11 +37,11 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "service_rate") -public class Rate extends AuditModel { +public class Rate extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - @Column(name = "id") - private Long id; + private static final long serialVersionUID = 1L; + + @Column(name = "rid", unique = true, nullable = false) + private String rid; } diff --git a/modules/service/src/main/java/com/bytedesk/service/summary/Summary.java b/modules/service/src/main/java/com/bytedesk/service/summary/Summary.java index 6d8ff38cfe..afbf9946e7 100644 --- a/modules/service/src/main/java/com/bytedesk/service/summary/Summary.java +++ b/modules/service/src/main/java/com/bytedesk/service/summary/Summary.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-22 16:14:07 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-22 23:13:47 + * @LastEditTime: 2024-05-03 22:57:03 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,13 +14,10 @@ */ package com.bytedesk.service.summary; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -40,11 +37,11 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "service_summary") -public class Summary extends AuditModel { +public class Summary extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - @Column(name = "id") - private Long id; + private static final long serialVersionUID = 1L; + + @Column(unique = true, nullable = false) + private String sid; } diff --git a/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLog.java b/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLog.java index 29bb66f817..d95f7db2ea 100644 --- a/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLog.java +++ b/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLog.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-09 16:34:13 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-22 21:38:50 + * @LastEditTime: 2024-05-04 10:49:04 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -21,15 +21,12 @@ import com.bytedesk.core.constant.BdConstants; import com.bytedesk.core.constant.StatusConsts; import com.bytedesk.core.constant.ThreadTypeConsts; import com.bytedesk.core.rbac.user.User; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.fasterxml.jackson.annotation.JsonIgnore; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.FetchType; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.ManyToOne; import jakarta.persistence.Table; import lombok.AllArgsConstructor; @@ -52,14 +49,12 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "service_thread_log") -public class ThreadLog extends AuditModel { +public class ThreadLog extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - @Column(unique = true, nullable = false) - private String tid; + // @Column(unique = true, nullable = false) + // private String tid; /** * used to push message @@ -110,6 +105,6 @@ public class ThreadLog extends AuditModel { /** belong to org */ - private String orgOid; + private String orgUid; } diff --git a/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogRepository.java b/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogRepository.java index f2903c7a64..c95fd73e96 100644 --- a/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogRepository.java +++ b/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogRepository.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-18 10:48:16 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-22 16:21:55 + * @LastEditTime: 2024-05-04 11:30:39 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -20,7 +20,7 @@ import org.springframework.data.jpa.repository.JpaRepository; public interface ThreadLogRepository extends JpaRepository { - Page findByOrgOid(String orgOid, Pageable pageable); + Page findByOrgUid(String orgUid, Pageable pageable); - Boolean existsByTid(String tid); + Boolean existsByUid(String uid); } diff --git a/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogRequest.java b/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogRequest.java index c9257799ab..ac504e158f 100644 --- a/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogRequest.java +++ b/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogRequest.java @@ -30,5 +30,5 @@ public class ThreadLogRequest extends BaseRequest { // organization oid - private String orgOid; + private String orgUid; } diff --git a/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogResponse.java b/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogResponse.java index 97c73534f6..e7040d50b4 100644 --- a/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogResponse.java +++ b/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-18 10:49:12 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-22 16:24:06 + * @LastEditTime: 2024-05-04 10:49:13 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -37,7 +37,7 @@ public class ThreadLogResponse extends BaseResponse { private static final long serialVersionUID = 7910814181L; - private String tid; + // private String tid; private String topic; diff --git a/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogService.java b/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogService.java index 7cb019b219..c0f6db5cd7 100644 --- a/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogService.java +++ b/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-18 10:47:38 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-25 20:43:01 + * @LastEditTime: 2024-05-04 10:49:34 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -54,7 +54,7 @@ public class ThreadLogService { threadLogRequest.getPageSize(), Sort.Direction.DESC, "updatedAt"); - Page threadLogPage = threadLogRepository.findByOrgOid(threadLogRequest.getOrgOid(), pageable); + Page threadLogPage = threadLogRepository.findByOrgUid(threadLogRequest.getOrgUid(), pageable); return threadLogPage.map(this::convertThreadLogResponse); } @@ -62,7 +62,7 @@ public class ThreadLogService { @Async public ThreadLog create(Thread thread) { - if (threadLogRepository.existsByTid(thread.getTid())) { + if (threadLogRepository.existsByUid(thread.getUid())) { return null; } @@ -112,14 +112,14 @@ public class ThreadLogService { @EventListener public void onThreadCreateEvent(ThreadCreateEvent event) { Thread thread = event.getThread(); - log.info("onThreadCreateEvent: {}", thread.getTid()); + log.info("onThreadCreateEvent: {}", thread.getUid()); // create(thread); } @EventListener public void onThreadUpdateEvent(ThreadUpdateEvent event) { Thread thread = event.getThread(); - log.info("onThreadUpdateEvent: {}", thread.getTid()); + log.info("onThreadUpdateEvent: {}", thread.getUid()); } } diff --git a/modules/service/src/main/java/com/bytedesk/service/ticket/Ticket.java b/modules/service/src/main/java/com/bytedesk/service/ticket/Ticket.java index 4509a52a2c..f10ccaeb03 100644 --- a/modules/service/src/main/java/com/bytedesk/service/ticket/Ticket.java +++ b/modules/service/src/main/java/com/bytedesk/service/ticket/Ticket.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-22 16:13:18 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-03-29 10:27:12 + * @LastEditTime: 2024-05-04 10:50:19 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,13 +14,10 @@ */ package com.bytedesk.service.ticket; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; // import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -40,12 +37,13 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "service_ticket") -public class Ticket extends AuditModel { +public class Ticket extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - + // @Column(unique = true, nullable = false) + // private String tid; + + private String title; } diff --git a/modules/service/src/main/java/com/bytedesk/service/transferword/TransferWord.java b/modules/service/src/main/java/com/bytedesk/service/transfer_word/TransferWord.java similarity index 94% rename from modules/service/src/main/java/com/bytedesk/service/transferword/TransferWord.java rename to modules/service/src/main/java/com/bytedesk/service/transfer_word/TransferWord.java index baac35dd1d..028a90297b 100644 --- a/modules/service/src/main/java/com/bytedesk/service/transferword/TransferWord.java +++ b/modules/service/src/main/java/com/bytedesk/service/transfer_word/TransferWord.java @@ -12,7 +12,7 @@ * 联系:270580156@qq.com * Copyright (c) 2024 by bytedesk.com, All Rights Reserved. */ -package com.bytedesk.service.transferword; +package com.bytedesk.service.transfer_word; /** * 转人工词 diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/Visitor.java b/modules/service/src/main/java/com/bytedesk/service/visitor/Visitor.java index c8729b8880..cf8605ab3f 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/Visitor.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/Visitor.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-12 12:50:01 + * @LastEditTime: 2024-05-04 10:30:14 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -15,13 +15,9 @@ package com.bytedesk.service.visitor; import com.bytedesk.core.constant.AvatarConsts; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; -import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -41,16 +37,12 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "service_visitor") -public class Visitor extends AuditModel { +public class Visitor extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - /** - */ - @Column(name = "uuid", unique = true, nullable = false) - private String uid; + // @Column(name = "uuid", unique = true, nullable = false) + // private String uid; /** * developers can set basic visitor info diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorController.java b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorController.java index 66fd5a50a9..d5ed12e6cd 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorController.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorController.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-11 16:50:29 + * @LastEditTime: 2024-05-04 13:04:16 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -21,7 +21,7 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; -import com.bytedesk.core.annotation.ApiRateLimiter; +import com.bytedesk.core.apilimit.ApiRateLimiter; import com.bytedesk.core.message.MessageResponse; import com.bytedesk.core.utils.BaseRequest; import com.bytedesk.core.utils.JsonResult; @@ -69,6 +69,7 @@ public class VisitorController { * @param visitorRequest * @return */ + @VisitorFilterAnnotation(title = "visitor filter") @GetMapping("/thread") public ResponseEntity requestThread(VisitorRequest visitorRequest, HttpServletRequest request) { // TODO: check if visitor is banned diff --git a/modules/service/src/main/java/com/bytedesk/service/statistic/Statistic.java b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorFilterAnnotation.java similarity index 57% rename from modules/service/src/main/java/com/bytedesk/service/statistic/Statistic.java rename to modules/service/src/main/java/com/bytedesk/service/visitor/VisitorFilterAnnotation.java index d6642628f5..6f5bf40e04 100644 --- a/modules/service/src/main/java/com/bytedesk/service/statistic/Statistic.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorFilterAnnotation.java @@ -1,8 +1,8 @@ /* * @Author: jackning 270580156@qq.com - * @Date: 2024-02-22 16:25:59 + * @Date: 2024-05-04 12:52:49 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-02-22 16:26:02 + * @LastEditTime: 2024-05-04 12:56:21 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -12,11 +12,21 @@ * 联系:270580156@qq.com * Copyright (c) 2024 by bytedesk.com, All Rights Reserved. */ -package com.bytedesk.service.statistic; +package com.bytedesk.service.visitor; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; /** - * 统计信息 + * TODO: 拦截骚扰用户 + 被禁ip/ip段 */ -public class Statistic { +@Target({ ElementType.PARAMETER, ElementType.METHOD }) +@Retention(RetentionPolicy.RUNTIME) +@Documented +public @interface VisitorFilterAnnotation { + public String title() default ""; } diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorAspect.java b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorFilterAspect.java similarity index 58% rename from modules/service/src/main/java/com/bytedesk/service/visitor/VisitorAspect.java rename to modules/service/src/main/java/com/bytedesk/service/visitor/VisitorFilterAspect.java index c43db95840..91bc9a4f61 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorAspect.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorFilterAspect.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-05 14:51:45 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-17 17:17:12 + * @LastEditTime: 2024-05-04 13:00:46 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -14,9 +14,10 @@ */ package com.bytedesk.service.visitor; +import org.aspectj.lang.JoinPoint; +import org.aspectj.lang.annotation.AfterReturning; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; -import org.aspectj.lang.annotation.Pointcut; import org.springframework.stereotype.Component; import lombok.extern.slf4j.Slf4j; @@ -27,17 +28,37 @@ import lombok.extern.slf4j.Slf4j; @Slf4j @Aspect @Component -public class VisitorAspect { - - @Pointcut("execution(* com.bytedesk.service.visitor.VisitorController.*(..))") - public void visitorLog() {}; +public class VisitorFilterAspect { - @Before("visitorLog()") - public void beforeVisitorLog() { - // TODO: 拦截骚扰用户 + 被禁ip/ip段 - log.debug("VisitorAspect TODO: 拦截骚扰用户 + 被禁ip/ip段"); + /** + * 处理请求前执行 + */ + @Before(value = "@annotation(controllerLog)") + public void doBefore(JoinPoint joinPoint, VisitorFilterAnnotation controllerLog) { + log.debug("VisitorFilterAspect before: model {}, ", controllerLog.title()); } + /** + * 处理完请求后执行 + * + * @param joinPoint 切点 + */ + @AfterReturning(pointcut = "@annotation(controllerLog)", returning = "jsonResult") + public void doAfterReturning(JoinPoint joinPoint, VisitorFilterAnnotation controllerLog, Object jsonResult) { + log.debug("VisitorFilterAspect after returning: model {}, jsonResult {}", controllerLog.title(), jsonResult); + // handleLog(joinPoint, controllerLog, null, jsonResult); + + } + + // @Pointcut("execution(* com.bytedesk.service.visitor.VisitorController.*(..))") + // public void visitorLog() {}; + + // @Before("visitorLog()") + // public void beforeVisitorLog() { + // // TODO: 拦截骚扰用户 + 被禁ip/ip段 + // log.debug("VisitorAspect TODO: 拦截骚扰用户 + 被禁ip/ip段"); + // } + // @After("visitorLog()") // public void afterVisitorLog() { // log.debug("VisitorAspect afterVisitorLog"); diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorRequest.java b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorRequest.java index b9a98ff2f7..9bc73216cc 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorRequest.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-04 17:05:48 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-16 14:57:23 + * @LastEditTime: 2024-05-04 12:01:34 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -24,8 +24,10 @@ import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = false) public class VisitorRequest extends BaseRequest { + + private static final long serialVersionUID = 1L; - private String uid; + // private String uid; /** * developers can set basic visitor info diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorResponse.java b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorResponse.java index a7ee1c757a..932b02d253 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorResponse.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-04 17:05:59 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-16 17:07:29 + * @LastEditTime: 2024-05-04 12:02:09 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -36,9 +36,9 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = true) public class VisitorResponse extends BaseResponse { - private static final long serialVersionUID = 50026477L; + private static final long serialVersionUID = 1L; - private String uid; + // private String uid; /** * developers can set basic visitor info diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorResponseSimple.java b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorResponseSimple.java index 635f14beca..98844c7863 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorResponseSimple.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorResponseSimple.java @@ -36,9 +36,9 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = true) public class VisitorResponseSimple extends BaseResponse { - private static final long serialVersionUID = 6459370944L; + private static final long serialVersionUID = 1L; - private String uid; + // private String uid; private String nickname; diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorService.java b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorService.java index 69409283ec..816696c793 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorService.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-23 16:06:38 + * @LastEditTime: 2024-05-04 10:48:55 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -152,7 +152,7 @@ public class VisitorService { String type = visitorRequest.formatType(); // Thread newThread = new Thread(); - newThread.setTid(uidUtils.getCacheSerialUid()); + newThread.setUid(uidUtils.getCacheSerialUid()); newThread.setTopic(topic); newThread.setType(type); newThread.setClient(visitorRequest.getClient()); @@ -176,7 +176,7 @@ public class VisitorService { // newThread.setOwner(agent.getUser()); newThread.setContent(agent.getWelcomeTip()); - newThread.setOrgOid(agent.getOrgOid()); + newThread.setOrgUid(agent.getOrgUid()); } else { log.error("agent aid {} not exist", aid); return null; @@ -198,7 +198,7 @@ public class VisitorService { // newThread.setOwner(agent.getUser()); newThread.setContent(workgroup.getWelcomeTip()); - newThread.setOrgOid(agent.getOrgOid()); + newThread.setOrgUid(agent.getOrgUid()); } else { log.error("No agents found in workgroup with wid {}", aid); return null; @@ -232,7 +232,7 @@ public class VisitorService { } // find the last message - Optional messageOptional = messageService.findByThreadsTidInOrderByCreatedAtDesc(thread.getTid()); + Optional messageOptional = messageService.findByThreadsUidInOrderByCreatedAtDesc(thread.getUid()); if (messageOptional.isPresent()) { return messageOptional.get(); } @@ -247,14 +247,15 @@ public class VisitorService { UserResponseSimple user = convertToUserResponseSimple(extra.getAgent()); Message message = Message.builder() - .mid(uidUtils.getCacheSerialUid()) + // .mid(uidUtils.getCacheSerialUid()) .type(MessageTypeConsts.NOTIFICATION_THREAD) .content(extra.getWelcomeTip()) .status(StatusConsts.MESSAGE_STATUS_READ) .client(ClientConsts.CLIENT_SYSTEM) .user(JSON.toJSONString(user)) - .orgOid(thread.getOrgOid()) + .orgUid(thread.getOrgUid()) .build(); + message.setUid(uidUtils.getCacheSerialUid()); message.getThreads().add(thread); return message; diff --git a/modules/service/src/main/java/com/bytedesk/service/workgroup/Workgroup.java b/modules/service/src/main/java/com/bytedesk/service/workgroup/Workgroup.java index 43d1e83799..e431d5290d 100644 --- a/modules/service/src/main/java/com/bytedesk/service/workgroup/Workgroup.java +++ b/modules/service/src/main/java/com/bytedesk/service/workgroup/Workgroup.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:19:51 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-23 16:04:38 + * @LastEditTime: 2024-05-04 10:31:17 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -25,7 +25,7 @@ import org.hibernate.type.SqlTypes; import com.bytedesk.core.constant.AvatarConsts; import com.bytedesk.core.constant.BdConstants; import com.bytedesk.core.constant.RouteConsts; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.bytedesk.service.agent.Agent; import com.bytedesk.service.worktime.Worktime; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -49,16 +49,13 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "service_workgroup") -public class Workgroup extends AuditModel { +public class Workgroup extends AbstractEntity { - private static final long serialVersionUID = 680083751L; - - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - @Column(unique = true, nullable = false) - private String wid; + // @NotBlank(message = "wid is required") + // @Column(unique = true, nullable = false) + // private String wid; private String nickname; @@ -144,7 +141,7 @@ public class Workgroup extends AuditModel { // @JsonIgnore // @ManyToOne(fetch = FetchType.LAZY) // private Organization organization; - private String orgOid; + private String orgUid; /** * belongs to user diff --git a/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupController.java b/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupController.java index fa9f5468cf..5fcec25a4c 100644 --- a/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupController.java +++ b/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupController.java @@ -21,7 +21,7 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; -import com.bytedesk.core.annotation.ActionLog; +import com.bytedesk.core.action.ActionLogAnnotation; import com.bytedesk.core.utils.BaseRequest; import com.bytedesk.core.utils.JsonResult; @@ -44,7 +44,7 @@ public class WorkgroupController { * @param workgroupRequest * @return */ - @ActionLog(title = "workgroup", action = "query") + @ActionLogAnnotation(title = "workgroup", action = "query") @GetMapping("/query") public ResponseEntity query(WorkgroupRequest workgroupRequest) { diff --git a/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupRepository.java b/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupRepository.java index 8aaff63069..3788431f00 100644 --- a/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupRepository.java +++ b/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupRepository.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:19:51 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-22 12:16:54 + * @LastEditTime: 2024-05-04 11:28:06 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -36,11 +36,11 @@ public interface WorkgroupRepository extends JpaRepository, Jpa // Page findAll(@NonNull Pageable pageable); - Optional findByWid(@NonNull String wid); + Optional findByUid(@NonNull String uid); Optional findByNickname(@NonNull String nickname); // Page findByOrganization_Oid(String oid, Pageable pageable); - Page findByOrgOid(String oid, Pageable pageable); + Page findByOrgUid(String oid, Pageable pageable); } diff --git a/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupRequest.java b/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupRequest.java index 70e36383b5..7ab7d5aaf8 100644 --- a/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupRequest.java +++ b/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-06 10:17:32 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-22 12:38:20 + * @LastEditTime: 2024-05-04 12:26:14 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -33,7 +33,7 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = false) public class WorkgroupRequest extends BaseRequest { - private String wid; + // private String wid; private String nickname; @@ -72,5 +72,5 @@ public class WorkgroupRequest extends BaseRequest { private List agentAids = new ArrayList(); // organization oid - private String orgOid; + private String orgUid; } diff --git a/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupResponse.java b/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupResponse.java index 047478e51c..9f10fa7cb3 100644 --- a/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupResponse.java +++ b/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-06 10:18:02 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-17 13:54:40 + * @LastEditTime: 2024-05-04 12:26:19 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -36,7 +36,7 @@ public class WorkgroupResponse extends BaseResponse { private static final long serialVersionUID = -5451766294L; - private String wid; + // private String wid; private String nickname; diff --git a/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupService.java b/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupService.java index 0278dc8251..047de2b2df 100644 --- a/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupService.java +++ b/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:19:51 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-25 15:21:30 + * @LastEditTime: 2024-05-04 12:26:26 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -60,7 +60,7 @@ public class WorkgroupService { workgroupRequest.getPageSize(), Sort.Direction.DESC, "id"); - Page workgroupPage = workgroupRepository.findByOrgOid(workgroupRequest.getOrgOid(), + Page workgroupPage = workgroupRepository.findByOrgUid(workgroupRequest.getOrgUid(), pageable); return workgroupPage.map(this::convertToWorkgroupResponse); @@ -69,7 +69,7 @@ public class WorkgroupService { public Workgroup create(WorkgroupRequest workgroupRequest) { // Workgroup workgroup = modelMapper.map(workgroupRequest, Workgroup.class); - workgroup.setWid(uidUtils.getCacheSerialUid()); + workgroup.setUid(uidUtils.getCacheSerialUid()); // Iterator iterator = workgroupRequest.getAgentAids().iterator(); while (iterator.hasNext()) { @@ -88,7 +88,7 @@ public class WorkgroupService { Workgroup update(WorkgroupRequest workgroupRequest) { - Optional workgroupOptional = findByWid(workgroupRequest.getWid()); + Optional workgroupOptional = findByWid(workgroupRequest.getUid()); if (!workgroupOptional.isPresent()) { return null; } @@ -122,7 +122,7 @@ public class WorkgroupService { @Cacheable(value = "workgroup", key = "#wid", unless="#result == null") public Optional findByWid(String wid) { - return workgroupRepository.findByWid(wid); + return workgroupRepository.findByUid(wid); } @Cacheable(value = "workgroup", key = "#nickname", unless="#result == null") @@ -162,7 +162,7 @@ public class WorkgroupService { WorkgroupRequest workgroup1Request = WorkgroupRequest.builder() .nickname("客服组1") .agentAids(agents) - .orgOid(orgOptional.get().getOid()) + .orgUid(orgOptional.get().getUid()) .build(); create(workgroup1Request); @@ -170,7 +170,7 @@ public class WorkgroupService { WorkgroupRequest workgroup2Request = WorkgroupRequest.builder() .nickname("客服组2") .agentAids(asList(agent1Optional.get().getUid())) - .orgOid(orgOptional.get().getOid()) + .orgUid(orgOptional.get().getUid()) .build(); create(workgroup2Request); diff --git a/modules/service/src/main/java/com/bytedesk/service/worktime/Worktime.java b/modules/service/src/main/java/com/bytedesk/service/worktime/Worktime.java index 22a8035263..9889d0b528 100644 --- a/modules/service/src/main/java/com/bytedesk/service/worktime/Worktime.java +++ b/modules/service/src/main/java/com/bytedesk/service/worktime/Worktime.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-18 14:43:29 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-18 14:50:05 + * @LastEditTime: 2024-05-03 22:59:00 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -19,14 +19,11 @@ import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.fasterxml.jackson.annotation.JsonFormat; import jakarta.persistence.Column; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.GenerationType; -import jakarta.persistence.Id; import jakarta.persistence.Table; import jakarta.persistence.Temporal; import jakarta.persistence.TemporalType; @@ -48,23 +45,15 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "service_worktime") -public class Worktime extends AuditModel { +public class Worktime extends AbstractEntity { + + private static final long serialVersionUID = 1L; - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; - - /** - * - */ @Column(name = "start_time") @JsonFormat(pattern = "HH:mm:ss") @Temporal(TemporalType.TIME) private Date startTime; - /** - * - */ @Column(name = "end_time") @JsonFormat(pattern = "HH:mm:ss") @Temporal(TemporalType.TIME) diff --git a/modules/social/.DS_Store b/modules/social/.DS_Store index f3b5d1376b..9c8d03fb36 100644 Binary files a/modules/social/.DS_Store and b/modules/social/.DS_Store differ diff --git a/modules/social/src/.DS_Store b/modules/social/src/.DS_Store new file mode 100644 index 0000000000..d6db2f8f99 Binary files /dev/null and b/modules/social/src/.DS_Store differ diff --git a/modules/socket/.DS_Store b/modules/socket/.DS_Store index a6814fed60..3e17097f61 100644 Binary files a/modules/socket/.DS_Store and b/modules/socket/.DS_Store differ diff --git a/modules/socket/src/.DS_Store b/modules/socket/src/.DS_Store index ba6efd601d..a649575c13 100644 Binary files a/modules/socket/src/.DS_Store and b/modules/socket/src/.DS_Store differ diff --git a/modules/socket/src/main/java/com/bytedesk/socket/service/MessageJsonService.java b/modules/socket/src/main/java/com/bytedesk/socket/service/MessageJsonService.java index a2f1afaa81..b50f80e79b 100644 --- a/modules/socket/src/main/java/com/bytedesk/socket/service/MessageJsonService.java +++ b/modules/socket/src/main/java/com/bytedesk/socket/service/MessageJsonService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-16 18:04:37 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-22 23:04:54 + * @LastEditTime: 2024-05-04 10:51:18 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -51,7 +51,7 @@ public class MessageJsonService { dealWithMessageRecall(type, messageResponse); // - String mid = messageResponse.getMid(); + String mid = messageResponse.getUid(); if (messageService.existsByMid(mid)) { log.info("message already exists, mid: {}", mid); return; @@ -69,7 +69,7 @@ public class MessageJsonService { messageService.save(message); - log.info("save json msg mid {}, tid {}", message.getMid(), thread.getTid()); + log.info("save json msg mid {}, tid {}", message.getUid(), thread.getUid()); } private Thread getThread(MessageResponse messageResponse) { @@ -91,7 +91,7 @@ public class MessageJsonService { message.setStatus(StatusConsts.MESSAGE_STATUS_STORED); message.getThreads().add(thread); message.setUser(JSON.toJSONString(messageResponse.getUser())); - message.setOrgOid(thread.getOrgOid()); + message.setOrgUid(thread.getOrgUid()); return message; } diff --git a/modules/socket/src/main/java/com/bytedesk/socket/service/MessageProtoService.java b/modules/socket/src/main/java/com/bytedesk/socket/service/MessageProtoService.java index 1ab6ffe13b..0488654065 100644 --- a/modules/socket/src/main/java/com/bytedesk/socket/service/MessageProtoService.java +++ b/modules/socket/src/main/java/com/bytedesk/socket/service/MessageProtoService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-16 18:02:11 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-22 23:06:16 + * @LastEditTime: 2024-05-04 10:44:06 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -65,7 +65,7 @@ public class MessageProtoService { // 消息所属的会话 Thread thread = getThread(messageProto); if (thread == null) { - log.info("thread not exists, tid: {}", messageProto.getThread().getTid()); + log.info("thread not exists, uid: {}", messageProto.getThread().getUid()); return; } @@ -75,7 +75,7 @@ public class MessageProtoService { // messageService.save(message); - log.info("save proto msg mid {}, tid {}", message.getMid(), thread.getTid()); + log.info("save proto msg mid {}, uid {}", message.getUid(), thread.getUid()); // 以json格式存储到message archive里面,方便搜索 // String messageJson = ProtobufJsonUtil.toJson(messageProto); @@ -91,11 +91,11 @@ public class MessageProtoService { private Thread getThread(MessageProto.Message messageProto) { ThreadProto.Thread threadProto = messageProto.getThread(); - String tid = threadProto.getTid(); - // log.info("tid: {}, threadType {}", tid, threadType); - Thread thread = threadService.findByTid(tid).orElse(null); + String uid = threadProto.getUid(); + // log.info("uid: {}, threadType {}", uid, threadType); + Thread thread = threadService.findByTid(uid).orElse(null); if (thread == null) { - log.info("thread not exists, tid: {}", tid); + log.info("thread not exists, uid: {}", uid); return null; } // thread.setContent(threadProto.getContent()); @@ -112,15 +112,16 @@ public class MessageProtoService { String nickname = userProto.getNickname(); log.debug("uid: {}, avatar {}, nickname {}", uid, nickname, avatar); // - String mid = messageProto.getMid(); + String mid = messageProto.getUid(); // 持久化消息 Message message = new Message(); - message.setMid(mid); + message.setUid(mid); message.setType(type); message.setStatus(StatusConsts.MESSAGE_STATUS_STORED); message.setClient(messageProto.getClient()); // - UserResponseSimple user = UserResponseSimple.builder().uid(uid).nickname(nickname).avatar(avatar).build(); + UserResponseSimple user = UserResponseSimple.builder().nickname(nickname).avatar(avatar).build(); + user.setUid(uid); message.setUser(JSON.toJSONString(user)); // message.setThread(thread); message.getThreads().add(thread); @@ -135,7 +136,7 @@ public class MessageProtoService { // 暂定:所有消息类型均放到text里面处理,复杂类型存储json String content = messageProto.getContent(); message.setContent(content); - message.setOrgOid(thread.getOrgOid()); + message.setOrgUid(thread.getOrgUid()); // return message; } diff --git a/modules/socket/src/main/java/com/bytedesk/socket/service/MessageSocketService.java b/modules/socket/src/main/java/com/bytedesk/socket/service/MessageSocketService.java index 2b3177ebd1..c784caf612 100644 --- a/modules/socket/src/main/java/com/bytedesk/socket/service/MessageSocketService.java +++ b/modules/socket/src/main/java/com/bytedesk/socket/service/MessageSocketService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-26 10:36:50 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-23 16:12:07 + * @LastEditTime: 2024-05-04 10:38:47 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -87,12 +87,12 @@ public class MessageSocketService { if (threadType.equals(ThreadTypeConsts.MEMBER)) { doSendToSenderClients(messageProto); // 广播给消息发送者的多个客户端,如:pc客户端发送消息,手机客户端可以同步收到自己发送的消息 - String tid = messageProto.getThread().getTid(); + String tid = messageProto.getThread().getUid(); String reverseTid = new StringBuffer(tid).reverse().toString(); // String userTopic = messageProto.getUser().getUid(); ThreadProto.Thread thread = messageProto.getThread().toBuilder() - .setTid(reverseTid) + .setUid(reverseTid) .setTopic(userTopic) .build(); MessageProto.Message message = messageProto.toBuilder() diff --git a/modules/socket/src/main/proto/message.proto b/modules/socket/src/main/proto/message.proto index 6a9ce5b0ee..54bf3e884c 100644 --- a/modules/socket/src/main/proto/message.proto +++ b/modules/socket/src/main/proto/message.proto @@ -39,7 +39,7 @@ import "thread.proto"; // 消息三要素:1. 谁发送的消息? 2. 发送给谁的消息? 3. 发送的消息内容是什么? message Message { // 唯一mid - string mid = 1; + string uid = 1; // 消息类型 string type = 2; // 消息内容,可能是文本,图片,语音,视频,文件等,json diff --git a/modules/socket/src/main/proto/thread.proto b/modules/socket/src/main/proto/thread.proto index 4fba36e7dc..f9b74a4828 100644 --- a/modules/socket/src/main/proto/thread.proto +++ b/modules/socket/src/main/proto/thread.proto @@ -23,7 +23,7 @@ option java_outer_classname = "ThreadProto"; message Thread { // ID - string tid = 1; + string uid = 1; // 订阅主题 string topic = 2; // 会话类型 diff --git a/modules/team/.DS_Store b/modules/team/.DS_Store index 42a51073ca..91ab78ab97 100644 Binary files a/modules/team/.DS_Store and b/modules/team/.DS_Store differ diff --git a/modules/team/src/.DS_Store b/modules/team/src/.DS_Store new file mode 100644 index 0000000000..41150d757c Binary files /dev/null and b/modules/team/src/.DS_Store differ diff --git a/modules/team/src/main/java/com/bytedesk/team/department/Department.java b/modules/team/src/main/java/com/bytedesk/team/department/Department.java index a4c92bf666..c9083495aa 100644 --- a/modules/team/src/main/java/com/bytedesk/team/department/Department.java +++ b/modules/team/src/main/java/com/bytedesk/team/department/Department.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:20:17 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 18:05:45 + * @LastEditTime: 2024-05-04 10:27:09 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -17,7 +17,7 @@ package com.bytedesk.team.department; import java.util.Set; import java.util.HashSet; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.fasterxml.jackson.annotation.JsonIgnore; import jakarta.persistence.*; import lombok.AllArgsConstructor; @@ -38,14 +38,13 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "team_department") -public class Department extends AuditModel { +public class Department extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; - - @Column(unique = true, nullable = false) - private String did; + private static final long serialVersionUID = 1L; + + // @NotBlank + // @Column(unique = true, nullable = false) + // private String did; private String name; @@ -71,13 +70,13 @@ public class Department extends AuditModel { // @ManyToMany(mappedBy = "departments", fetch = FetchType.LAZY) // private Set members = new HashSet<>(); - // private String orgOid; + // private String orgUid; // @JsonIgnore // @ManyToOne(fetch = FetchType.LAZY) // // @JoinColumn(name = "organization_id", foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT)) // @JsonBackReference("organization-departments") // private Organization organization; - private String orgOid; + private String orgUid; /** created by */ // @JsonIgnore diff --git a/modules/team/src/main/java/com/bytedesk/team/department/DepartmentController.java b/modules/team/src/main/java/com/bytedesk/team/department/DepartmentController.java index 8f1c8b9c17..b95a21a26d 100644 --- a/modules/team/src/main/java/com/bytedesk/team/department/DepartmentController.java +++ b/modules/team/src/main/java/com/bytedesk/team/department/DepartmentController.java @@ -81,7 +81,7 @@ public class DepartmentController { // // departmentService.deleteById(departmentRequest.getId()); - return ResponseEntity.ok().body(new JsonResult<>("delete dep success", 200, departmentRequest.getId())); + return ResponseEntity.ok().body(new JsonResult<>("delete dep success", 200, departmentRequest.getUid())); } /** diff --git a/modules/team/src/main/java/com/bytedesk/team/department/DepartmentRepository.java b/modules/team/src/main/java/com/bytedesk/team/department/DepartmentRepository.java index 4c764b1b93..a1ae16feef 100644 --- a/modules/team/src/main/java/com/bytedesk/team/department/DepartmentRepository.java +++ b/modules/team/src/main/java/com/bytedesk/team/department/DepartmentRepository.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:20:17 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 17:19:33 + * @LastEditTime: 2024-05-04 11:26:28 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -45,8 +45,8 @@ public interface DepartmentRepository extends JpaRepository, J Optional findByName(String name); - Optional findByDid(String did); + Optional findByUid(String uid); - Page findByOrgOidAndParent(String orgOid, Department parent, Pageable pageable); + Page findByOrgUidAndParent(String orgUid, Department parent, Pageable pageable); } diff --git a/modules/team/src/main/java/com/bytedesk/team/department/DepartmentRequest.java b/modules/team/src/main/java/com/bytedesk/team/department/DepartmentRequest.java index 0579c39e64..b03850b9e1 100644 --- a/modules/team/src/main/java/com/bytedesk/team/department/DepartmentRequest.java +++ b/modules/team/src/main/java/com/bytedesk/team/department/DepartmentRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-01 17:03:50 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 17:11:41 + * @LastEditTime: 2024-05-04 12:24:06 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -32,16 +32,16 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = false) public class DepartmentRequest extends BaseRequest { - private String did; + // private String did; @NotEmpty private String name; private String description; // - private String parentDid; + private String parentUid; @NotEmpty - private String orgOid; + private String orgUid; } diff --git a/modules/team/src/main/java/com/bytedesk/team/department/DepartmentResponse.java b/modules/team/src/main/java/com/bytedesk/team/department/DepartmentResponse.java index 6c6a00c355..1db2308633 100644 --- a/modules/team/src/main/java/com/bytedesk/team/department/DepartmentResponse.java +++ b/modules/team/src/main/java/com/bytedesk/team/department/DepartmentResponse.java @@ -36,7 +36,7 @@ public class DepartmentResponse extends BaseResponse { private static final long serialVersionUID = 5377636189L; - private String did; + // private String did; private String name; diff --git a/modules/team/src/main/java/com/bytedesk/team/department/DepartmentService.java b/modules/team/src/main/java/com/bytedesk/team/department/DepartmentService.java index 690b4b3fc6..a668bf4683 100644 --- a/modules/team/src/main/java/com/bytedesk/team/department/DepartmentService.java +++ b/modules/team/src/main/java/com/bytedesk/team/department/DepartmentService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:20:17 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-25 09:35:29 + * @LastEditTime: 2024-05-04 10:32:08 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -55,7 +55,7 @@ public class DepartmentService { Pageable pageable = PageRequest.of(departmentRequest.getPageNumber(), departmentRequest.getPageSize(), Sort.Direction.ASC, "id"); - Page page = departmentRepository.findByOrgOidAndParent(departmentRequest.getOrgOid(), null, pageable); + Page page = departmentRepository.findByOrgUidAndParent(departmentRequest.getOrgUid(), null, pageable); return page.map(this::convertToDepartmentResponse); } @@ -63,11 +63,11 @@ public class DepartmentService { public Department create(DepartmentRequest departmentRequest) { Department department = modelMapper.map(departmentRequest, Department.class); - department.setDid(uidUtils.getCacheSerialUid()); + department.setUid(uidUtils.getCacheSerialUid()); - if (StringUtils.hasLength(departmentRequest.getParentDid())) { - log.debug("parent_did {}", departmentRequest.getParentDid()); - Optional parentOptional = departmentRepository.findByDid(departmentRequest.getParentDid()); + if (StringUtils.hasLength(departmentRequest.getParentUid())) { + log.debug("parent_did {}", departmentRequest.getParentUid()); + Optional parentOptional = departmentRepository.findByUid(departmentRequest.getParentUid()); if (parentOptional.isPresent()) { parentOptional.get().addChild(department); } @@ -76,7 +76,7 @@ public class DepartmentService { department.setParent(null); } - department.setOrgOid(departmentRequest.getOrgOid()); + department.setOrgUid(departmentRequest.getOrgUid()); return save(department); } @@ -88,7 +88,7 @@ public class DepartmentService { @Cacheable(value = "department", key = "#did", unless = "#result == null") public Optional findByDid(String did) { - return departmentRepository.findByDid(did); + return departmentRepository.findByUid(did); } public Department save(Department department) { @@ -108,31 +108,31 @@ public class DepartmentService { Optional orgOptional = organizationService.findByName(properties.getCompany()); if (orgOptional.isPresent()) { - String orgOid = orgOptional.get().getOid(); + String orgUid = orgOptional.get().getUid(); // Department[] departments = new Department[] { Department.builder().name(TypeConsts.DEPT_HR).description(TypeConsts.DEPT_HR) - .orgOid(orgOid).type(TypeConsts.TYPE_SYSTEM).build(), + .orgUid(orgUid).type(TypeConsts.TYPE_SYSTEM).build(), Department.builder().name(TypeConsts.DEPT_ORG).description(TypeConsts.DEPT_ORG) - .orgOid(orgOid).type(TypeConsts.TYPE_SYSTEM).build(), + .orgUid(orgUid).type(TypeConsts.TYPE_SYSTEM).build(), Department.builder().name(TypeConsts.DEPT_IT).description(TypeConsts.DEPT_IT) - .orgOid(orgOid).type(TypeConsts.TYPE_SYSTEM).build(), + .orgUid(orgUid).type(TypeConsts.TYPE_SYSTEM).build(), Department.builder().name(TypeConsts.DEPT_MONEY).description(TypeConsts.DEPT_MONEY) - .orgOid(orgOid).type(TypeConsts.TYPE_SYSTEM).build(), + .orgUid(orgUid).type(TypeConsts.TYPE_SYSTEM).build(), Department.builder().name(TypeConsts.DEPT_MARKETING).description(TypeConsts.DEPT_MARKETING) - .orgOid(orgOid).type(TypeConsts.TYPE_SYSTEM).build(), + .orgUid(orgUid).type(TypeConsts.TYPE_SYSTEM).build(), Department.builder().name(TypeConsts.DEPT_SALES).description(TypeConsts.DEPT_SALES) - .orgOid(orgOid).type(TypeConsts.TYPE_SYSTEM).build(), + .orgUid(orgUid).type(TypeConsts.TYPE_SYSTEM).build(), Department.builder().name(TypeConsts.DEPT_CUSTOMER_SERVICE) .description(TypeConsts.DEPT_CUSTOMER_SERVICE) - .orgOid(orgOid).type(TypeConsts.TYPE_SYSTEM).build() + .orgUid(orgUid).type(TypeConsts.TYPE_SYSTEM).build() }; Arrays.stream(departments).forEach((department) -> { Optional depOptional = departmentRepository.findByName(department.getName()); if (!depOptional.isPresent()) { - department.setDid(uidUtils.getCacheSerialUid()); - department.setOrgOid(orgOid); + department.setUid(uidUtils.getCacheSerialUid()); + department.setOrgUid(orgUid); // department.setOrganization(orgOptional.get()); // department.setUser(userService.getAdmin().get()); departmentRepository.save(department); diff --git a/modules/team/src/main/java/com/bytedesk/team/group/Group.java b/modules/team/src/main/java/com/bytedesk/team/group/Group.java index 8d719f44a1..92c7dfcaaf 100644 --- a/modules/team/src/main/java/com/bytedesk/team/group/Group.java +++ b/modules/team/src/main/java/com/bytedesk/team/group/Group.java @@ -2,7 +2,7 @@ * @Author: jack ning github@bytedesk.com * @Date: 2024-01-23 14:53:16 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-26 20:41:38 + * @LastEditTime: 2024-05-04 10:27:41 * @FilePath: /server/plugins/im/src/main/java/com/bytedesk/im/group/Group.java * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -12,7 +12,7 @@ import java.util.ArrayList; import java.util.List; import com.bytedesk.core.rbac.user.User; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.fasterxml.jackson.annotation.JsonIgnore; import jakarta.persistence.*; @@ -36,14 +36,12 @@ import lombok.experimental.Accessors; // @EntityListeners({ GroupListener.class }) // 注:group为mysql保留关键字, groups在mysql8启动报错,所有表名修改为groupes @Table(name = "team_groupes") -public class Group extends AuditModel { +public class Group extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - @Column(unique = true, nullable = false) - private String gid; + // @Column(unique = true, nullable = false) + // private String gid; private String name; diff --git a/modules/team/src/main/java/com/bytedesk/team/group/GroupListener.java b/modules/team/src/main/java/com/bytedesk/team/group/GroupListener.java index 397e66fc2e..4458e562ac 100644 --- a/modules/team/src/main/java/com/bytedesk/team/group/GroupListener.java +++ b/modules/team/src/main/java/com/bytedesk/team/group/GroupListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-15 09:44:58 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-15 09:45:01 + * @LastEditTime: 2024-05-04 10:27:48 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -30,32 +30,32 @@ public class GroupListener { @PrePersist public void prePersist(Group group) { - log.info("prePersist {}", group.getGid()); + log.info("prePersist {}", group.getUid()); } @PostPersist public void postPersist(Group group) { - log.info("postPersist {}", group.getGid()); + log.info("postPersist {}", group.getUid()); } @PreUpdate public void preUpdate(Group group) { - log.info("preUpdate {}", group.getGid()); + log.info("preUpdate {}", group.getUid()); } @PostUpdate public void postUpdate(Group group) { - log.info("postUpdate {}", group.getGid()); + log.info("postUpdate {}", group.getUid()); } @PreRemove public void preRemove(Group group) { - log.info("preRemove {}", group.getGid()); + log.info("preRemove {}", group.getUid()); } @PostRemove public void postRemove(Group group) { - log.info("postRemove {}", group.getGid()); + log.info("postRemove {}", group.getUid()); } diff --git a/modules/team/src/main/java/com/bytedesk/team/group/GroupRequest.java b/modules/team/src/main/java/com/bytedesk/team/group/GroupRequest.java index 89c03d17e7..b99789e76c 100644 --- a/modules/team/src/main/java/com/bytedesk/team/group/GroupRequest.java +++ b/modules/team/src/main/java/com/bytedesk/team/group/GroupRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-06 09:55:40 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-08 16:02:15 + * @LastEditTime: 2024-05-04 11:38:58 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -27,5 +27,7 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = false) public class GroupRequest extends BaseRequest { - private String gid; + // private String gid; + + private String name; } diff --git a/modules/team/src/main/java/com/bytedesk/team/member/Member.java b/modules/team/src/main/java/com/bytedesk/team/member/Member.java index eced60a9d1..cac7871bf3 100644 --- a/modules/team/src/main/java/com/bytedesk/team/member/Member.java +++ b/modules/team/src/main/java/com/bytedesk/team/member/Member.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:20:17 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 20:41:49 + * @LastEditTime: 2024-05-04 10:27:01 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -18,7 +18,7 @@ import java.util.HashSet; import java.util.Set; import com.bytedesk.core.rbac.user.User; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.bytedesk.team.department.Department; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -40,14 +40,12 @@ import lombok.experimental.Accessors; @NoArgsConstructor @EntityListeners({ MemberListener.class }) @Table(name = "team_member") -public class Member extends AuditModel { +public class Member extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; - @Column(name = "uuid", unique = true, nullable = false) - private String uid; + // @Column(name = "uuid", unique = true, nullable = false) + // private String uid; /** * job number @@ -102,7 +100,7 @@ public class Member extends AuditModel { // @JsonIgnore // @ManyToOne(fetch = FetchType.LAZY) // private Organization organization; - private String orgOid; + private String orgUid; // 添加、移除部门的方法 public void addDepartment(Department department) { diff --git a/modules/team/src/main/java/com/bytedesk/team/member/MemberRepository.java b/modules/team/src/main/java/com/bytedesk/team/member/MemberRepository.java index fdc5f2e945..3518f5e27c 100644 --- a/modules/team/src/main/java/com/bytedesk/team/member/MemberRepository.java +++ b/modules/team/src/main/java/com/bytedesk/team/member/MemberRepository.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:20:17 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 15:17:05 + * @LastEditTime: 2024-05-04 11:27:30 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -57,8 +57,8 @@ public interface MemberRepository extends JpaRepository, JpaSpecif Optional findByUser_Email(String email); - Page findByDepartmentsDidIn(String dids[], Pageable pageable); + Page findByDepartmentsUidIn(String dids[], Pageable pageable); - Page findByOrgOid(String orgOid, Pageable pageable); + Page findByOrgUid(String orgUid, Pageable pageable); } diff --git a/modules/team/src/main/java/com/bytedesk/team/member/MemberRequest.java b/modules/team/src/main/java/com/bytedesk/team/member/MemberRequest.java index 6a2f845e4e..5425842d7c 100644 --- a/modules/team/src/main/java/com/bytedesk/team/member/MemberRequest.java +++ b/modules/team/src/main/java/com/bytedesk/team/member/MemberRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-02 13:30:17 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 15:15:30 + * @LastEditTime: 2024-05-04 12:25:11 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -28,10 +28,7 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = false) public class MemberRequest extends BaseRequest { - /** - * uuid - */ - private String uid; + // private String uid; /** * job number @@ -79,9 +76,9 @@ public class MemberRequest extends BaseRequest { /** * department did */ - private String depDid; + private String depUid; // - private String orgOid; + private String orgUid; } diff --git a/modules/team/src/main/java/com/bytedesk/team/member/MemberResponse.java b/modules/team/src/main/java/com/bytedesk/team/member/MemberResponse.java index 5799bd82dc..0849f5cf4e 100644 --- a/modules/team/src/main/java/com/bytedesk/team/member/MemberResponse.java +++ b/modules/team/src/main/java/com/bytedesk/team/member/MemberResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-25 15:36:57 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 15:15:36 + * @LastEditTime: 2024-05-04 10:51:44 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -32,7 +32,7 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = true) public class MemberResponse extends BaseResponse { - private String uid; + // private String uid; private String jobNo; diff --git a/modules/team/src/main/java/com/bytedesk/team/member/MemberService.java b/modules/team/src/main/java/com/bytedesk/team/member/MemberService.java index 2b780c7706..5cb095b84a 100644 --- a/modules/team/src/main/java/com/bytedesk/team/member/MemberService.java +++ b/modules/team/src/main/java/com/bytedesk/team/member/MemberService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:20:17 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-26 18:21:20 + * @LastEditTime: 2024-05-04 10:33:52 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -58,7 +58,7 @@ public class MemberService { Pageable pageable = PageRequest.of(memberRequest.getPageNumber(), memberRequest.getPageSize(), Sort.Direction.ASC, "id"); - Page memberPage = memberRepository.findByOrgOid(memberRequest.getOrgOid(), pageable); + Page memberPage = memberRepository.findByOrgUid(memberRequest.getOrgUid(), pageable); return memberPage.map(this::convertToMemberResponse); } @@ -68,7 +68,7 @@ public class MemberService { Pageable pageable = PageRequest.of(memberRequest.getPageNumber(), memberRequest.getPageSize(), Sort.Direction.ASC, "id"); - Page memberPage = memberRepository.findByDepartmentsDidIn(new String[]{memberRequest.getDepDid()}, pageable); + Page memberPage = memberRepository.findByDepartmentsUidIn(new String[]{memberRequest.getDepUid()}, pageable); return memberPage.map(this::convertToMemberResponse); } @@ -89,13 +89,13 @@ public class MemberService { Member member = modelMapper.map(memberRequest, Member.class); member.setUid(uidUtils.getCacheSerialUid()); // - Optional depOptional = departmentService.findByDid(memberRequest.getDepDid()); + Optional depOptional = departmentService.findByDid(memberRequest.getDepUid()); if (depOptional.isPresent()) { member.addDepartment(depOptional.get()); // member.setDepartment(depOptional.get()); // member.setOrganization(depOptional.get().getOrganization()); // member.setOrgOid(depOptional.get().getOrganization().getOid()); - member.setOrgOid(depOptional.get().getOrgOid()); + member.setOrgUid(depOptional.get().getOrgUid()); } else { return JsonResult.error("department not exist"); } @@ -110,7 +110,7 @@ public class MemberService { memberRequest.getMobile(), memberRequest.getEmail(), memberRequest.getVerified(), - depOptional.get().getOrgOid() + depOptional.get().getOrgUid() ); } else { // just return user @@ -134,13 +134,13 @@ public class MemberService { member.setTelephone(memberRequest.getTelephone()); member.setEmail(memberRequest.getEmail()); // - Optional depOptional = departmentService.findByDid(memberRequest.getDepDid()); + Optional depOptional = departmentService.findByDid(memberRequest.getDepUid()); if (depOptional.isPresent()) { member.addDepartment(depOptional.get()); // member.setDepartment(depOptional.get()); // member.setOrganization(depOptional.get().getOrganization()); // member.setOrgOid(depOptional.get().getOrganization().getOid()); - member.setOrgOid(depOptional.get().getOrgOid()); + member.setOrgUid(depOptional.get().getOrgUid()); } else { return null; } @@ -218,7 +218,7 @@ public class MemberService { .mobile("18888888" + userNo) .email(userNo + "@email.com") .verified(true) - .depDid(depOptional.get().getDid()) + .depUid(depOptional.get().getUid()) .build(); create(memberRequest); } diff --git a/modules/team/src/main/java/com/bytedesk/team/organization/Organization.java b/modules/team/src/main/java/com/bytedesk/team/organization/Organization.java index 7f6479f95b..e60ba768ea 100644 --- a/modules/team/src/main/java/com/bytedesk/team/organization/Organization.java +++ b/modules/team/src/main/java/com/bytedesk/team/organization/Organization.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:20:17 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-23 17:19:26 + * @LastEditTime: 2024-05-03 23:48:54 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -16,10 +16,11 @@ package com.bytedesk.team.organization; import com.bytedesk.core.constant.AvatarConsts; import com.bytedesk.core.rbac.user.User; -import com.bytedesk.core.utils.AuditModel; +import com.bytedesk.core.utils.AbstractEntity; import com.fasterxml.jackson.annotation.JsonIgnore; import jakarta.persistence.*; +import jakarta.validation.constraints.NotBlank; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -35,16 +36,15 @@ import lombok.experimental.Accessors; @AllArgsConstructor @NoArgsConstructor @Table(name = "team_organization") -public class Organization extends AuditModel { +public class Organization extends AbstractEntity { - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; + private static final long serialVersionUID = 1L; // 随机字符串,可读性差 - @Column(unique = true, nullable = false) - private String oid; + // @Column(unique = true, nullable = false) + // private String oid; + @NotBlank /** name should be unique */ @Column(unique = true, nullable = false) private String name; diff --git a/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationController.java b/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationController.java index 0146d64645..07b808fa91 100644 --- a/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationController.java +++ b/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationController.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:20:17 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-26 15:21:52 + * @LastEditTime: 2024-05-04 11:33:49 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -62,10 +62,10 @@ public class OrganizationController { * @param request * @return */ - @GetMapping("/oid") - public ResponseEntity queryByOid(OrganizationRequest request) { + @GetMapping("/uid") + public ResponseEntity queryByUid(OrganizationRequest request) { // - Optional org = organizationService.findByOid(request.getOid()); + Optional org = organizationService.findByUid(request.getUid()); if (!org.isPresent()) { return ResponseEntity.ok(JsonResult.error("组织不存在")); } diff --git a/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationEventHandler.java b/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationEventHandler.java index e37950d289..b3bb317f0a 100644 --- a/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationEventHandler.java +++ b/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationEventHandler.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-01 09:22:48 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-02-06 13:56:13 + * @LastEditTime: 2024-05-04 10:28:40 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -50,10 +50,10 @@ public class OrganizationEventHandler { public void beforeCreate(Organization organization) { log.debug("beforeCreate"); User user = authService.getCurrentUser(); - organization.setOid(Utils.getUid()); + organization.setUid(Utils.getUid()); organization.setUser(user); // - user.getOrganizations().add(organization.getOid()); + user.getOrganizations().add(organization.getUid()); userService.save(user); } diff --git a/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationRepository.java b/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationRepository.java index 4b2d769b85..85053eda6b 100644 --- a/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationRepository.java +++ b/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationRepository.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:20:17 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-18 16:28:44 + * @LastEditTime: 2024-05-04 11:25:54 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -47,7 +47,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; public interface OrganizationRepository extends JpaRepository, JpaSpecificationExecutor { - Optional findByOid(String oid); + Optional findByUid(String uid); // @RestResource(path = "name", rel = "name") diff --git a/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationRequest.java b/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationRequest.java index d9e217dc25..334e3f7b63 100644 --- a/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationRequest.java +++ b/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationRequest.java @@ -23,7 +23,7 @@ import lombok.EqualsAndHashCode; @EqualsAndHashCode(callSuper = false) public class OrganizationRequest extends BaseRequest { - private String oid; + // private String oid; private String name; diff --git a/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationResponse.java b/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationResponse.java index ad90faacc3..5e94e7c137 100644 --- a/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationResponse.java +++ b/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-01 21:20:57 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-23 17:27:52 + * @LastEditTime: 2024-05-04 10:52:03 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -31,9 +31,9 @@ import lombok.experimental.Accessors; @EqualsAndHashCode(callSuper = true) public class OrganizationResponse extends BaseResponse { - private static final long serialVersionUID = 6917647433L; + private static final long serialVersionUID = 1L; - private String oid; + // private String oid; private String name; diff --git a/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationService.java b/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationService.java index 87e96c0d9e..981efc8682 100644 --- a/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationService.java +++ b/modules/team/src/main/java/com/bytedesk/team/organization/OrganizationService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:20:17 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-23 18:18:09 + * @LastEditTime: 2024-05-04 11:33:58 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -65,9 +65,9 @@ public class OrganizationService { return orgPage.map(organization -> convertToOrganizationResponse(organization)); } - @Cacheable(value = "organization", key = "#oid", unless = "#result == null") - public Optional findByOid(String oid) { - return organizationRepository.findByOid(oid); + @Cacheable(value = "organization", key = "#uid", unless = "#result == null") + public Optional findByUid(String uid) { + return organizationRepository.findByUid(uid); } @Cacheable(value = "organization", key = "#name", unless = "#result == null") @@ -76,7 +76,7 @@ public class OrganizationService { } @Caching(put = { - @CachePut(value = "organization", key = "#organization.oid"), + @CachePut(value = "organization", key = "#organization.uid"), @CachePut(value = "organization", key = "#organization.name") }) public Organization save(Organization organization) { @@ -98,14 +98,15 @@ public class OrganizationService { if (adminOptional.isPresent()) { // Organization organization = Organization.builder() - .oid(uidUtils.getCacheSerialUid()) + // .uid(uidUtils.getCacheSerialUid()) .name(properties.getCompany()) .description(properties.getCompany() + " Description") .user(adminOptional.get()) - .build(); + .build(); + organization.setUid(uidUtils.getCacheSerialUid()); save(organization); // - adminOptional.get().getOrganizations().add(organization.getOid()); + adminOptional.get().getOrganizations().add(organization.getUid()); userService.save(adminOptional.get()); } diff --git a/modules/team/src/test/java/com/bytedesk/team/DepartmentControllerTests.java b/modules/team/src/test/java/com/bytedesk/team/DepartmentControllerTests.java index 8bfe4118ba..d991848bff 100644 --- a/modules/team/src/test/java/com/bytedesk/team/DepartmentControllerTests.java +++ b/modules/team/src/test/java/com/bytedesk/team/DepartmentControllerTests.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-02 09:13:26 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-24 17:23:25 + * @LastEditTime: 2024-05-04 11:40:04 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -49,8 +49,8 @@ public class DepartmentControllerTests { // Arrange DepartmentRequest departmentRequest = new DepartmentRequest(); departmentRequest.setName("Test Department"); - departmentRequest.setParentDid(null); - departmentRequest.setOrgOid("f01f5444ecbc437cb5b8de7ca7dd023c"); + departmentRequest.setParentUid(null); + departmentRequest.setOrgUid("f01f5444ecbc437cb5b8de7ca7dd023c"); // Act ResponseEntity> response = departmentController.create(departmentRequest); @@ -62,14 +62,14 @@ public class DepartmentControllerTests { assertEquals(200, result.getCode()); } - @SuppressWarnings("null") + // @SuppressWarnings("null") @Test public void testCreateFailure() { // Arrange DepartmentRequest departmentRequest = new DepartmentRequest(); - departmentRequest.setDid("testDid"); - departmentRequest.setParentDid(null); - departmentRequest.setOrgOid("testOrgOid"); + departmentRequest.setUid("testDid"); + departmentRequest.setParentUid(null); + departmentRequest.setOrgUid("testOrgUid"); // Act ResponseEntity> response = departmentController.create(departmentRequest); diff --git a/starter/.DS_Store b/starter/.DS_Store index 3403cb3c9f..bcc6088081 100644 Binary files a/starter/.DS_Store and b/starter/.DS_Store differ diff --git a/starter/h2db/weiyuim.mv.db b/starter/h2db/weiyuim.mv.db deleted file mode 100644 index 33d2fc920d..0000000000 Binary files a/starter/h2db/weiyuim.mv.db and /dev/null differ diff --git a/starter/pom.xml b/starter/pom.xml index 6c4fc49ec6..eca0f31efe 100644 --- a/starter/pom.xml +++ b/starter/pom.xml @@ -82,6 +82,11 @@ spring-boot-starter-quartz + + org.springframework.boot + spring-boot-starter-mail + + - + @@ -106,11 +111,11 @@ - + @@ -168,6 +173,36 @@ ${im.version} --> + + + + + com.bytedesk + liangshibao + ${im.version} + + + + + com.bytedesk + meiyu + ${im.version} + + + + + com.bytedesk + tiku + ${im.version} + + + + + com.bytedesk + zhaobiao + ${im.version} + + diff --git a/starter/readme.md b/starter/readme.md new file mode 100644 index 0000000000..16f47e926d --- /dev/null +++ b/starter/readme.md @@ -0,0 +1,46 @@ +# bytedesk + +## TODO: + +- oauth +- role/authority +- plugins: + - cluster support +- pression + +```bash +# proxy +export http_proxy=http://127.0.0.1:10818 +export https_proxy=http://127.0.0.1:10818 +# +# code ~/.zshrc +# source ~/.zshrc +# change to java 17 +# spring --version +# +# brew install gradle +# gradle --version +# gradle dependencies +# start +# ./gradlew bootRun +# +# run gradle with hot reload +# 1. open one terminal, run: +gradle build --continuous +# 2. open second terminal, run: +gradle bootRun +# +# build jar +gradle bootJar +# see jar detail +jar tvf build/libs/bytedesk-1.0.jar +# run jar +java -jar build/libs/bytedesk-1.0.jar +# +# http://localhost:9003 +``` + +```bash +# flyway db migration + +``` diff --git a/starter/readme.zh.md b/starter/readme.zh.md new file mode 100644 index 0000000000..b6cb9afd96 --- /dev/null +++ b/starter/readme.zh.md @@ -0,0 +1,66 @@ + + +# 微语 + +- 50 人以内免费 +- 免费版需要保留 logo + +## TODO: + +- 压力测试 +- 集群付费解决方案 +- 后端创建 model,通过命令一键生成相关 api 文件,前端通过配置直接生成 CRUD 页面,并可生成统计 chart 页面 + +```bash +# proxy +export http_proxy=http://127.0.0.1:10818 +export https_proxy=http://127.0.0.1:10818 +# +# code ~/.zshrc +# source ~/.zshrc +# change to java 17 +# spring --version +# +# brew install gradle +# gradle --version +# gradle dependencies +gradle --refresh-dependencies +# start +# ./gradlew bootRun +# +# run gradle with hot reload +# 1. open one terminal, run: +gradle build --continuous +# 2. open second terminal, run: +gradle bootRun +# +# build jar +gradle bootJar +# see jar detail +jar tvf build/libs/bytedesk-1.0.jar +# run jar +java -jar build/libs/bytedesk-1.0.jar +# +# http://localhost:9003 +``` + +```bash +# flyway db migration + +``` + +- [spring boot docs](https://docs.spring.io/spring-boot/docs/current/reference/html/index.html) +- [spring boot properties](https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#appendix.application-properties.core) diff --git a/starter/src/.DS_Store b/starter/src/.DS_Store index 43ed213a2c..4029590cc9 100644 Binary files a/starter/src/.DS_Store and b/starter/src/.DS_Store differ diff --git a/starter/src/main/.DS_Store b/starter/src/main/.DS_Store index f69e04d46f..877d599883 100644 Binary files a/starter/src/main/.DS_Store and b/starter/src/main/.DS_Store differ diff --git a/starter/src/main/resources/.DS_Store b/starter/src/main/resources/.DS_Store index fa5b39a07d..326b0fc352 100644 Binary files a/starter/src/main/resources/.DS_Store and b/starter/src/main/resources/.DS_Store differ diff --git a/starter/src/main/resources/application-dev-h2.properties b/starter/src/main/resources/application-dev-h2.properties index b84322c80d..a575ac8880 100644 --- a/starter/src/main/resources/application-dev-h2.properties +++ b/starter/src/main/resources/application-dev-h2.properties @@ -1,6 +1,6 @@ # =============================== -#=bytedesk config using mysql/redis、upload to aliyun oss +#=bytedesk config using h2 # =============================== bytedesk.debug=true # default admin username/password/email/mobile info @@ -94,7 +94,7 @@ upload.dir.prefix= # =============================== # = 阿里云OSS访问密钥 # =============================== -aliyun.region-id=cn +aliyun.region-id=cn-hangzhou # aliyun.access-key-id=placeholder aliyun.access-key-secret=placeholder @@ -102,9 +102,9 @@ aliyun.access-key-secret=placeholder # 阿里云OSS服务相关配置 # OSS的endpoint,这里是华南地区(也就是深圳) aliyun.oss-endpoint=https://oss-cn-shenzhen.aliyuncs.com -aliyun.oss-base-url=https://oss-cn-shenzhen.aliyuncs.com +aliyun.oss-base-url=https://bytedesk.oss-cn-shenzhen.aliyuncs.com # 这是创建的bucket -aliyun.oss-bucket-name=123 +aliyun.oss-bucket-name=bytedesk # 这里已经把自己的域名映射到bucket地址了。需要设置域名绑定,设置域名CNAME(暂不使用) aliyun.oss-img-domain= @@ -120,7 +120,7 @@ aliyun.sms.templatecode= # =============================== # 创建bucket并需要在此bucket下创建文件夹:apns/development(二级文件夹), apns/production(二级文件夹), avatars, images, voices, files # 存储桶所属地域 -tencent.bucket.location=ap +tencent.bucket.location=ap-shanghai # 存储桶名称 tencent.bucket.name= # 访问域名 @@ -199,7 +199,7 @@ spring.cache.redis.key-prefix=bytedeskim: spring.data.redis.database=0 spring.data.redis.host=127.0.0.1 spring.data.redis.port=6379 -spring.data.redis.password=123 +spring.data.redis.password=C8aJEVCCvSA1VFi8 # =============================== #=spring-boot-starter-data-rest diff --git a/starter/src/main/resources/application.properties b/starter/src/main/resources/application.properties index f59bef126d..3fed876cc8 100644 --- a/starter/src/main/resources/application.properties +++ b/starter/src/main/resources/application.properties @@ -19,9 +19,11 @@ spring.freemarker.suffix=.ftl # 注意:切换不同profiles时,需要同步修改pom.xml切换driver驱动 # =============================== # for mysql/redis -# spring.profiles.active=dev-mysql +spring.profiles.active=dev-mysql # open source - only using h2database/caffeine, no dependency on middle ware # http://localhost:9003/h2-console -spring.profiles.active=dev-h2 +# spring.profiles.active=dev-h2 # for posgresql # spring.profiles.active=dev-pg +# cloud +# spring.profiles.active=prod diff --git a/starter/src/main/resources/templates/.DS_Store b/starter/src/main/resources/templates/.DS_Store index b7dfcf30cf..c440be89f0 100644 Binary files a/starter/src/main/resources/templates/.DS_Store and b/starter/src/main/resources/templates/.DS_Store differ diff --git a/starter/src/main/resources/templates/admin/.DS_Store b/starter/src/main/resources/templates/admin/.DS_Store index 84f56612f1..fd8400b5d6 100644 Binary files a/starter/src/main/resources/templates/admin/.DS_Store and b/starter/src/main/resources/templates/admin/.DS_Store differ diff --git a/starter/src/main/resources/templates/admin/175.1b12b583.async.js b/starter/src/main/resources/templates/admin/175.1b12b583.async.js new file mode 100644 index 0000000000..856ba2de59 --- /dev/null +++ b/starter/src/main/resources/templates/admin/175.1b12b583.async.js @@ -0,0 +1,6 @@ +(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[175],{51042:function(F,V,c){"use strict";var s=c(1413),g=c(67294),j=c(42110),T=c(89099),q=function(M,O){return g.createElement(T.Z,(0,s.Z)((0,s.Z)({},M),{},{ref:O,icon:j.Z}))},x=g.forwardRef(q);V.Z=x},96906:function(F,V,c){"use strict";c.d(V,{Z:function(){return A}});var s=c(91),g=c(1413),j=c(56874),T=c(87462),q=c(67294),x=c(29245),I=c(78026),M=function(w,_){return q.createElement(I.Z,(0,T.Z)({},w,{ref:_,icon:x.Z}))},O=q.forwardRef(M),W=O,R=c(86413),Z=c(28459),N=c(85418),v=c(14726),D=c(93967),m=c.n(D),n=c(85893),d=["key","name"],f=function(w){var _=w.children,E=w.menus,o=w.onSelect,p=w.className,B=w.style,H=(0,q.useContext)(Z.ZP.ConfigContext),z=H.getPrefixCls,l=z("pro-table-dropdown"),U=(0,R.Q)({onClick:function(C){return o&&o(C.key)},items:E==null?void 0:E.map(function(K){return{label:K.name,key:K.key}})});return(0,n.jsx)(N.Z,(0,g.Z)((0,g.Z)({},U),{},{className:m()(l,p),children:(0,n.jsxs)(v.ZP,{style:B,children:[_," ",(0,n.jsx)(j.Z,{})]})}))},b=function(w){var _=w.className,E=w.style,o=w.onSelect,p=w.menus,B=p===void 0?[]:p,H=w.children,z=(0,q.useContext)(Z.ZP.ConfigContext),l=z.getPrefixCls,U=l("pro-table-dropdown"),K=(0,R.Q)({onClick:function(y){o==null||o(y.key)},items:B.map(function(C){var y=C.key,k=C.name,G=(0,s.Z)(C,d);return(0,g.Z)((0,g.Z)({key:y},G),{},{title:G.title,label:k})})});return(0,n.jsx)(N.Z,(0,g.Z)((0,g.Z)({},K),{},{className:m()(U,_),children:(0,n.jsx)("a",{style:E,children:H||(0,n.jsx)(W,{})})}))};b.Button=f;var A=b},66309:function(F,V,c){"use strict";c.d(V,{Z:function(){return z}});var s=c(67294),g=c(84481),j=c(93967),T=c.n(j),q=c(98787),x=c(69760),I=c(45353),M=c(53124),O=c(6731),W=c(10274),R=c(14747),Z=c(45503),N=c(91945);const v=l=>{const{paddingXXS:U,lineWidth:K,tagPaddingHorizontal:C,componentCls:y,calc:k}=l,G=k(C).sub(K).equal(),Q=k(U).sub(K).equal();return{[y]:Object.assign(Object.assign({},(0,R.Wf)(l)),{display:"inline-block",height:"auto",marginInlineEnd:l.marginXS,paddingInline:G,fontSize:l.tagFontSize,lineHeight:l.tagLineHeight,whiteSpace:"nowrap",background:l.defaultBg,border:`${(0,O.bf)(l.lineWidth)} ${l.lineType} ${l.colorBorder}`,borderRadius:l.borderRadiusSM,opacity:1,transition:`all ${l.motionDurationMid}`,textAlign:"start",position:"relative",[`&${y}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:l.defaultColor},[`${y}-close-icon`]:{marginInlineStart:Q,fontSize:l.tagIconSize,color:l.colorTextDescription,cursor:"pointer",transition:`all ${l.motionDurationMid}`,"&:hover":{color:l.colorTextHeading}},[`&${y}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${l.iconCls}-close, ${l.iconCls}-close:hover`]:{color:l.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${y}-checkable-checked):hover`]:{color:l.colorPrimary,backgroundColor:l.colorFillSecondary},"&:active, &-checked":{color:l.colorTextLightSolid},"&-checked":{backgroundColor:l.colorPrimary,"&:hover":{backgroundColor:l.colorPrimaryHover}},"&:active":{backgroundColor:l.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${l.iconCls} + span, > span + ${l.iconCls}`]:{marginInlineStart:G}}),[`${y}-borderless`]:{borderColor:"transparent",background:l.tagBorderlessBg}}},D=l=>{const{lineWidth:U,fontSizeIcon:K,calc:C}=l,y=l.fontSizeSM;return(0,Z.TS)(l,{tagFontSize:y,tagLineHeight:(0,O.bf)(C(l.lineHeightSM).mul(y).equal()),tagIconSize:C(K).sub(C(U).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:l.defaultBg})},m=l=>({defaultBg:new W.C(l.colorFillQuaternary).onBackground(l.colorBgContainer).toHexString(),defaultColor:l.colorText});var n=(0,N.I$)("Tag",l=>{const U=D(l);return v(U)},m),d=function(l,U){var K={};for(var C in l)Object.prototype.hasOwnProperty.call(l,C)&&U.indexOf(C)<0&&(K[C]=l[C]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,C=Object.getOwnPropertySymbols(l);y{const{prefixCls:K,style:C,className:y,checked:k,onChange:G,onClick:Q}=l,X=d(l,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:te,tag:J}=s.useContext(M.E_),se=fe=>{G==null||G(!k),Q==null||Q(fe)},ae=te("tag",K),[ne,ie,re]=n(ae),Y=T()(ae,`${ae}-checkable`,{[`${ae}-checkable-checked`]:k},J==null?void 0:J.className,y,ie,re);return ne(s.createElement("span",Object.assign({},X,{ref:U,style:Object.assign(Object.assign({},C),J==null?void 0:J.style),className:Y,onClick:se})))}),A=c(98719);const h=l=>(0,A.Z)(l,(U,K)=>{let{textColor:C,lightBorderColor:y,lightColor:k,darkColor:G}=K;return{[`${l.componentCls}${l.componentCls}-${U}`]:{color:C,background:k,borderColor:y,"&-inverse":{color:l.colorTextLightSolid,background:G,borderColor:G},[`&${l.componentCls}-borderless`]:{borderColor:"transparent"}}}});var w=(0,N.bk)(["Tag","preset"],l=>{const U=D(l);return h(U)},m);function _(l){return typeof l!="string"?l:l.charAt(0).toUpperCase()+l.slice(1)}const E=(l,U,K)=>{const C=_(K);return{[`${l.componentCls}${l.componentCls}-${U}`]:{color:l[`color${K}`],background:l[`color${C}Bg`],borderColor:l[`color${C}Border`],[`&${l.componentCls}-borderless`]:{borderColor:"transparent"}}}};var o=(0,N.bk)(["Tag","status"],l=>{const U=D(l);return[E(U,"success","Success"),E(U,"processing","Info"),E(U,"error","Error"),E(U,"warning","Warning")]},m),p=function(l,U){var K={};for(var C in l)Object.prototype.hasOwnProperty.call(l,C)&&U.indexOf(C)<0&&(K[C]=l[C]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,C=Object.getOwnPropertySymbols(l);y{const{prefixCls:K,className:C,rootClassName:y,style:k,children:G,icon:Q,color:X,onClose:te,closeIcon:J,closable:se,bordered:ae=!0}=l,ne=p(l,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:ie,direction:re,tag:Y}=s.useContext(M.E_),[fe,de]=s.useState(!0);s.useEffect(()=>{"visible"in ne&&de(ne.visible)},[ne.visible]);const Pe=(0,q.o2)(X),ce=(0,q.yT)(X),le=Pe||ce,Le=Object.assign(Object.assign({backgroundColor:X&&!le?X:void 0},Y==null?void 0:Y.style),k),pe=ie("tag",K),[We,Fe,Me]=n(pe),be=T()(pe,Y==null?void 0:Y.className,{[`${pe}-${X}`]:le,[`${pe}-has-color`]:X&&!le,[`${pe}-hidden`]:!fe,[`${pe}-rtl`]:re==="rtl",[`${pe}-borderless`]:!ae},C,y,Fe,Me),we=ve=>{ve.stopPropagation(),te==null||te(ve),!ve.defaultPrevented&&de(!1)},[,Ae]=(0,x.Z)({closable:se,closeIcon:J!=null?J:Y==null?void 0:Y.closeIcon,customCloseIconRender:ve=>ve===null?s.createElement(g.Z,{className:`${pe}-close-icon`,onClick:we}):s.createElement("span",{className:`${pe}-close-icon`,onClick:we},ve),defaultCloseIcon:null,defaultClosable:!1}),Ne=typeof ne.onClick=="function"||G&&G.type==="a",xe=Q||null,Ce=xe?s.createElement(s.Fragment,null,xe,G&&s.createElement("span",null,G)):G,De=s.createElement("span",Object.assign({},ne,{ref:U,className:be,style:Le}),Ce,Ae,Pe&&s.createElement(w,{key:"preset",prefixCls:pe}),ce&&s.createElement(o,{key:"status",prefixCls:pe}));return We(Ne?s.createElement(I.Z,{component:"Tag"},De):De)},H=s.forwardRef(B);H.CheckableTag=b;var z=H},21924:function(F,V,c){"use strict";var s=c(40210),g=c(55559),j=g(s("String.prototype.indexOf"));F.exports=function(q,x){var I=s(q,!!x);return typeof I=="function"&&j(q,".prototype.")>-1?g(I):I}},55559:function(F,V,c){"use strict";var s=c(58612),g=c(40210),j=c(62490),T=c(14453),q=g("%Function.prototype.apply%"),x=g("%Function.prototype.call%"),I=g("%Reflect.apply%",!0)||s.call(x,q),M=c(24429),O=g("%Math.max%");F.exports=function(Z){if(typeof Z!="function")throw new T("a function is required");var N=I(s,x,arguments);return j(N,1+O(0,Z.length-(arguments.length-1)),!0)};var W=function(){return I(s,q,arguments)};M?M(F.exports,"apply",{value:W}):F.exports.apply=W},12296:function(F,V,c){"use strict";var s=c(24429),g=c(33464),j=c(14453),T=c(27296);F.exports=function(x,I,M){if(!x||typeof x!="object"&&typeof x!="function")throw new j("`obj` must be an object or a function`");if(typeof I!="string"&&typeof I!="symbol")throw new j("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new j("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new j("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new j("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new j("`loose`, if provided, must be a boolean");var O=arguments.length>3?arguments[3]:null,W=arguments.length>4?arguments[4]:null,R=arguments.length>5?arguments[5]:null,Z=arguments.length>6?arguments[6]:!1,N=!!T&&T(x,I);if(s)s(x,I,{configurable:R===null&&N?N.configurable:!R,enumerable:O===null&&N?N.enumerable:!O,value:M,writable:W===null&&N?N.writable:!W});else if(Z||!O&&!W&&!R)x[I]=M;else throw new g("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},24429:function(F,V,c){"use strict";var s=c(40210),g=s("%Object.defineProperty%",!0)||!1;if(g)try{g({},"a",{value:1})}catch(j){g=!1}F.exports=g},53981:function(F){"use strict";F.exports=EvalError},81648:function(F){"use strict";F.exports=Error},24726:function(F){"use strict";F.exports=RangeError},26712:function(F){"use strict";F.exports=ReferenceError},33464:function(F){"use strict";F.exports=SyntaxError},14453:function(F){"use strict";F.exports=TypeError},43915:function(F){"use strict";F.exports=URIError},17648:function(F){"use strict";var V="Function.prototype.bind called on incompatible ",c=Object.prototype.toString,s=Math.max,g="[object Function]",j=function(I,M){for(var O=[],W=0;W1&&typeof k!="boolean")throw new I('"allowMissing" argument must be a boolean');if(H(/^%?[^%]*%?$/,y)===null)throw new x("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G=U(y),Q=G.length>0?G[0]:"",X=K("%"+Q+"%",k),te=X.name,J=X.value,se=!1,ae=X.alias;ae&&(Q=ae[0],o(G,E([0,1],ae)));for(var ne=1,ie=!0;ne=G.length){var de=R(J,re);ie=!!de,ie&&"get"in de&&!("originalValue"in de.get)?J=de.get:J=J[re]}else ie=_(J,re),J=J[re];ie&&!se&&(f[te]=J)}}return J}},27296:function(F,V,c){"use strict";var s=c(40210),g=s("%Object.getOwnPropertyDescriptor%",!0);if(g)try{g([],"length")}catch(j){g=null}F.exports=g},31044:function(F,V,c){"use strict";var s=c(24429),g=function(){return!!s};g.hasArrayLengthDefineBug=function(){if(!s)return null;try{return s([],"length",{value:1}).length!==1}catch(T){return!0}},F.exports=g},28185:function(F){"use strict";var V={__proto__:null,foo:{}},c=Object;F.exports=function(){return{__proto__:V}.foo===V.foo&&!(V instanceof c)}},41405:function(F,V,c){"use strict";var s=typeof Symbol!="undefined"&&Symbol,g=c(55419);F.exports=function(){return typeof s!="function"||typeof Symbol!="function"||typeof s("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:g()}},55419:function(F){"use strict";F.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var c={},s=Symbol("test"),g=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(g)!=="[object Symbol]")return!1;var j=42;c[s]=j;for(s in c)return!1;if(typeof Object.keys=="function"&&Object.keys(c).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(c).length!==0)return!1;var T=Object.getOwnPropertySymbols(c);if(T.length!==1||T[0]!==s||!Object.prototype.propertyIsEnumerable.call(c,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var q=Object.getOwnPropertyDescriptor(c,s);if(q.value!==j||q.enumerable!==!0)return!1}return!0}},48824:function(F,V,c){"use strict";var s=Function.prototype.call,g=Object.prototype.hasOwnProperty,j=c(58612);F.exports=j.call(s,g)},94301:function(F,V,c){c(57147),F.exports=self.fetch.bind(self)},70631:function(F,V,c){var s=typeof Map=="function"&&Map.prototype,g=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,j=s&&g&&typeof g.get=="function"?g.get:null,T=s&&Map.prototype.forEach,q=typeof Set=="function"&&Set.prototype,x=Object.getOwnPropertyDescriptor&&q?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,I=q&&x&&typeof x.get=="function"?x.get:null,M=q&&Set.prototype.forEach,O=typeof WeakMap=="function"&&WeakMap.prototype,W=O?WeakMap.prototype.has:null,R=typeof WeakSet=="function"&&WeakSet.prototype,Z=R?WeakSet.prototype.has:null,N=typeof WeakRef=="function"&&WeakRef.prototype,v=N?WeakRef.prototype.deref:null,D=Boolean.prototype.valueOf,m=Object.prototype.toString,n=Function.prototype.toString,d=String.prototype.match,f=String.prototype.slice,b=String.prototype.replace,A=String.prototype.toUpperCase,h=String.prototype.toLowerCase,w=RegExp.prototype.test,_=Array.prototype.concat,E=Array.prototype.join,o=Array.prototype.slice,p=Math.floor,B=typeof BigInt=="function"?BigInt.prototype.valueOf:null,H=Object.getOwnPropertySymbols,z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,l=typeof Symbol=="function"&&typeof Symbol.iterator=="object",U=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===l||"symbol")?Symbol.toStringTag:null,K=Object.prototype.propertyIsEnumerable,C=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function y(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var S=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var P=e<0?-p(-e):p(e);if(P!==e){var L=String(P),$=f.call(t,L.length+1);return b.call(L,S,"$&_")+"."+b.call(b.call($,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,S,"$&_")}var k=c(24654),G=k.custom,Q=fe(G)?G:null;F.exports=function e(t,S,P,L){var $=S||{};if(ce($,"quoteStyle")&&$.quoteStyle!=="single"&&$.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ce($,"maxStringLength")&&(typeof $.maxStringLength=="number"?$.maxStringLength<0&&$.maxStringLength!==1/0:$.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ee=ce($,"customInspect")?$.customInspect:!0;if(typeof ee!="boolean"&&ee!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ce($,"indent")&&$.indent!==null&&$.indent!==" "&&!(parseInt($.indent,10)===$.indent&&$.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ce($,"numericSeparator")&&typeof $.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ye=$.numericSeparator;if(typeof t=="undefined")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Ne(t,$);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var oe=String(t);return ye?y(t,oe):oe}if(typeof t=="bigint"){var me=String(t)+"n";return ye?y(t,me):me}var Se=typeof $.depth=="undefined"?5:$.depth;if(typeof P=="undefined"&&(P=0),P>=Se&&Se>0&&typeof t=="object")return J(t)?"[Array]":"[Object]";var ge=u($,P);if(typeof L=="undefined")L=[];else if(pe(L,t)>=0)return"[Circular]";function ue(je,_e,Je){if(_e&&(L=o.call(L),L.push(_e)),Je){var Ve={depth:$.depth};return ce($,"quoteStyle")&&(Ve.quoteStyle=$.quoteStyle),e(je,Ve,P+1,L)}return e(je,$,P+1,L)}if(typeof t=="function"&&!ae(t)){var Be=Le(t),he=i(t,ue);return"[Function"+(Be?": "+Be:" (anonymous)")+"]"+(he.length>0?" { "+E.call(he,", ")+" }":"")}if(fe(t)){var qe=l?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):z.call(t);return typeof t=="object"&&!l?Ce(qe):qe}if(Ae(t)){for(var Ie="<"+h.call(String(t.nodeName)),He=t.attributes||[],Te=0;Te",Ie}if(J(t)){if(t.length===0)return"[]";var ze=i(t,ue);return ge&&!r(ze)?"["+a(ze,ge)+"]":"[ "+E.call(ze,", ")+" ]"}if(ne(t)){var Ue=i(t,ue);return!("cause"in Error.prototype)&&"cause"in t&&!K.call(t,"cause")?"{ ["+String(t)+"] "+E.call(_.call("[cause]: "+ue(t.cause),Ue),", ")+" }":Ue.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(Ue,", ")+" }"}if(typeof t=="object"&&ee){if(Q&&typeof t[Q]=="function"&&k)return k(t,{depth:Se-P});if(ee!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(We(t)){var Re=[];return T&&T.call(t,function(je,_e){Re.push(ue(_e,t,!0)+" => "+ue(je,t))}),ve("Map",j.call(t),Re,ge)}if(be(t)){var $e=[];return M&&M.call(t,function(je){$e.push(ue(je,t))}),ve("Set",I.call(t),$e,ge)}if(Fe(t))return De("WeakMap");if(we(t))return De("WeakSet");if(Me(t))return De("WeakRef");if(re(t))return Ce(ue(Number(t)));if(de(t))return Ce(ue(B.call(t)));if(Y(t))return Ce(D.call(t));if(ie(t))return Ce(ue(String(t)));if(typeof window!="undefined"&&t===window)return"{ [object Window] }";if(t===c.g)return"{ [object globalThis] }";if(!se(t)&&!ae(t)){var Oe=i(t,ue),Ee=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,Ge=t instanceof Object?"":"null prototype",Ke=!Ee&&U&&Object(t)===t&&U in t?f.call(le(t),8,-1):Ge?"Object":"",Ze=Ee||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",ke=Ze+(Ke||Ge?"["+E.call(_.call([],Ke||[],Ge||[]),": ")+"] ":"");return Oe.length===0?ke+"{}":ge?ke+"{"+a(Oe,ge)+"}":ke+"{ "+E.call(Oe,", ")+" }"}return String(t)};function X(e,t,S){var P=(S.quoteStyle||t)==="double"?'"':"'";return P+e+P}function te(e){return b.call(String(e),/"/g,""")}function J(e){return le(e)==="[object Array]"&&(!U||!(typeof e=="object"&&U in e))}function se(e){return le(e)==="[object Date]"&&(!U||!(typeof e=="object"&&U in e))}function ae(e){return le(e)==="[object RegExp]"&&(!U||!(typeof e=="object"&&U in e))}function ne(e){return le(e)==="[object Error]"&&(!U||!(typeof e=="object"&&U in e))}function ie(e){return le(e)==="[object String]"&&(!U||!(typeof e=="object"&&U in e))}function re(e){return le(e)==="[object Number]"&&(!U||!(typeof e=="object"&&U in e))}function Y(e){return le(e)==="[object Boolean]"&&(!U||!(typeof e=="object"&&U in e))}function fe(e){if(l)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!z)return!1;try{return z.call(e),!0}catch(t){}return!1}function de(e){if(!e||typeof e!="object"||!B)return!1;try{return B.call(e),!0}catch(t){}return!1}var Pe=Object.prototype.hasOwnProperty||function(e){return e in this};function ce(e,t){return Pe.call(e,t)}function le(e){return m.call(e)}function Le(e){if(e.name)return e.name;var t=d.call(n.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function pe(e,t){if(e.indexOf)return e.indexOf(t);for(var S=0,P=e.length;St.maxStringLength){var S=e.length-t.maxStringLength,P="... "+S+" more character"+(S>1?"s":"");return Ne(f.call(e,0,t.maxStringLength),t)+P}var L=b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,xe);return X(L,"single",t)}function xe(e){var t=e.charCodeAt(0),S={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return S?"\\"+S:"\\x"+(t<16?"0":"")+A.call(t.toString(16))}function Ce(e){return"Object("+e+")"}function De(e){return e+" { ? }"}function ve(e,t,S,P){var L=P?a(S,P):E.call(S,", ");return e+" ("+t+") {"+L+"}"}function r(e){for(var t=0;t=0)return!1;return!0}function u(e,t){var S;if(e.indent===" ")S=" ";else if(typeof e.indent=="number"&&e.indent>0)S=E.call(Array(e.indent+1)," ");else return null;return{base:S,prev:E.call(Array(t+1),S)}}function a(e,t){if(e.length===0)return"";var S=` +`+t.prev+t.base;return S+E.call(e,","+S)+` +`+t.prev}function i(e,t){var S=J(e),P=[];if(S){P.length=e.length;for(var L=0;L-1?N.split(","):N},I="utf8=%26%2310003%3B",M="utf8=%E2%9C%93",O=function(v,D){var m={__proto__:null},n=D.ignoreQueryPrefix?v.replace(/^\?/,""):v,d=D.parameterLimit===1/0?void 0:D.parameterLimit,f=n.split(D.delimiter,d),b=-1,A,h=D.charset;if(D.charsetSentinel)for(A=0;A-1&&(p=j(p)?[p]:p);var B=g.call(m,o);B&&D.duplicates==="combine"?m[o]=s.combine(m[o],p):(!B||D.duplicates==="last")&&(m[o]=p)}return m},W=function(N,v,D,m){for(var n=m?v:x(v,D),d=N.length-1;d>=0;--d){var f,b=N[d];if(b==="[]"&&D.parseArrays)f=D.allowEmptyArrays&&n===""?[]:[].concat(n);else{f=D.plainObjects?Object.create(null):{};var A=b.charAt(0)==="["&&b.charAt(b.length-1)==="]"?b.slice(1,-1):b,h=D.decodeDotInKeys?A.replace(/%2E/g,"."):A,w=parseInt(h,10);!D.parseArrays&&h===""?f={0:n}:!isNaN(w)&&b!==h&&String(w)===h&&w>=0&&D.parseArrays&&w<=D.arrayLimit?(f=[],f[w]=n):h!=="__proto__"&&(f[h]=n)}n=f}return n},R=function(v,D,m,n){if(v){var d=m.allowDots?v.replace(/\.([^.[]+)/g,"[$1]"):v,f=/(\[[^[\]]*])/,b=/(\[[^[\]]*])/g,A=m.depth>0&&f.exec(d),h=A?d.slice(0,A.index):d,w=[];if(h){if(!m.plainObjects&&g.call(Object.prototype,h)&&!m.allowPrototypes)return;w.push(h)}for(var _=0;m.depth>0&&(A=b.exec(d))!==null&&_0?y.join(",")||null:void 0}];else if(x(o))se=o;else{var ae=Object.keys(y);se=p?ae.sort(p):ae}var ne=_?d.replace(/\./g,"%2E"):d,ie=b&&x(y)&&y.length===1?ne+"[]":ne;if(A&&x(y)&&y.length===0)return ie+"[]";for(var re=0;re0?H+B:""}},12769:function(F,V,c){"use strict";var s=c(55798),g=Object.prototype.hasOwnProperty,j=Array.isArray,T=function(){for(var m=[],n=0;n<256;++n)m.push("%"+((n<16?"0":"")+n.toString(16)).toUpperCase());return m}(),q=function(n){for(;n.length>1;){var d=n.pop(),f=d.obj[d.prop];if(j(f)){for(var b=[],A=0;A=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122||A===s.RFC1738&&(E===40||E===41)){w+=h.charAt(_);continue}if(E<128){w=w+T[E];continue}if(E<2048){w=w+(T[192|E>>6]+T[128|E&63]);continue}if(E<55296||E>=57344){w=w+(T[224|E>>12]+T[128|E>>6&63]+T[128|E&63]);continue}_+=1,E=65536+((E&1023)<<10|h.charCodeAt(_)&1023),w+=T[240|E>>18]+T[128|E>>12&63]+T[128|E>>6&63]+T[128|E&63]}return w},R=function(n){for(var d=[{obj:{o:n},prop:"o"}],f=[],b=0;b4294967295||x(O)!==O)throw new q("`length` must be a positive 32-bit integer");var W=arguments.length>2&&!!arguments[2],R=!0,Z=!0;if("length"in M&&T){var N=T(M,"length");N&&!N.configurable&&(R=!1),N&&!N.writable&&(Z=!1)}return(R||Z||!W)&&(j?g(M,"length",O,!0,!0):g(M,"length",O)),M}},37478:function(F,V,c){"use strict";var s=c(40210),g=c(21924),j=c(70631),T=c(14453),q=s("%WeakMap%",!0),x=s("%Map%",!0),I=g("WeakMap.prototype.get",!0),M=g("WeakMap.prototype.set",!0),O=g("WeakMap.prototype.has",!0),W=g("Map.prototype.get",!0),R=g("Map.prototype.set",!0),Z=g("Map.prototype.has",!0),N=function(n,d){for(var f=n,b;(b=f.next)!==null;f=b)if(b.key===d)return f.next=b.next,b.next=n.next,n.next=b,b},v=function(n,d){var f=N(n,d);return f&&f.value},D=function(n,d,f){var b=N(n,d);b?b.value=f:n.next={key:d,next:n.next,value:f}},m=function(n,d){return!!N(n,d)};F.exports=function(){var d,f,b,A={assert:function(h){if(!A.has(h))throw new T("Side channel does not contain "+j(h))},get:function(h){if(q&&h&&(typeof h=="object"||typeof h=="function")){if(d)return I(d,h)}else if(x){if(f)return W(f,h)}else if(b)return v(b,h)},has:function(h){if(q&&h&&(typeof h=="object"||typeof h=="function")){if(d)return O(d,h)}else if(x){if(f)return Z(f,h)}else if(b)return m(b,h);return!1},set:function(h,w){q&&h&&(typeof h=="object"||typeof h=="function")?(d||(d=new q),M(d,h,w)):x?(f||(f=new x),R(f,h,w)):(b||(b={key:{},next:null}),D(b,h,w))}};return A}},11238:function(F,V,c){"use strict";var s=c(80129),g=c.n(s),j=c(94301),T=c.n(j),q=c(34155);function x(r,u){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);u&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),a.push.apply(a,i)}return a}function I(r){for(var u=1;ur.length)&&(u=r.length);for(var a=0,i=new Array(u);a1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},e=!1,t=!1,S=!1;if(typeof i=="number"?(e=!0,t=!1):M(i)==="object"&&i&&(t=i.global||!1,e=i.core||!1,S=i.defaultInstance||!1),t){r.globalMiddlewares.splice(r.globalMiddlewares.length-r.defaultGlobalMiddlewaresLength,0,a);return}if(e){r.coreMiddlewares.splice(r.coreMiddlewares.length-r.defaultCoreMiddlewaresLength,0,a);return}if(S){this.defaultMiddlewares.push(a);return}this.middlewares.push(a)}},{key:"execute",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=H([].concat(w(this.middlewares),w(this.defaultMiddlewares),w(r.globalMiddlewares),w(r.coreMiddlewares)));return i(a)}}]),r}();z.globalMiddlewares=[],z.defaultGlobalMiddlewaresLength=0,z.coreMiddlewares=[],z.defaultCoreMiddlewaresLength=0;var l=function(){function r(u){O(this,r),this.cache=new Map,this.timer={},this.extendOptions(u)}return R(r,[{key:"extendOptions",value:function(a){this.maxCache=a.maxCache||0}},{key:"get",value:function(a){return this.cache.get(JSON.stringify(a))}},{key:"set",value:function(a,i){var e=this,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var S=w(this.cache.keys())[0];this.cache.delete(S),this.timer[S]&&clearTimeout(this.timer[S])}var P=JSON.stringify(a);this.cache.set(P,i),t>0&&(this.timer[P]=setTimeout(function(){e.cache.delete(P),delete e.timer[P]},t))}},{key:"delete",value:function(a){var i=JSON.stringify(a);return delete this.timer[i],this.cache.delete(i)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),r}(),U=function(r){N(a,r);var u=h(a);function a(i,e){var t,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return O(this,a),t=u.call(this,i),t.name="RequestError",t.request=e,t.type=S,t}return a}(f(Error)),K=function(r){N(a,r);var u=h(a);function a(i,e,t,S){var P,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return O(this,a),P=u.call(this,e||i.statusText),P.name="ResponseError",P.data=t,P.response=i,P.request=S,P.type=L,P}return a}(f(Error));function C(r){return new Promise(function(u,a){var i=new FileReader;i.onload=function(){u(i.result)},i.onerror=a,i.readAsText(r,"GBK")})}function y(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(r)}catch(e){if(u)throw new K(a,"JSON.parse fail",r,i,"ParseError")}return r}function k(r,u,a){return new Promise(function(i,e){setTimeout(function(){e(new U(u||"timeout of ".concat(r,"ms exceeded"),a,"Timeout"))},r)})}function G(r){return new Promise(function(u,a){r.cancelToken&&r.cancelToken.promise.then(function(i){a(i)})})}var Q=Object.prototype.toString;function X(){var r;return typeof q!="undefined"&&Q.call(q)==="[object process]"&&(r="NODE"),typeof XMLHttpRequest!="undefined"&&(r="BROWSER"),r}function te(r){return M(r)==="object"&&Object.prototype.toString.call(r)==="[object Array]"}function J(r){return typeof URLSearchParams!="undefined"&&r instanceof URLSearchParams}function se(r){return M(r)==="object"&&Object.prototype.toString.call(r)==="[object Date]"}function ae(r){return r!==null&&M(r)==="object"}function ne(r,u){if(r)if(M(r)!=="object"&&(r=[r]),te(r))for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},i=a.prefix,e=a.suffix;return i&&(u="".concat(i).concat(u)),e&&(u="".concat(u).concat(e)),{url:u,options:a}},de=!1;function Pe(r,u){var a=u.method,i=a===void 0?"get":a;return i.toLowerCase()==="get"}function ce(r,u){if(!r)return u();var a=r.req;a=a===void 0?{}:a;var i=a.options,e=i===void 0?{}:i,t=a.url,S=t===void 0?"":t,P=r.cache,L=r.responseInterceptors,$=e.timeout,ee=$===void 0?0:$,ye=e.timeoutMessage,oe=e.__umiRequestCoreType__,me=oe===void 0?"normal":oe,Se=e.useCache,ge=Se===void 0?!1:Se,ue=e.method,Be=ue===void 0?"get":ue,he=e.params,qe=e.ttl,Ie=e.validateCache,He=Ie===void 0?Pe:Ie;if(me!=="normal")return u();var Te=fetch;if(!Te)throw new Error("Global fetch not exist!");var ze=X()==="BROWSER",Ue=He(S,e)&&ge&&ze;if(Ue){var Re=P.get({url:S,params:he,method:Be});if(Re)return Re=Re.clone(),Re.useCache=!0,r.res=Re,u()}var $e;return ee>0?$e=Promise.race([G(e),Te(S,e),k(ee,ye,r.req)]):$e=Promise.race([G(e),Te(S,e)]),L.forEach(function(Oe){$e=$e.then(function(Ee){var Ge=typeof Ee.clone=="function"?Ee.clone():Ee;return Oe(Ge,e)})}),$e.then(function(Oe){if(Ue&&Oe.status===200){var Ee=Oe.clone();Ee.useCache=!0,P.set({url:S,params:he,method:Be},Ee,qe)}return r.res=Oe,u()})}function le(r,u){var a;return u().then(function(){if(r){var i=r.res,e=i===void 0?{}:i,t=r.req,S=t===void 0?{}:t,P=S||{},L=P.options;L=L===void 0?{}:L;var $=L.responseType,ee=$===void 0?"json":$,ye=L.charset,oe=ye===void 0?"utf8":ye,me=L.getResponse,Se=L.throwErrIfParseFail,ge=Se===void 0?!1:Se,ue=L.parseResponse,Be=ue===void 0?!0:ue;if(Be&&!(!e||!e.clone)){if(a=X()==="BROWSER"?e.clone():e,a.useCache=e.useCache||!1,oe==="gbk")try{return e.blob().then(C).then(function(he){return y(he,!1,a,S)})}catch(he){throw new K(a,he.message,null,S,"ParseError")}else if(ee==="json")return e.text().then(function(he){return y(he,ge,a,S)});try{return e[ee]()}catch(he){throw new K(a,"responseType not support",null,S,"ParseError")}}}}).then(function(i){if(r){var e=r.res,t=r.req,S=t===void 0?{}:t,P=S||{},L=P.options;L=L===void 0?{}:L;var $=L.getResponse,ee=$===void 0?!1:$;if(a){if(a.status>=200&&a.status<300){if(ee){r.res={data:i,response:a};return}r.res=i;return}throw new K(a,"http error",i,S,"HttpError")}}}).catch(function(i){if(i instanceof U||i instanceof K)throw i;var e=r.req,t=r.res;throw i.request=i.request||e,i.response=i.response||t,i.type=i.type||i.name,i.data=i.data||void 0,i})}function Le(r,u){if(!r)return u();var a=r.req;a=a===void 0?{}:a;var i=a.options,e=i===void 0?{}:i,t=e.method,S=t===void 0?"get":t;if(["post","put","patch","delete"].indexOf(S.toLowerCase())===-1)return u();var P=e.requestType,L=P===void 0?"json":P,$=e.data;if($){var ee=Object.prototype.toString.call($);ee==="[object Object]"||ee==="[object Array]"?L==="json"?(e.headers=I({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},e.headers),e.body=JSON.stringify($)):L==="form"&&(e.headers=I({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},e.headers),e.body=re($)):(e.headers=I({Accept:"application/json"},e.headers),e.body=$)}return r.req.options=e,u()}function pe(r,u){var a,i;if(r)if(u)a=u(r);else if(J(r))a=r.toString();else if(te(r))i=[],ne(r,function(t){t===null||typeof t=="undefined"?i.push(t):i.push(ae(t)?JSON.stringify(t):t)}),a=re(i);else{i={},ne(r,function(t,S){var P=t;t===null||typeof t=="undefined"?i[S]=t:se(t)?P=t.toISOString():te(t)?P=t:ae(t)&&(P=JSON.stringify(t)),i[S]=P});var e=re(i);a=e}return a}function We(r,u){if(!r)return u();var a=r.req;a=a===void 0?{}:a;var i=a.options,e=i===void 0?{}:i,t=e.paramsSerializer,S=e.params,P=r.req;P=P===void 0?{}:P;var L=P.url,$=L===void 0?"":L;e.method=e.method?e.method.toUpperCase():"GET",e.credentials=e.credentials||"same-origin";var ee=pe(S,t);if(r.req.originUrl=$,ee){var ye=$.indexOf("?")!==-1?"&":"?";r.req.url="".concat($).concat(ye).concat(ee)}return r.req.options=e,u()}var Fe=[Le,We,le],Me=[ce];z.globalMiddlewares=Fe,z.defaultGlobalMiddlewaresLength=Fe.length,z.coreMiddlewares=Me,z.defaultCoreMiddlewaresLength=Me.length;var be=function(){function r(u){O(this,r),this.onion=new z([]),this.fetchIndex=0,this.mapCache=new l(u),this.initOptions=u,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return R(r,[{key:"use",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(a,i),this}},{key:"extendOptions",value:function(a){this.initOptions=Y(this.initOptions,a),this.mapCache.extendOptions(a)}},{key:"dealRequestInterceptors",value:function(a){var i=function(S,P){return S.then(function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return a.req.url=L.url||a.req.url,a.req.options=L.options||a.req.options,P(a.req.url,a.req.options)})},e=[].concat(w(r.requestInterceptors),w(this.instanceRequestInterceptors));return e.reduce(i,Promise.resolve()).then(function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return a.req.url=t.url||a.req.url,a.req.options=t.options||a.req.options,Promise.resolve()})}},{key:"request",value:function(a,i){var e=this,t=this.onion,S={req:{url:a,options:I(I({},i),{},{url:a})},res:null,cache:this.mapCache,responseInterceptors:[].concat(w(r.responseInterceptors),w(this.instanceResponseInterceptors))};if(typeof a!="string")throw new Error("url MUST be a string");return new Promise(function(P,L){e.dealRequestInterceptors(S).then(function(){return t.execute(S)}).then(function(){P(S.res)}).catch(function($){var ee=S.req.options.errorHandler;if(ee)try{var ye=ee($);P(ye)}catch(oe){L(oe)}else L($)})})}}],[{key:"requestUse",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof a!="function")throw new TypeError("Interceptor must be function!");i.global?r.requestInterceptors.push(a):this.instanceRequestInterceptors.push(a)}},{key:"responseUse",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof a!="function")throw new TypeError("Interceptor must be function!");i.global?r.responseInterceptors.push(a):this.instanceResponseInterceptors.push(a)}}]),r}();be.requestInterceptors=[fe],be.responseInterceptors=[];function we(r){this.message=r}we.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"},we.prototype.__CANCEL__=!0;function Ae(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var u;this.promise=new Promise(function(e){u=e});var a=this;r(function(e){a.reason||(a.reason=new we(e),u(a.reason))})}Ae.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Ae.source=function(){var u,a=new Ae(function(e){u=e});return{token:a,cancel:u}};function Ne(r){return!!(r&&r.__CANCEL__)}var xe=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new be(u),i=function(S){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=Y(a.initOptions,P);return a.request(S,L)};i.use=a.use.bind(a),i.fetchIndex=a.fetchIndex,i.interceptors={request:{use:be.requestUse.bind(a)},response:{use:be.responseUse.bind(a)}};var e=["get","post","delete","put","patch","head","options","rpc"];return e.forEach(function(t){i[t]=function(S,P){return i(S,I(I({},P),{},{method:t}))}}),i.Cancel=we,i.CancelToken=Ae,i.isCancel=Ne,i.extendOptions=a.extendOptions.bind(a),i.middlewares={instance:a.onion.middlewares,defaultInstance:a.onion.defaultMiddlewares,global:z.globalMiddlewares,core:z.coreMiddlewares},i},Ce=function(u){return xe(u)},De=xe({parseResponse:!1}),ve=xe({});V.ZP=ve},57147:function(F,V,c){"use strict";c.r(V),c.d(V,{DOMException:function(){return _},Headers:function(){return O},Request:function(){return f},Response:function(){return h},fetch:function(){return E}});var s=typeof globalThis!="undefined"&&globalThis||typeof self!="undefined"&&self||typeof c.g!="undefined"&&c.g||{},g={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch(o){return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function j(o){return o&&DataView.prototype.isPrototypeOf(o)}if(g.arrayBuffer)var T=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],q=ArrayBuffer.isView||function(o){return o&&T.indexOf(Object.prototype.toString.call(o))>-1};function x(o){if(typeof o!="string"&&(o=String(o)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(o)||o==="")throw new TypeError('Invalid character in header field name: "'+o+'"');return o.toLowerCase()}function I(o){return typeof o!="string"&&(o=String(o)),o}function M(o){var p={next:function(){var B=o.shift();return{done:B===void 0,value:B}}};return g.iterable&&(p[Symbol.iterator]=function(){return p}),p}function O(o){this.map={},o instanceof O?o.forEach(function(p,B){this.append(B,p)},this):Array.isArray(o)?o.forEach(function(p){if(p.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+p.length);this.append(p[0],p[1])},this):o&&Object.getOwnPropertyNames(o).forEach(function(p){this.append(p,o[p])},this)}O.prototype.append=function(o,p){o=x(o),p=I(p);var B=this.map[o];this.map[o]=B?B+", "+p:p},O.prototype.delete=function(o){delete this.map[x(o)]},O.prototype.get=function(o){return o=x(o),this.has(o)?this.map[o]:null},O.prototype.has=function(o){return this.map.hasOwnProperty(x(o))},O.prototype.set=function(o,p){this.map[x(o)]=I(p)},O.prototype.forEach=function(o,p){for(var B in this.map)this.map.hasOwnProperty(B)&&o.call(p,this.map[B],B,this)},O.prototype.keys=function(){var o=[];return this.forEach(function(p,B){o.push(B)}),M(o)},O.prototype.values=function(){var o=[];return this.forEach(function(p){o.push(p)}),M(o)},O.prototype.entries=function(){var o=[];return this.forEach(function(p,B){o.push([B,p])}),M(o)},g.iterable&&(O.prototype[Symbol.iterator]=O.prototype.entries);function W(o){if(!o._noBody){if(o.bodyUsed)return Promise.reject(new TypeError("Already read"));o.bodyUsed=!0}}function R(o){return new Promise(function(p,B){o.onload=function(){p(o.result)},o.onerror=function(){B(o.error)}})}function Z(o){var p=new FileReader,B=R(p);return p.readAsArrayBuffer(o),B}function N(o){var p=new FileReader,B=R(p),H=/charset=([A-Za-z0-9_-]+)/.exec(o.type),z=H?H[1]:"utf-8";return p.readAsText(o,z),B}function v(o){for(var p=new Uint8Array(o),B=new Array(p.length),H=0;H-1?p:o}function f(o,p){if(!(this instanceof f))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');p=p||{};var B=p.body;if(o instanceof f){if(o.bodyUsed)throw new TypeError("Already read");this.url=o.url,this.credentials=o.credentials,p.headers||(this.headers=new O(o.headers)),this.method=o.method,this.mode=o.mode,this.signal=o.signal,!B&&o._bodyInit!=null&&(B=o._bodyInit,o.bodyUsed=!0)}else this.url=String(o);if(this.credentials=p.credentials||this.credentials||"same-origin",(p.headers||!this.headers)&&(this.headers=new O(p.headers)),this.method=d(p.method||this.method||"GET"),this.mode=p.mode||this.mode||null,this.signal=p.signal||this.signal||function(){if("AbortController"in s){var l=new AbortController;return l.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&B)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(B),(this.method==="GET"||this.method==="HEAD")&&(p.cache==="no-store"||p.cache==="no-cache")){var H=/([?&])_=[^&]*/;if(H.test(this.url))this.url=this.url.replace(H,"$1_="+new Date().getTime());else{var z=/\?/;this.url+=(z.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}f.prototype.clone=function(){return new f(this,{body:this._bodyInit})};function b(o){var p=new FormData;return o.trim().split("&").forEach(function(B){if(B){var H=B.split("="),z=H.shift().replace(/\+/g," "),l=H.join("=").replace(/\+/g," ");p.append(decodeURIComponent(z),decodeURIComponent(l))}}),p}function A(o){var p=new O,B=o.replace(/\r?\n[\t ]+/g," ");return B.split("\r").map(function(H){return H.indexOf(` +`)===0?H.substr(1,H.length):H}).forEach(function(H){var z=H.split(":"),l=z.shift().trim();if(l){var U=z.join(":").trim();try{p.append(l,U)}catch(K){console.warn("Response "+K.message)}}}),p}m.call(f.prototype);function h(o,p){if(!(this instanceof h))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(p||(p={}),this.type="default",this.status=p.status===void 0?200:p.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=p.statusText===void 0?"":""+p.statusText,this.headers=new O(p.headers),this.url=p.url||"",this._initBody(o)}m.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new O(this.headers),url:this.url})},h.error=function(){var o=new h(null,{status:200,statusText:""});return o.ok=!1,o.status=0,o.type="error",o};var w=[301,302,303,307,308];h.redirect=function(o,p){if(w.indexOf(p)===-1)throw new RangeError("Invalid status code");return new h(null,{status:p,headers:{location:o}})};var _=s.DOMException;try{new _}catch(o){_=function(p,B){this.message=p,this.name=B;var H=Error(p);this.stack=H.stack},_.prototype=Object.create(Error.prototype),_.prototype.constructor=_}function E(o,p){return new Promise(function(B,H){var z=new f(o,p);if(z.signal&&z.signal.aborted)return H(new _("Aborted","AbortError"));var l=new XMLHttpRequest;function U(){l.abort()}l.onload=function(){var y={statusText:l.statusText,headers:A(l.getAllResponseHeaders()||"")};z.url.indexOf("file://")===0&&(l.status<200||l.status>599)?y.status=200:y.status=l.status,y.url="responseURL"in l?l.responseURL:y.headers.get("X-Request-URL");var k="response"in l?l.response:l.responseText;setTimeout(function(){B(new h(k,y))},0)},l.onerror=function(){setTimeout(function(){H(new TypeError("Network request failed"))},0)},l.ontimeout=function(){setTimeout(function(){H(new TypeError("Network request timed out"))},0)},l.onabort=function(){setTimeout(function(){H(new _("Aborted","AbortError"))},0)};function K(y){try{return y===""&&s.location.href?s.location.href:y}catch(k){return y}}if(l.open(z.method,K(z.url),!0),z.credentials==="include"?l.withCredentials=!0:z.credentials==="omit"&&(l.withCredentials=!1),"responseType"in l&&(g.blob?l.responseType="blob":g.arrayBuffer&&(l.responseType="arraybuffer")),p&&typeof p.headers=="object"&&!(p.headers instanceof O||s.Headers&&p.headers instanceof s.Headers)){var C=[];Object.getOwnPropertyNames(p.headers).forEach(function(y){C.push(x(y)),l.setRequestHeader(y,I(p.headers[y]))}),z.headers.forEach(function(y,k){C.indexOf(k)===-1&&l.setRequestHeader(k,y)})}else z.headers.forEach(function(y,k){l.setRequestHeader(k,y)});z.signal&&(z.signal.addEventListener("abort",U),l.onreadystatechange=function(){l.readyState===4&&z.signal.removeEventListener("abort",U)}),l.send(typeof z._bodyInit=="undefined"?null:z._bodyInit)})}E.polyfill=!0,s.fetch||(s.fetch=E,s.Headers=O,s.Request=f,s.Response=h)}}]); diff --git a/starter/src/main/resources/templates/admin/182.5880b296.async.js b/starter/src/main/resources/templates/admin/182.5880b296.async.js new file mode 100644 index 0000000000..c3638b4a88 --- /dev/null +++ b/starter/src/main/resources/templates/admin/182.5880b296.async.js @@ -0,0 +1,195 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[182],{82947:function(dr,gt){var h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};gt.Z=h},85322:function(dr,gt,h){h.d(gt,{Z:function(){return mt}});var Q=h(1413),le=h(4942),mn=h(71002),Se=h(97685),A=h(91),he=h(87462),d=h(67294),cn=h(50756),Ie=h(93967),Te=h.n(Ie),In=h(86500),En=h(1350),pn=2,wn=.16,Tn=.05,Pe=.05,_e=.15,o=5,Fn=4,Pn=[{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 se(L){var I=L.r,te=L.g,ve=L.b,un=(0,In.py)(I,te,ve);return{h:un.h*360,s:un.s,v:un.v}}function Ce(L){var I=L.r,te=L.g,ve=L.b;return"#".concat((0,In.vq)(I,te,ve,!1))}function Ve(L,I,te){var ve=te/100,un={r:(I.r-L.r)*ve+L.r,g:(I.g-L.g)*ve+L.g,b:(I.b-L.b)*ve+L.b};return un}function Je(L,I,te){var ve;return Math.round(L.h)>=60&&Math.round(L.h)<=240?ve=te?Math.round(L.h)-pn*I:Math.round(L.h)+pn*I:ve=te?Math.round(L.h)+pn*I:Math.round(L.h)-pn*I,ve<0?ve+=360:ve>=360&&(ve-=360),ve}function Me(L,I,te){if(L.h===0&&L.s===0)return L.s;var ve;return te?ve=L.s-wn*I:I===Fn?ve=L.s+wn:ve=L.s+Tn*I,ve>1&&(ve=1),te&&I===o&&ve>.1&&(ve=.1),ve<.06&&(ve=.06),Number(ve.toFixed(2))}function Ue(L,I,te){var ve;return te?ve=L.v+Pe*I:ve=L.v-_e*I,ve>1&&(ve=1),Number(ve.toFixed(2))}function Ee(L){for(var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=[],ve=(0,En.uA)(L),un=o;un>0;un-=1){var Sn=se(ve),Gn=Ce((0,En.uA)({h:Je(Sn,un,!0),s:Me(Sn,un,!0),v:Ue(Sn,un,!0)}));te.push(Gn)}te.push(Ce(ve));for(var Yn=1;Yn<=Fn;Yn+=1){var Qn=se(ve),Pt=Ce((0,En.uA)({h:Je(Qn,Yn),s:Me(Qn,Yn),v:Ue(Qn,Yn)}));te.push(Pt)}return I.theme==="dark"?Pn.map(function(St){var ut=St.index,Nt=St.opacity,Dt=Ce(Ve((0,En.uA)(I.backgroundColor||"#141414"),(0,En.uA)(te[ut]),Nt*100));return Dt}):te}var Xe={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"},E={},Be={};Object.keys(Xe).forEach(function(L){E[L]=Ee(Xe[L]),E[L].primary=E[L][5],Be[L]=Ee(Xe[L],{theme:"dark",backgroundColor:"#141414"}),Be[L].primary=Be[L][5]});var Fe=E.red,Ze=E.volcano,re=E.gold,fe=E.orange,ke=E.yellow,ze=E.lime,tn=E.green,b=E.cyan,An=E.blue,xn=E.geekblue,qn=E.purple,kn=E.magenta,Hn=E.grey,_n=E.grey,ht=(0,d.createContext)({}),Cn=ht,st=h(44958),$t=h(27571),kt=h(80334);function Un(L){return L.replace(/-(.)/g,function(I,te){return te.toUpperCase()})}function ct(L,I){(0,kt.ZP)(L,"[@ant-design/icons] ".concat(I))}function ft(L){return(0,mn.Z)(L)==="object"&&typeof L.name=="string"&&typeof L.theme=="string"&&((0,mn.Z)(L.icon)==="object"||typeof L.icon=="function")}function Xn(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(L).reduce(function(I,te){var ve=L[te];switch(te){case"class":I.className=ve,delete I.class;break;default:delete I[te],I[Un(te)]=ve}return I},{})}function Ct(L,I,te){return te?d.createElement(L.tag,(0,Q.Z)((0,Q.Z)({key:I},Xn(L.attrs)),te),(L.children||[]).map(function(ve,un){return Ct(ve,"".concat(I,"-").concat(L.tag,"-").concat(un))})):d.createElement(L.tag,(0,Q.Z)({key:I},Xn(L.attrs)),(L.children||[]).map(function(ve,un){return Ct(ve,"".concat(I,"-").concat(L.tag,"-").concat(un))}))}function at(L){return Ee(L)[0]}function yt(L){return L?Array.isArray(L)?L:[L]:[]}var Gt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},ur=` +.anticon { + display: inline-flex; + alignItems: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,er=function(I){var te=(0,d.useContext)(Cn),ve=te.csp,un=te.prefixCls,Sn=ur;un&&(Sn=Sn.replace(/anticon/g,un)),(0,d.useEffect)(function(){var Gn=I.current,Yn=(0,$t.A)(Gn);(0,st.hq)(Sn,"@ant-design-icons",{prepend:!0,csp:ve,attachTo:Yn})},[])},vt=["icon","className","onClick","style","primaryColor","secondaryColor"],Yt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Nr(L){var I=L.primaryColor,te=L.secondaryColor;Yt.primaryColor=I,Yt.secondaryColor=te||at(I),Yt.calculated=!!te}function lr(){return(0,Q.Z)({},Yt)}var zt=function(I){var te=I.icon,ve=I.className,un=I.onClick,Sn=I.style,Gn=I.primaryColor,Yn=I.secondaryColor,Qn=(0,A.Z)(I,vt),Pt=d.useRef(),St=Yt;if(Gn&&(St={primaryColor:Gn,secondaryColor:Yn||at(Gn)}),er(Pt),ct(ft(te),"icon should be icon definiton, but got ".concat(te)),!ft(te))return null;var ut=te;return ut&&typeof ut.icon=="function"&&(ut=(0,Q.Z)((0,Q.Z)({},ut),{},{icon:ut.icon(St.primaryColor,St.secondaryColor)})),Ct(ut.icon,"svg-".concat(ut.name),(0,Q.Z)((0,Q.Z)({className:ve,onClick:un,style:Sn,"data-icon":ut.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Qn),{},{ref:Pt}))};zt.displayName="IconReact",zt.getTwoToneColors=lr,zt.setTwoToneColors=Nr;var fr=zt;function $r(L){var I=yt(L),te=(0,Se.Z)(I,2),ve=te[0],un=te[1];return fr.setTwoToneColors({primaryColor:ve,secondaryColor:un})}function Sr(){var L=fr.getTwoToneColors();return L.calculated?[L.primaryColor,L.secondaryColor]:L.primaryColor}var Zr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];$r(An.primary);var nr=d.forwardRef(function(L,I){var te=L.className,ve=L.icon,un=L.spin,Sn=L.rotate,Gn=L.tabIndex,Yn=L.onClick,Qn=L.twoToneColor,Pt=(0,A.Z)(L,Zr),St=d.useContext(Cn),ut=St.prefixCls,Nt=ut===void 0?"anticon":ut,Dt=St.rootClassName,hr=Te()(Dt,Nt,(0,le.Z)((0,le.Z)({},"".concat(Nt,"-").concat(ve.name),!!ve.name),"".concat(Nt,"-spin"),!!un||ve.name==="loading"),te),ir=Gn;ir===void 0&&Yn&&(ir=-1);var Or=Sn?{msTransform:"rotate(".concat(Sn,"deg)"),transform:"rotate(".concat(Sn,"deg)")}:void 0,Ht=yt(Qn),ar=(0,Se.Z)(Ht,2),qr=ar[0],_r=ar[1];return d.createElement("span",(0,he.Z)({role:"img","aria-label":ve.name},Pt,{ref:I,tabIndex:ir,onClick:Yn,className:hr}),d.createElement(fr,{icon:ve,primaryColor:qr,secondaryColor:_r,style:Or}))});nr.displayName="AntdIcon",nr.getTwoToneColor=Sr,nr.setTwoToneColor=$r;var ye=nr,on=function(I,te){return d.createElement(ye,(0,he.Z)({},I,{ref:te,icon:cn.Z}))},nn=d.forwardRef(on),rn=nn,dt=h(48874),Mt=h(28459),Jt=h(48096),We=h(25378),tr=h(97435),Ft=h(21770),Rt=h(98082),At=function(I){var te=I.componentCls,ve=I.antCls;return(0,le.Z)({},"".concat(te,"-actions"),(0,le.Z)((0,le.Z)({marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:I.marginXS,background:I.colorBgContainer,borderBlockStart:"".concat(I.lineWidth,"px ").concat(I.lineType," ").concat(I.colorSplit),minHeight:42},"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:I.colorTextSecondary,transition:"color 0.3s","&:hover":{color:I.colorPrimaryHover}}),"& > li > div",{flex:1,width:"100%",marginBlock:I.marginSM,marginInline:0,color:I.colorTextSecondary,textAlign:"center",a:{color:I.colorTextSecondary,transition:"color 0.3s","&:hover":{color:I.colorPrimaryHover}},div:(0,le.Z)((0,le.Z)({position:"relative",display:"block",minWidth:32,fontSize:I.fontSize,lineHeight:I.lineHeight,cursor:"pointer","&:hover":{color:I.colorPrimaryHover,transition:"color 0.3s"}},"a:not(".concat(ve,`-btn), + > .anticon`),{display:"inline-block",width:"100%",color:I.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:I.colorPrimaryHover}}),".anticon",{fontSize:I.cardActionIconSize,lineHeight:"22px"}),"&:not(:last-child)":{borderInlineEnd:"".concat(I.lineWidth,"px ").concat(I.lineType," ").concat(I.colorSplit)}}))};function vr(L){return(0,Rt.Xj)("ProCardActions",function(I){var te=(0,Q.Z)((0,Q.Z)({},I),{},{componentCls:".".concat(L),cardActionIconSize:16});return[At(te)]})}var an=h(85893),kr=function(I){var te=I.actions,ve=I.prefixCls,un=vr(ve),Sn=un.wrapSSR,Gn=un.hashId;return Array.isArray(te)&&te!==null&&te!==void 0&&te.length?Sn((0,an.jsx)("ul",{className:Te()("".concat(ve,"-actions"),Gn),children:te.map(function(Yn,Qn){return(0,an.jsx)("li",{style:{width:"".concat(100/te.length,"%"),padding:0,margin:0},className:Te()("".concat(ve,"-actions-item"),Gn),children:Yn},"action-".concat(Qn))})})):Sn((0,an.jsx)("ul",{className:Te()("".concat(ve,"-actions"),Gn),children:te}))},Kr=kr,wr=h(71230),rr=h(15746),Qr=h(6731),gr=new Qr.E4("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),fa=function(I){return(0,le.Z)({},I.componentCls,(0,le.Z)((0,le.Z)({"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},"".concat(I.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),"".concat(I.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:I.borderRadius,animationName:gr,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}))};function be(L){return(0,Rt.Xj)("ProCardLoading",function(I){var te=(0,Q.Z)((0,Q.Z)({},I),{},{componentCls:".".concat(L)});return[fa(te)]})}var Ae=function(I){var te=I.style,ve=I.prefix,un=be(ve||"ant-pro-card"),Sn=un.wrapSSR;return Sn((0,an.jsxs)("div",{className:"".concat(ve,"-loading-content"),style:te,children:[(0,an.jsx)(wr.Z,{gutter:8,children:(0,an.jsx)(rr.Z,{span:22,children:(0,an.jsx)("div",{className:"".concat(ve,"-loading-block")})})}),(0,an.jsxs)(wr.Z,{gutter:8,children:[(0,an.jsx)(rr.Z,{span:8,children:(0,an.jsx)("div",{className:"".concat(ve,"-loading-block")})}),(0,an.jsx)(rr.Z,{span:15,children:(0,an.jsx)("div",{className:"".concat(ve,"-loading-block")})})]}),(0,an.jsxs)(wr.Z,{gutter:8,children:[(0,an.jsx)(rr.Z,{span:6,children:(0,an.jsx)("div",{className:"".concat(ve,"-loading-block")})}),(0,an.jsx)(rr.Z,{span:18,children:(0,an.jsx)("div",{className:"".concat(ve,"-loading-block")})})]}),(0,an.jsxs)(wr.Z,{gutter:8,children:[(0,an.jsx)(rr.Z,{span:13,children:(0,an.jsx)("div",{className:"".concat(ve,"-loading-block")})}),(0,an.jsx)(rr.Z,{span:9,children:(0,an.jsx)("div",{className:"".concat(ve,"-loading-block")})})]}),(0,an.jsxs)(wr.Z,{gutter:8,children:[(0,an.jsx)(rr.Z,{span:4,children:(0,an.jsx)("div",{className:"".concat(ve,"-loading-block")})}),(0,an.jsx)(rr.Z,{span:3,children:(0,an.jsx)("div",{className:"".concat(ve,"-loading-block")})}),(0,an.jsx)(rr.Z,{span:16,children:(0,an.jsx)("div",{className:"".concat(ve,"-loading-block")})})]})]}))},Ge=Ae,Z=h(67159),xe=h(50344),Qe=h(34155),en=["tab","children"],U=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function ie(L){return L.filter(function(I){return I})}function ae(L,I,te){if(L)return L.map(function(un){return(0,Q.Z)((0,Q.Z)({},un),{},{children:(0,an.jsx)(gn,(0,Q.Z)((0,Q.Z)({},te==null?void 0:te.cardProps),{},{children:un.children}))})});(0,kt.ET)(!te,"Tabs.TabPane is deprecated. Please use `items` directly.");var ve=(0,xe.Z)(I).map(function(un){if(d.isValidElement(un)){var Sn=un.key,Gn=un.props,Yn=Gn||{},Qn=Yn.tab,Pt=Yn.children,St=(0,A.Z)(Yn,en),ut=(0,Q.Z)((0,Q.Z)({key:String(Sn)},St),{},{children:(0,an.jsx)(gn,(0,Q.Z)((0,Q.Z)({},te==null?void 0:te.cardProps),{},{children:Pt})),label:Qn});return ut}return null});return ie(ve)}var $e=function(I){var te=(0,d.useContext)(Mt.ZP.ConfigContext),ve=te.getPrefixCls;if(Z.Z.startsWith("5"))return(0,an.jsx)(an.Fragment,{});var un=I.key,Sn=I.tab,Gn=I.tabKey,Yn=I.disabled,Qn=I.destroyInactiveTabPane,Pt=I.children,St=I.className,ut=I.style,Nt=I.cardProps,Dt=(0,A.Z)(I,U),hr=ve("pro-card-tabpane"),ir=Te()(hr,St);return(0,an.jsx)(Jt.Z.TabPane,(0,Q.Z)((0,Q.Z)({tabKey:Gn,tab:Sn,className:ir,style:ut,disabled:Yn,destroyInactiveTabPane:Qn},Dt),{},{children:(0,an.jsx)(gn,(0,Q.Z)((0,Q.Z)({},Nt),{},{children:Pt}))}),un)},Ye=$e,dn=function(I){return{backgroundColor:I.controlItemBgActive,borderColor:I.controlOutline}},ln=function(I){var te=I.componentCls;return(0,le.Z)((0,le.Z)((0,le.Z)({},te,(0,Q.Z)((0,Q.Z)({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:I.colorBgContainer,borderRadius:I.borderRadius},Rt.Wf===null||Rt.Wf===void 0?void 0:(0,Rt.Wf)(I)),{},(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)({"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(I.lineWidth,"px ").concat(I.lineType," ").concat(I.colorSplit)},"&-hoverable":(0,le.Z)({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(te,"-checked:hover"),{borderColor:I.controlOutline}),"&-checked":(0,Q.Z)((0,Q.Z)({},dn(I)),{},{"&::after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"6px solid ".concat(I.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":(0,Q.Z)({},dn(I)),"&&-ghost":(0,le.Z)({backgroundColor:"transparent"},"> ".concat(te),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:I.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},"".concat(te,"-body-direction-column"),{flexDirection:"column"}),"".concat(te,"-body-wrap"),{flexWrap:"wrap"}),"&&-collapse",(0,le.Z)({},"> ".concat(te),{"&-header":{paddingBlockEnd:I.padding,borderBlockEnd:0},"&-body":{display:"none"}})),"".concat(te,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:I.paddingLG,paddingBlock:I.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:I.padding},borderBlockEnd:"".concat(I.lineWidth,"px ").concat(I.lineType," ").concat(I.colorSplit)},"&-collapsible":{cursor:"pointer"}}),"".concat(te,"-title"),{color:I.colorText,fontWeight:500,fontSize:I.fontSizeLG,lineHeight:I.lineHeight}),"".concat(te,"-extra"),{color:I.colorText}),"".concat(te,"-type-inner"),(0,le.Z)({},"".concat(te,"-header"),{backgroundColor:I.colorFillAlter})),"".concat(te,"-collapsible-icon"),{marginInlineEnd:I.marginXS,color:I.colorIconHover,":hover":{color:I.colorPrimaryHover},"& svg":{transition:"transform ".concat(I.motionDurationMid)}}),"".concat(te,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:I.paddingLG,paddingBlock:I.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),"&&-size-small",(0,le.Z)((0,le.Z)({},te,{"&-header":{paddingInline:I.paddingSM,paddingBlock:I.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:I.paddingXS}},"&-title":{fontSize:I.fontSize},"&-body":{paddingInline:I.paddingSM,paddingBlock:I.paddingSM}}),"".concat(te,"-header").concat(te,"-header-collapsible"),{paddingBlock:I.paddingXS})))),"".concat(te,"-col"),(0,le.Z)((0,le.Z)({},"&".concat(te,"-split-vertical"),{borderInlineEnd:"".concat(I.lineWidth,"px ").concat(I.lineType," ").concat(I.colorSplit)}),"&".concat(te,"-split-horizontal"),{borderBlockEnd:"".concat(I.lineWidth,"px ").concat(I.lineType," ").concat(I.colorSplit)})),"".concat(te,"-tabs"),(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(I.antCls,"-tabs-top > ").concat(I.antCls,"-tabs-nav"),(0,le.Z)({marginBlockEnd:0},"".concat(I.antCls,"-tabs-nav-list"),{marginBlockStart:I.marginXS,paddingInlineStart:I.padding})),"".concat(I.antCls,"-tabs-bottom > ").concat(I.antCls,"-tabs-nav"),(0,le.Z)({marginBlockEnd:0},"".concat(I.antCls,"-tabs-nav-list"),{paddingInlineStart:I.padding})),"".concat(I.antCls,"-tabs-left"),(0,le.Z)({},"".concat(I.antCls,"-tabs-content-holder"),(0,le.Z)({},"".concat(I.antCls,"-tabs-content"),(0,le.Z)({},"".concat(I.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(I.antCls,"-tabs-left > ").concat(I.antCls,"-tabs-nav"),(0,le.Z)({marginInlineEnd:0},"".concat(I.antCls,"-tabs-nav-list"),{paddingBlockStart:I.padding})),"".concat(I.antCls,"-tabs-right"),(0,le.Z)({},"".concat(I.antCls,"-tabs-content-holder"),(0,le.Z)({},"".concat(I.antCls,"-tabs-content"),(0,le.Z)({},"".concat(I.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(I.antCls,"-tabs-right > ").concat(I.antCls,"-tabs-nav"),(0,le.Z)({},"".concat(I.antCls,"-tabs-nav-list"),{paddingBlockStart:I.padding})))},hn=24,Zn=function(I,te){var ve=te.componentCls;return I===0?(0,le.Z)({},"".concat(ve,"-col-0"),{display:"none"}):(0,le.Z)({},"".concat(ve,"-col-").concat(I),{flexShrink:0,width:"".concat(I/hn*100,"%")})},De=function(I){return Array(hn+1).fill(1).map(function(te,ve){return Zn(ve,I)})};function qe(L){return(0,Rt.Xj)("ProCard",function(I){var te=(0,Q.Z)((0,Q.Z)({},I),{},{componentCls:".".concat(L)});return[ln(te),De(te)]})}var Kn=["className","style","bodyStyle","headStyle","title","subTitle","extra","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],yn=d.forwardRef(function(L,I){var te,ve=L.className,un=L.style,Sn=L.bodyStyle,Gn=L.headStyle,Yn=L.title,Qn=L.subTitle,Pt=L.extra,St=L.wrap,ut=St===void 0?!1:St,Nt=L.layout,Dt=L.loading,hr=L.gutter,ir=hr===void 0?0:hr,Or=L.tooltip,Ht=L.split,ar=L.headerBordered,qr=ar===void 0?!1:ar,_r=L.bordered,va=_r===void 0?!1:_r,ea=L.boxShadow,ma=ea===void 0?!1:ea,zr=L.children,na=L.size,pa=L.actions,ta=L.ghost,ja=ta===void 0?!1:ta,ga=L.hoverable,Zt=ga===void 0?!1:ga,yr=L.direction,mr=L.collapsed,Er=L.collapsible,Rr=Er===void 0?!1:Er,Cr=L.collapsibleIconRender,Mr=L.defaultCollapsed,Ar=Mr===void 0?!1:Mr,Hr=L.onCollapse,no=L.checked,La=L.onChecked,Fr=L.tabs,ra=L.type,aa=(0,A.Z)(L,Kn),So=(0,d.useContext)(Mt.ZP.ConfigContext),Zo=So.getPrefixCls,wa=(0,We.Z)()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},wo=(0,Ft.Z)(Ar,{value:mr,onChange:Hr}),to=(0,Se.Z)(wo,2),Ea=to[0],ro=to[1],Ra=["xxl","xl","lg","md","sm","xs"],Eo=ae(Fr==null?void 0:Fr.items,zr,Fr),Ro=function(It){var Kt=[0,0],jr=Array.isArray(It)?It:[It,0];return jr.forEach(function(br,Lr){if((0,mn.Z)(br)==="object")for(var ha=0;ha=0&&Lr<=24)),$o=ao((0,an.jsx)("div",{style:(0,Q.Z)((0,Q.Z)((0,Q.Z)({},ha),Ba(Aa>0,{paddingInlineEnd:Aa/2,paddingInlineStart:Aa/2})),Ba(Ha>0,{paddingBlockStart:Ha/2,paddingBlockEnd:Ha/2})),className:ya,children:d.cloneElement(Xt)}));return d.cloneElement($o,{key:"pro-card-col-".concat((Xt==null?void 0:Xt.key)||It)})}return Xt}),Po=Te()("".concat(et),ve,Dr,(te={},(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)(te,"".concat(et,"-border"),va),"".concat(et,"-box-shadow"),ma),"".concat(et,"-contain-card"),Wa),"".concat(et,"-loading"),Dt),"".concat(et,"-split"),Ht==="vertical"||Ht==="horizontal"),"".concat(et,"-ghost"),ja),"".concat(et,"-hoverable"),Zt),"".concat(et,"-size-").concat(na),na),"".concat(et,"-type-").concat(ra),ra),"".concat(et,"-collapse"),Ea),(0,le.Z)(te,"".concat(et,"-checked"),no))),oo=Te()("".concat(et,"-body"),Dr,(0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(et,"-body-center"),Nt==="center"),"".concat(et,"-body-direction-column"),Ht==="horizontal"||yr==="column"),"".concat(et,"-body-wrap"),ut&&Wa)),No=Sn,lo=d.isValidElement(Dt)?Dt:(0,an.jsx)(Ge,{prefix:et,style:(Sn==null?void 0:Sn.padding)===0||(Sn==null?void 0:Sn.padding)==="0px"?{padding:24}:void 0}),Ia=Rr&&mr===void 0&&(Cr?Cr({collapsed:Ea}):(0,an.jsx)(rn,{rotate:Ea?void 0:90,className:"".concat(et,"-collapsible-icon ").concat(Dr).trim()}));return ao((0,an.jsxs)("div",(0,Q.Z)((0,Q.Z)({className:Po,style:un,ref:I,onClick:function(It){var Kt;La==null||La(It),aa==null||(Kt=aa.onClick)===null||Kt===void 0||Kt.call(aa,It)}},(0,tr.Z)(aa,["prefixCls","colSpan"])),{},{children:[(Yn||Pt||Ia)&&(0,an.jsxs)("div",{className:Te()("".concat(et,"-header"),Dr,(0,le.Z)((0,le.Z)({},"".concat(et,"-header-border"),qr||ra==="inner"),"".concat(et,"-header-collapsible"),Ia)),style:Gn,onClick:function(){Ia&&ro(!Ea)},children:[(0,an.jsxs)("div",{className:"".concat(et,"-title ").concat(Dr).trim(),children:[Ia,(0,an.jsx)(dt.G,{label:Yn,tooltip:Or,subTitle:Qn})]}),Pt&&(0,an.jsx)("div",{className:"".concat(et,"-extra ").concat(Dr).trim(),onClick:function(It){return It.stopPropagation()},children:Pt})]}),Fr?(0,an.jsx)("div",{className:"".concat(et,"-tabs ").concat(Dr).trim(),children:(0,an.jsx)(Jt.Z,(0,Q.Z)((0,Q.Z)({onChange:Fr.onChange},Fr),{},{items:Eo,children:Dt?lo:zr}))}):(0,an.jsx)("div",{className:oo,style:No,children:Dt?lo:To}),pa?(0,an.jsx)(Kr,{actions:pa,prefixCls:et}):null]})))}),gn=yn,Nn=function(I){var te=I.componentCls;return(0,le.Z)({},te,{"&-divider":{flex:"none",width:I.lineWidth,marginInline:I.marginXS,marginBlock:I.marginLG,backgroundColor:I.colorSplit,"&-horizontal":{width:"initial",height:I.lineWidth,marginInline:I.marginLG,marginBlock:I.marginXS}},"&&-size-small &-divider":{marginBlock:I.marginLG,marginInline:I.marginXS,"&-horizontal":{marginBlock:I.marginXS,marginInline:I.marginLG}}})};function $n(L){return(0,Rt.Xj)("ProCardDivider",function(I){var te=(0,Q.Z)((0,Q.Z)({},I),{},{componentCls:".".concat(L)});return[Nn(te)]})}var lt=function(I){var te=(0,d.useContext)(Mt.ZP.ConfigContext),ve=te.getPrefixCls,un=ve("pro-card"),Sn="".concat(un,"-divider"),Gn=$n(un),Yn=Gn.wrapSSR,Qn=Gn.hashId,Pt=I.className,St=I.style,ut=St===void 0?{}:St,Nt=I.type,Dt=Te()(Sn,Pt,Qn,(0,le.Z)({},"".concat(Sn,"-").concat(Nt),Nt));return Yn((0,an.jsx)("div",{className:Dt,style:ut}))},Mn=lt,zn=function(I){return(0,an.jsx)(gn,(0,Q.Z)({bodyStyle:{padding:0}},I))},Jn=gn;Jn.isProCard=!0,Jn.Divider=Mn,Jn.TabPane=Ye,Jn.Group=zn;var mt=Jn},22185:function(dr,gt,h){h.d(gt,{Z:function(){return Uf}});var Q=h(74165),le=h(15861),mn=h(71002),Se=h(97685),A=h(4942),he=h(74902),d=h(1413),cn=h(91),Ie=h(85322),Te=Ie.Z,In=h(2514),En=h(34994),pn=En.A,wn=h(10915),Tn=h(98082),Pe=h(84506),_e=h(87462),o=h(67294),Fn=h(15294),Pn=h(62914),se=function(e,t){return o.createElement(Pn.Z,(0,_e.Z)({},e,{ref:t,icon:Fn.Z}))},Ce=o.forwardRef(se),Ve=Ce,Je=h(45360),Me=h(8232),Ue=h(86738);function Ee(n,e,t){const r=o.useRef({});function a(i){if(!r.current||r.current.data!==n||r.current.childrenColumnName!==e||r.current.getRowKey!==t){let s=function(c){c.forEach((u,p)=>{const m=t(u,p);l.set(m,u),u&&typeof u=="object"&&e in u&&s(u[e]||[])})};const l=new Map;s(n),r.current={data:n,childrenColumnName:e,kvMap:l,getRowKey:t}}return r.current.kvMap.get(i)}return[a]}var Xe=h(21770),E=h(88306),Be=h(8880),Fe=h(80334),Ze=h(48171),re=h(10178),fe=h(41036),ke=h(27068),ze=h(26369),tn=h(92210),b=h(85893),An=["map_row_parentKey"],xn=["map_row_parentKey","map_row_key"],qn=["map_row_key"],kn=function(e){return(Je.ZP.warn||Je.ZP.warning)(e)},Hn=function(e){return Array.isArray(e)?e.join(","):e};function _n(n,e){var t,r=n.getRowKey,a=n.row,i=n.data,l=n.childrenColumnName,s=l===void 0?"children":l,c=(t=Hn(n.key))===null||t===void 0?void 0:t.toString(),u=new Map;function p(v,g,f){v.forEach(function(C,y){var S=(f||0)*10+y,x=r(C,S).toString();C&&(0,mn.Z)(C)==="object"&&s in C&&p(C[s]||[],x,S);var T=(0,d.Z)((0,d.Z)({},C),{},{map_row_key:x,children:void 0,map_row_parentKey:g});delete T.children,g||delete T.map_row_parentKey,u.set(x,T)})}e==="top"&&u.set(c,(0,d.Z)((0,d.Z)({},u.get(c)),a)),p(i),e==="update"&&u.set(c,(0,d.Z)((0,d.Z)({},u.get(c)),a)),e==="delete"&&u.delete(c);var m=function(g){var f=new Map,C=[],y=function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;g.forEach(function(T){if(T.map_row_parentKey&&!T.map_row_key){var O=T.map_row_parentKey,z=(0,cn.Z)(T,An);if(f.has(O)||f.set(O,[]),x){var W;(W=f.get(O))===null||W===void 0||W.push(z)}}})};return y(e==="top"),g.forEach(function(S){if(S.map_row_parentKey&&S.map_row_key){var x,T=S.map_row_parentKey,O=S.map_row_key,z=(0,cn.Z)(S,xn);f.has(O)&&(z[s]=f.get(O)),f.has(T)||f.set(T,[]),(x=f.get(T))===null||x===void 0||x.push(z)}}),y(e==="update"),g.forEach(function(S){if(!S.map_row_parentKey){var x=S.map_row_key,T=(0,cn.Z)(S,qn);if(x&&f.has(x)){var O=(0,d.Z)((0,d.Z)({},T),{},(0,A.Z)({},s,f.get(x)));C.push(O);return}C.push(T)}}),C};return m(u)}function ht(n,e){var t=n.recordKey,r=n.onSave,a=n.row,i=n.children,l=n.newLineConfig,s=n.editorType,c=n.tableName,u=(0,o.useContext)(fe.J),p=Me.Z.useFormInstance(),m=(0,Xe.Z)(!1),v=(0,Se.Z)(m,2),g=v[0],f=v[1],C=(0,Ze.J)((0,le.Z)((0,Q.Z)().mark(function y(){var S,x,T,O,z,W,N,V,j;return(0,Q.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.prev=0,x=s==="Map",T=[c,Array.isArray(t)?t[0]:t].map(function($){return $==null?void 0:$.toString()}).flat(1).filter(Boolean),f(!0),P.next=6,p.validateFields(T,{recursive:!0});case 6:return O=(u==null||(S=u.getFieldFormatValue)===null||S===void 0?void 0:S.call(u,T))||p.getFieldValue(T),Array.isArray(t)&&t.length>1&&(z=(0,Pe.Z)(t),W=z.slice(1),N=(0,E.Z)(O,W),(0,Be.Z)(O,W,N)),V=x?(0,Be.Z)({},T,O):O,P.next=11,r==null?void 0:r(t,(0,tn.T)({},a,V),a,l);case 11:return j=P.sent,f(!1),P.abrupt("return",j);case 16:throw P.prev=16,P.t0=P.catch(0),console.log(P.t0),f(!1),P.t0;case 21:case"end":return P.stop()}},y,null,[[0,16]])})));return(0,o.useImperativeHandle)(e,function(){return{save:C}},[C]),(0,b.jsxs)("a",{onClick:function(){var y=(0,le.Z)((0,Q.Z)().mark(function S(x){return(0,Q.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return x.stopPropagation(),x.preventDefault(),O.prev=2,O.next=5,C();case 5:O.next=9;break;case 7:O.prev=7,O.t0=O.catch(2);case 9:case"end":return O.stop()}},S,null,[[2,7]])}));return function(S){return y.apply(this,arguments)}}(),children:[g?(0,b.jsx)(Ve,{style:{marginInlineEnd:8}}):null,i||"\u4FDD\u5B58"]},"save")}var Cn=function(e){var t=e.recordKey,r=e.onDelete,a=e.row,i=e.children,l=e.deletePopconfirmMessage,s=(0,Xe.Z)(function(){return!1}),c=(0,Se.Z)(s,2),u=c[0],p=c[1],m=(0,Ze.J)((0,le.Z)((0,Q.Z)().mark(function v(){var g;return(0,Q.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.prev=0,p(!0),C.next=4,r==null?void 0:r(t,a);case 4:return g=C.sent,p(!1),C.abrupt("return",g);case 9:return C.prev=9,C.t0=C.catch(0),console.log(C.t0),p(!1),C.abrupt("return",null);case 14:case"end":return C.stop()}},v,null,[[0,9]])})));return i!==!1?(0,b.jsx)(Ue.Z,{title:l,onConfirm:function(){return m()},children:(0,b.jsxs)("a",{children:[u?(0,b.jsx)(Ve,{style:{marginInlineEnd:8}}):null,i||"\u5220\u9664"]})},"delete"):null},st=function(e){var t=e.recordKey,r=e.tableName,a=e.newLineConfig,i=e.editorType,l=e.onCancel,s=e.cancelEditable,c=e.row,u=e.cancelText,p=(0,o.useContext)(fe.J),m=Me.Z.useFormInstance();return(0,b.jsx)("a",{onClick:function(){var v=(0,le.Z)((0,Q.Z)().mark(function g(f){var C,y,S,x,T,O;return(0,Q.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return f.stopPropagation(),f.preventDefault(),y=i==="Map",S=[r,t].flat(1).filter(Boolean),x=(p==null||(C=p.getFieldFormatValue)===null||C===void 0?void 0:C.call(p,S))||(m==null?void 0:m.getFieldValue(S)),T=y?(0,Be.Z)({},S,x):x,W.next=8,l==null?void 0:l(t,T,c,a);case 8:return O=W.sent,W.next=11,s(t);case 11:return m.setFieldsValue((0,A.Z)({},"".concat(t),y?(0,E.Z)(c,S):c)),W.abrupt("return",O);case 13:case"end":return W.stop()}},g)}));return function(g){return v.apply(this,arguments)}}(),children:u||"\u53D6\u6D88"},"cancel")};function $t(n,e){var t=e.recordKey,r=e.newLineConfig,a=e.saveText,i=e.deleteText,l=(0,o.forwardRef)(ht),s=(0,o.createRef)();return{save:(0,b.jsx)(l,(0,d.Z)((0,d.Z)({},e),{},{row:n,ref:s,children:a}),"save"+t),saveRef:s,delete:(r==null?void 0:r.options.recordKey)!==t?(0,b.jsx)(Cn,(0,d.Z)((0,d.Z)({},e),{},{row:n,children:i}),"delete"+t):void 0,cancel:(0,b.jsx)(st,(0,d.Z)((0,d.Z)({},e),{},{row:n}),"cancel"+t)}}function kt(n){var e=(0,o.useState)(void 0),t=(0,Se.Z)(e,2),r=t[0],a=t[1],i=function(){var R=new Map,M=function G(ee,oe){ee==null||ee.forEach(function(q,Y){var J,ne=oe==null?Y.toString():oe+"_"+Y.toString();R.set(ne,Hn(n.getRowKey(q,-1))),R.set((J=Hn(n.getRowKey(q,-1)))===null||J===void 0?void 0:J.toString(),ne),n.childrenColumnName&&q[n.childrenColumnName]&&G(q[n.childrenColumnName],ne)})};return M(n.dataSource),R},l=(0,o.useMemo)(function(){return i()},[]),s=(0,o.useRef)(l),c=(0,o.useRef)(void 0);(0,ke.Au)(function(){s.current=i()},[n.dataSource]),c.current=r;var u=n.type||"single",p=Ee(n.dataSource,"children",n.getRowKey),m=(0,Se.Z)(p,1),v=m[0],g=(0,Xe.Z)([],{value:n.editableKeys,onChange:n.onChange?function(k){var R,M,G;n==null||(R=n.onChange)===null||R===void 0||R.call(n,(M=k==null?void 0:k.filter(function(ee){return ee!==void 0}))!==null&&M!==void 0?M:[],(G=k==null?void 0:k.map(function(ee){return v(ee)}).filter(function(ee){return ee!==void 0}))!==null&&G!==void 0?G:[])}:void 0}),f=(0,Se.Z)(g,2),C=f[0],y=f[1],S=(0,o.useMemo)(function(){var k=u==="single"?C==null?void 0:C.slice(0,1):C;return new Set(k)},[(C||[]).join(","),u]),x=(0,ze.D)(C),T=(0,Ze.J)(function(k){var R,M,G,ee,oe=(R=n.getRowKey(k,k.index))===null||R===void 0||(M=R.toString)===null||M===void 0?void 0:M.call(R),q=(G=n.getRowKey(k,-1))===null||G===void 0||(ee=G.toString)===null||ee===void 0?void 0:ee.call(G),Y=C==null?void 0:C.map(function(we){return we==null?void 0:we.toString()}),J=(x==null?void 0:x.map(function(we){return we==null?void 0:we.toString()}))||[],ne=n.tableName&&!!(J!=null&&J.includes(q))||!!(J!=null&&J.includes(oe));return{recordKey:q,isEditable:n.tableName&&(Y==null?void 0:Y.includes(q))||(Y==null?void 0:Y.includes(oe)),preIsEditable:ne}}),O=(0,Ze.J)(function(k){return S.size>0&&u==="single"&&n.onlyOneLineEditorAlertMessage!==!1?(kn(n.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(S.add(k),y(Array.from(S)),!0)}),z=(0,Ze.J)(function(){var k=(0,le.Z)((0,Q.Z)().mark(function R(M,G){var ee,oe;return(0,Q.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(ee=Hn(M).toString(),oe=s.current.get(ee),!(!S.has(ee)&&oe&&(G==null||G)&&n.tableName)){Y.next=5;break}return z(oe,!1),Y.abrupt("return");case 5:return r&&r.options.recordKey===M&&a(void 0),S.delete(ee),S.delete(Hn(M)),y(Array.from(S)),Y.abrupt("return",!0);case 10:case"end":return Y.stop()}},R)}));return function(R,M){return k.apply(this,arguments)}}()),W=(0,re.D)((0,le.Z)((0,Q.Z)().mark(function k(){var R,M,G,ee,oe=arguments;return(0,Q.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:for(M=oe.length,G=new Array(M),ee=0;ee0&&u==="single"&&n.onlyOneLineEditorAlertMessage!==!1)return kn(n.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var M=n.getRowKey(k,-1);if(!M&&M!==0)throw(0,Fe.ET)(!!M,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key + https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(S.add(M),y(Array.from(S)),(R==null?void 0:R.newRecordType)==="dataSource"||n.tableName){var G,ee={data:n.dataSource,getRowKey:n.getRowKey,row:(0,d.Z)((0,d.Z)({},k),{},{map_row_parentKey:R!=null&&R.parentKey?(G=Hn(R==null?void 0:R.parentKey))===null||G===void 0?void 0:G.toString():void 0}),key:M,childrenColumnName:n.childrenColumnName||"children"};n.setDataSource(_n(ee,(R==null?void 0:R.position)==="top"?"top":"update"))}else a({defaultValue:k,options:(0,d.Z)((0,d.Z)({},R),{},{recordKey:M})});return!0}),P=(0,wn.YB)(),$=(n==null?void 0:n.saveText)||P.getMessage("editableTable.action.save","\u4FDD\u5B58"),H=(n==null?void 0:n.deleteText)||P.getMessage("editableTable.action.delete","\u5220\u9664"),F=(n==null?void 0:n.cancelText)||P.getMessage("editableTable.action.cancel","\u53D6\u6D88"),w=(0,Ze.J)(function(){var k=(0,le.Z)((0,Q.Z)().mark(function R(M,G,ee,oe){var q,Y,J,ne,we,Ke,ge;return(0,Q.Z)().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,n==null||(q=n.onSave)===null||q===void 0?void 0:q.call(n,M,G,ee,oe);case 2:return ne=ue.sent,ue.next=5,z(M);case 5:if(we=oe||c.current||{},Ke=we.options,!(!(Ke!=null&&Ke.parentKey)&&(Ke==null?void 0:Ke.recordKey)===M)){ue.next=9;break}return(Ke==null?void 0:Ke.position)==="top"?n.setDataSource([G].concat((0,he.Z)(n.dataSource))):n.setDataSource([].concat((0,he.Z)(n.dataSource),[G])),ue.abrupt("return",ne);case 9:return ge={data:n.dataSource,getRowKey:n.getRowKey,row:Ke?(0,d.Z)((0,d.Z)({},G),{},{map_row_parentKey:(Y=Hn((J=Ke==null?void 0:Ke.parentKey)!==null&&J!==void 0?J:""))===null||Y===void 0?void 0:Y.toString()}):G,key:M,childrenColumnName:n.childrenColumnName||"children"},n.setDataSource(_n(ge,(Ke==null?void 0:Ke.position)==="top"?"top":"update")),ue.next=13,z(M);case 13:return ue.abrupt("return",ne);case 14:case"end":return ue.stop()}},R)}));return function(R,M,G,ee){return k.apply(this,arguments)}}()),D=(0,Ze.J)(function(){var k=(0,le.Z)((0,Q.Z)().mark(function R(M,G){var ee,oe,q;return(0,Q.Z)().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return oe={data:n.dataSource,getRowKey:n.getRowKey,row:G,key:M,childrenColumnName:n.childrenColumnName||"children"},J.next=3,n==null||(ee=n.onDelete)===null||ee===void 0?void 0:ee.call(n,M,G);case 3:return q=J.sent,J.next=6,z(M,!1);case 6:return n.setDataSource(_n(oe,"delete")),J.abrupt("return",q);case 8:case"end":return J.stop()}},R)}));return function(R,M){return k.apply(this,arguments)}}()),K=(0,Ze.J)(function(){var k=(0,le.Z)((0,Q.Z)().mark(function R(M,G,ee,oe){var q,Y;return(0,Q.Z)().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,n==null||(q=n.onCancel)===null||q===void 0?void 0:q.call(n,M,G,ee,oe);case 2:return Y=ne.sent,ne.abrupt("return",Y);case 4:case"end":return ne.stop()}},R)}));return function(R,M,G,ee){return k.apply(this,arguments)}}()),X=function(R){var M=n.getRowKey(R,R.index),G={saveText:$,cancelText:F,deleteText:H,addEditRecord:B,recordKey:M,cancelEditable:z,index:R.index,tableName:n.tableName,newLineConfig:r,onCancel:K,onDelete:D,onSave:w,editableKeys:C,setEditableRowKeys:y,deletePopconfirmMessage:n.deletePopconfirmMessage||"".concat(P.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?")},ee=$t(R,G);return n.tableName?V.current.set(s.current.get(Hn(M))||Hn(M),ee.saveRef):V.current.set(Hn(M),ee.saveRef),n.actionRender?n.actionRender(R,G,{save:ee.save,delete:ee.delete,cancel:ee.cancel}):[ee.save,ee.delete,ee.cancel]};return{editableKeys:C,setEditableRowKeys:y,isEditable:T,actionRender:X,startEditable:O,cancelEditable:z,addEditRecord:B,saveEditable:j,newLineRecord:r,preEditableKeys:x,onValuesChange:N,getRealIndex:n.getRealIndex}}var Un=h(51812),ct=h(53914),ft=h(78164),Xn={},Ct="rc-table-internal-hook",at=h(66680),yt=h(8410),Gt=h(91881),ur=h(73935);function er(n){var e=o.createContext(void 0),t=function(a){var i=a.value,l=a.children,s=o.useRef(i);s.current=i;var c=o.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=(0,Se.Z)(c,1),p=u[0];return(0,yt.Z)(function(){(0,ur.unstable_batchedUpdates)(function(){p.listeners.forEach(function(m){m(i)})})},[i]),o.createElement(e.Provider,{value:p},l)};return{Context:e,Provider:t,defaultValue:n}}function vt(n,e){var t=(0,at.Z)(typeof e=="function"?e:function(m){if(e===void 0)return m;if(!Array.isArray(e))return m[e];var v={};return e.forEach(function(g){v[g]=m[g]}),v}),r=o.useContext(n==null?void 0:n.Context),a=r||{},i=a.listeners,l=a.getValue,s=o.useRef();s.current=t(r?l():n==null?void 0:n.defaultValue);var c=o.useState({}),u=(0,Se.Z)(c,2),p=u[1];return(0,yt.Z)(function(){if(!r)return;function m(v){var g=t(v);(0,Gt.Z)(s.current,g,!0)||p({})}return i.add(m),function(){i.delete(m)}},[r]),s.current}var Yt=h(42550);function Nr(){var n=o.createContext(null);function e(){return o.useContext(n)}function t(a,i){var l=(0,Yt.Yr)(a),s=function(u,p){var m=l?{ref:p}:{},v=o.useRef(0),g=o.useRef(u),f=e();return f!==null?o.createElement(a,(0,_e.Z)({},u,m)):((!i||i(g.current,u))&&(v.current+=1),g.current=u,o.createElement(n.Provider,{value:v.current},o.createElement(a,(0,_e.Z)({},u,m))))};return l?o.forwardRef(s):s}function r(a,i){var l=(0,Yt.Yr)(a),s=function(u,p){var m=l?{ref:p}:{};return e(),o.createElement(a,(0,_e.Z)({},u,m))};return l?o.memo(o.forwardRef(s),i):o.memo(s,i)}return{makeImmutable:t,responseImmutable:r,useImmutableMark:e}}var lr=Nr(),zt=lr.makeImmutable,fr=lr.responseImmutable,$r=lr.useImmutableMark,Sr=Nr(),Zr=Sr.makeImmutable,nr=Sr.responseImmutable,ye=Sr.useImmutableMark,on=er(),nn=on;function rn(n,e){var t=React.useRef(0);t.current+=1;var r=React.useRef(n),a=[];Object.keys(n||{}).map(function(l){var s;(n==null?void 0:n[l])!==((s=r.current)===null||s===void 0?void 0:s[l])&&a.push(l)}),r.current=n;var i=React.useRef([]);return a.length&&(i.current=a),React.useDebugValue(t.current),React.useDebugValue(i.current.join(", ")),e&&console.log("".concat(e,":"),t.current,i.current),t.current}var dt=null,Mt=null,Jt=h(93967),We=h.n(Jt),tr=h(56982),Ft=o.createContext({renderWithProps:!1}),Rt=Ft,At="RC_TABLE_KEY";function vr(n){return n==null?[]:Array.isArray(n)?n:[n]}function an(n){var e=[],t={};return n.forEach(function(r){for(var a=r||{},i=a.key,l=a.dataIndex,s=i||vr(l).join("-")||At;t[s];)s="".concat(s,"_next");t[s]=!0,e.push(s)}),e}function kr(n){return n!=null}function Kr(n){return n&&(0,mn.Z)(n)==="object"&&!Array.isArray(n)&&!o.isValidElement(n)}function wr(n,e,t,r,a,i){var l=o.useContext(Rt),s=ye(),c=(0,tr.Z)(function(){if(kr(r))return[r];var u=e==null||e===""?[]:Array.isArray(e)?e:[e],p=(0,E.Z)(n,u),m=p,v=void 0;if(a){var g=a(p,n,t);Kr(g)?(m=g.children,v=g.props,l.renderWithProps=!0):m=g}return[m,v]},[s,n,r,e,a,t],function(u,p){if(i){var m=(0,Se.Z)(u,2),v=m[1],g=(0,Se.Z)(p,2),f=g[1];return i(f,v)}return l.renderWithProps?!0:!(0,Gt.Z)(u,p,!0)});return c}function rr(n,e,t,r){var a=n+e-1;return n<=r&&a>=t}function Qr(n,e){return vt(nn,function(t){var r=rr(n,e||1,t.hoverStartRow,t.hoverEndRow);return[r,t.onHover]})}var gr=h(56790),fa=function(e){var t=e.ellipsis,r=e.rowType,a=e.children,i,l=t===!0?{showTitle:!0}:t;return l&&(l.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?i=a.toString():o.isValidElement(a)&&typeof a.props.children=="string"&&(i=a.props.children)),i};function be(n){var e,t,r,a,i,l,s,c,u=n.component,p=n.children,m=n.ellipsis,v=n.scope,g=n.prefixCls,f=n.className,C=n.align,y=n.record,S=n.render,x=n.dataIndex,T=n.renderIndex,O=n.shouldCellUpdate,z=n.index,W=n.rowType,N=n.colSpan,V=n.rowSpan,j=n.fixLeft,B=n.fixRight,P=n.firstFixLeft,$=n.lastFixLeft,H=n.firstFixRight,F=n.lastFixRight,w=n.appendNode,D=n.additionalProps,K=D===void 0?{}:D,X=n.isSticky,k="".concat(g,"-cell"),R=vt(nn,["supportSticky","allColumnsFixedLeft"]),M=R.supportSticky,G=R.allColumnsFixedLeft,ee=wr(y,x,T,p,S,O),oe=(0,Se.Z)(ee,2),q=oe[0],Y=oe[1],J={},ne=typeof j=="number"&&M,we=typeof B=="number"&&M;ne&&(J.position="sticky",J.left=j),we&&(J.position="sticky",J.right=B);var Ke=(e=(t=(r=Y==null?void 0:Y.colSpan)!==null&&r!==void 0?r:K.colSpan)!==null&&t!==void 0?t:N)!==null&&e!==void 0?e:1,ge=(a=(i=(l=Y==null?void 0:Y.rowSpan)!==null&&l!==void 0?l:K.rowSpan)!==null&&i!==void 0?i:V)!==null&&a!==void 0?a:1,Le=Qr(z,ge),ue=(0,Se.Z)(Le,2),me=ue[0],je=ue[1],Rn=(0,gr.zX)(function(fn){var Dn;y&&je(z,z+ge-1),K==null||(Dn=K.onMouseEnter)===null||Dn===void 0||Dn.call(K,fn)}),de=(0,gr.zX)(function(fn){var Dn;y&&je(-1,-1),K==null||(Dn=K.onMouseLeave)===null||Dn===void 0||Dn.call(K,fn)});if(Ke===0||ge===0)return null;var _=(s=K.title)!==null&&s!==void 0?s:fa({rowType:W,ellipsis:m,children:q}),ce=We()(k,f,(c={},(0,A.Z)(c,"".concat(k,"-fix-left"),ne&&M),(0,A.Z)(c,"".concat(k,"-fix-left-first"),P&&M),(0,A.Z)(c,"".concat(k,"-fix-left-last"),$&&M),(0,A.Z)(c,"".concat(k,"-fix-left-all"),$&&G&&M),(0,A.Z)(c,"".concat(k,"-fix-right"),we&&M),(0,A.Z)(c,"".concat(k,"-fix-right-first"),H&&M),(0,A.Z)(c,"".concat(k,"-fix-right-last"),F&&M),(0,A.Z)(c,"".concat(k,"-ellipsis"),m),(0,A.Z)(c,"".concat(k,"-with-append"),w),(0,A.Z)(c,"".concat(k,"-fix-sticky"),(ne||we)&&X&&M),(0,A.Z)(c,"".concat(k,"-row-hover"),!Y&&me),c),K.className,Y==null?void 0:Y.className),pe={};C&&(pe.textAlign=C);var sn=(0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)({},J),K.style),pe),Y==null?void 0:Y.style),bn=q;return(0,mn.Z)(bn)==="object"&&!Array.isArray(bn)&&!o.isValidElement(bn)&&(bn=null),m&&($||H)&&(bn=o.createElement("span",{className:"".concat(k,"-content")},bn)),o.createElement(u,(0,_e.Z)({},Y,K,{className:ce,style:sn,title:_,scope:v,onMouseEnter:Rn,onMouseLeave:de,colSpan:Ke!==1?Ke:null,rowSpan:ge!==1?ge:null}),w,bn)}var Ae=o.memo(be);function Ge(n,e,t,r,a){var i=t[n]||{},l=t[e]||{},s,c;i.fixed==="left"?s=r.left[a==="rtl"?e:n]:l.fixed==="right"&&(c=r.right[a==="rtl"?n:e]);var u=!1,p=!1,m=!1,v=!1,g=t[e+1],f=t[n-1],C=g&&g.fixed===void 0||f&&f.fixed===void 0||t.every(function(O){return O.fixed==="left"});if(a==="rtl"){if(s!==void 0){var y=f&&f.fixed==="left";v=!y&&C}else if(c!==void 0){var S=g&&g.fixed==="right";m=!S&&C}}else if(s!==void 0){var x=g&&g.fixed==="left";u=!x&&C}else if(c!==void 0){var T=f&&f.fixed==="right";p=!T&&C}return{fixLeft:s,fixRight:c,lastFixLeft:u,firstFixRight:p,lastFixRight:m,firstFixLeft:v,isSticky:r.isSticky}}var Z=o.createContext({}),xe=Z;function Qe(n){var e=n.className,t=n.index,r=n.children,a=n.colSpan,i=a===void 0?1:a,l=n.rowSpan,s=n.align,c=vt(nn,["prefixCls","direction"]),u=c.prefixCls,p=c.direction,m=o.useContext(xe),v=m.scrollColumnIndex,g=m.stickyOffsets,f=m.flattenColumns,C=t+i-1,y=C+1===v?i+1:i,S=Ge(t,t+y-1,f,g,p);return o.createElement(Ae,(0,_e.Z)({className:e,index:t,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:y,rowSpan:l,render:function(){return r}},S))}var en=["children"];function U(n){var e=n.children,t=(0,cn.Z)(n,en);return o.createElement("tr",t,e)}function ie(n){var e=n.children;return e}ie.Row=U,ie.Cell=Qe;var ae=ie;function $e(n){var e=n.children,t=n.stickyOffsets,r=n.flattenColumns,a=vt(nn,"prefixCls"),i=r.length-1,l=r[i],s=o.useMemo(function(){return{stickyOffsets:t,flattenColumns:r,scrollColumnIndex:l!=null&&l.scrollbar?i:null}},[l,r,i,t]);return o.createElement(xe.Provider,{value:s},o.createElement("tfoot",{className:"".concat(a,"-summary")},e))}var Ye=nr($e),dn=ae,ln=h(9220),hn=h(5110),Zn=h(79370),De=h(74204),qe=h(64217);function Kn(n,e,t,r,a,i,l){n.push({record:e,indent:t,index:l});var s=i(e),c=a==null?void 0:a.has(s);if(e&&Array.isArray(e[r])&&c)for(var u=0;u1?P-1:0),H=1;H=1?z:""),style:(0,d.Z)((0,d.Z)({},t),S==null?void 0:S.style)}),f.map(function(j,B){var P=j.render,$=j.dataIndex,H=j.className,F=lt(v,j,B,c,a),w=F.key,D=F.fixedInfo,K=F.appendCellNode,X=F.additionalCellProps;return o.createElement(Ae,(0,_e.Z)({className:H,ellipsis:j.ellipsis,align:j.align,scope:j.rowScope,component:j.rowScope?m:p,prefixCls:g,key:w,record:r,index:a,renderIndex:i,dataIndex:$,render:P,shouldCellUpdate:j.shouldCellUpdate},D,{appendNode:K,additionalProps:X}))})),N;if(T&&(O.current||x)){var V=y(r,a,c+1,x);N=o.createElement($n,{expanded:x,className:We()("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),z),prefixCls:g,component:u,cellComponent:p,colSpan:f.length,isEmpty:!1},V)}return o.createElement(o.Fragment,null,W,N)}var zn=nr(Mn);function Jn(n){var e=n.columnKey,t=n.onColumnResize,r=o.useRef();return o.useEffect(function(){r.current&&t(e,r.current.offsetWidth)},[]),o.createElement(ln.Z,{data:e},o.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function mt(n){var e=n.prefixCls,t=n.columnsKey,r=n.onColumnResize;return o.createElement("tr",{"aria-hidden":"true",className:"".concat(e,"-measure-row"),style:{height:0,fontSize:0}},o.createElement(ln.Z.Collection,{onBatchResize:function(i){i.forEach(function(l){var s=l.data,c=l.size;r(s,c.offsetWidth)})}},t.map(function(a){return o.createElement(Jn,{key:a,columnKey:a,onColumnResize:r})})))}function L(n){var e=n.data,t=n.measureColumnWidth,r=vt(nn,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=r.prefixCls,i=r.getComponent,l=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,p=r.childrenColumnName,m=r.emptyNode,v=yn(e,p,u,c),g=o.useRef({renderWithProps:!1}),f=i(["body","wrapper"],"tbody"),C=i(["body","row"],"tr"),y=i(["body","cell"],"td"),S=i(["body","cell"],"th"),x;e.length?x=v.map(function(O,z){var W=O.record,N=O.indent,V=O.index,j=c(W,z);return o.createElement(zn,{key:j,rowKey:j,record:W,index:z,renderIndex:V,rowComponent:C,cellComponent:y,scopeCellComponent:S,getRowKey:c,indent:N})}):x=o.createElement($n,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:C,cellComponent:y,colSpan:s.length,isEmpty:!0},m);var T=an(s);return o.createElement(Rt.Provider,{value:g.current},o.createElement(f,{className:"".concat(a,"-tbody")},t&&o.createElement(mt,{prefixCls:a,columnsKey:T,onColumnResize:l}),x))}var I=nr(L),te=["expandable"],ve="RC_TABLE_INTERNAL_COL_DEFINE";function un(n){var e=n.expandable,t=(0,cn.Z)(n,te),r;return"expandable"in n?r=(0,d.Z)((0,d.Z)({},t),e):r=t,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var Sn=["columnType"];function Gn(n){for(var e=n.colWidths,t=n.columns,r=n.columCount,a=[],i=r||t.length,l=!1,s=i-1;s>=0;s-=1){var c=e[s],u=t&&t[s],p=u&&u[ve];if(c||p||l){var m=p||{},v=m.columnType,g=(0,cn.Z)(m,Sn);a.unshift(o.createElement("col",(0,_e.Z)({key:s,style:{width:c}},g))),l=!0}}return o.createElement("colgroup",null,a)}var Yn=Gn,Qn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Pt(n,e){return(0,o.useMemo)(function(){for(var t=[],r=0;r1?"colgroup":"col":null,ellipsis:y.ellipsis,align:y.align,component:l,prefixCls:p,key:g[C]},S,{additionalProps:x,rowType:"header"}))}))},Dt=Nt;function hr(n){var e=[];function t(l,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;e[c]=e[c]||[];var u=s,p=l.filter(Boolean).map(function(m){var v={key:m.key,className:m.className||"",children:m.title,column:m,colStart:u},g=1,f=m.children;return f&&f.length>0&&(g=t(f,u,c+1).reduce(function(C,y){return C+y},0),v.hasSubColumns=!0),"colSpan"in m&&(g=m.colSpan),"rowSpan"in m&&(v.rowSpan=m.rowSpan),v.colSpan=g,v.colEnd=v.colStart+g-1,e[c].push(v),u+=g,g});return p}t(n,0);for(var r=e.length,a=function(s){e[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof e=="number"?e:e.endsWith("%")?n*parseFloat(e)/100:null}function qr(n,e,t){return o.useMemo(function(){if(e&&e>0){var r=0,a=0;n.forEach(function(v){var g=ar(e,v.width);g?r+=g:a+=1});var i=Math.max(e,t),l=Math.max(i-r,a),s=a,c=l/a,u=0,p=n.map(function(v){var g=(0,d.Z)({},v),f=ar(e,g.width);if(f)g.width=f;else{var C=Math.floor(c);g.width=s===1?l:C,l-=C,s-=1}return u+=g.width,g});if(u0?(0,d.Z)((0,d.Z)({},e),{},{children:ma(t)}):e})}function zr(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return n.filter(function(t){return t&&(0,mn.Z)(t)==="object"}).reduce(function(t,r,a){var i=r.fixed,l=i===!0?"left":i,s="".concat(e,"-").concat(a),c=r.children;return c&&c.length>0?[].concat((0,he.Z)(t),(0,he.Z)(zr(c,s).map(function(u){return(0,d.Z)({fixed:l},u)}))):[].concat((0,he.Z)(t),[(0,d.Z)((0,d.Z)({key:s},r),{},{fixed:l})])},[])}function na(n){return n.map(function(e){var t=e.fixed,r=(0,cn.Z)(e,va),a=t;return t==="left"?a="right":t==="right"&&(a="left"),(0,d.Z)({fixed:a},r)})}function pa(n,e){var t=n.prefixCls,r=n.columns,a=n.children,i=n.expandable,l=n.expandedKeys,s=n.columnTitle,c=n.getRowKey,u=n.onTriggerExpand,p=n.expandIcon,m=n.rowExpandable,v=n.expandIconColumnIndex,g=n.direction,f=n.expandRowByClick,C=n.columnWidth,y=n.fixed,S=n.scrollWidth,x=n.clientWidth,T=o.useMemo(function(){var $=r||ea(a)||[];return ma($.slice())},[r,a]),O=o.useMemo(function(){if(i){var $,H=T.slice();if(!H.includes(Xn)){var F=v||0;F>=0&&H.splice(F,0,Xn)}var w=H.indexOf(Xn);H=H.filter(function(k,R){return k!==Xn||R===w});var D=T[w],K;(y==="left"||y)&&!v?K="left":(y==="right"||y)&&v===T.length?K="right":K=D?D.fixed:null;var X=($={},(0,A.Z)($,ve,{className:"".concat(t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,A.Z)($,"title",s),(0,A.Z)($,"fixed",K),(0,A.Z)($,"className","".concat(t,"-row-expand-icon-cell")),(0,A.Z)($,"width",C),(0,A.Z)($,"render",function(R,M,G){var ee=c(M,G),oe=l.has(ee),q=m?m(M):!0,Y=p({prefixCls:t,expanded:oe,expandable:q,record:M,onExpand:u});return f?o.createElement("span",{onClick:function(ne){return ne.stopPropagation()}},Y):Y}),$);return H.map(function(k){return k===Xn?X:k})}return T.filter(function(k){return k!==Xn})},[i,T,c,l,p,g]),z=o.useMemo(function(){var $=O;return e&&($=e($)),$.length||($=[{render:function(){return null}}]),$},[e,O,g]),W=o.useMemo(function(){return g==="rtl"?na(zr(z)):zr(z)},[z,g,S]),N=o.useMemo(function(){for(var $=-1,H=W.length-1;H>=0;H-=1){var F=W[H].fixed;if(F==="left"||F===!0){$=H;break}}if($>=0)for(var w=0;w<=$;w+=1){var D=W[w].fixed;if(D!=="left"&&D!==!0)return!0}var K=W.findIndex(function(R){var M=R.fixed;return M==="right"});if(K>=0)for(var X=K;X=v&&(X=v-g),l({scrollLeft:X/v*(m+2)}),T.current.x=F.pageX},P=function(){if(i.current){var F=(0,aa.os)(i.current).top,w=F+i.current.offsetHeight,D=c===window?document.documentElement.scrollTop+window.innerHeight:(0,aa.os)(c).top+c.clientHeight;w-(0,De.Z)()<=D||F>=D-s?x(function(K){return(0,d.Z)((0,d.Z)({},K),{},{isHiddenScrollBar:!0})}):x(function(K){return(0,d.Z)((0,d.Z)({},K),{},{isHiddenScrollBar:!1})})}},$=function(F){x(function(w){return(0,d.Z)((0,d.Z)({},w),{},{scrollLeft:F/m*v||0})})};return o.useImperativeHandle(t,function(){return{setScrollLeft:$}}),o.useEffect(function(){var H=(0,ra.Z)(document.body,"mouseup",V,!1),F=(0,ra.Z)(document.body,"mousemove",B,!1);return P(),function(){H.remove(),F.remove()}},[g,W]),o.useEffect(function(){var H=(0,ra.Z)(c,"scroll",P,!1),F=(0,ra.Z)(window,"resize",P,!1);return function(){H.remove(),F.remove()}},[c]),o.useEffect(function(){S.isHiddenScrollBar||x(function(H){var F=i.current;return F?(0,d.Z)((0,d.Z)({},H),{},{scrollLeft:F.scrollLeft/F.scrollWidth*F.clientWidth}):H})},[S.isHiddenScrollBar]),o.useEffect(function(){P()},[u]),m<=v||!g||S.isHiddenScrollBar?null:o.createElement("div",{style:{height:(0,De.Z)(),width:v,bottom:s},className:"".concat(p,"-sticky-scroll")},o.createElement("div",{onMouseDown:j,ref:f,className:We()("".concat(p,"-sticky-scroll-bar"),(0,A.Z)({},"".concat(p,"-sticky-scroll-bar-active"),W)),style:{width:"".concat(g,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))},Zo=o.forwardRef(So);function wa(n){return null}var wo=wa;function to(n){return null}var Ea=to,ro="rc-table",Ra=[],Eo={};function Ro(){return"No Data"}function Ba(n,e){var t,r=(0,d.Z)({rowKey:"key",prefixCls:ro,emptyText:Ro},n),a=r.prefixCls,i=r.className,l=r.rowClassName,s=r.style,c=r.data,u=r.rowKey,p=r.scroll,m=r.tableLayout,v=r.direction,g=r.title,f=r.footer,C=r.summary,y=r.caption,S=r.id,x=r.showHeader,T=r.components,O=r.emptyText,z=r.onRow,W=r.onHeaderRow,N=r.internalHooks,V=r.transformColumns,j=r.internalRefs,B=r.tailor,P=r.getContainerWidth,$=r.sticky,H=c||Ra,F=!!H.length,w=N===Ct,D=o.useCallback(function(Vn,rt){return(0,E.Z)(T,Vn)||rt},[T]),K=o.useMemo(function(){return typeof u=="function"?u:function(Vn){var rt=Vn&&Vn[u];return rt}},[u]),X=D(["body"]),k=Rr(),R=(0,Se.Z)(k,3),M=R[0],G=R[1],ee=R[2],oe=Zt(r,H,K),q=(0,Se.Z)(oe,6),Y=q[0],J=q[1],ne=q[2],we=q[3],Ke=q[4],ge=q[5],Le=p==null?void 0:p.x,ue=o.useState(0),me=(0,Se.Z)(ue,2),je=me[0],Rn=me[1],de=ta((0,d.Z)((0,d.Z)((0,d.Z)({},r),Y),{},{expandable:!!Y.expandedRowRender,columnTitle:Y.columnTitle,expandedKeys:ne,getRowKey:K,onTriggerExpand:ge,expandIcon:we,expandIconColumnIndex:Y.expandIconColumnIndex,direction:v,scrollWidth:w&&B&&typeof Le=="number"?Le:null,clientWidth:je}),w?V:null),_=(0,Se.Z)(de,4),ce=_[0],pe=_[1],sn=_[2],bn=_[3],fn=sn!=null?sn:Le,Dn=o.useMemo(function(){return{columns:ce,flattenColumns:pe}},[ce,pe]),Wn=o.useRef(),jt=o.useRef(),On=o.useRef(),Br=o.useRef();o.useImperativeHandle(e,function(){return{nativeElement:Wn.current,scrollTo:function(rt){var or;if(On.current instanceof HTMLElement){var _t=rt.index,Pr=rt.top,Da=rt.key;if(Pr){var Sa;(Sa=On.current)===null||Sa===void 0||Sa.scrollTo({top:Pr})}else{var Za,eo=Da!=null?Da:K(H[_t]);(Za=On.current.querySelector('[data-row-key="'.concat(eo,'"]')))===null||Za===void 0||Za.scrollIntoView()}}else(or=On.current)!==null&&or!==void 0&&or.scrollTo&&On.current.scrollTo(rt)}}});var Yr=o.useRef(),jn=o.useState(!1),nt=(0,Se.Z)(jn,2),it=nt[0],wt=nt[1],bt=o.useState(!1),ot=(0,Se.Z)(bt,2),Lt=ot[0],Wt=ot[1],Ln=mr(new Map),Ot=(0,Se.Z)(Ln,2),Bn=Ot[0],ca=Ot[1],Tr=an(pe),xt=Tr.map(function(Vn){return Bn.get(Vn)}),Vt=o.useMemo(function(){return xt},[xt.join("_")]),Bt=no(Vt,pe,v),Tt=p&&kr(p.y),Qt=p&&kr(fn)||!!Y.fixed,Ut=Qt&&pe.some(function(Vn){var rt=Vn.fixed;return rt}),Jr=o.useRef(),pr=Ar($,a),qt=pr.isSticky,da=pr.offsetHeader,Oa=pr.offsetSummary,Ma=pr.offsetScroll,qa=pr.stickyClassName,_a=pr.container,Ne=o.useMemo(function(){return C==null?void 0:C(H)},[C,H]),He=(Tt||qt)&&o.isValidElement(Ne)&&Ne.type===ae&&Ne.props.fixed,Oe,vn,tt;Tt&&(vn={overflowY:"scroll",maxHeight:p.y}),Qt&&(Oe={overflowX:"auto"},Tt||(vn={overflowY:"hidden"}),tt={width:fn===!0?"auto":fn,minWidth:"100%"});var pt=o.useCallback(function(Vn,rt){(0,hn.Z)(Wn.current)&&ca(function(or){if(or.get(Vn)!==rt){var _t=new Map(or);return _t.set(Vn,rt),_t}return or})},[]),Et=Er(null),cr=(0,Se.Z)(Et,2),xr=cr[0],ua=cr[1];function Co(Vn,rt){rt&&(typeof rt=="function"?rt(Vn):rt.scrollLeft!==Vn&&(rt.scrollLeft=Vn,rt.scrollLeft!==Vn&&setTimeout(function(){rt.scrollLeft=Vn},0)))}var Fa=(0,at.Z)(function(Vn){var rt=Vn.currentTarget,or=Vn.scrollLeft,_t=v==="rtl",Pr=typeof or=="number"?or:rt.scrollLeft,Da=rt||Eo;if(!ua()||ua()===Da){var Sa;xr(Da),Co(Pr,jt.current),Co(Pr,On.current),Co(Pr,Yr.current),Co(Pr,(Sa=Jr.current)===null||Sa===void 0?void 0:Sa.setScrollLeft)}var Za=rt||jt.current;if(Za){var eo=Za.scrollWidth,tl=Za.clientWidth;if(eo===tl){wt(!1),Wt(!1);return}_t?(wt(-Pr0)):(wt(Pr>0),Wt(Pr1?y-F:0,D=(0,d.Z)((0,d.Z)((0,d.Z)({},V),u),{},{flex:"0 0 ".concat(F,"px"),width:"".concat(F,"px"),marginRight:w,pointerEvents:"auto"}),K=o.useMemo(function(){return m?$<=1:B===0||$===0||$>1},[$,B,m]);K?D.visibility="hidden":m&&(D.height=v==null?void 0:v($));var X=K?function(){return null}:g,k={};return($===0||B===0)&&(k.rowSpan=1,k.colSpan=1),o.createElement(Ae,(0,_e.Z)({className:We()(C,p),ellipsis:t.ellipsis,align:t.align,scope:t.rowScope,component:l,prefixCls:e.prefixCls,key:O,record:c,index:i,renderIndex:s,dataIndex:f,render:X,shouldCellUpdate:t.shouldCellUpdate},z,{appendNode:W,additionalProps:(0,d.Z)((0,d.Z)({},N),{},{style:D},k)}))}var Wa=Ha,Va=["data","index","className","rowKey","style","extra","getHeight"],To=o.forwardRef(function(n,e){var t=n.data,r=n.index,a=n.className,i=n.rowKey,l=n.style,s=n.extra,c=n.getHeight,u=(0,cn.Z)(n,Va),p=t.record,m=t.indent,v=t.index,g=vt(nn,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),f=g.scrollX,C=g.flattenColumns,y=g.prefixCls,S=g.fixColumn,x=g.componentWidth,T=vt(ka,["getComponent"]),O=T.getComponent,z=gn(p,i,r,m),W=O(["body","row"],"div"),N=O(["body","cell"],"div"),V=z.rowSupportExpand,j=z.expanded,B=z.rowProps,P=z.expandedRowRender,$=z.expandedRowClassName,H;if(V&&j){var F=P(p,r,m+1,j),w=$==null?void 0:$(p,r,m),D={};S&&(D={style:(0,A.Z)({},"--virtual-width","".concat(x,"px"))});var K="".concat(y,"-expanded-row-cell");H=o.createElement(W,{className:We()("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(m+1),w)},o.createElement(Ae,{component:N,prefixCls:y,className:We()(K,(0,A.Z)({},"".concat(K,"-fixed"),S)),additionalProps:D},F))}var X=(0,d.Z)((0,d.Z)({},l),{},{width:f});s&&(X.position="absolute",X.pointerEvents="none");var k=o.createElement(W,(0,_e.Z)({},B,u,{ref:V?null:e,className:We()(a,"".concat(y,"-row"),B==null?void 0:B.className,(0,A.Z)({},"".concat(y,"-row-extra"),s)),style:(0,d.Z)((0,d.Z)({},X),B==null?void 0:B.style)}),C.map(function(R,M){return o.createElement(Wa,{key:M,component:N,rowInfo:z,column:R,colIndex:M,indent:m,index:r,renderIndex:v,record:p,inverse:s,getHeight:c})}));return V?o.createElement("div",{ref:e},k,H):k}),Po=nr(To),oo=Po,No=o.forwardRef(function(n,e){var t=n.data,r=n.onScroll,a=vt(nn,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),i=a.flattenColumns,l=a.onColumnResize,s=a.getRowKey,c=a.expandedKeys,u=a.prefixCls,p=a.childrenColumnName,m=a.emptyNode,v=a.scrollX,g=vt(ka),f=g.sticky,C=g.scrollY,y=g.listItemHeight,S=g.getComponent,x=o.useRef(),T=yn(t,p,c,s),O=o.useMemo(function(){var w=0;return i.map(function(D){var K=D.width,X=D.key;return w+=K,[X,K,w]})},[i]),z=o.useMemo(function(){return O.map(function(w){return w[2]})},[O]);o.useEffect(function(){O.forEach(function(w){var D=(0,Se.Z)(w,2),K=D[0],X=D[1];l(K,X)})},[O]),o.useImperativeHandle(e,function(){var w={scrollTo:function(K){var X;(X=x.current)===null||X===void 0||X.scrollTo(K)}};return Object.defineProperty(w,"scrollLeft",{get:function(){var K;return((K=x.current)===null||K===void 0?void 0:K.getScrollInfo().x)||0},set:function(K){var X;(X=x.current)===null||X===void 0||X.scrollTo({left:K})}}),w});var W=function(D,K){var X,k=(X=T[K])===null||X===void 0?void 0:X.record,R=D.onCell;if(R){var M,G=R(k,K);return(M=G==null?void 0:G.rowSpan)!==null&&M!==void 0?M:1}return 1},N=function(D){var K=D.start,X=D.end,k=D.getSize,R=D.offsetY;if(X<0)return null;for(var M=i.filter(function(ue){return W(ue,K)===0}),G=K,ee=function(me){if(M=M.filter(function(je){return W(je,me)===0}),!M.length)return G=me,1},oe=K;oe>=0&&!ee(oe);oe-=1);for(var q=i.filter(function(ue){return W(ue,X)!==1}),Y=X,J=function(me){if(q=q.filter(function(je){return W(je,me)!==1}),!q.length)return Y=Math.max(me-1,X),1},ne=X;ne1})&&we.push(me)},ge=G;ge<=Y;ge+=1)Ke(ge);var Le=we.map(function(ue){var me=T[ue],je=s(me.record,ue),Rn=function(ce){var pe=ue+ce-1,sn=s(T[pe].record,pe),bn=k(je,sn);return bn.bottom-bn.top},de=k(je);return o.createElement(oo,{key:ue,data:me,rowKey:je,index:ue,style:{top:-R+de.top},extra:!0,getHeight:Rn})});return Le},V=o.useMemo(function(){return{columnsOffset:z}},[z]),j="".concat(u,"-tbody"),B=S(["body","wrapper"]),P=S(["body","row"],"div"),$=S(["body","cell"],"div"),H;if(T.length){var F={};f&&(F.position="sticky",F.bottom=0,(0,mn.Z)(f)==="object"&&f.offsetScroll&&(F.bottom=f.offsetScroll)),H=o.createElement(Dr.Z,{fullHeight:!1,ref:x,prefixCls:"".concat(j,"-virtual"),styles:{horizontalScrollBar:F},className:j,height:C,itemHeight:y||24,data:T,itemKey:function(D){return s(D.record)},component:B,scrollWidth:v,onVirtualScroll:function(D){var K=D.x;r({scrollLeft:K})},extraRender:N},function(w,D,K){var X=s(w.record,D);return o.createElement(oo,(0,_e.Z)({data:w,rowKey:X,index:D},K))})}else H=o.createElement(P,{className:We()("".concat(u,"-placeholder"))},o.createElement(Ae,{component:$,prefixCls:u},m));return o.createElement(za.Provider,{value:V},H)}),lo=nr(No),Ia=lo,Xt=function(e,t){var r=t.ref,a=t.onScroll;return o.createElement(Ia,{ref:r,data:e,onScroll:a})};function It(n,e){var t=n.columns,r=n.scroll,a=n.sticky,i=n.prefixCls,l=i===void 0?ro:i,s=n.className,c=n.listItemHeight,u=n.components,p=r||{},m=p.x,v=p.y;typeof m!="number"&&(m=1),typeof v!="number"&&(v=500);var g=(0,gr.zX)(function(C,y){return(0,E.Z)(u,C)||y}),f=o.useMemo(function(){return{sticky:a,scrollY:v,listItemHeight:c,getComponent:g}},[a,v,c,g]);return o.createElement(ka.Provider,{value:f},o.createElement(ao,(0,_e.Z)({},n,{className:We()(s,"".concat(l,"-virtual")),scroll:(0,d.Z)((0,d.Z)({},r),{},{x:m}),components:(0,d.Z)((0,d.Z)({},u),{},{body:Xt}),columns:t,internalHooks:Ct,tailor:!0,ref:e})))}var Kt=o.forwardRef(It);function jr(n){return Zr(Kt,n)}var br=jr(),Lr=null;function ha(n){return null}var ya=ha;function $o(n){return null}var Ci=$o,bi=h(13622),rl=h(29873),Ko=h(97153),xi=h(26052);function Si(n){const[e,t]=(0,o.useState)(null);return[(0,o.useCallback)((i,l,s)=>{const c=e!=null?e:i,u=Math.min(c||0,i),p=Math.max(c||0,i),m=l.slice(u,p+1).map(f=>n(f)),v=m.some(f=>!s.has(f)),g=[];return m.forEach(f=>{v?(s.has(f)||g.push(f),s.add(f)):(s.delete(f),g.push(f))}),t(v?p:null),g},[e]),i=>{t(i)}]}var Oo=h(27288),Ua=h(84567),io=h(85418),al=h(78045);const oa={},Mo="SELECT_ALL",Fo="SELECT_INVERT",Do="SELECT_NONE",ol=[],ll=(n,e)=>{let t=[];return(e||[]).forEach(r=>{t.push(r),r&&typeof r=="object"&&n in r&&(t=[].concat((0,he.Z)(t),(0,he.Z)(ll(n,r[n]))))}),t};var Zi=(n,e)=>{const{preserveSelectedRowKeys:t,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:i,onChange:l,onSelect:s,onSelectAll:c,onSelectInvert:u,onSelectNone:p,onSelectMultiple:m,columnWidth:v,type:g,selections:f,fixed:C,renderCell:y,hideSelectAll:S,checkStrictly:x=!0}=e||{},{prefixCls:T,data:O,pageData:z,getRecordByKey:W,getRowKey:N,expandType:V,childrenColumnName:j,locale:B,getPopupContainer:P}=n,$=(0,Oo.ln)("Table"),[H,F]=Si(ge=>ge),[w,D]=(0,Xe.Z)(r||a||ol,{value:r}),K=o.useRef(new Map),X=(0,o.useCallback)(ge=>{if(t){const Le=new Map;ge.forEach(ue=>{let me=W(ue);!me&&K.current.has(ue)&&(me=K.current.get(ue)),Le.set(ue,me)}),K.current=Le}},[W,t]);o.useEffect(()=>{X(w)},[w]);const{keyEntities:k}=(0,o.useMemo)(()=>{if(x)return{keyEntities:null};let ge=O;if(t){const Le=new Set(O.map((me,je)=>N(me,je))),ue=Array.from(K.current).reduce((me,je)=>{let[Rn,de]=je;return Le.has(Rn)?me:me.concat(de)},[]);ge=[].concat((0,he.Z)(ge),(0,he.Z)(ue))}return(0,xi.I8)(ge,{externalGetKey:N,childrenPropName:j})},[O,N,x,j,t]),R=(0,o.useMemo)(()=>ll(j,z),[j,z]),M=(0,o.useMemo)(()=>{const ge=new Map;return R.forEach((Le,ue)=>{const me=N(Le,ue),je=(i?i(Le):null)||{};ge.set(me,je)}),ge},[R,N,i]),G=(0,o.useCallback)(ge=>{var Le;return!!(!((Le=M.get(N(ge)))===null||Le===void 0)&&Le.disabled)},[M,N]),[ee,oe]=(0,o.useMemo)(()=>{if(x)return[w||[],[]];const{checkedKeys:ge,halfCheckedKeys:Le}=(0,Ko.S)(w,!0,k,G);return[ge||[],Le]},[w,x,k,G]),q=(0,o.useMemo)(()=>{const ge=g==="radio"?ee.slice(0,1):ee;return new Set(ge)},[ee,g]),Y=(0,o.useMemo)(()=>g==="radio"?new Set:new Set(oe),[oe,g]);o.useEffect(()=>{e||D(ol)},[!!e]);const J=(0,o.useCallback)((ge,Le)=>{let ue,me;X(ge),t?(ue=ge,me=ge.map(je=>K.current.get(je))):(ue=[],me=[],ge.forEach(je=>{const Rn=W(je);Rn!==void 0&&(ue.push(je),me.push(Rn))})),D(ue),l==null||l(ue,me,{type:Le})},[D,W,l,t]),ne=(0,o.useCallback)((ge,Le,ue,me)=>{if(s){const je=ue.map(Rn=>W(Rn));s(W(ge),Le,je,me)}J(ue,"single")},[s,W,J]),we=(0,o.useMemo)(()=>!f||S?null:(f===!0?[Mo,Fo,Do]:f).map(Le=>Le===Mo?{key:"all",text:B.selectionAll,onSelect(){J(O.map((ue,me)=>N(ue,me)).filter(ue=>{const me=M.get(ue);return!(me!=null&&me.disabled)||q.has(ue)}),"all")}}:Le===Fo?{key:"invert",text:B.selectInvert,onSelect(){const ue=new Set(q);z.forEach((je,Rn)=>{const de=N(je,Rn),_=M.get(de);_!=null&&_.disabled||(ue.has(de)?ue.delete(de):ue.add(de))});const me=Array.from(ue);u&&($.deprecated(!1,"onSelectInvert","onChange"),u(me)),J(me,"invert")}}:Le===Do?{key:"none",text:B.selectNone,onSelect(){p==null||p(),J(Array.from(q).filter(ue=>{const me=M.get(ue);return me==null?void 0:me.disabled}),"none")}}:Le).map(Le=>Object.assign(Object.assign({},Le),{onSelect:function(){for(var ue,me,je=arguments.length,Rn=new Array(je),de=0;de{var Le;if(!e)return ge.filter(jn=>jn!==oa);let ue=(0,he.Z)(ge);const me=new Set(q),je=R.map(N).filter(jn=>!M.get(jn).disabled),Rn=je.every(jn=>me.has(jn)),de=je.some(jn=>me.has(jn)),_=()=>{const jn=[];Rn?je.forEach(it=>{me.delete(it),jn.push(it)}):je.forEach(it=>{me.has(it)||(me.add(it),jn.push(it))});const nt=Array.from(me);c==null||c(!Rn,nt.map(it=>W(it)),jn.map(it=>W(it))),J(nt,"all"),F(null)};let ce,pe;if(g!=="radio"){let jn;if(we){const ot={getPopupContainer:P,items:we.map((Lt,Wt)=>{const{key:Ln,text:Ot,onSelect:Bn}=Lt;return{key:Ln!=null?Ln:Wt,onClick:()=>{Bn==null||Bn(je)},label:Ot}})};jn=o.createElement("div",{className:`${T}-selection-extra`},o.createElement(io.Z,{menu:ot,getPopupContainer:P},o.createElement("span",null,o.createElement(bi.Z,null))))}const nt=R.map((ot,Lt)=>{const Wt=N(ot,Lt),Ln=M.get(Wt)||{};return Object.assign({checked:me.has(Wt)},Ln)}).filter(ot=>{let{disabled:Lt}=ot;return Lt}),it=!!nt.length&&nt.length===R.length,wt=it&&nt.every(ot=>{let{checked:Lt}=ot;return Lt}),bt=it&&nt.some(ot=>{let{checked:Lt}=ot;return Lt});pe=o.createElement(Ua.Z,{checked:it?wt:!!R.length&&Rn,indeterminate:it?!wt&&bt:!Rn&&de,onChange:_,disabled:R.length===0||it,"aria-label":jn?"Custom selection":"Select all",skipGroup:!0}),ce=!S&&o.createElement("div",{className:`${T}-selection`},pe,jn)}let sn;g==="radio"?sn=(jn,nt,it)=>{const wt=N(nt,it),bt=me.has(wt);return{node:o.createElement(al.ZP,Object.assign({},M.get(wt),{checked:bt,onClick:ot=>ot.stopPropagation(),onChange:ot=>{me.has(wt)||ne(wt,!0,[wt],ot.nativeEvent)}})),checked:bt}}:sn=(jn,nt,it)=>{var wt;const bt=N(nt,it),ot=me.has(bt),Lt=Y.has(bt),Wt=M.get(bt);let Ln;return V==="nest"?Ln=Lt:Ln=(wt=Wt==null?void 0:Wt.indeterminate)!==null&&wt!==void 0?wt:Lt,{node:o.createElement(Ua.Z,Object.assign({},Wt,{indeterminate:Ln,checked:ot,skipGroup:!0,onClick:Ot=>Ot.stopPropagation(),onChange:Ot=>{let{nativeEvent:Bn}=Ot;const{shiftKey:ca}=Bn,Tr=je.findIndex(Vt=>Vt===bt),xt=ee.some(Vt=>je.includes(Vt));if(ca&&x&&xt){const Vt=H(Tr,je,me),Bt=Array.from(me);m==null||m(!ot,Bt.map(Tt=>W(Tt)),Vt.map(Tt=>W(Tt))),J(Bt,"multiple")}else{const Vt=ee;if(x){const Bt=ot?(0,rl._5)(Vt,bt):(0,rl.L0)(Vt,bt);ne(bt,!ot,Bt,Bn)}else{const Bt=(0,Ko.S)([].concat((0,he.Z)(Vt),[bt]),!0,k,G),{checkedKeys:Tt,halfCheckedKeys:Qt}=Bt;let Ut=Tt;if(ot){const Jr=new Set(Tt);Jr.delete(bt),Ut=(0,Ko.S)(Array.from(Jr),{checked:!1,halfCheckedKeys:Qt},k,G).checkedKeys}ne(bt,!ot,Ut,Bn)}}F(ot?null:Tr)}})),checked:ot}};const bn=(jn,nt,it)=>{const{node:wt,checked:bt}=sn(jn,nt,it);return y?y(bt,nt,it,wt):wt};if(!ue.includes(oa))if(ue.findIndex(jn=>{var nt;return((nt=jn[ve])===null||nt===void 0?void 0:nt.columnType)==="EXPAND_COLUMN"})===0){const[jn,...nt]=ue;ue=[jn,oa].concat((0,he.Z)(nt))}else ue=[oa].concat((0,he.Z)(ue));const fn=ue.indexOf(oa);ue=ue.filter((jn,nt)=>jn!==oa||nt===fn);const Dn=ue[fn-1],Wn=ue[fn+1];let jt=C;jt===void 0&&((Wn==null?void 0:Wn.fixed)!==void 0?jt=Wn.fixed:(Dn==null?void 0:Dn.fixed)!==void 0&&(jt=Dn.fixed)),jt&&Dn&&((Le=Dn[ve])===null||Le===void 0?void 0:Le.columnType)==="EXPAND_COLUMN"&&Dn.fixed===void 0&&(Dn.fixed=jt);const On=We()(`${T}-selection-col`,{[`${T}-selection-col-with-dropdown`]:f&&g==="checkbox"}),Br=()=>e!=null&&e.columnTitle?typeof e.columnTitle=="function"?e.columnTitle(pe):e.columnTitle:ce,Yr={fixed:jt,width:v,className:`${T}-selection-column`,title:Br(),render:bn,onCell:e.onCell,[ve]:{className:On}};return ue.map(jn=>jn===oa?Yr:jn)},[N,R,e,ee,q,Y,v,we,V,M,m,ne,G]),q]},wi=h(98423);function Ei(n,e){return n._antProxy=n._antProxy||{},Object.keys(e).forEach(t=>{if(!(t in n._antProxy)){const r=n[t];n._antProxy[t]=r,n[t]=e[t]}}),n}function Ri(n,e){return(0,o.useImperativeHandle)(n,()=>{const t=e(),{nativeElement:r}=t;return typeof Proxy!="undefined"?new Proxy(r,{get(a,i){return t[i]?t[i]:Reflect.get(a,i)}}):Ei(r,t)})}var Ii=h(58375),jo=h(53124),Ti=h(88258),Pi=h(35792),il=h(98675),sl=h(25378),Ni=h(24457),$i=h(72252),Ki=h(75081),Oi=h(29691);function Mi(n){return function(t){let{prefixCls:r,onExpand:a,record:i,expanded:l,expandable:s}=t;const c=`${r}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:u=>{a(i,u),u.stopPropagation()},className:We()(c,{[`${c}-spaced`]:!s,[`${c}-expanded`]:s&&l,[`${c}-collapsed`]:s&&!l}),"aria-label":l?n.collapse:n.expand,"aria-expanded":l})}}var Fi=Mi;function Di(n){return(t,r)=>{const a=t.querySelector(`.${n}-container`);let i=r;if(a){const l=getComputedStyle(a),s=parseInt(l.borderLeftWidth,10),c=parseInt(l.borderRightWidth,10);i=r-s-c}return i}}function Ca(n,e){return"key"in n&&n.key!==void 0&&n.key!==null?n.key:n.dataIndex?Array.isArray(n.dataIndex)?n.dataIndex.join("."):n.dataIndex:e}function Xa(n,e){return e?`${e}-${n}`:`${n}`}function so(n,e){return typeof n=="function"?n(e):n}function ji(n,e){const t=so(n,e);return Object.prototype.toString.call(t)==="[object Object]"?"":t}var Li={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Bi=Li,Lo=h(93771),ki=function(e,t){return o.createElement(Lo.Z,(0,_e.Z)({},e,{ref:t,icon:Bi}))},zi=o.forwardRef(ki),Ai=zi,Hi=h(57838);function Wi(n){const e=o.useRef(n),t=(0,Hi.Z)();return[()=>e.current,r=>{e.current=r,t()}]}var Ga=h(14726),cl=h(32983),Vi=h(68508),Ui=h(76529),dl=h(66593),Xi=h(25783),Bo=h(96365);function Gi(n){let{value:e,onChange:t,filterSearch:r,tablePrefixCls:a,locale:i}=n;return r?o.createElement("div",{className:`${a}-filter-dropdown-search`},o.createElement(Bo.Z,{prefix:o.createElement(Xi.Z,null),placeholder:i.filterSearchPlaceholder,onChange:t,value:e,htmlSize:1,className:`${a}-filter-dropdown-search-input`})):null}var ul=Gi,co=h(15105);const Yi=n=>{const{keyCode:e}=n;e===co.Z.ENTER&&n.stopPropagation()};var Ji=o.forwardRef((n,e)=>o.createElement("div",{className:n.className,onClick:t=>t.stopPropagation(),onKeyDown:Yi,ref:e},n.children));function Ta(n){let e=[];return(n||[]).forEach(t=>{let{value:r,children:a}=t;e.push(r),a&&(e=[].concat((0,he.Z)(e),(0,he.Z)(Ta(a))))}),e}function Qi(n){return n.some(e=>{let{children:t}=e;return t})}function fl(n,e){return typeof e=="string"||typeof e=="number"?e==null?void 0:e.toString().toLowerCase().includes(n.trim().toLowerCase()):!1}function vl(n){let{filters:e,prefixCls:t,filteredKeys:r,filterMultiple:a,searchValue:i,filterSearch:l}=n;return e.map((s,c)=>{const u=String(s.value);if(s.children)return{key:u||c,label:s.text,popupClassName:`${t}-dropdown-submenu`,children:vl({filters:s.children,prefixCls:t,filteredKeys:r,filterMultiple:a,searchValue:i,filterSearch:l})};const p=a?Ua.Z:al.ZP,m={key:s.value!==void 0?u:c,label:o.createElement(o.Fragment,null,o.createElement(p,{checked:r.includes(u)}),o.createElement("span",null,s.text))};return i.trim()?typeof l=="function"?l(i,s)?m:null:fl(i,s.text)?m:null:m})}function ko(n){return n||[]}function qi(n){var e,t;const{tablePrefixCls:r,prefixCls:a,column:i,dropdownPrefixCls:l,columnKey:s,filterOnClose:c,filterMultiple:u,filterMode:p="menu",filterSearch:m=!1,filterState:v,triggerFilter:g,locale:f,children:C,getPopupContainer:y,rootClassName:S}=n,{filterDropdownOpen:x,onFilterDropdownOpenChange:T,filterResetToDefaultFilteredValue:O,defaultFilteredValue:z,filterDropdownVisible:W,onFilterDropdownVisibleChange:N}=i,[V,j]=o.useState(!1),B=!!(v&&(!((e=v.filteredKeys)===null||e===void 0)&&e.length||v.forceFiltered)),P=de=>{j(de),T==null||T(de),N==null||N(de)},$=(t=x!=null?x:W)!==null&&t!==void 0?t:V,H=v==null?void 0:v.filteredKeys,[F,w]=Wi(ko(H)),D=de=>{let{selectedKeys:_}=de;w(_)},K=(de,_)=>{let{node:ce,checked:pe}=_;D(u?{selectedKeys:de}:{selectedKeys:pe&&ce.key?[ce.key]:[]})};o.useEffect(()=>{V&&D({selectedKeys:ko(H)})},[H]);const[X,k]=o.useState([]),R=de=>{k(de)},[M,G]=o.useState(""),ee=de=>{const{value:_}=de.target;G(_)};o.useEffect(()=>{V||G("")},[V]);const oe=de=>{const _=de&&de.length?de:null;if(_===null&&(!v||!v.filteredKeys)||(0,Gt.Z)(_,v==null?void 0:v.filteredKeys,!0))return null;g({column:i,key:s,filteredKeys:_})},q=()=>{P(!1),oe(F())},Y=function(){let{confirm:de,closeDropdown:_}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};de&&oe([]),_&&P(!1),G(""),w(O?(z||[]).map(ce=>String(ce)):[])},J=function(){let{closeDropdown:de}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};de&&P(!1),oe(F())},ne=(de,_)=>{_.source==="trigger"&&(de&&H!==void 0&&w(ko(H)),P(de),!de&&!i.filterDropdown&&c&&q())},we=We()({[`${l}-menu-without-submenu`]:!Qi(i.filters||[])}),Ke=de=>{if(de.target.checked){const _=Ta(i==null?void 0:i.filters).map(ce=>String(ce));w(_)}else w([])},ge=de=>{let{filters:_}=de;return(_||[]).map((ce,pe)=>{const sn=String(ce.value),bn={title:ce.text,key:ce.value!==void 0?sn:String(pe)};return ce.children&&(bn.children=ge({filters:ce.children})),bn})},Le=de=>{var _;return Object.assign(Object.assign({},de),{text:de.title,value:de.key,children:((_=de.children)===null||_===void 0?void 0:_.map(ce=>Le(ce)))||[]})};let ue;if(typeof i.filterDropdown=="function")ue=i.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:de=>D({selectedKeys:de}),selectedKeys:F(),confirm:J,clearFilters:Y,filters:i.filters,visible:$,close:()=>{P(!1)}});else if(i.filterDropdown)ue=i.filterDropdown;else{const de=F()||[],_=()=>(i.filters||[]).length===0?o.createElement(cl.Z,{image:cl.Z.PRESENTED_IMAGE_SIMPLE,description:f.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):p==="tree"?o.createElement(o.Fragment,null,o.createElement(ul,{filterSearch:m,value:M,onChange:ee,tablePrefixCls:r,locale:f}),o.createElement("div",{className:`${r}-filter-dropdown-tree`},u?o.createElement(Ua.Z,{checked:de.length===Ta(i.filters).length,indeterminate:de.length>0&&de.lengthtypeof m=="function"?m(M,Le(pe)):fl(M,pe.title):void 0}))):o.createElement(o.Fragment,null,o.createElement(ul,{filterSearch:m,value:M,onChange:ee,tablePrefixCls:r,locale:f}),o.createElement(Vi.Z,{selectable:!0,multiple:u,prefixCls:`${l}-menu`,className:we,onSelect:D,onDeselect:D,selectedKeys:de,getPopupContainer:y,openKeys:X,onOpenChange:R,items:vl({filters:i.filters||[],filterSearch:m,prefixCls:a,filteredKeys:F(),filterMultiple:u,searchValue:M})})),ce=()=>O?(0,Gt.Z)((z||[]).map(pe=>String(pe)),de,!0):de.length===0;ue=o.createElement(o.Fragment,null,_(),o.createElement("div",{className:`${a}-dropdown-btns`},o.createElement(Ga.ZP,{type:"link",size:"small",disabled:ce(),onClick:()=>Y()},f.filterReset),o.createElement(Ga.ZP,{type:"primary",size:"small",onClick:q},f.filterConfirm)))}i.filterDropdown&&(ue=o.createElement(Ui.J,{selectable:void 0},ue));const me=()=>o.createElement(Ji,{className:`${a}-dropdown`},ue);let je;typeof i.filterIcon=="function"?je=i.filterIcon(B):i.filterIcon?je=i.filterIcon:je=o.createElement(Ai,null);const{direction:Rn}=o.useContext(jo.E_);return o.createElement("div",{className:`${a}-column`},o.createElement("span",{className:`${r}-column-title`},C),o.createElement(io.Z,{dropdownRender:me,trigger:["click"],open:$,onOpenChange:ne,getPopupContainer:y,placement:Rn==="rtl"?"bottomLeft":"bottomRight",rootClassName:S},o.createElement("span",{role:"button",tabIndex:-1,className:We()(`${a}-trigger`,{active:B}),onClick:de=>{de.stopPropagation()}},je)))}var _i=qi;function zo(n,e,t){let r=[];return(n||[]).forEach((a,i)=>{var l;const s=Xa(i,t);if(a.filters||"filterDropdown"in a||"onFilter"in a)if("filteredValue"in a){let c=a.filteredValue;"filterDropdown"in a||(c=(l=c==null?void 0:c.map(String))!==null&&l!==void 0?l:c),r.push({column:a,key:Ca(a,s),filteredKeys:c,forceFiltered:a.filtered})}else r.push({column:a,key:Ca(a,s),filteredKeys:e&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat((0,he.Z)(r),(0,he.Z)(zo(a.children,e,s))))}),r}function ml(n,e,t,r,a,i,l,s,c){return t.map((u,p)=>{const m=Xa(p,s),{filterOnClose:v=!0,filterMultiple:g=!0,filterMode:f,filterSearch:C}=u;let y=u;if(y.filters||y.filterDropdown){const S=Ca(y,m),x=r.find(T=>{let{key:O}=T;return S===O});y=Object.assign(Object.assign({},y),{title:T=>o.createElement(_i,{tablePrefixCls:n,prefixCls:`${n}-filter`,dropdownPrefixCls:e,column:y,columnKey:S,filterState:x,filterOnClose:v,filterMultiple:g,filterMode:f,filterSearch:C,triggerFilter:i,locale:a,getPopupContainer:l,rootClassName:c},so(u.title,T))})}return"children"in y&&(y=Object.assign(Object.assign({},y),{children:ml(n,e,y.children,r,a,i,l,m,c)})),y})}function pl(n){const e={};return n.forEach(t=>{let{key:r,filteredKeys:a,column:i}=t;const l=r,{filters:s,filterDropdown:c}=i;if(c)e[l]=a||null;else if(Array.isArray(a)){const u=Ta(s);e[l]=u.filter(p=>a.includes(String(p)))}else e[l]=null}),e}function Ao(n,e,t){return e.reduce((r,a)=>{const{column:{onFilter:i,filters:l},filteredKeys:s}=a;return i&&s&&s.length?r.map(c=>Object.assign({},c)).filter(c=>s.some(u=>{const p=Ta(l),m=p.findIndex(g=>String(g)===String(u)),v=m!==-1?p[m]:u;return c[t]&&(c[t]=Ao(c[t],e,t)),i(v,c)})):r},n)}const gl=n=>n.flatMap(e=>"children"in e?[e].concat((0,he.Z)(gl(e.children||[]))):[e]);function es(n){let{prefixCls:e,dropdownPrefixCls:t,mergedColumns:r,onFilterChange:a,getPopupContainer:i,locale:l,rootClassName:s}=n;const c=(0,Oo.ln)("Table"),u=o.useMemo(()=>gl(r||[]),[r]),[p,m]=o.useState(()=>zo(u,!0)),v=o.useMemo(()=>{const y=zo(u,!1);if(y.length===0)return y;let S=!0,x=!0;if(y.forEach(T=>{let{filteredKeys:O}=T;O!==void 0?S=!1:x=!1}),S){const T=(u||[]).map((O,z)=>Ca(O,Xa(z)));return p.filter(O=>{let{key:z}=O;return T.includes(z)}).map(O=>{const z=u[T.findIndex(W=>W===O.key)];return Object.assign(Object.assign({},O),{column:Object.assign(Object.assign({},O.column),z),forceFiltered:z.filtered})})}return y},[u,p]),g=o.useMemo(()=>pl(v),[v]),f=y=>{const S=v.filter(x=>{let{key:T}=x;return T!==y.key});S.push(y),m(S),a(pl(S),S)};return[y=>ml(e,t,y,v,l,f,i,void 0,s),v,g]}var ns=es,ts=h(38780),rs=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const i=n[a];typeof i!="function"&&(t[a]=i)}),t}function os(n,e,t){const r=t&&typeof t=="object"?t:{},{total:a=0}=r,i=rs(r,["total"]),[l,s]=(0,o.useState)(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:hl})),c=(0,ts.Z)(l,i,{total:a>0?a:n}),u=Math.ceil((a||n)/c.pageSize);c.current>u&&(c.current=u||1);const p=(v,g)=>{s({current:v!=null?v:1,pageSize:g||c.pageSize})},m=(v,g)=>{var f;t&&((f=t.onChange)===null||f===void 0||f.call(t,v,g)),p(v,g),e(v,g||(c==null?void 0:c.pageSize))};return t===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:m}),p]}var ls=os,is={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},ss=is,cs=function(e,t){return o.createElement(Lo.Z,(0,_e.Z)({},e,{ref:t,icon:ss}))},ds=o.forwardRef(cs),us=ds,fs={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},vs=fs,ms=function(e,t){return o.createElement(Lo.Z,(0,_e.Z)({},e,{ref:t,icon:vs}))},ps=o.forwardRef(ms),gs=ps,Vr=h(83062);const uo="ascend",Ho="descend";function fo(n){return typeof n.sorter=="object"&&typeof n.sorter.multiple=="number"?n.sorter.multiple:!1}function yl(n){return typeof n=="function"?n:n&&typeof n=="object"&&n.compare?n.compare:!1}function hs(n,e){return e?n[n.indexOf(e)+1]:n[0]}function Wo(n,e,t){let r=[];function a(i,l){r.push({column:i,key:Ca(i,l),multiplePriority:fo(i),sortOrder:i.sortOrder})}return(n||[]).forEach((i,l)=>{const s=Xa(l,t);i.children?("sortOrder"in i&&a(i,s),r=[].concat((0,he.Z)(r),(0,he.Z)(Wo(i.children,e,s)))):i.sorter&&("sortOrder"in i?a(i,s):e&&i.defaultSortOrder&&r.push({column:i,key:Ca(i,s),multiplePriority:fo(i),sortOrder:i.defaultSortOrder}))}),r}function Cl(n,e,t,r,a,i,l,s){return(e||[]).map((c,u)=>{const p=Xa(u,s);let m=c;if(m.sorter){const v=m.sortDirections||a,g=m.showSorterTooltip===void 0?l:m.showSorterTooltip,f=Ca(m,p),C=t.find(V=>{let{key:j}=V;return j===f}),y=C?C.sortOrder:null,S=hs(v,y);let x;if(c.sortIcon)x=c.sortIcon({sortOrder:y});else{const V=v.includes(uo)&&o.createElement(gs,{className:We()(`${n}-column-sorter-up`,{active:y===uo})}),j=v.includes(Ho)&&o.createElement(us,{className:We()(`${n}-column-sorter-down`,{active:y===Ho})});x=o.createElement("span",{className:We()(`${n}-column-sorter`,{[`${n}-column-sorter-full`]:!!(V&&j)})},o.createElement("span",{className:`${n}-column-sorter-inner`,"aria-hidden":"true"},V,j))}const{cancelSort:T,triggerAsc:O,triggerDesc:z}=i||{};let W=T;S===Ho?W=z:S===uo&&(W=O);const N=typeof g=="object"?Object.assign({title:W},g):{title:W};m=Object.assign(Object.assign({},m),{className:We()(m.className,{[`${n}-column-sort`]:y}),title:V=>{const j=o.createElement("div",{className:`${n}-column-sorters`},o.createElement("span",{className:`${n}-column-title`},so(c.title,V)),x);return g?o.createElement(Vr.Z,Object.assign({},N),j):j},onHeaderCell:V=>{const j=c.onHeaderCell&&c.onHeaderCell(V)||{},B=j.onClick,P=j.onKeyDown;j.onClick=F=>{r({column:c,key:f,sortOrder:S,multiplePriority:fo(c)}),B==null||B(F)},j.onKeyDown=F=>{F.keyCode===co.Z.ENTER&&(r({column:c,key:f,sortOrder:S,multiplePriority:fo(c)}),P==null||P(F))};const $=ji(c.title,{}),H=$==null?void 0:$.toString();return y?j["aria-sort"]=y==="ascend"?"ascending":"descending":j["aria-label"]=H||"",j.className=We()(j.className,`${n}-column-has-sorters`),j.tabIndex=0,c.ellipsis&&(j.title=($!=null?$:"").toString()),j}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:Cl(n,m.children,t,r,a,i,l,p)})),m})}function bl(n){const{column:e,sortOrder:t}=n;return{column:e,order:t,field:e.dataIndex,columnKey:e.key}}function xl(n){const e=n.filter(t=>{let{sortOrder:r}=t;return r}).map(bl);return e.length===0&&n.length?Object.assign(Object.assign({},bl(n[n.length-1])),{column:void 0}):e.length<=1?e[0]||{}:e}function Vo(n,e,t){const r=e.slice().sort((l,s)=>s.multiplePriority-l.multiplePriority),a=n.slice(),i=r.filter(l=>{let{column:{sorter:s},sortOrder:c}=l;return yl(s)&&c});return i.length?a.sort((l,s)=>{for(let c=0;c{const s=l[t];return s?Object.assign(Object.assign({},l),{[t]:Vo(s,e,t)}):l}):a}function ys(n){let{prefixCls:e,mergedColumns:t,onSorterChange:r,sortDirections:a,tableLocale:i,showSorterTooltip:l}=n;const[s,c]=o.useState(Wo(t,!0)),u=o.useMemo(()=>{let f=!0;const C=Wo(t,!1);if(!C.length)return s;const y=[];function S(T){f?y.push(T):y.push(Object.assign(Object.assign({},T),{sortOrder:null}))}let x=null;return C.forEach(T=>{x===null?(S(T),T.sortOrder&&(T.multiplePriority===!1?f=!1:x=!0)):(x&&T.multiplePriority!==!1||(f=!1),S(T))}),y},[t,s]),p=o.useMemo(()=>{const f=u.map(C=>{let{column:y,sortOrder:S}=C;return{column:y,order:S}});return{sortColumns:f,sortColumn:f[0]&&f[0].column,sortOrder:f[0]&&f[0].order}},[u]);function m(f){let C;f.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?C=[f]:C=[].concat((0,he.Z)(u.filter(y=>{let{key:S}=y;return S!==f.key})),[f]),c(C),r(xl(C),C)}return[f=>Cl(e,f,u,m,a,i,l),u,p,()=>xl(u)]}function Sl(n,e){return n.map(t=>{const r=Object.assign({},t);return r.title=so(t.title,e),"children"in r&&(r.children=Sl(r.children,e)),r})}function Cs(n){return[o.useCallback(t=>Sl(t,n),[n])]}var bs=et((n,e)=>{const{_renderTimes:t}=n,{_renderTimes:r}=e;return t!==r}),xs=jr((n,e)=>{const{_renderTimes:t}=n,{_renderTimes:r}=e;return t!==r}),Re=h(6731),Ya=h(10274),ba=h(14747),Zl=h(91945),wl=h(45503),Ss=n=>{const{componentCls:e,lineWidth:t,lineType:r,tableBorderColor:a,tableHeaderBg:i,tablePaddingVertical:l,tablePaddingHorizontal:s,calc:c}=n,u=`${(0,Re.bf)(t)} ${r} ${a}`,p=(m,v,g)=>({[`&${e}-${m}`]:{[`> ${e}-container`]:{[`> ${e}-content, > ${e}-body`]:{[` + > table > tbody > tr > th, + > table > tbody > tr > td + `]:{[`> ${e}-expanded-row-fixed`]:{margin:`${(0,Re.bf)(c(v).mul(-1).equal())} + ${(0,Re.bf)(c(c(g).add(t)).mul(-1).equal())}`}}}}}});return{[`${e}-wrapper`]:{[`${e}${e}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${e}-title`]:{border:u,borderBottom:0},[`> ${e}-container`]:{borderInlineStart:u,borderTop:u,[` + > ${e}-content, + > ${e}-header, + > ${e}-body, + > ${e}-summary + `]:{"> table":{[` + > thead > tr > th, + > thead > tr > td, + > tbody > tr > th, + > tbody > tr > td, + > tfoot > tr > th, + > tfoot > tr > td + `]:{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},[` + > thead > tr, + > tbody > tr, + > tfoot > tr + `]:{[`> ${e}-cell-fix-right-first::after`]:{borderInlineEnd:u}},[` + > tbody > tr > th, + > tbody > tr > td + `]:{[`> ${e}-expanded-row-fixed`]:{margin:`${(0,Re.bf)(c(l).mul(-1).equal())} ${(0,Re.bf)(c(c(s).add(t)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:t,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${e}-scroll-horizontal`]:{[`> ${e}-container > ${e}-body`]:{"> table > tbody":{[` + > tr${e}-expanded-row, + > tr${e}-placeholder + `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},p("middle",n.tablePaddingVerticalMiddle,n.tablePaddingHorizontalMiddle)),p("small",n.tablePaddingVerticalSmall,n.tablePaddingHorizontalSmall)),{[`> ${e}-footer`]:{border:u,borderTop:0}}),[`${e}-cell`]:{[`${e}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,Re.bf)(t)} 0 ${(0,Re.bf)(t)} ${i}`}},[`${e}-bordered ${e}-cell-scrollbar`]:{borderInlineEnd:u}}}},Zs=n=>{const{componentCls:e}=n;return{[`${e}-wrapper`]:{[`${e}-cell-ellipsis`]:Object.assign(Object.assign({},ba.vS),{wordBreak:"keep-all",[` + &${e}-cell-fix-left-last, + &${e}-cell-fix-right-first + `]:{overflow:"visible",[`${e}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${e}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},ws=n=>{const{componentCls:e}=n;return{[`${e}-wrapper`]:{[`${e}-tbody > tr${e}-placeholder`]:{textAlign:"center",color:n.colorTextDisabled,[` + &:hover > th, + &:hover > td, + `]:{background:n.colorBgContainer}}}}},Es=h(49867),Rs=n=>{const{componentCls:e,antCls:t,motionDurationSlow:r,lineWidth:a,paddingXS:i,lineType:l,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:p,tablePaddingVertical:m,tablePaddingHorizontal:v,tableExpandedRowBg:g,paddingXXS:f,expandIconMarginTop:C,expandIconSize:y,expandIconHalfInner:S,expandIconScale:x,calc:T}=n,O=`${(0,Re.bf)(a)} ${l} ${s}`,z=T(f).sub(a).equal();return{[`${e}-wrapper`]:{[`${e}-expand-icon-col`]:{width:u},[`${e}-row-expand-icon-cell`]:{textAlign:"center",[`${e}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${e}-row-indent`]:{height:1,float:"left"},[`${e}-row-expand-icon`]:Object.assign(Object.assign({},(0,Es.N)(n)),{position:"relative",float:"left",boxSizing:"border-box",width:y,height:y,padding:0,color:"inherit",lineHeight:(0,Re.bf)(y),background:c,border:O,borderRadius:p,transform:`scale(${x})`,transition:`all ${r}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:z,insetInlineStart:z,height:a},"&::after":{top:z,bottom:z,insetInlineStart:S,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${e}-row-indent + ${e}-row-expand-icon`]:{marginTop:C,marginInlineEnd:i},[`tr${e}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:g}},[`${t}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${e}-expanded-row-fixed`]:{position:"relative",margin:`${(0,Re.bf)(T(m).mul(-1).equal())} ${(0,Re.bf)(T(v).mul(-1).equal())}`,padding:`${(0,Re.bf)(m)} ${(0,Re.bf)(v)}`}}}},Is=n=>{const{componentCls:e,antCls:t,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:i,paddingXXS:l,paddingXS:s,colorText:c,lineWidth:u,lineType:p,tableBorderColor:m,headerIconColor:v,fontSizeSM:g,tablePaddingHorizontal:f,borderRadius:C,motionDurationSlow:y,colorTextDescription:S,colorPrimary:x,tableHeaderFilterActiveBg:T,colorTextDisabled:O,tableFilterDropdownBg:z,tableFilterDropdownHeight:W,controlItemBgHover:N,controlItemBgActive:V,boxShadowSecondary:j,filterDropdownMenuBg:B,calc:P}=n,$=`${t}-dropdown`,H=`${e}-filter-dropdown`,F=`${t}-tree`,w=`${(0,Re.bf)(u)} ${p} ${m}`;return[{[`${e}-wrapper`]:{[`${e}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${e}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:P(l).mul(-1).equal(),marginInline:`${(0,Re.bf)(l)} ${(0,Re.bf)(P(f).div(2).mul(-1).equal())}`,padding:`0 ${(0,Re.bf)(l)}`,color:v,fontSize:g,borderRadius:C,cursor:"pointer",transition:`all ${y}`,"&:hover":{color:S,background:T},"&.active":{color:x}}}},{[`${t}-dropdown`]:{[H]:Object.assign(Object.assign({},(0,ba.Wf)(n)),{minWidth:a,backgroundColor:z,borderRadius:C,boxShadow:j,overflow:"hidden",[`${$}-menu`]:{maxHeight:W,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:B,"&:empty::after":{display:"block",padding:`${(0,Re.bf)(s)} 0`,color:O,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${H}-tree`]:{paddingBlock:`${(0,Re.bf)(s)} 0`,paddingInline:s,[F]:{padding:0},[`${F}-treenode ${F}-node-content-wrapper:hover`]:{backgroundColor:N},[`${F}-treenode-checkbox-checked ${F}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:V}}},[`${H}-search`]:{padding:s,borderBottom:w,"&-input":{input:{minWidth:i},[r]:{color:O}}},[`${H}-checkall`]:{width:"100%",marginBottom:l,marginInlineStart:l},[`${H}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,Re.bf)(P(s).sub(u).equal())} ${(0,Re.bf)(s)}`,overflow:"hidden",borderTop:w}})}},{[`${t}-dropdown ${H}, ${H}-submenu`]:{[`${t}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ts=n=>{const{componentCls:e,lineWidth:t,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:i,tableBg:l,zIndexTableSticky:s,calc:c}=n,u=r;return{[`${e}-wrapper`]:{[` + ${e}-cell-fix-left, + ${e}-cell-fix-right + `]:{position:"sticky !important",zIndex:i,background:l},[` + ${e}-cell-fix-left-first::after, + ${e}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(t).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${e}-cell-fix-left-all::after`]:{display:"none"},[` + ${e}-cell-fix-right-first::after, + ${e}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:c(t).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${e}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${e}-ping-left`]:{[`&:not(${e}-has-fix-left) ${e}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[` + ${e}-cell-fix-left-first::after, + ${e}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${e}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${e}-ping-right`]:{[`&:not(${e}-has-fix-right) ${e}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[` + ${e}-cell-fix-right-first::after, + ${e}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${e}-fixed-column-gapped`]:{[` + ${e}-cell-fix-left-first::after, + ${e}-cell-fix-left-last::after, + ${e}-cell-fix-right-first::after, + ${e}-cell-fix-right-last::after + `]:{boxShadow:"none"}}}}},Ps=n=>{const{componentCls:e,antCls:t,margin:r}=n;return{[`${e}-wrapper`]:{[`${e}-pagination${t}-pagination`]:{margin:`${(0,Re.bf)(r)} 0`},[`${e}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:n.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ns=n=>{const{componentCls:e,tableRadius:t}=n;return{[`${e}-wrapper`]:{[e]:{[`${e}-title, ${e}-header`]:{borderRadius:`${(0,Re.bf)(t)} ${(0,Re.bf)(t)} 0 0`},[`${e}-title + ${e}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${e}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:t,borderStartEndRadius:t,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:t},"> *:last-child":{borderStartEndRadius:t}}},"&-footer":{borderRadius:`0 0 ${(0,Re.bf)(t)} ${(0,Re.bf)(t)}`}}}}},$s=n=>{const{componentCls:e}=n;return{[`${e}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${e}-pagination-left`]:{justifyContent:"flex-end"},[`${e}-pagination-right`]:{justifyContent:"flex-start"},[`${e}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${e}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${e}-row-indent`]:{float:"right"}}}}},Ks=n=>{const{componentCls:e,antCls:t,iconCls:r,fontSizeIcon:a,padding:i,paddingXS:l,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:p,tableSelectedRowHoverBg:m,tableRowHoverBg:v,tablePaddingHorizontal:g,calc:f}=n;return{[`${e}-wrapper`]:{[`${e}-selection-col`]:{width:u,[`&${e}-selection-col-with-dropdown`]:{width:f(u).add(a).add(f(i).div(4)).equal()}},[`${e}-bordered ${e}-selection-col`]:{width:f(u).add(f(l).mul(2)).equal(),[`&${e}-selection-col-with-dropdown`]:{width:f(u).add(a).add(f(i).div(4)).add(f(l).mul(2)).equal()}},[` + table tr th${e}-selection-column, + table tr td${e}-selection-column, + ${e}-selection-column + `]:{paddingInlineEnd:n.paddingXS,paddingInlineStart:n.paddingXS,textAlign:"center",[`${t}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${e}-selection-column${e}-cell-fix-left`]:{zIndex:n.zIndexTableFixed+1},[`table tr th${e}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${e}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${e}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${n.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,Re.bf)(f(g).div(4).equal()),[r]:{color:s,fontSize:a,verticalAlign:"baseline","&:hover":{color:c}}},[`${e}-tbody`]:{[`${e}-row`]:{[`&${e}-row-selected`]:{[`> ${e}-cell`]:{background:p,"&-row-hover":{background:m}}},[`> ${e}-cell-row-hover`]:{background:v}}}}}},Os=n=>{const{componentCls:e,tableExpandColumnWidth:t,calc:r}=n,a=(i,l,s,c)=>({[`${e}${e}-${i}`]:{fontSize:c,[` + ${e}-title, + ${e}-footer, + ${e}-cell, + ${e}-thead > tr > th, + ${e}-tbody > tr > th, + ${e}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${(0,Re.bf)(l)} ${(0,Re.bf)(s)}`},[`${e}-filter-trigger`]:{marginInlineEnd:(0,Re.bf)(r(s).div(2).mul(-1).equal())},[`${e}-expanded-row-fixed`]:{margin:`${(0,Re.bf)(r(l).mul(-1).equal())} ${(0,Re.bf)(r(s).mul(-1).equal())}`},[`${e}-tbody`]:{[`${e}-wrapper:only-child ${e}`]:{marginBlock:(0,Re.bf)(r(l).mul(-1).equal()),marginInline:`${(0,Re.bf)(r(t).sub(s).equal())} ${(0,Re.bf)(r(s).mul(-1).equal())}`}},[`${e}-selection-extra`]:{paddingInlineStart:(0,Re.bf)(r(s).div(4).equal())}}});return{[`${e}-wrapper`]:Object.assign(Object.assign({},a("middle",n.tablePaddingVerticalMiddle,n.tablePaddingHorizontalMiddle,n.tableFontSizeMiddle)),a("small",n.tablePaddingVerticalSmall,n.tablePaddingHorizontalSmall,n.tableFontSizeSmall))}},Ms=n=>{const{componentCls:e,marginXXS:t,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:i}=n;return{[`${e}-wrapper`]:{[`${e}-thead th${e}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${n.motionDurationSlow}`,"&:hover":{background:n.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:n.colorPrimary},[` + &${e}-cell-fix-left:hover, + &${e}-cell-fix-right:hover + `]:{background:n.tableFixedHeaderSortActiveBg}},[`${e}-thead th${e}-column-sort`]:{background:n.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${e}-column-sort`]:{background:n.tableBodySortBg},[`${e}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${e}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${e}-column-sorter`]:{marginInlineStart:t,color:a,fontSize:0,transition:`color ${n.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:n.colorPrimary}},[`${e}-column-sorter-up + ${e}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${e}-column-sorters:hover ${e}-column-sorter`]:{color:i}}}},Fs=n=>{const{componentCls:e,opacityLoading:t,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:i,tableScrollBg:l,zIndexTableSticky:s,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:p,tableBorderColor:m}=n,v=`${(0,Re.bf)(u)} ${p} ${m}`;return{[`${e}-wrapper`]:{[`${e}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:n.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,Re.bf)(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:l,borderTop:v,opacity:t,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:c,transition:`all ${n.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},El=n=>{const{componentCls:e,lineWidth:t,tableBorderColor:r,calc:a}=n,i=`${(0,Re.bf)(t)} ${n.lineType} ${r}`;return{[`${e}-wrapper`]:{[`${e}-summary`]:{position:"relative",zIndex:n.zIndexTableFixed,background:n.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${e}-summary`]:{boxShadow:`0 ${(0,Re.bf)(a(t).mul(-1).equal())} 0 ${r}`}}}},Ds=n=>{const{componentCls:e,motionDurationMid:t,lineWidth:r,lineType:a,tableBorderColor:i,calc:l}=n,s=`${(0,Re.bf)(r)} ${a} ${i}`,c=`${e}-expanded-row-cell`;return{[`${e}-wrapper`]:{[`${e}-tbody-virtual`]:{[`${e}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${e}-cell`]:{borderBottom:s,transition:`background ${t}`},[`${e}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,Re.bf)(r)})`,borderInlineEnd:"none"}}},[`${e}-bordered`]:{[`${e}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${e}-cell`]:{borderInlineEnd:s,[`&${e}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:l(r).mul(-1).equal(),borderInlineStart:s}}},[`&${e}-virtual`]:{[`${e}-placeholder ${e}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}};const js=n=>{const{componentCls:e,fontWeightStrong:t,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:i,lineWidth:l,lineType:s,tableBorderColor:c,tableFontSize:u,tableBg:p,tableRadius:m,tableHeaderTextColor:v,motionDurationMid:g,tableHeaderBg:f,tableHeaderCellSplitColor:C,tableFooterTextColor:y,tableFooterBg:S,calc:x}=n,T=`${(0,Re.bf)(l)} ${s} ${c}`;return{[`${e}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ba.dF)()),{[e]:Object.assign(Object.assign({},(0,ba.Wf)(n)),{fontSize:u,background:p,borderRadius:`${(0,Re.bf)(m)} ${(0,Re.bf)(m)} 0 0`,scrollbarColor:`${n.tableScrollThumbBg} ${n.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,Re.bf)(m)} ${(0,Re.bf)(m)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${e}-cell, + ${e}-thead > tr > th, + ${e}-tbody > tr > th, + ${e}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${(0,Re.bf)(r)} ${(0,Re.bf)(a)}`,overflowWrap:"break-word"},[`${e}-title`]:{padding:`${(0,Re.bf)(r)} ${(0,Re.bf)(a)}`},[`${e}-thead`]:{[` + > tr > th, + > tr > td + `]:{position:"relative",color:v,fontWeight:t,textAlign:"start",background:f,borderBottom:T,transition:`background ${g} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${e}-selection-column):not(${e}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:C,transform:"translateY(-50%)",transition:`background-color ${g}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${e}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${g}, border-color ${g}`,borderBottom:T,[` + > ${e}-wrapper:only-child, + > ${e}-expanded-row-fixed > ${e}-wrapper:only-child + `]:{[e]:{marginBlock:(0,Re.bf)(x(r).mul(-1).equal()),marginInline:`${(0,Re.bf)(x(i).sub(a).equal())} + ${(0,Re.bf)(x(a).mul(-1).equal())}`,[`${e}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:v,fontWeight:t,textAlign:"start",background:f,borderBottom:T,transition:`background ${g} ease`}}},[`${e}-footer`]:{padding:`${(0,Re.bf)(r)} ${(0,Re.bf)(a)}`,color:y,background:S}})}},Ls=n=>{const{colorFillAlter:e,colorBgContainer:t,colorTextHeading:r,colorFillSecondary:a,colorFillContent:i,controlItemBgActive:l,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:p,colorBorderSecondary:m,borderRadiusLG:v,controlHeight:g,colorTextPlaceholder:f,fontSize:C,fontSizeSM:y,lineHeight:S,lineWidth:x,colorIcon:T,colorIconHover:O,opacityLoading:z,controlInteractiveSize:W}=n,N=new Ya.C(a).onBackground(t).toHexShortString(),V=new Ya.C(i).onBackground(t).toHexShortString(),j=new Ya.C(e).onBackground(t).toHexShortString(),B=new Ya.C(T),P=new Ya.C(O),$=W/2-x,H=$*2+x*3;return{headerBg:j,headerColor:r,headerSortActiveBg:N,headerSortHoverBg:V,bodySortBg:j,rowHoverBg:j,rowSelectedBg:l,rowSelectedHoverBg:s,rowExpandedBg:e,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:p,cellPaddingBlockSM:p,cellPaddingInlineSM:p,borderColor:m,headerBorderRadius:v,footerBg:j,footerColor:r,cellFontSize:C,cellFontSizeMD:C,cellFontSizeSM:C,headerSplitColor:m,fixedHeaderSortActiveBg:N,headerFilterHoverBg:i,filterDropdownMenuBg:t,filterDropdownBg:t,expandIconBg:t,selectionColumnWidth:g,stickyScrollBarBg:f,stickyScrollBarBorderRadius:100,expandIconMarginTop:(C*S-x*3)/2-Math.ceil((y*1.4-x*3)/2),headerIconColor:B.clone().setAlpha(B.getAlpha()*z).toRgbString(),headerIconHoverColor:P.clone().setAlpha(P.getAlpha()*z).toRgbString(),expandIconHalfInner:$,expandIconSize:H,expandIconScale:W/H}};var Bs=(0,Zl.I$)("Table",n=>{const{colorTextHeading:e,colorSplit:t,colorBgContainer:r,controlInteractiveSize:a,headerBg:i,headerColor:l,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:p,rowSelectedBg:m,rowSelectedHoverBg:v,rowExpandedBg:g,cellPaddingBlock:f,cellPaddingInline:C,cellPaddingBlockMD:y,cellPaddingInlineMD:S,cellPaddingBlockSM:x,cellPaddingInlineSM:T,borderColor:O,footerBg:z,footerColor:W,headerBorderRadius:N,cellFontSize:V,cellFontSizeMD:j,cellFontSizeSM:B,headerSplitColor:P,fixedHeaderSortActiveBg:$,headerFilterHoverBg:H,filterDropdownBg:F,expandIconBg:w,selectionColumnWidth:D,stickyScrollBarBg:K,calc:X}=n,k=2,R=(0,wl.TS)(n,{tableFontSize:V,tableBg:r,tableRadius:N,tablePaddingVertical:f,tablePaddingHorizontal:C,tablePaddingVerticalMiddle:y,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:x,tablePaddingHorizontalSmall:T,tableBorderColor:O,tableHeaderTextColor:l,tableHeaderBg:i,tableFooterTextColor:W,tableFooterBg:z,tableHeaderCellSplitColor:P,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:$,tableHeaderFilterActiveBg:H,tableFilterDropdownBg:F,tableRowHoverBg:p,tableSelectedRowBg:m,tableSelectedRowHoverBg:v,zIndexTableFixed:k,zIndexTableSticky:k+1,tableFontSizeMiddle:j,tableFontSizeSmall:B,tableSelectionColumnWidth:D,tableExpandIconBg:w,tableExpandColumnWidth:X(a).add(X(n.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:K,tableScrollThumbBgHover:e,tableScrollBg:t});return[js(R),Ps(R),El(R),Ms(R),Is(R),Ss(R),Ns(R),Rs(R),El(R),ws(R),Ks(R),Ts(R),Fs(R),Zs(R),Os(R),$s(R),Ds(R)]},Ls,{unitless:{expandIconScale:!0}});const ks=[],zs=(n,e)=>{var t,r;const{prefixCls:a,className:i,rootClassName:l,style:s,size:c,bordered:u,dropdownPrefixCls:p,dataSource:m,pagination:v,rowSelection:g,rowKey:f="key",rowClassName:C,columns:y,children:S,childrenColumnName:x,onChange:T,getPopupContainer:O,loading:z,expandIcon:W,expandable:N,expandedRowRender:V,expandIconColumnIndex:j,indentSize:B,scroll:P,sortDirections:$,locale:H,showSorterTooltip:F=!0,virtual:w}=n,D=(0,Oo.ln)("Table"),K=o.useMemo(()=>y||ea(S),[y,S]),X=o.useMemo(()=>K.some(Oe=>Oe.responsive),[K]),k=(0,sl.Z)(X),R=o.useMemo(()=>{const Oe=new Set(Object.keys(k).filter(vn=>k[vn]));return K.filter(vn=>!vn.responsive||vn.responsive.some(tt=>Oe.has(tt)))},[K,k]),M=(0,wi.Z)(n,["className","style","columns"]),{locale:G=Ni.Z,direction:ee,table:oe,renderEmpty:q,getPrefixCls:Y,getPopupContainer:J}=o.useContext(jo.E_),ne=(0,il.Z)(c),we=Object.assign(Object.assign({},G.Table),H),Ke=m||ks,ge=Y("table",a),Le=Y("dropdown",p),[,ue]=(0,Oi.ZP)(),me=(0,Pi.Z)(ge),[je,Rn,de]=Bs(ge,me),_=Object.assign(Object.assign({childrenColumnName:x,expandIconColumnIndex:j},N),{expandIcon:(t=N==null?void 0:N.expandIcon)!==null&&t!==void 0?t:(r=oe==null?void 0:oe.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ce="children"}=_,pe=o.useMemo(()=>Ke.some(Oe=>Oe==null?void 0:Oe[ce])?"nest":V||N&&N.expandedRowRender?"row":null,[Ke]),sn={body:o.useRef()},bn=Di(ge),fn=o.useRef(null),Dn=o.useRef(null);Ri(e,()=>Object.assign(Object.assign({},Dn.current),{nativeElement:fn.current}));const Wn=o.useMemo(()=>typeof f=="function"?f:Oe=>Oe==null?void 0:Oe[f],[f]),[jt]=Ee(Ke,ce,Wn),On={},Br=function(Oe,vn){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var pt,Et,cr;const xr=Object.assign(Object.assign({},On),Oe);tt&&((pt=On.resetPagination)===null||pt===void 0||pt.call(On),!((Et=xr.pagination)===null||Et===void 0)&&Et.current&&(xr.pagination.current=1),v&&v.onChange&&v.onChange(1,(cr=xr.pagination)===null||cr===void 0?void 0:cr.pageSize)),P&&P.scrollToFirstRowOnChange!==!1&&sn.body.current&&(0,Ii.Z)(0,{getContainer:()=>sn.body.current}),T==null||T(xr.pagination,xr.filters,xr.sorter,{currentDataSource:Ao(Vo(Ke,xr.sorterStates,ce),xr.filterStates,ce),action:vn})},Yr=(Oe,vn)=>{Br({sorter:Oe,sorterStates:vn},"sort",!1)},[jn,nt,it,wt]=ys({prefixCls:ge,mergedColumns:R,onSorterChange:Yr,sortDirections:$||["ascend","descend"],tableLocale:we,showSorterTooltip:F}),bt=o.useMemo(()=>Vo(Ke,nt,ce),[Ke,nt]);On.sorter=wt(),On.sorterStates=nt;const ot=(Oe,vn)=>{Br({filters:Oe,filterStates:vn},"filter",!0)},[Lt,Wt,Ln]=ns({prefixCls:ge,locale:we,dropdownPrefixCls:Le,mergedColumns:R,onFilterChange:ot,getPopupContainer:O||J,rootClassName:We()(l,me)}),Ot=Ao(bt,Wt,ce);On.filters=Ln,On.filterStates=Wt;const Bn=o.useMemo(()=>{const Oe={};return Object.keys(Ln).forEach(vn=>{Ln[vn]!==null&&(Oe[vn]=Ln[vn])}),Object.assign(Object.assign({},it),{filters:Oe})},[it,Ln]),[ca]=Cs(Bn),Tr=(Oe,vn)=>{Br({pagination:Object.assign(Object.assign({},On.pagination),{current:Oe,pageSize:vn})},"paginate")},[xt,Vt]=ls(Ot.length,Tr,v);On.pagination=v===!1?{}:as(xt,v),On.resetPagination=Vt;const Bt=o.useMemo(()=>{if(v===!1||!xt.pageSize)return Ot;const{current:Oe=1,total:vn,pageSize:tt=hl}=xt;return Ot.lengthtt?Ot.slice((Oe-1)*tt,Oe*tt):Ot:Ot.slice((Oe-1)*tt,Oe*tt)},[!!v,Ot,xt&&xt.current,xt&&xt.pageSize,xt&&xt.total]),[Tt,Qt]=Zi({prefixCls:ge,data:Ot,pageData:Bt,getRowKey:Wn,getRecordByKey:jt,expandType:pe,childrenColumnName:ce,locale:we,getPopupContainer:O||J},g),Ut=(Oe,vn,tt)=>{let pt;return typeof C=="function"?pt=We()(C(Oe,vn,tt)):pt=We()(C),We()({[`${ge}-row-selected`]:Qt.has(Wn(Oe,vn))},pt)};_.__PARENT_RENDER_ICON__=_.expandIcon,_.expandIcon=_.expandIcon||W||Fi(we),pe==="nest"&&_.expandIconColumnIndex===void 0?_.expandIconColumnIndex=g?1:0:_.expandIconColumnIndex>0&&g&&(_.expandIconColumnIndex-=1),typeof _.indentSize!="number"&&(_.indentSize=typeof B=="number"?B:15);const Jr=o.useCallback(Oe=>ca(Tt(Lt(jn(Oe)))),[jn,Lt,Tt]);let pr,qt;if(v!==!1&&(xt!=null&&xt.total)){let Oe;xt.size?Oe=xt.size:Oe=ne==="small"||ne==="middle"?"small":void 0;const vn=Et=>o.createElement($i.Z,Object.assign({},xt,{className:We()(`${ge}-pagination ${ge}-pagination-${Et}`,xt.className),size:Oe})),tt=ee==="rtl"?"left":"right",{position:pt}=xt;if(pt!==null&&Array.isArray(pt)){const Et=pt.find(ua=>ua.includes("top")),cr=pt.find(ua=>ua.includes("bottom")),xr=pt.every(ua=>`${ua}`=="none");!Et&&!cr&&!xr&&(qt=vn(tt)),Et&&(pr=vn(Et.toLowerCase().replace("top",""))),cr&&(qt=vn(cr.toLowerCase().replace("bottom","")))}else qt=vn(tt)}let da;typeof z=="boolean"?da={spinning:z}:typeof z=="object"&&(da=Object.assign({spinning:!0},z));const Oa=We()(de,me,`${ge}-wrapper`,oe==null?void 0:oe.className,{[`${ge}-wrapper-rtl`]:ee==="rtl"},i,l,Rn),Ma=Object.assign(Object.assign({},oe==null?void 0:oe.style),s),qa=H&&H.emptyText||(q==null?void 0:q("Table"))||o.createElement(Ti.Z,{componentName:"Table"}),_a=w?xs:bs,Ne={},He=o.useMemo(()=>{const{fontSize:Oe,lineHeight:vn,padding:tt,paddingXS:pt,paddingSM:Et}=ue,cr=Math.floor(Oe*vn);switch(ne){case"large":return tt*2+cr;case"small":return pt*2+cr;default:return Et*2+cr}},[ue,ne]);return w&&(Ne.listItemHeight=He),je(o.createElement("div",{ref:fn,className:Oa,style:Ma},o.createElement(Ki.Z,Object.assign({spinning:!1},da),pr,o.createElement(_a,Object.assign({},Ne,M,{ref:Dn,columns:R,direction:ee,expandable:_,prefixCls:ge,className:We()({[`${ge}-middle`]:ne==="middle",[`${ge}-small`]:ne==="small",[`${ge}-bordered`]:u,[`${ge}-empty`]:Ke.length===0},de,me,Rn),data:Bt,rowKey:Wn,rowClassName:Ut,emptyText:qa,internalHooks:Ct,internalRefs:sn,transformColumns:Jr,getContainerWidth:bn})),qt)))};var As=o.forwardRef(zs);const Hs=(n,e)=>{const t=o.useRef(0);return t.current+=1,o.createElement(As,Object.assign({},n,{ref:e,_renderTimes:t.current}))},Ur=o.forwardRef(Hs);Ur.SELECTION_COLUMN=oa,Ur.EXPAND_COLUMN=Xn,Ur.SELECTION_ALL=Mo,Ur.SELECTION_INVERT=Fo,Ur.SELECTION_NONE=Do,Ur.Column=ya,Ur.ColumnGroup=Ci,Ur.Summary=dn;var Ws=Ur,la=Ws,sr=h(28459),Vs=h(72378),vo=h.n(Vs),yv=function(e){return e!=null};function Us(n,e,t){var r,a;if(n===!1)return!1;var i=e.total,l=e.current,s=e.pageSize,c=e.setPageInfo,u=(0,mn.Z)(n)==="object"?n:{};return(0,d.Z)((0,d.Z)({showTotal:function(m,v){return"".concat(t.getMessage("pagination.total.range","\u7B2C")," ").concat(v[0],"-").concat(v[1]," ").concat(t.getMessage("pagination.total.total","\u6761/\u603B\u5171")," ").concat(m," ").concat(t.getMessage("pagination.total.item","\u6761"))},total:i},u),{},{current:n!==!0&&n&&(r=n.current)!==null&&r!==void 0?r:l,pageSize:n!==!0&&n&&(a=n.pageSize)!==null&&a!==void 0?a:s,onChange:function(m,v){var g=n,f=g.onChange;f==null||f(m,v||20),(v!==s||l!==m)&&c({pageSize:v,current:m})}})}function Xs(n,e,t){var r=(0,d.Z)((0,d.Z)({},t.editableUtils),{},{pageInfo:e.pageInfo,reload:function(){var a=(0,le.Z)((0,Q.Z)().mark(function l(s){return(0,Q.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!s){u.next=3;break}return u.next=3,e.setPageInfo({current:1});case 3:return u.next=5,e==null?void 0:e.reload();case 5:case"end":return u.stop()}},l)}));function i(l){return a.apply(this,arguments)}return i}(),reloadAndRest:function(){var a=(0,le.Z)((0,Q.Z)().mark(function l(){return(0,Q.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return t.onCleanSelected(),c.next=3,e.setPageInfo({current:1});case 3:return c.next=5,e==null?void 0:e.reload();case 5:case"end":return c.stop()}},l)}));function i(){return a.apply(this,arguments)}return i}(),reset:function(){var a=(0,le.Z)((0,Q.Z)().mark(function l(){var s;return(0,Q.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,t.resetAll();case 2:return u.next=4,e==null||(s=e.reset)===null||s===void 0?void 0:s.call(e);case 4:return u.next=6,e==null?void 0:e.reload();case 6:case"end":return u.stop()}},l)}));function i(){return a.apply(this,arguments)}return i}(),fullScreen:function(){return t.fullScreen()},clearSelected:function(){return t.onCleanSelected()},setPageInfo:function(i){return e.setPageInfo(i)}});n.current=r}function Gs(n,e){return e.filter(function(t){return t}).length<1?n:e.reduce(function(t,r){return r(t)},n)}var Rl=function(e,t){return t===void 0?!1:typeof t=="boolean"?t:t[e]},Ys=function(e){var t;return e&&(0,mn.Z)(e)==="object"&&(e==null||(t=e.props)===null||t===void 0?void 0:t.colSpan)},Pa=function(e,t){return e?Array.isArray(e)?e.join("-"):e.toString():"".concat(t)};function Js(n){return Array.isArray(n)?n.join(","):n==null?void 0:n.toString()}function Qs(n){var e={},t={};return n.forEach(function(r){var a=Js(r.dataIndex);if(a){if(r.filters){var i=r.defaultFilteredValue;i===void 0?e[a]=null:e[a]=r.defaultFilteredValue}r.sorter&&r.defaultSortOrder&&(t[a]=r.defaultSortOrder)}}),{sort:t,filter:e}}function qs(){var n,e,t,r,a,i,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=(0,o.useRef)(),c=(0,o.useRef)(null),u=(0,o.useRef)(),p=(0,o.useRef)(),m=(0,o.useState)(""),v=(0,Se.Z)(m,2),g=v[0],f=v[1],C=(0,o.useRef)([]),y=(0,Xe.Z)(function(){return l.size||l.defaultSize||"middle"},{value:l.size,onChange:l.onSizeChange}),S=(0,Se.Z)(y,2),x=S[0],T=S[1],O=(0,o.useMemo)(function(){var P,$;if(l!=null&&(P=l.columnsState)!==null&&P!==void 0&&P.defaultValue)return l.columnsState.defaultValue;var H={};return($=l.columns)===null||$===void 0||$.forEach(function(F,w){var D=F.key,K=F.dataIndex,X=F.fixed,k=F.disable,R=Pa(D!=null?D:K,w);R&&(H[R]={show:!0,fixed:X,disable:k})}),H},[l.columns]),z=(0,Xe.Z)(function(){var P,$,H=l.columnsState||{},F=H.persistenceType,w=H.persistenceKey;if(w&&F&&typeof window!="undefined"){var D=window[F];try{var K=D==null?void 0:D.getItem(w);if(K){var X;if(l!=null&&(X=l.columnsState)!==null&&X!==void 0&&X.defaultValue){var k;return vo()(JSON.parse(K),l==null||(k=l.columnsState)===null||k===void 0?void 0:k.defaultValue)}return JSON.parse(K)}}catch(R){console.warn(R)}}return l.columnsStateMap||((P=l.columnsState)===null||P===void 0?void 0:P.value)||(($=l.columnsState)===null||$===void 0?void 0:$.defaultValue)||O},{value:((n=l.columnsState)===null||n===void 0?void 0:n.value)||l.columnsStateMap,onChange:((e=l.columnsState)===null||e===void 0?void 0:e.onChange)||l.onColumnsStateChange}),W=(0,Se.Z)(z,2),N=W[0],V=W[1];(0,o.useEffect)(function(){var P=l.columnsState||{},$=P.persistenceType,H=P.persistenceKey;if(H&&$&&typeof window!="undefined"){var F=window[$];try{var w=F==null?void 0:F.getItem(H);if(w){var D;if(l!=null&&(D=l.columnsState)!==null&&D!==void 0&&D.defaultValue){var K;V(vo()(JSON.parse(w),l==null||(K=l.columnsState)===null||K===void 0?void 0:K.defaultValue))}else V(JSON.parse(w))}else V(O)}catch(X){console.warn(X)}}},[(t=l.columnsState)===null||t===void 0?void 0:t.persistenceKey,(r=l.columnsState)===null||r===void 0?void 0:r.persistenceType,O]),(0,Fe.ET)(!l.columnsStateMap,"columnsStateMap\u5DF2\u7ECF\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 columnsState.value \u66FF\u6362"),(0,Fe.ET)(!l.columnsStateMap,"columnsStateMap has been discarded, please use columnsState.value replacement");var j=(0,o.useCallback)(function(){var P=l.columnsState||{},$=P.persistenceType,H=P.persistenceKey;if(!(!H||!$||typeof window=="undefined")){var F=window[$];try{F==null||F.removeItem(H)}catch(w){console.warn(w)}}},[l.columnsState]);(0,o.useEffect)(function(){var P,$;if(!(!((P=l.columnsState)!==null&&P!==void 0&&P.persistenceKey)||!(($=l.columnsState)!==null&&$!==void 0&&$.persistenceType))&&typeof window!="undefined"){var H=l.columnsState,F=H.persistenceType,w=H.persistenceKey,D=window[F];try{D==null||D.setItem(w,JSON.stringify(N))}catch(K){console.warn(K),j()}}},[(a=l.columnsState)===null||a===void 0?void 0:a.persistenceKey,N,(i=l.columnsState)===null||i===void 0?void 0:i.persistenceType]);var B={action:s.current,setAction:function($){s.current=$},sortKeyColumns:C.current,setSortKeyColumns:function($){C.current=$},propsRef:p,columnsMap:N,keyWords:g,setKeyWords:function($){return f($)},setTableSize:T,tableSize:x,prefixName:u.current,setPrefixName:function($){u.current=$},setColumnsMap:V,columns:l.columns,rootDomRef:c,clearPersistenceStorage:j,defaultColumnKeyMap:O};return Object.defineProperty(B,"prefixName",{get:function(){return u.current}}),Object.defineProperty(B,"sortKeyColumns",{get:function(){return C.current}}),Object.defineProperty(B,"action",{get:function(){return s.current}}),B}var ia=(0,o.createContext)({}),_s=function(e){var t=qs(e.initValue);return(0,b.jsx)(ia.Provider,{value:t,children:e.children})},Na=h(42075),ec=function(e){return(0,A.Z)({},e.componentCls,{marginBlockEnd:16,backgroundColor:(0,Tn.uK)(e.colorTextBase,.02),borderRadius:e.borderRadius,border:"none","&-container":{paddingBlock:e.paddingSM,paddingInline:e.paddingLG},"&-info":{display:"flex",alignItems:"center",transition:"all 0.3s",color:e.colorTextTertiary,"&-content":{flex:1},"&-option":{minWidth:48,paddingInlineStart:16}}})};function nc(n){return(0,Tn.Xj)("ProTableAlert",function(e){var t=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(n)});return[ec(t)]})}var tc=function(e){var t=e.intl,r=e.onCleanSelected;return[(0,b.jsx)("a",{onClick:r,children:t.getMessage("alert.clear","\u6E05\u7A7A")},"0")]};function rc(n){var e=n.selectedRowKeys,t=e===void 0?[]:e,r=n.onCleanSelected,a=n.alwaysShowAlert,i=n.selectedRows,l=n.alertInfoRender,s=l===void 0?function(T){var O=T.intl;return(0,b.jsxs)(Na.Z,{children:[O.getMessage("alert.selected","\u5DF2\u9009\u62E9"),t.length,O.getMessage("alert.item","\u9879"),"\xA0\xA0"]})}:l,c=n.alertOptionRender,u=c===void 0?tc:c,p=(0,wn.YB)(),m=u&&u({onCleanSelected:r,selectedRowKeys:t,selectedRows:i,intl:p}),v=(0,o.useContext)(sr.ZP.ConfigContext),g=v.getPrefixCls,f=g("pro-table-alert"),C=nc(f),y=C.wrapSSR,S=C.hashId;if(s===!1)return null;var x=s({intl:p,selectedRowKeys:t,selectedRows:i,onCleanSelected:r});return x===!1||t.length<1&&!a?null:y((0,b.jsx)("div",{className:"".concat(f," ").concat(S).trim(),children:(0,b.jsx)("div",{className:"".concat(f,"-container ").concat(S).trim(),children:(0,b.jsxs)("div",{className:"".concat(f,"-info ").concat(S).trim(),children:[(0,b.jsx)("div",{className:"".concat(f,"-info-content ").concat(S).trim(),children:x}),m?(0,b.jsx)("div",{className:"".concat(f,"-info-option ").concat(S).trim(),children:m}):null]})})}))}var ac=rc,Il=h(43144),Tl=h(15671),Xr=h(97326),Pl=h(32531),Nl=h(29388),$l=h(60249),Gr=h(97435);function oc(){var n=(0,o.useState)(!0),e=(0,Se.Z)(n,2),t=e[1],r=(0,o.useCallback)(function(){return t(function(a){return!a})},[]);return r}function lc(n,e){var t=(0,o.useMemo)(function(){var r={current:e};return new Proxy(r,{set:function(i,l,s){return Object.is(i[l],s)||(i[l]=s,n(t)),!0}})},[]);return t}function ic(n){var e=oc(),t=lc(e,n);return t}var Kl=h(51280),Ir=h(22270),Ja=h(48874),Ol=h(74138),Uo=h(73177),sc=h(85265),Qa=h(89671),cc=function(e){return(0,A.Z)({},e.componentCls,{"&-sidebar-dragger":{width:"5px",cursor:"ew-resize",padding:"4px 0 0",borderTop:"1px solid transparent",position:"absolute",top:0,left:0,bottom:0,zIndex:100,backgroundColor:"transparent","&-min-disabled":{cursor:"w-resize"},"&-max-disabled":{cursor:"e-resize"}}})};function dc(n){return(0,Tn.Xj)("DrawerForm",function(e){var t=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(n)});return[cc(t)]})}var uc=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","resize","onOpenChange","visible","open"];function fc(n){var e,t,r=n.children,a=n.trigger,i=n.onVisibleChange,l=n.drawerProps,s=n.onFinish,c=n.submitTimeout,u=n.title,p=n.width,m=n.resize,v=n.onOpenChange,g=n.visible,f=n.open,C=(0,cn.Z)(n,uc);(0,Fe.ET)(!C.footer||!(l!=null&&l.footer),"DrawerForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var y=o.useMemo(function(){var de,_,ce,pe={onResize:function(){},maxWidth:window.innerWidth*.8,minWidth:300};return typeof m=="boolean"?m?pe:{}:(0,Un.Y)({onResize:(de=m==null?void 0:m.onResize)!==null&&de!==void 0?de:pe.onResize,maxWidth:(_=m==null?void 0:m.maxWidth)!==null&&_!==void 0?_:pe.maxWidth,minWidth:(ce=m==null?void 0:m.minWidth)!==null&&ce!==void 0?ce:pe.minWidth})},[m]),S=(0,o.useContext)(sr.ZP.ConfigContext),x=S.getPrefixCls("pro-form-drawer"),T=dc(x),O=T.wrapSSR,z=T.hashId,W=function(_){return"".concat(x,"-").concat(_," ").concat(z)},N=(0,o.useState)([]),V=(0,Se.Z)(N,2),j=V[1],B=(0,o.useState)(!1),P=(0,Se.Z)(B,2),$=P[0],H=P[1],F=(0,o.useState)(!1),w=(0,Se.Z)(F,2),D=w[0],K=w[1],X=(0,o.useState)(p||(m?y==null?void 0:y.minWidth:800)),k=(0,Se.Z)(X,2),R=k[0],M=k[1],G=(0,Xe.Z)(!!g,{value:f||g,onChange:v||i}),ee=(0,Se.Z)(G,2),oe=ee[0],q=ee[1],Y=(0,o.useRef)(null),J=(0,o.useCallback)(function(de){Y.current===null&&de&&j([]),Y.current=de},[]),ne=(0,o.useRef)(),we=(0,o.useCallback)(function(){var de,_,ce,pe=(de=(_=(ce=C.formRef)===null||ce===void 0?void 0:ce.current)!==null&&_!==void 0?_:C.form)!==null&&de!==void 0?de:ne.current;pe&&l!==null&&l!==void 0&&l.destroyOnClose&&pe.resetFields()},[l==null?void 0:l.destroyOnClose,C.form,C.formRef]);(0,o.useEffect)(function(){oe&&(f||g)&&(v==null||v(!0),i==null||i(!0)),D&&M(y==null?void 0:y.minWidth)},[g,oe,D]),(0,o.useImperativeHandle)(C.formRef,function(){return ne.current},[ne.current]);var Ke=(0,o.useMemo)(function(){return a?o.cloneElement(a,(0,d.Z)((0,d.Z)({key:"trigger"},a.props),{},{onClick:function(){var de=(0,le.Z)((0,Q.Z)().mark(function ce(pe){var sn,bn;return(0,Q.Z)().wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:q(!oe),K(!Object.keys(y)),(sn=a.props)===null||sn===void 0||(bn=sn.onClick)===null||bn===void 0||bn.call(sn,pe);case 3:case"end":return Dn.stop()}},ce)}));function _(ce){return de.apply(this,arguments)}return _}()})):null},[q,a,oe,K,D]),ge=(0,o.useMemo)(function(){var de,_,ce,pe;return C.submitter===!1?!1:vo()({searchConfig:{submitText:(de=(_=S.locale)===null||_===void 0||(_=_.Modal)===null||_===void 0?void 0:_.okText)!==null&&de!==void 0?de:"\u786E\u8BA4",resetText:(ce=(pe=S.locale)===null||pe===void 0||(pe=pe.Modal)===null||pe===void 0?void 0:pe.cancelText)!==null&&ce!==void 0?ce:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:c?$:void 0,onClick:function(bn){var fn;q(!1),l==null||(fn=l.onClose)===null||fn===void 0||fn.call(l,bn)}}},C.submitter)},[C.submitter,(e=S.locale)===null||e===void 0||(e=e.Modal)===null||e===void 0?void 0:e.okText,(t=S.locale)===null||t===void 0||(t=t.Modal)===null||t===void 0?void 0:t.cancelText,c,$,q,l]),Le=(0,o.useCallback)(function(de,_){return(0,b.jsxs)(b.Fragment,{children:[de,Y.current&&_?(0,b.jsx)(o.Fragment,{children:(0,ur.createPortal)(_,Y.current)},"submitter"):_]})},[]),ue=(0,Ze.J)(function(){var de=(0,le.Z)((0,Q.Z)().mark(function _(ce){var pe,sn,bn;return(0,Q.Z)().wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return pe=s==null?void 0:s(ce),c&&pe instanceof Promise&&(H(!0),sn=setTimeout(function(){return H(!1)},c),pe.finally(function(){clearTimeout(sn),H(!1)})),Dn.next=4,pe;case 4:return bn=Dn.sent,bn&&q(!1),Dn.abrupt("return",bn);case 7:case"end":return Dn.stop()}},_)}));return function(_){return de.apply(this,arguments)}}()),me=(0,Uo.X)(oe,i),je=(0,o.useCallback)(function(de){var _,ce,pe=(document.body.offsetWidth||1e3)-(de.clientX-document.body.offsetLeft),sn=(_=y==null?void 0:y.minWidth)!==null&&_!==void 0?_:p||800,bn=(ce=y==null?void 0:y.maxWidth)!==null&&ce!==void 0?ce:window.innerWidth*.8;if(pebn){M(bn);return}M(pe)},[y==null?void 0:y.maxWidth,y==null?void 0:y.minWidth,p]),Rn=(0,o.useCallback)(function(){document.removeEventListener("mousemove",je),document.removeEventListener("mouseup",Rn)},[je]);return O((0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(sc.Z,(0,d.Z)((0,d.Z)((0,d.Z)({title:u,width:R},l),me),{},{afterOpenChange:function(_){var ce;_||we(),l==null||(ce=l.afterOpenChange)===null||ce===void 0||ce.call(l,_)},onClose:function(_){var ce;c&&$||(q(!1),l==null||(ce=l.onClose)===null||ce===void 0||ce.call(l,_))},footer:C.submitter!==!1&&(0,b.jsx)("div",{ref:J,style:{display:"flex",justifyContent:"flex-end"}}),children:[m?(0,b.jsx)("div",{className:We()(W("sidebar-dragger"),z,(0,A.Z)((0,A.Z)({},W("sidebar-dragger-min-disabled"),R===(y==null?void 0:y.minWidth)),W("sidebar-dragger-max-disabled"),R===(y==null?void 0:y.maxWidth))),onMouseDown:function(_){var ce;y==null||(ce=y.onResize)===null||ce===void 0||ce.call(y),_.stopPropagation(),_.preventDefault(),document.addEventListener("mousemove",je),document.addEventListener("mouseup",Rn),K(!0)}}):null,(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(Qa.I,(0,d.Z)((0,d.Z)({formComponentType:"DrawerForm",layout:"vertical"},C),{},{formRef:ne,onInit:function(_,ce){var pe;C.formRef&&(C.formRef.current=ce),C==null||(pe=C.onInit)===null||pe===void 0||pe.call(C,_,ce),ne.current=ce},submitter:ge,onFinish:function(){var de=(0,le.Z)((0,Q.Z)().mark(function _(ce){var pe;return(0,Q.Z)().wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:return bn.next=2,ue(ce);case 2:return pe=bn.sent,bn.abrupt("return",pe);case 4:case"end":return bn.stop()}},_)}));return function(_){return de.apply(this,arguments)}}(),contentRender:Le,children:r}))})]})),Ke]}))}var vc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},mc=vc,Ml=h(46976),pc=function(e,t){return o.createElement(Ml.Z,(0,_e.Z)({},e,{ref:t,icon:mc}))},gc=o.forwardRef(pc),hc=gc,yc=h(98912),Cc=h(1336),bc=function(e){return(0,A.Z)({},e.componentCls,{lineHeight:"30px","&::before":{display:"block",height:0,visibility:"hidden",content:"'.'"},"&-small":{lineHeight:e.lineHeight},"&-container":{display:"flex",flexWrap:"wrap",gap:e.marginXS},"&-item":(0,A.Z)({whiteSpace:"nowrap"},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"&-line":{minWidth:"198px"},"&-line:not(:first-child)":{marginBlockStart:"16px",marginBlockEnd:8},"&-collapse-icon":{width:e.controlHeight,height:e.controlHeight,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},"&-effective":(0,A.Z)({},"".concat(e.componentCls,"-collapse-icon"),{backgroundColor:e.colorBgTextHover})})};function xc(n){return(0,Tn.Xj)("LightFilter",function(e){var t=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(n)});return[bc(t)]})}var Sc=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],Zc=function(e){var t=e.items,r=e.prefixCls,a=e.size,i=a===void 0?"middle":a,l=e.collapse,s=e.collapseLabel,c=e.onValuesChange,u=e.bordered,p=e.values,m=e.footerRender,v=e.placement,g=(0,wn.YB)(),f="".concat(r,"-light-filter"),C=xc(f),y=C.wrapSSR,S=C.hashId,x=(0,o.useState)(!1),T=(0,Se.Z)(x,2),O=T[0],z=T[1],W=(0,o.useState)(function(){return(0,d.Z)({},p)}),N=(0,Se.Z)(W,2),V=N[0],j=N[1];(0,o.useEffect)(function(){j((0,d.Z)({},p))},[p]);var B=(0,o.useMemo)(function(){var F=[],w=[];return t.forEach(function(D){var K=D.props||{},X=K.secondary;X||l?F.push(D):w.push(D)}),{collapseItems:F,outsideItems:w}},[e.items]),P=B.collapseItems,$=B.outsideItems,H=function(){return s||(l?(0,b.jsx)(hc,{className:"".concat(f,"-collapse-icon ").concat(S).trim()}):(0,b.jsx)(yc.Q,{size:i,label:g.getMessage("form.lightFilter.more","\u66F4\u591A\u7B5B\u9009")}))};return y((0,b.jsx)("div",{className:We()(f,S,"".concat(f,"-").concat(i),(0,A.Z)({},"".concat(f,"-effective"),Object.keys(p).some(function(F){return Array.isArray(p[F])?p[F].length>0:p[F]}))),children:(0,b.jsxs)("div",{className:"".concat(f,"-container ").concat(S).trim(),children:[$.map(function(F,w){var D=F.key,K=F.props.fieldProps,X=K!=null&&K.placement?K==null?void 0:K.placement:v;return(0,b.jsx)("div",{className:"".concat(f,"-item ").concat(S).trim(),children:o.cloneElement(F,{fieldProps:(0,d.Z)((0,d.Z)({},F.props.fieldProps),{},{placement:X}),proFieldProps:(0,d.Z)((0,d.Z)({},F.props.proFieldProps),{},{light:!0,label:F.props.label,bordered:u}),bordered:u})},D||w)}),P.length?(0,b.jsx)("div",{className:"".concat(f,"-item ").concat(S).trim(),children:(0,b.jsx)(Cc.M,{padding:24,open:O,onOpenChange:function(w){z(w)},placement:v,label:H(),footerRender:m,footer:{onConfirm:function(){c((0,d.Z)({},V)),z(!1)},onClear:function(){var w={};P.forEach(function(D){var K=D.props.name;w[K]=void 0}),c(w)}},children:P.map(function(F){var w=F.key,D=F.props,K=D.name,X=D.fieldProps,k=(0,d.Z)((0,d.Z)({},X),{},{onChange:function(G){return j((0,d.Z)((0,d.Z)({},V),{},(0,A.Z)({},K,G!=null&&G.target?G.target.value:G))),!1}});V.hasOwnProperty(K)&&(k[F.props.valuePropName||"value"]=V[K]);var R=X!=null&&X.placement?X==null?void 0:X.placement:v;return(0,b.jsx)("div",{className:"".concat(f,"-line ").concat(S).trim(),children:o.cloneElement(F,{fieldProps:(0,d.Z)((0,d.Z)({},k),{},{placement:R})})},w)})})},"more"):null]})}))};function wc(n){var e=n.size,t=n.collapse,r=n.collapseLabel,a=n.initialValues,i=n.onValuesChange,l=n.form,s=n.placement,c=n.formRef,u=n.bordered,p=n.ignoreRules,m=n.footerRender,v=(0,cn.Z)(n,Sc),g=(0,o.useContext)(sr.ZP.ConfigContext),f=g.getPrefixCls,C=f("pro-form"),y=(0,o.useState)(function(){return(0,d.Z)({},a)}),S=(0,Se.Z)(y,2),x=S[0],T=S[1],O=(0,o.useRef)();return(0,o.useImperativeHandle)(c,function(){return O.current},[O.current]),(0,b.jsx)(Qa.I,(0,d.Z)((0,d.Z)({size:e,initialValues:a,form:l,contentRender:function(W){return(0,b.jsx)(Zc,{prefixCls:C,items:W==null?void 0:W.flatMap(function(N){return(N==null?void 0:N.type.displayName)==="ProForm-Group"?N.props.children:N}),size:e,bordered:u,collapse:t,collapseLabel:r,placement:s,values:x||{},footerRender:m,onValuesChange:function(V){var j,B,P=(0,d.Z)((0,d.Z)({},x),V);T(P),(j=O.current)===null||j===void 0||j.setFieldsValue(P),(B=O.current)===null||B===void 0||B.submit(),i&&i(V,P)}})},formRef:O,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},(0,Gr.Z)(v,["labelWidth"])),{},{onValuesChange:function(W,N){var V;T(N),i==null||i(W,N),(V=O.current)===null||V===void 0||V.submit()}}))}var Ec=h(85576),Rc=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function Ic(n){var e,t,r=n.children,a=n.trigger,i=n.onVisibleChange,l=n.onOpenChange,s=n.modalProps,c=n.onFinish,u=n.submitTimeout,p=n.title,m=n.width,v=n.visible,g=n.open,f=(0,cn.Z)(n,Rc);(0,Fe.ET)(!f.footer||!(s!=null&&s.footer),"ModalForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var C=(0,o.useContext)(sr.ZP.ConfigContext),y=(0,o.useState)([]),S=(0,Se.Z)(y,2),x=S[1],T=(0,o.useState)(!1),O=(0,Se.Z)(T,2),z=O[0],W=O[1],N=(0,Xe.Z)(!!v,{value:g||v,onChange:l||i}),V=(0,Se.Z)(N,2),j=V[0],B=V[1],P=(0,o.useRef)(null),$=(0,o.useCallback)(function(R){P.current===null&&R&&x([]),P.current=R},[]),H=(0,o.useRef)(),F=(0,o.useCallback)(function(){var R,M,G,ee=(R=(M=f.form)!==null&&M!==void 0?M:(G=f.formRef)===null||G===void 0?void 0:G.current)!==null&&R!==void 0?R:H.current;ee&&s!==null&&s!==void 0&&s.destroyOnClose&&ee.resetFields()},[s==null?void 0:s.destroyOnClose,f.form,f.formRef]);(0,o.useImperativeHandle)(f.formRef,function(){return H.current},[H.current]),(0,o.useEffect)(function(){j&&(g||v)&&(l==null||l(!0),i==null||i(!0))},[v,g,j]);var w=(0,o.useMemo)(function(){return a?o.cloneElement(a,(0,d.Z)((0,d.Z)({key:"trigger"},a.props),{},{onClick:function(){var R=(0,le.Z)((0,Q.Z)().mark(function G(ee){var oe,q;return(0,Q.Z)().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:B(!j),(oe=a.props)===null||oe===void 0||(q=oe.onClick)===null||q===void 0||q.call(oe,ee);case 2:case"end":return J.stop()}},G)}));function M(G){return R.apply(this,arguments)}return M}()})):null},[B,a,j]),D=(0,o.useMemo)(function(){var R,M,G,ee,oe,q;return f.submitter===!1?!1:vo()({searchConfig:{submitText:(R=(M=s==null?void 0:s.okText)!==null&&M!==void 0?M:(G=C.locale)===null||G===void 0||(G=G.Modal)===null||G===void 0?void 0:G.okText)!==null&&R!==void 0?R:"\u786E\u8BA4",resetText:(ee=(oe=s==null?void 0:s.cancelText)!==null&&oe!==void 0?oe:(q=C.locale)===null||q===void 0||(q=q.Modal)===null||q===void 0?void 0:q.cancelText)!==null&&ee!==void 0?ee:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:u?z:void 0,onClick:function(J){var ne;B(!1),s==null||(ne=s.onCancel)===null||ne===void 0||ne.call(s,J)}}},f.submitter)},[(e=C.locale)===null||e===void 0||(e=e.Modal)===null||e===void 0?void 0:e.cancelText,(t=C.locale)===null||t===void 0||(t=t.Modal)===null||t===void 0?void 0:t.okText,s,f.submitter,B,z,u]),K=(0,o.useCallback)(function(R,M){return(0,b.jsxs)(b.Fragment,{children:[R,P.current&&M?(0,b.jsx)(o.Fragment,{children:(0,ur.createPortal)(M,P.current)},"submitter"):M]})},[]),X=(0,o.useCallback)(function(){var R=(0,le.Z)((0,Q.Z)().mark(function M(G){var ee,oe,q;return(0,Q.Z)().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return ee=c==null?void 0:c(G),u&&ee instanceof Promise&&(W(!0),oe=setTimeout(function(){return W(!1)},u),ee.finally(function(){clearTimeout(oe),W(!1)})),J.next=4,ee;case 4:return q=J.sent,q&&B(!1),J.abrupt("return",q);case 7:case"end":return J.stop()}},M)}));return function(M){return R.apply(this,arguments)}}(),[c,B,u]),k=(0,Uo.X)(j);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(Ec.Z,(0,d.Z)((0,d.Z)((0,d.Z)({title:p,width:m||800},s),k),{},{onCancel:function(M){var G;u&&z||(B(!1),s==null||(G=s.onCancel)===null||G===void 0||G.call(s,M))},afterClose:function(){var M;F(),B(!1),s==null||(M=s.afterClose)===null||M===void 0||M.call(s)},footer:f.submitter!==!1?(0,b.jsx)("div",{ref:$,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,b.jsx)(Qa.I,(0,d.Z)((0,d.Z)({formComponentType:"ModalForm",layout:"vertical"},f),{},{onInit:function(M,G){var ee;f.formRef&&(f.formRef.current=G),f==null||(ee=f.onInit)===null||ee===void 0||ee.call(f,M,G),H.current=G},formRef:H,submitter:D,onFinish:function(){var R=(0,le.Z)((0,Q.Z)().mark(function M(G){var ee;return(0,Q.Z)().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,X(G);case 2:return ee=q.sent,q.abrupt("return",ee);case 4:case"end":return q.stop()}},M)}));return function(M){return R.apply(this,arguments)}}(),contentRender:K,children:r}))})),w]})}var Fl=h(12044),xa=h(15746),mo=h(71230),Tc=h(66023),Pc=function(e,t){return o.createElement(Ml.Z,(0,_e.Z)({},e,{ref:t,icon:Tc.Z}))},Nc=o.forwardRef(Pc),Dl=Nc,jl=function(e){if(e&&e!==!0)return e},$c=function(e,t,r,a){return e?(0,b.jsxs)(b.Fragment,{children:[r.getMessage("tableForm.collapsed","\u5C55\u5F00"),a&&"(".concat(a,")"),(0,b.jsx)(Dl,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]}):(0,b.jsxs)(b.Fragment,{children:[r.getMessage("tableForm.expand","\u6536\u8D77"),(0,b.jsx)(Dl,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]})},Kc=function(e){var t=e.setCollapsed,r=e.collapsed,a=r===void 0?!1:r,i=e.submitter,l=e.style,s=e.hiddenNum,c=(0,o.useContext)(sr.ZP.ConfigContext),u=c.getPrefixCls,p=(0,wn.YB)(),m=(0,o.useContext)(wn.L_),v=m.hashId,g=jl(e.collapseRender)||$c;return(0,b.jsxs)(Na.Z,{style:l,size:16,children:[i,e.collapseRender!==!1&&(0,b.jsx)("a",{className:"".concat(u("pro-query-filter-collapse-button")," ").concat(v).trim(),onClick:function(){return t(!a)},children:g==null?void 0:g(a,e,p,s)})]})},Oc=Kc,Mc=function(e){return(0,A.Z)({},e.componentCls,(0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)({"&&":{padding:24}},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"".concat(e.proComponentsCls,"-form-group-title"),{marginBlock:0}),"&-row",{rowGap:24,"&-split":(0,A.Z)((0,A.Z)({},"".concat(e.proComponentsCls,"-form-group"),{display:"flex",alignItems:"center",gap:e.marginXS}),"&:last-child",{marginBlockEnd:12}),"&-split-line":{"&:after":{position:"absolute",width:"100%",content:'""',height:1,insetBlockEnd:-12,borderBlockEnd:"1px dashed ".concat(e.colorSplit)}}}),"&-collapse-button",{display:"flex",alignItems:"center",color:e.colorPrimary}))};function Fc(n){return(0,Tn.Xj)("QueryFilter",function(e){var t=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(n)});return[Mc(t)]})}var Dc=["collapsed","layout","defaultCollapsed","defaultColsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum","submitterColSpanProps"],$a,jc={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:1/0},Ll={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[1/0,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[1/0,4,"horizontal"]]},Lc=function(e,t,r){if(r&&typeof r=="number")return{span:r,layout:e};var a=r?["xs","sm","md","lg","xl","xxl"].map(function(l){return[jc[l],24/r[l],"horizontal"]}):Ll[e||"default"],i=(a||Ll.default).find(function(l){return tO-1)&&!!M&&V>=24;j+=1;var Ke=o.isValidElement(R)&&(R.key||"".concat((q=R.props)===null||q===void 0?void 0:q.name))||M;return o.isValidElement(R)&&we?e.preserve?{itemDom:o.cloneElement(R,{hidden:!0,key:Ke||M}),hidden:!0,colSpan:J}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:R,colSpan:J,hidden:!1}}),F=H.map(function(R,M){var G,ee,oe=R.itemDom,q=R.colSpan,Y=oe==null||(G=oe.props)===null||G===void 0?void 0:G.hidden;if(Y)return oe;var J=o.isValidElement(oe)&&(oe.key||"".concat((ee=oe.props)===null||ee===void 0?void 0:ee.name))||M;return 24-$%2424){var ee,oe;return 24-((ee=(oe=e.submitterColSpanProps)===null||oe===void 0?void 0:oe.span)!==null&&ee!==void 0?ee:T.span)}return 24-G},[$,$%24+((t=(r=e.submitterColSpanProps)===null||r===void 0?void 0:r.span)!==null&&t!==void 0?t:T.span),(a=e.submitterColSpanProps)===null||a===void 0?void 0:a.span]),X=(0,o.useContext)(sr.ZP.ConfigContext),k=X.getPrefixCls("pro-query-filter");return(0,b.jsxs)(mo.Z,{gutter:z,justify:"start",className:We()("".concat(k,"-row"),c),children:[F,N&&(0,b.jsx)(xa.Z,(0,d.Z)((0,d.Z)({span:T.span,offset:K,className:We()((i=e.submitterColSpanProps)===null||i===void 0?void 0:i.className)},e.submitterColSpanProps),{},{style:{textAlign:"end"},children:(0,b.jsx)(Me.Z.Item,{label:" ",colon:!1,shouldUpdate:!1,className:"".concat(k,"-actions ").concat(c).trim(),children:(0,b.jsx)(Oc,{hiddenNum:w,collapsed:g,collapseRender:D?y:!1,submitter:N,setCollapsed:f},"pro-form-query-filter-actions")})}),"submitter")]},"resize-observer-row")},zc=(0,Fl.j)()?($a=document)===null||$a===void 0||($a=$a.body)===null||$a===void 0?void 0:$a.clientWidth:1024;function Ac(n){var e=n.collapsed,t=n.layout,r=n.defaultCollapsed,a=r===void 0?!0:r,i=n.defaultColsNumber,l=n.span,s=n.searchGutter,c=s===void 0?24:s,u=n.searchText,p=n.resetText,m=n.optionRender,v=n.collapseRender,g=n.onReset,f=n.onCollapse,C=n.labelWidth,y=C===void 0?"80":C,S=n.style,x=n.split,T=n.preserve,O=T===void 0?!0:T,z=n.ignoreRules,W=n.showHiddenNum,N=W===void 0?!1:W,V=n.submitterColSpanProps,j=(0,cn.Z)(n,Dc),B=(0,o.useContext)(sr.ZP.ConfigContext),P=B.getPrefixCls("pro-query-filter"),$=Fc(P),H=$.wrapSSR,F=$.hashId,w=(0,Xe.Z)(function(){return typeof(S==null?void 0:S.width)=="number"?S==null?void 0:S.width:zc}),D=(0,Se.Z)(w,2),K=D[0],X=D[1],k=(0,o.useMemo)(function(){return Lc(t,K+16,l)},[t,K,l]),R=(0,o.useMemo)(function(){return i!==void 0?i-1:Math.max(1,24/k.span-1)},[i,k.span]),M=(0,o.useMemo)(function(){if(y&&k.layout!=="vertical"&&y!=="auto")return{labelCol:{flex:"0 0 ".concat(y,"px")},wrapperCol:{style:{maxWidth:"calc(100% - ".concat(y,"px)")}},style:{flexWrap:"nowrap"}}},[k.layout,y]);return H((0,b.jsx)(ln.Z,{onResize:function(ee){K!==ee.width&&ee.width>17&&X(ee.width)},children:(0,b.jsx)(Qa.I,(0,d.Z)((0,d.Z)({isKeyPressSubmit:!0,preserve:O},j),{},{className:We()(P,F,j.className),onReset:g,style:S,layout:k.layout,fieldProps:{style:{width:"100%"}},formItemProps:M,groupProps:{titleStyle:{display:"inline-block",marginInlineEnd:16}},contentRender:function(ee,oe,q){return(0,b.jsx)(kc,{spanSize:k,collapsed:e,form:q,submitterColSpanProps:V,collapseRender:v,defaultCollapsed:a,onCollapse:f,optionRender:m,submitter:oe,items:ee,split:x,baseClassName:P,resetText:n.resetText,searchText:n.searchText,searchGutter:c,preserve:O,ignoreRules:z,showLength:R,showHiddenNum:N})}}))},"resize-observer"))}var Xo=h(1977),Go=h(67159),Hc=h(35918),Wc=h(84481),Vc=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function Bl(n){return typeof n=="string"}function Uc(n){var e,t=n.className,r=n.prefixCls,a=n.style,i=n.active,l=n.status,s=n.iconPrefix,c=n.icon,u=n.wrapperStyle,p=n.stepNumber,m=n.disabled,v=n.description,g=n.title,f=n.subTitle,C=n.progressDot,y=n.stepIcon,S=n.tailContent,x=n.icons,T=n.stepIndex,O=n.onStepClick,z=n.onClick,W=n.render,N=(0,cn.Z)(n,Vc),V=!!O&&!m,j={};V&&(j.role="button",j.tabIndex=0,j.onClick=function(w){z==null||z(w),O(T)},j.onKeyDown=function(w){var D=w.which;(D===co.Z.ENTER||D===co.Z.SPACE)&&O(T)});var B=function(){var D,K,X=We()("".concat(r,"-icon"),"".concat(s,"icon"),(D={},(0,A.Z)(D,"".concat(s,"icon-").concat(c),c&&Bl(c)),(0,A.Z)(D,"".concat(s,"icon-check"),!c&&l==="finish"&&(x&&!x.finish||!x)),(0,A.Z)(D,"".concat(s,"icon-cross"),!c&&l==="error"&&(x&&!x.error||!x)),D)),k=o.createElement("span",{className:"".concat(r,"-icon-dot")});return C?typeof C=="function"?K=o.createElement("span",{className:"".concat(r,"-icon")},C(k,{index:p-1,status:l,title:g,description:v})):K=o.createElement("span",{className:"".concat(r,"-icon")},k):c&&!Bl(c)?K=o.createElement("span",{className:"".concat(r,"-icon")},c):x&&x.finish&&l==="finish"?K=o.createElement("span",{className:"".concat(r,"-icon")},x.finish):x&&x.error&&l==="error"?K=o.createElement("span",{className:"".concat(r,"-icon")},x.error):c||l==="finish"||l==="error"?K=o.createElement("span",{className:X}):K=o.createElement("span",{className:"".concat(r,"-icon")},p),y&&(K=y({index:p-1,status:l,title:g,description:v,node:K})),K},P=l||"wait",$=We()("".concat(r,"-item"),"".concat(r,"-item-").concat(P),t,(e={},(0,A.Z)(e,"".concat(r,"-item-custom"),c),(0,A.Z)(e,"".concat(r,"-item-active"),i),(0,A.Z)(e,"".concat(r,"-item-disabled"),m===!0),e)),H=(0,d.Z)({},a),F=o.createElement("div",(0,_e.Z)({},N,{className:$,style:H}),o.createElement("div",(0,_e.Z)({onClick:z},j,{className:"".concat(r,"-item-container")}),o.createElement("div",{className:"".concat(r,"-item-tail")},S),o.createElement("div",{className:"".concat(r,"-item-icon")},B()),o.createElement("div",{className:"".concat(r,"-item-content")},o.createElement("div",{className:"".concat(r,"-item-title")},g,f&&o.createElement("div",{title:typeof f=="string"?f:void 0,className:"".concat(r,"-item-subtitle")},f)),v&&o.createElement("div",{className:"".concat(r,"-item-description")},v))));return W&&(F=W(F)||null),F}var kl=Uc,Xc=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function zl(n){var e,t=n.prefixCls,r=t===void 0?"rc-steps":t,a=n.style,i=a===void 0?{}:a,l=n.className,s=n.children,c=n.direction,u=c===void 0?"horizontal":c,p=n.type,m=p===void 0?"default":p,v=n.labelPlacement,g=v===void 0?"horizontal":v,f=n.iconPrefix,C=f===void 0?"rc":f,y=n.status,S=y===void 0?"process":y,x=n.size,T=n.current,O=T===void 0?0:T,z=n.progressDot,W=z===void 0?!1:z,N=n.stepIcon,V=n.initial,j=V===void 0?0:V,B=n.icons,P=n.onChange,$=n.itemRender,H=n.items,F=H===void 0?[]:H,w=(0,cn.Z)(n,Xc),D=m==="navigation",K=m==="inline",X=K||W,k=K?"horizontal":u,R=K?void 0:x,M=X?"vertical":g,G=We()(r,"".concat(r,"-").concat(k),l,(e={},(0,A.Z)(e,"".concat(r,"-").concat(R),R),(0,A.Z)(e,"".concat(r,"-label-").concat(M),k==="horizontal"),(0,A.Z)(e,"".concat(r,"-dot"),!!X),(0,A.Z)(e,"".concat(r,"-navigation"),D),(0,A.Z)(e,"".concat(r,"-inline"),K),e)),ee=function(Y){P&&O!==Y&&P(Y)},oe=function(Y,J){var ne=(0,d.Z)({},Y),we=j+J;return S==="error"&&J===O-1&&(ne.className="".concat(r,"-next-error")),ne.status||(we===O?ne.status=S:we{const{componentCls:e,customIconTop:t,customIconSize:r,customIconFontSize:a}=n;return{[`${e}-item-custom`]:{[`> ${e}-item-container > ${e}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${e}-icon`]:{top:t,width:r,height:r,fontSize:a,lineHeight:`${(0,Re.bf)(a)}`}}},[`&:not(${e}-vertical)`]:{[`${e}-item-custom`]:{[`${e}-item-icon`]:{width:"auto",background:"none"}}}}},Qc=n=>{const{componentCls:e,inlineDotSize:t,inlineTitleColor:r,inlineTailColor:a}=n,i=n.calc(n.paddingXS).add(n.lineWidth).equal(),l={[`${e}-item-container ${e}-item-content ${e}-item-title`]:{color:r}};return{[`&${e}-inline`]:{width:"auto",display:"inline-flex",[`${e}-item`]:{flex:"none","&-container":{padding:`${(0,Re.bf)(i)} ${(0,Re.bf)(n.paddingXXS)} 0`,margin:`0 ${(0,Re.bf)(n.calc(n.marginXXS).div(2).equal())}`,borderRadius:n.borderRadiusSM,cursor:"pointer",transition:`background-color ${n.motionDurationMid}`,"&:hover":{background:n.controlItemBgHover},["&[role='button']:hover"]:{opacity:1}},"&-icon":{width:t,height:t,marginInlineStart:`calc(50% - ${(0,Re.bf)(n.calc(t).div(2).equal())})`,[`> ${e}-icon`]:{top:0},[`${e}-icon-dot`]:{borderRadius:n.calc(n.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:n.calc(n.marginXS).sub(n.lineWidth).equal()},"&-title":{color:r,fontSize:n.fontSizeSM,lineHeight:n.lineHeightSM,fontWeight:"normal",marginBottom:n.calc(n.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:n.calc(t).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:n.lineWidth,borderRadius:0,marginInlineStart:0,background:a}},[`&:first-child ${e}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${e}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${e}-item-icon ${e}-icon ${e}-icon-dot`]:{backgroundColor:n.colorBorderBg,border:`${(0,Re.bf)(n.lineWidth)} ${n.lineType} ${a}`}},l),"&-finish":Object.assign({[`${e}-item-tail::after`]:{backgroundColor:a},[`${e}-item-icon ${e}-icon ${e}-icon-dot`]:{backgroundColor:a,border:`${(0,Re.bf)(n.lineWidth)} ${n.lineType} ${a}`}},l),"&-error":l,"&-active, &-process":Object.assign({[`${e}-item-icon`]:{width:t,height:t,marginInlineStart:`calc(50% - ${(0,Re.bf)(n.calc(t).div(2).equal())})`,top:0}},l),[`&:not(${e}-item-active) > ${e}-item-container[role='button']:hover`]:{[`${e}-item-title`]:{color:r}}}}}},qc=n=>{const{componentCls:e,iconSize:t,lineHeight:r,iconSizeSM:a}=n;return{[`&${e}-label-vertical`]:{[`${e}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n.calc(t).div(2).add(n.controlHeightLG).equal(),padding:`${(0,Re.bf)(n.paddingXXS)} ${(0,Re.bf)(n.paddingLG)}`},"&-content":{display:"block",width:n.calc(t).div(2).add(n.controlHeightLG).mul(2).equal(),marginTop:n.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:n.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:n.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${e}-small:not(${e}-dot)`]:{[`${e}-item`]:{"&-icon":{marginInlineStart:n.calc(t).sub(a).div(2).add(n.controlHeightLG).equal()}}}}}},_c=n=>{const{componentCls:e,navContentMaxWidth:t,navArrowColor:r,stepsNavActiveColor:a,motionDurationSlow:i}=n;return{[`&${e}-navigation`]:{paddingTop:n.paddingSM,[`&${e}-small`]:{[`${e}-item`]:{"&-container":{marginInlineStart:n.calc(n.marginSM).mul(-1).equal()}}},[`${e}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:n.calc(n.margin).mul(-1).equal(),paddingBottom:n.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${e}-item-content`]:{maxWidth:t},[`${e}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},ba.vS),{"&::after":{display:"none"}})},[`&:not(${e}-item-active)`]:{[`${e}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${(0,Re.bf)(n.calc(n.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:n.fontSizeIcon,height:n.fontSizeIcon,borderTop:`${(0,Re.bf)(n.lineWidth)} ${n.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,Re.bf)(n.lineWidth)} ${n.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:n.lineWidthBold,backgroundColor:a,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${e}-item${e}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${e}-navigation${e}-vertical`]:{[`> ${e}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${e}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:n.calc(n.lineWidth).mul(3).equal(),height:`calc(100% - ${(0,Re.bf)(n.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:n.calc(n.controlHeight).mul(.25).equal(),height:n.calc(n.controlHeight).mul(.25).equal(),marginBottom:n.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${e}-item-container > ${e}-item-tail`]:{visibility:"hidden"}}},[`&${e}-navigation${e}-horizontal`]:{[`> ${e}-item > ${e}-item-container > ${e}-item-tail`]:{visibility:"hidden"}}}},ed=n=>{const{antCls:e,componentCls:t}=n;return{[`&${t}-with-progress`]:{[`${t}-item`]:{paddingTop:n.paddingXXS,[`&-process ${t}-item-container ${t}-item-icon ${t}-icon`]:{color:n.processIconColor}},[`&${t}-vertical > ${t}-item `]:{paddingInlineStart:n.paddingXXS,[`> ${t}-item-container > ${t}-item-tail`]:{top:n.marginXXS,insetInlineStart:n.calc(n.iconSize).div(2).sub(n.lineWidth).add(n.paddingXXS).equal()}},[`&, &${t}-small`]:{[`&${t}-horizontal ${t}-item:first-child`]:{paddingBottom:n.paddingXXS,paddingInlineStart:n.paddingXXS}},[`&${t}-small${t}-vertical > ${t}-item > ${t}-item-container > ${t}-item-tail`]:{insetInlineStart:n.calc(n.iconSizeSM).div(2).sub(n.lineWidth).add(n.paddingXXS).equal()},[`&${t}-label-vertical`]:{[`${t}-item ${t}-item-tail`]:{top:n.calc(n.margin).sub(n.calc(n.lineWidth).mul(2).equal()).equal()}},[`${t}-item-icon`]:{position:"relative",[`${e}-progress`]:{position:"absolute",insetBlockStart:n.calc(n.calc(n.iconSize).sub(n.stepsProgressSize).sub(n.calc(n.lineWidth).mul(2).equal()).equal()).div(2).equal(),insetInlineStart:n.calc(n.calc(n.iconSize).sub(n.stepsProgressSize).sub(n.calc(n.lineWidth).mul(2).equal()).equal()).div(2).equal()}}}}},nd=n=>{const{componentCls:e,descriptionMaxWidth:t,lineHeight:r,dotCurrentSize:a,dotSize:i,motionDurationSlow:l}=n;return{[`&${e}-dot, &${e}-dot${e}-small`]:{[`${e}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:n.calc(n.dotSize).sub(n.calc(n.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${(0,Re.bf)(n.calc(t).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${(0,Re.bf)(n.calc(n.marginSM).mul(2).equal())})`,height:n.calc(n.lineWidth).mul(3).equal(),marginInlineStart:n.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:n.calc(n.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:`${(0,Re.bf)(i)}`,background:"transparent",border:0,[`${e}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${l}`,"&::after":{position:"absolute",top:n.calc(n.marginSM).mul(-1).equal(),insetInlineStart:n.calc(i).sub(n.calc(n.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:n.calc(n.controlHeightLG).mul(1.5).equal(),height:n.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:t},[`&-process ${e}-item-icon`]:{position:"relative",top:n.calc(i).sub(a).div(2).equal(),width:a,height:a,lineHeight:`${(0,Re.bf)(a)}`,background:"none",marginInlineStart:n.calc(n.descriptionMaxWidth).sub(a).div(2).equal()},[`&-process ${e}-icon`]:{[`&:first-child ${e}-icon-dot`]:{insetInlineStart:0}}}},[`&${e}-vertical${e}-dot`]:{[`${e}-item-icon`]:{marginTop:n.calc(n.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${e}-item-process ${e}-item-icon`]:{marginTop:n.calc(n.controlHeight).sub(a).div(2).equal(),top:0,insetInlineStart:n.calc(i).sub(a).div(2).equal(),marginInlineStart:0},[`${e}-item > ${e}-item-container > ${e}-item-tail`]:{top:n.calc(n.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${(0,Re.bf)(n.calc(i).add(n.paddingXS).equal())} 0 ${(0,Re.bf)(n.paddingXS)}`,"&::after":{marginInlineStart:n.calc(i).sub(n.lineWidth).div(2).equal()}},[`&${e}-small`]:{[`${e}-item-icon`]:{marginTop:n.calc(n.controlHeightSM).sub(i).div(2).equal()},[`${e}-item-process ${e}-item-icon`]:{marginTop:n.calc(n.controlHeightSM).sub(a).div(2).equal()},[`${e}-item > ${e}-item-container > ${e}-item-tail`]:{top:n.calc(n.controlHeightSM).sub(i).div(2).equal()}},[`${e}-item:first-child ${e}-icon-dot`]:{insetInlineStart:0},[`${e}-item-content`]:{width:"inherit"}}}},td=n=>{const{componentCls:e}=n;return{[`&${e}-rtl`]:{direction:"rtl",[`${e}-item`]:{"&-subtitle":{float:"left"}},[`&${e}-navigation`]:{[`${e}-item::after`]:{transform:"rotate(-45deg)"}},[`&${e}-vertical`]:{[`> ${e}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${e}-item-icon`]:{float:"right"}}},[`&${e}-dot`]:{[`${e}-item-icon ${e}-icon-dot, &${e}-small ${e}-item-icon ${e}-icon-dot`]:{float:"right"}}}}},rd=n=>{const{componentCls:e,iconSizeSM:t,fontSizeSM:r,fontSize:a,colorTextDescription:i}=n;return{[`&${e}-small`]:{[`&${e}-horizontal:not(${e}-label-vertical) ${e}-item`]:{paddingInlineStart:n.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${e}-item-icon`]:{width:t,height:t,marginTop:0,marginBottom:0,marginInline:`0 ${(0,Re.bf)(n.marginXS)}`,fontSize:r,lineHeight:`${(0,Re.bf)(t)}`,textAlign:"center",borderRadius:t},[`${e}-item-title`]:{paddingInlineEnd:n.paddingSM,fontSize:a,lineHeight:`${(0,Re.bf)(t)}`,"&::after":{top:n.calc(t).div(2).equal()}},[`${e}-item-description`]:{color:i,fontSize:a},[`${e}-item-tail`]:{top:n.calc(t).div(2).sub(n.paddingXXS).equal()},[`${e}-item-custom ${e}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${e}-icon`]:{fontSize:t,lineHeight:`${(0,Re.bf)(t)}`,transform:"none"}}}}},ad=n=>{const{componentCls:e,iconSizeSM:t,iconSize:r}=n;return{[`&${e}-vertical`]:{display:"flex",flexDirection:"column",[`> ${e}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${e}-item-icon`]:{float:"left",marginInlineEnd:n.margin},[`${e}-item-content`]:{display:"block",minHeight:n.calc(n.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${e}-item-title`]:{lineHeight:`${(0,Re.bf)(r)}`},[`${e}-item-description`]:{paddingBottom:n.paddingSM}},[`> ${e}-item > ${e}-item-container > ${e}-item-tail`]:{position:"absolute",top:0,insetInlineStart:n.calc(r).div(2).sub(n.lineWidth).equal(),width:n.lineWidth,height:"100%",padding:`${(0,Re.bf)(n.calc(n.marginXXS).mul(1.5).add(r).equal())} 0 ${(0,Re.bf)(n.calc(n.marginXXS).mul(1.5).equal())}`,"&::after":{width:n.lineWidth,height:"100%"}},[`> ${e}-item:not(:last-child) > ${e}-item-container > ${e}-item-tail`]:{display:"block"},[` > ${e}-item > ${e}-item-container > ${e}-item-content > ${e}-item-title`]:{"&::after":{display:"none"}},[`&${e}-small ${e}-item-container`]:{[`${e}-item-tail`]:{position:"absolute",top:0,insetInlineStart:n.calc(t).div(2).sub(n.lineWidth).equal(),padding:`${(0,Re.bf)(n.calc(n.marginXXS).mul(1.5).add(t).equal())} 0 ${(0,Re.bf)(n.calc(n.marginXXS).mul(1.5).equal())}`},[`${e}-item-title`]:{lineHeight:`${(0,Re.bf)(t)}`}}}}},Ka;(function(n){n.wait="wait",n.process="process",n.finish="finish",n.error="error"})(Ka||(Ka={}));const po=(n,e)=>{const t=`${e.componentCls}-item`,r=`${n}IconColor`,a=`${n}TitleColor`,i=`${n}DescriptionColor`,l=`${n}TailColor`,s=`${n}IconBgColor`,c=`${n}IconBorderColor`,u=`${n}DotColor`;return{[`${t}-${n} ${t}-icon`]:{backgroundColor:e[s],borderColor:e[c],[`> ${e.componentCls}-icon`]:{color:e[r],[`${e.componentCls}-icon-dot`]:{background:e[u]}}},[`${t}-${n}${t}-custom ${t}-icon`]:{[`> ${e.componentCls}-icon`]:{color:e[u]}},[`${t}-${n} > ${t}-container > ${t}-content > ${t}-title`]:{color:e[a],"&::after":{backgroundColor:e[l]}},[`${t}-${n} > ${t}-container > ${t}-content > ${t}-description`]:{color:e[i]},[`${t}-${n} > ${t}-container > ${t}-tail::after`]:{backgroundColor:e[l]}}},od=n=>{const{componentCls:e,motionDurationSlow:t}=n,r=`${e}-item`,a=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none",["&:focus-visible"]:{[a]:Object.assign({},(0,ba.oN)(n))}},[`${a}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[a]:{width:n.iconSize,height:n.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:n.marginXS,fontSize:n.iconFontSize,fontFamily:n.fontFamily,lineHeight:`${(0,Re.bf)(n.iconSize)}`,textAlign:"center",borderRadius:n.iconSize,border:`${(0,Re.bf)(n.lineWidth)} ${n.lineType} transparent`,transition:`background-color ${t}, border-color ${t}`,[`${e}-icon`]:{position:"relative",top:n.iconTop,color:n.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:n.calc(n.iconSize).div(2).sub(n.paddingXXS).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:n.lineWidth,background:n.colorSplit,borderRadius:n.lineWidth,transition:`background ${t}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:n.padding,color:n.colorText,fontSize:n.fontSizeLG,lineHeight:`${(0,Re.bf)(n.titleLineHeight)}`,"&::after":{position:"absolute",top:n.calc(n.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:n.lineWidth,background:n.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:n.marginXS,color:n.colorTextDescription,fontWeight:"normal",fontSize:n.fontSize},[`${r}-description`]:{color:n.colorTextDescription,fontSize:n.fontSize}},po(Ka.wait,n)),po(Ka.process,n)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:n.fontWeightStrong}}),po(Ka.finish,n)),po(Ka.error,n)),{[`${r}${e}-next-error > ${e}-item-title::after`]:{background:n.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},ld=n=>{const{componentCls:e,motionDurationSlow:t}=n;return{[`& ${e}-item`]:{[`&:not(${e}-item-active)`]:{[`& > ${e}-item-container[role='button']`]:{cursor:"pointer",[`${e}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${e}-icon`]:{transition:`color ${t}`}},"&:hover":{[`${e}-item`]:{["&-title, &-subtitle, &-description"]:{color:n.colorPrimary}}}},[`&:not(${e}-item-process)`]:{[`& > ${e}-item-container[role='button']:hover`]:{[`${e}-item`]:{"&-icon":{borderColor:n.colorPrimary,[`${e}-icon`]:{color:n.colorPrimary}}}}}}},[`&${e}-horizontal:not(${e}-label-vertical)`]:{[`${e}-item`]:{paddingInlineStart:n.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${e}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:n.descriptionMaxWidth,whiteSpace:"normal"}}}}},id=n=>{const{componentCls:e}=n;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ba.Wf)(n)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),od(n)),ld(n)),Jc(n)),rd(n)),ad(n)),qc(n)),nd(n)),_c(n)),td(n)),ed(n)),Qc(n))}},sd=n=>({titleLineHeight:n.controlHeight,customIconSize:n.controlHeight,customIconTop:0,customIconFontSize:n.controlHeightSM,iconSize:n.controlHeight,iconTop:-.5,iconFontSize:n.fontSize,iconSizeSM:n.fontSizeHeading3,dotSize:n.controlHeight/4,dotCurrentSize:n.controlHeightLG/4,navArrowColor:n.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:n.wireframe?n.colorTextDisabled:n.colorTextLabel,waitIconBgColor:n.wireframe?n.colorBgContainer:n.colorFillContent,waitIconBorderColor:n.wireframe?n.colorTextDisabled:"transparent",finishIconBgColor:n.wireframe?n.colorBgContainer:n.controlItemBgActive,finishIconBorderColor:n.wireframe?n.colorPrimary:n.controlItemBgActive});var cd=(0,Zl.I$)("Steps",n=>{const{colorTextDisabled:e,controlHeightLG:t,colorTextLightSolid:r,colorText:a,colorPrimary:i,colorTextDescription:l,colorTextQuaternary:s,colorError:c,colorBorderSecondary:u,colorSplit:p}=n,m=(0,wl.TS)(n,{processIconColor:r,processTitleColor:a,processDescriptionColor:a,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:p,waitTitleColor:l,waitDescriptionColor:l,waitTailColor:p,waitDotColor:e,finishIconColor:i,finishTitleColor:a,finishDescriptionColor:l,finishTailColor:i,finishDotColor:i,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:p,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:i,stepsProgressSize:t,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:u});return[id(m)]},sd);function dd(n){return n.filter(e=>e)}function ud(n,e){if(n)return n;const t=(0,Ht.Z)(e).map(r=>{if(o.isValidElement(r)){const{props:a}=r;return Object.assign({},a)}return null});return dd(t)}var fd=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{percent:e,size:t,className:r,rootClassName:a,direction:i,items:l,responsive:s=!0,current:c=0,children:u,style:p}=n,m=fd(n,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:v}=(0,sl.Z)(s),{getPrefixCls:g,direction:f,steps:C}=o.useContext(jo.E_),y=o.useMemo(()=>s&&v?"vertical":i,[v,i]),S=(0,il.Z)(t),x=g("steps",n.prefixCls),[T,O,z]=cd(x),W=n.type==="inline",N=g("",n.iconPrefix),V=ud(l,u),j=W?void 0:e,B=Object.assign(Object.assign({},C==null?void 0:C.style),p),P=We()(C==null?void 0:C.className,{[`${x}-rtl`]:f==="rtl",[`${x}-with-progress`]:j!==void 0},r,a,O,z),$={finish:o.createElement(Hc.Z,{className:`${x}-finish-icon`}),error:o.createElement(Wc.Z,{className:`${x}-error-icon`})},H=w=>{let{node:D,status:K}=w;if(K==="process"&&j!==void 0){const X=S==="small"?32:40;return o.createElement("div",{className:`${x}-progress-icon`},o.createElement(Yc.Z,{type:"circle",percent:j,size:X,strokeWidth:4,format:()=>null}),D)}return D},F=(w,D)=>w.description?o.createElement(Vr.Z,{title:w.description},D):D;return T(o.createElement(Al,Object.assign({icons:$},m,{style:B,current:c,size:S,items:V,itemRender:W?F:void 0,stepIcon:H,direction:y,prefixCls:x,iconPrefix:N,className:P})))};Hl.Step=Al.Step;var Wl=Hl,vd=["onFinish","step","formRef","title","stepProps"];function md(n){var e=(0,o.useRef)(),t=(0,o.useContext)(Vl),r=(0,o.useContext)(Ul),a=(0,d.Z)((0,d.Z)({},n),r),i=a.onFinish,l=a.step,s=a.formRef,c=a.title,u=a.stepProps,p=(0,cn.Z)(a,vd);return(0,Fe.ET)(!p.submitter,"StepForm \u4E0D\u5305\u542B\u63D0\u4EA4\u6309\u94AE\uFF0C\u8BF7\u5728 StepsForm \u4E0A"),(0,o.useImperativeHandle)(s,function(){return e.current},[s==null?void 0:s.current]),(0,o.useEffect)(function(){if(a.name||a.step){var m=(a.name||a.step).toString();return t==null||t.regForm(m,a),function(){t==null||t.unRegForm(m)}}},[]),t&&t!==null&&t!==void 0&&t.formArrayRef&&(t.formArrayRef.current[l||0]=e),(0,b.jsx)(Qa.I,(0,d.Z)({formRef:e,onFinish:function(){var m=(0,le.Z)((0,Q.Z)().mark(function v(g){var f;return(0,Q.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(p.name&&(t==null||t.onFormFinish(p.name,g)),!i){y.next=9;break}return t==null||t.setLoading(!0),y.next=5,i==null?void 0:i(g);case 5:return f=y.sent,f&&(t==null||t.next()),t==null||t.setLoading(!1),y.abrupt("return");case 9:t!=null&&t.lastStep||t==null||t.next();case 10:case"end":return y.stop()}},v)}));return function(v){return m.apply(this,arguments)}}(),onInit:function(v,g){var f;e.current=g,t&&t!==null&&t!==void 0&&t.formArrayRef&&(t.formArrayRef.current[l||0]=e),p==null||(f=p.onInit)===null||f===void 0||f.call(p,v,g)},layout:"vertical"},(0,Gr.Z)(p,["layoutType","columns"])))}var pd=md,gd=function(e){return(0,A.Z)({},e.componentCls,{"&-container":{width:"max-content",minWidth:"420px",maxWidth:"100%",margin:"auto"},"&-steps-container":(0,A.Z)({maxWidth:"1160px",margin:"auto"},"".concat(e.antCls,"-steps-vertical"),{height:"100%"}),"&-step":{display:"none",marginBlockStart:"32px","&-active":{display:"block"},"> form":{maxWidth:"100%"}}})};function hd(n){return(0,Tn.Xj)("StepsForm",function(e){var t=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(n)});return[gd(t)]})}var yd=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef","layoutRender"],Vl=o.createContext(void 0),Cd={horizontal:function(e){var t=e.stepsDom,r=e.formDom;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(mo.Z,{gutter:{xs:8,sm:16,md:24},children:(0,b.jsx)(xa.Z,{span:24,children:t})}),(0,b.jsx)(mo.Z,{gutter:{xs:8,sm:16,md:24},children:(0,b.jsx)(xa.Z,{span:24,children:r})})]})},vertical:function(e){var t=e.stepsDom,r=e.formDom;return(0,b.jsxs)(mo.Z,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[(0,b.jsx)(xa.Z,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:o.cloneElement(t,{style:{height:"100%"}})}),(0,b.jsx)(xa.Z,{children:(0,b.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:r})})]})}},Ul=o.createContext(null);function bd(n){var e=(0,o.useContext)(sr.ZP.ConfigContext),t=e.getPrefixCls,r=t("pro-steps-form"),a=hd(r),i=a.wrapSSR,l=a.hashId,s=n.current,c=n.onCurrentChange,u=n.submitter,p=n.stepsFormRender,m=n.stepsRender,v=n.stepFormRender,g=n.stepsProps,f=n.onFinish,C=n.formProps,y=n.containerStyle,S=n.formRef,x=n.formMapRef,T=n.layoutRender,O=(0,cn.Z)(n,yd),z=(0,o.useRef)(new Map),W=(0,o.useRef)(new Map),N=(0,o.useRef)([]),V=(0,o.useState)([]),j=(0,Se.Z)(V,2),B=j[0],P=j[1],$=(0,o.useState)(!1),H=(0,Se.Z)($,2),F=H[0],w=H[1],D=(0,wn.YB)(),K=(0,Xe.Z)(0,{value:n.current,onChange:n.onCurrentChange}),X=(0,Se.Z)(K,2),k=X[0],R=X[1],M=(0,o.useMemo)(function(){return Cd[(g==null?void 0:g.direction)||"horizontal"]},[g==null?void 0:g.direction]),G=(0,o.useMemo)(function(){return k===B.length-1},[B.length,k]),ee=(0,o.useCallback)(function(_,ce){W.current.has(_)||P(function(pe){return[].concat((0,he.Z)(pe),[_])}),W.current.set(_,ce)},[]),oe=(0,o.useCallback)(function(_){P(function(ce){return ce.filter(function(pe){return pe!==_})}),W.current.delete(_),z.current.delete(_)},[]);(0,o.useImperativeHandle)(x,function(){return N.current},[N.current]),(0,o.useImperativeHandle)(S,function(){var _;return(_=N.current[k||0])===null||_===void 0?void 0:_.current},[k,N.current]);var q=(0,o.useCallback)(function(){var _=(0,le.Z)((0,Q.Z)().mark(function ce(pe,sn){var bn,fn;return(0,Q.Z)().wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:if(z.current.set(pe,sn),!(!G||!f)){Wn.next=3;break}return Wn.abrupt("return");case 3:return w(!0),bn=tn.T.apply(void 0,[{}].concat((0,he.Z)(Array.from(z.current.values())))),Wn.prev=5,Wn.next=8,f(bn);case 8:fn=Wn.sent,fn&&(R(0),N.current.forEach(function(jt){var On;return(On=jt.current)===null||On===void 0?void 0:On.resetFields()})),Wn.next=15;break;case 12:Wn.prev=12,Wn.t0=Wn.catch(5),console.log(Wn.t0);case 15:return Wn.prev=15,w(!1),Wn.finish(15);case 18:case"end":return Wn.stop()}},ce,null,[[5,12,15,18]])}));return function(ce,pe){return _.apply(this,arguments)}}(),[G,f,w,R]),Y=(0,o.useMemo)(function(){var _=(0,Xo.n)(Go.Z,"4.24.0")>-1,ce=_?{items:B.map(function(pe){var sn=W.current.get(pe);return(0,d.Z)({key:pe,title:sn==null?void 0:sn.title},sn==null?void 0:sn.stepProps)})}:{};return(0,b.jsx)("div",{className:"".concat(r,"-steps-container ").concat(l).trim(),style:{maxWidth:Math.min(B.length*320,1160)},children:(0,b.jsx)(Wl,(0,d.Z)((0,d.Z)((0,d.Z)({},g),ce),{},{current:k,onChange:void 0,children:!_&&B.map(function(pe){var sn=W.current.get(pe);return(0,b.jsx)(Wl.Step,(0,d.Z)({title:sn==null?void 0:sn.title},sn==null?void 0:sn.stepProps),pe)})}))})},[B,l,r,k,g]),J=(0,Ze.J)(function(){var _,ce=N.current[k];(_=ce.current)===null||_===void 0||_.submit()}),ne=(0,Ze.J)(function(){k<1||R(k-1)}),we=(0,o.useMemo)(function(){return u!==!1&&(0,b.jsx)(Ga.ZP,(0,d.Z)((0,d.Z)({type:"primary",loading:F},u==null?void 0:u.submitButtonProps),{},{onClick:function(){var ce;u==null||(ce=u.onSubmit)===null||ce===void 0||ce.call(u),J()},children:D.getMessage("stepsForm.next","\u4E0B\u4E00\u6B65")}),"next")},[D,F,J,u]),Ke=(0,o.useMemo)(function(){return u!==!1&&(0,b.jsx)(Ga.ZP,(0,d.Z)((0,d.Z)({},u==null?void 0:u.resetButtonProps),{},{onClick:function(){var ce;ne(),u==null||(ce=u.onReset)===null||ce===void 0||ce.call(u)},children:D.getMessage("stepsForm.prev","\u4E0A\u4E00\u6B65")}),"pre")},[D,ne,u]),ge=(0,o.useMemo)(function(){return u!==!1&&(0,b.jsx)(Ga.ZP,(0,d.Z)((0,d.Z)({type:"primary",loading:F},u==null?void 0:u.submitButtonProps),{},{onClick:function(){var ce;u==null||(ce=u.onSubmit)===null||ce===void 0||ce.call(u),J()},children:D.getMessage("stepsForm.submit","\u63D0\u4EA4")}),"submit")},[D,F,J,u]),Le=(0,Ze.J)(function(){k>B.length-2||R(k+1)}),ue=(0,o.useMemo)(function(){var _=[],ce=k||0;if(ce<1?B.length===1?_.push(ge):_.push(we):ce+1===B.length?_.push(Ke,ge):_.push(Ke,we),_=_.filter(o.isValidElement),u&&u.render){var pe,sn={form:(pe=N.current[k])===null||pe===void 0?void 0:pe.current,onSubmit:J,step:k,onPre:ne};return u.render(sn,_)}return u&&(u==null?void 0:u.render)===!1?null:_},[B.length,we,J,Ke,ne,k,ge,u]),me=(0,o.useMemo)(function(){return(0,Ht.Z)(n.children).map(function(_,ce){var pe=_.props,sn=pe.name||"".concat(ce),bn=k===ce,fn=bn?{contentRender:v,submitter:!1}:{};return(0,b.jsx)("div",{className:We()("".concat(r,"-step"),l,(0,A.Z)({},"".concat(r,"-step-active"),bn)),children:(0,b.jsx)(Ul.Provider,{value:(0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)({},fn),C),pe),{},{name:sn,step:ce}),children:_})},sn)})},[C,l,r,n.children,k,v]),je=(0,o.useMemo)(function(){return m?m(B.map(function(_){var ce;return{key:_,title:(ce=W.current.get(_))===null||ce===void 0?void 0:ce.title}}),Y):Y},[B,Y,m]),Rn=(0,o.useMemo)(function(){return(0,b.jsxs)("div",{className:"".concat(r,"-container ").concat(l).trim(),style:y,children:[me,p?null:(0,b.jsx)(Na.Z,{children:ue})]})},[y,me,l,r,p,ue]),de=(0,o.useMemo)(function(){var _={stepsDom:je,formDom:Rn};return p?p(T?T(_):M(_),ue):T?T(_):M(_)},[je,Rn,M,p,ue,T]);return i((0,b.jsx)("div",{className:We()(r,l),children:(0,b.jsx)(Me.Z.Provider,(0,d.Z)((0,d.Z)({},O),{},{children:(0,b.jsx)(Vl.Provider,{value:{loading:F,setLoading:w,regForm:ee,keyArray:B,next:Le,formArrayRef:N,formMapRef:W,lastStep:G,unRegForm:oe,onFormFinish:q},children:de})}))}))}function go(n){return(0,b.jsx)(wn._Y,{needDeps:!0,children:(0,b.jsx)(bd,(0,d.Z)({},n))})}go.StepForm=pd,go.useForm=Me.Z.useForm;var xd=["steps","columns","forceUpdate","grid"],Sd=function(e){var t=e.steps,r=e.columns,a=e.forceUpdate,i=e.grid,l=(0,cn.Z)(e,xd),s=(0,Kl.d)(l),c=(0,o.useCallback)(function(p){var m,v;(m=(v=s.current).onCurrentChange)===null||m===void 0||m.call(v,p),a([])},[a,s]),u=(0,o.useMemo)(function(){return t==null?void 0:t.map(function(p,m){return(0,o.createElement)(Yl,(0,d.Z)((0,d.Z)({grid:i},p),{},{key:m,layoutType:"StepForm",columns:r[m]}))})},[r,i,t]);return(0,b.jsx)(go,(0,d.Z)((0,d.Z)({},l),{},{onCurrentChange:c,children:u}))},Zd=Sd,wd=function(e){var t=e.children;return(0,b.jsx)(b.Fragment,{children:t})},Ed=wd,Xl=h(97462),Rd=function(e,t){if(e.valueType==="dependency"){var r,a,i,l=(r=e.getFieldProps)===null||r===void 0?void 0:r.call(e);return(0,Fe.ET)(Array.isArray((a=e.name)!==null&&a!==void 0?a:l==null?void 0:l.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),(0,Fe.ET)(typeof e.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((i=e.name)!==null&&i!==void 0?i:l==null?void 0:l.name)?(0,o.createElement)(Xl.Z,(0,d.Z)((0,d.Z)({name:e.name},l),{},{key:e.key}),function(s){return!e.columns||typeof e.columns!="function"?null:t.genItems(e.columns(s))}):null}return!0},Id=h(96074),Td=function(e){if(e.valueType==="divider"){var t;return(0,o.createElement)(Id.Z,(0,d.Z)((0,d.Z)({},(t=e.getFieldProps)===null||t===void 0?void 0:t.call(e)),{},{key:e.key}))}return!0},ho=h(64791),Pd=function(e,t){var r=t.action,a=t.formRef,i=t.type,l=t.originItem,s=(0,d.Z)((0,d.Z)({},(0,Gr.Z)(e,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:e.name||e.key||e.dataIndex,width:e.width,render:e!=null&&e.render?function(m,v,g){var f,C,y,S;return e==null||(f=e.render)===null||f===void 0?void 0:f.call(e,m,v,g,r==null?void 0:r.current,(0,d.Z)((0,d.Z)({type:i},e),{},{key:(C=e.key)===null||C===void 0?void 0:C.toString(),formItemProps:(y=e.getFormItemProps)===null||y===void 0?void 0:y.call(e),fieldProps:(S=e.getFieldProps)===null||S===void 0?void 0:S.call(e)}))}:void 0}),c=function(){return(0,b.jsx)(ho.Z,(0,d.Z)((0,d.Z)({},s),{},{ignoreFormItem:!0}))},u=e!=null&&e.renderFormItem?function(m,v){var g,f,C,y,S=(0,Un.Y)((0,d.Z)((0,d.Z)({},v),{},{onChange:void 0}));return e==null||(g=e.renderFormItem)===null||g===void 0?void 0:g.call(e,(0,d.Z)((0,d.Z)({type:i},e),{},{key:(f=e.key)===null||f===void 0?void 0:f.toString(),formItemProps:(C=e.getFormItemProps)===null||C===void 0?void 0:C.call(e),fieldProps:(y=e.getFieldProps)===null||y===void 0?void 0:y.call(e),originProps:l}),(0,d.Z)((0,d.Z)({},S),{},{defaultRender:c,type:i}),a.current)}:void 0,p=function(){if(e!=null&&e.renderFormItem){var v=u==null?void 0:u(null,{});if(!v||e.ignoreFormItem)return v}return(0,o.createElement)(ho.Z,(0,d.Z)((0,d.Z)({},s),{},{key:[e.key,e.index||0].join("-"),renderFormItem:u}))};return e.dependencies?(0,b.jsx)(Xl.Z,{name:e.dependencies||[],children:p},e.key):p()},Nd=h(55895),$d=function(e,t){var r=t.genItems;if(e.valueType==="formList"&&e.dataIndex){var a,i;return!e.columns||!Array.isArray(e.columns)?null:(0,o.createElement)(Nd.u,(0,d.Z)((0,d.Z)({},(a=e.getFormItemProps)===null||a===void 0?void 0:a.call(e)),{},{key:e.key,name:e.dataIndex,label:e.label,initialValue:e.initialValue,colProps:e.colProps,rowProps:e.rowProps},(i=e.getFieldProps)===null||i===void 0?void 0:i.call(e)),r(e.columns))}return!0},Kd=h(90789),Od=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue","lightProps"],Md=["children","space","valuePropName"],Fd={space:Na.Z,group:Bo.Z.Group};function Dd(n){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&n in e.target?e.target[n]:e}var jd=function(e){var t=e.children,r=e.value,a=r===void 0?[]:r,i=e.valuePropName,l=e.onChange,s=e.fieldProps,c=e.space,u=e.type,p=u===void 0?"space":u,m=e.transform,v=e.convertValue,g=e.lightProps,f=(0,cn.Z)(e,Od),C=(0,Ze.J)(function(N,V){var j,B=(0,he.Z)(a);B[V]=Dd(i||"value",N),l==null||l(B),s==null||(j=s.onChange)===null||j===void 0||j.call(s,B)}),y=-1,S=(0,Ht.Z)((0,Ir.h)(t,a,e)).map(function(N){if(o.isValidElement(N)){var V,j,B;y+=1;var P=y,$=(N==null||(V=N.type)===null||V===void 0?void 0:V.displayName)==="ProFormComponent"||(N==null||(j=N.props)===null||j===void 0?void 0:j.readonly),H=$?(0,d.Z)((0,d.Z)({key:P,ignoreFormItem:!0},N.props||{}),{},{fieldProps:(0,d.Z)((0,d.Z)({},N==null||(B=N.props)===null||B===void 0?void 0:B.fieldProps),{},{onChange:function(){C(arguments.length<=0?void 0:arguments[0],P)}}),value:a==null?void 0:a[P],onChange:void 0}):(0,d.Z)((0,d.Z)({key:P},N.props||{}),{},{value:a==null?void 0:a[P],onChange:function(w){var D,K;C(w,P),(D=(K=N.props).onChange)===null||D===void 0||D.call(K,w)}});return o.cloneElement(N,H)}return N}),x=Fd[p],T=(0,In.zx)(f),O=T.RowWrapper,z=(0,o.useMemo)(function(){return(0,d.Z)({},p==="group"?{compact:!0}:{})},[p]),W=(0,o.useCallback)(function(N){var V=N.children;return(0,b.jsx)(x,(0,d.Z)((0,d.Z)((0,d.Z)({},z),c),{},{align:"start",wrap:!0,children:V}))},[x,c,z]);return(0,b.jsx)(O,{Wrapper:W,children:S})},Ld=o.forwardRef(function(n,e){var t=n.children,r=n.space,a=n.valuePropName,i=(0,cn.Z)(n,Md);return(0,o.useImperativeHandle)(e,function(){return{}}),(0,b.jsx)(jd,(0,d.Z)((0,d.Z)((0,d.Z)({space:r,valuePropName:a},i.fieldProps),{},{onChange:void 0},i),{},{children:t}))}),Bd=(0,Kd.G)(Ld),kd=Bd,zd=function(e,t){var r=t.genItems;if(e.valueType==="formSet"&&e.dataIndex){var a,i;return!e.columns||!Array.isArray(e.columns)?null:(0,o.createElement)(kd,(0,d.Z)((0,d.Z)({},(a=e.getFormItemProps)===null||a===void 0?void 0:a.call(e)),{},{key:e.key,initialValue:e.initialValue,name:e.dataIndex,label:e.label,colProps:e.colProps,rowProps:e.rowProps},(i=e.getFieldProps)===null||i===void 0?void 0:i.call(e)),r(e.columns))}return!0},Ad=En.A.Group,Hd=function(e,t){var r=t.genItems;if(e.valueType==="group"){var a;return!e.columns||!Array.isArray(e.columns)?null:(0,b.jsx)(Ad,(0,d.Z)((0,d.Z)({label:e.label,colProps:e.colProps,rowProps:e.rowProps},(a=e.getFieldProps)===null||a===void 0?void 0:a.call(e)),{},{children:r(e.columns)}),e.key)}return!0},Wd=function(e){return e.valueType&&typeof e.valueType=="string"&&["index","indexBorder","option"].includes(e==null?void 0:e.valueType)?null:!0},Gl=[Wd,Hd,$d,zd,Td,Rd],Vd=function(e,t){for(var r=0;r span":{"> span.anticon":{color:e.colorPrimary}},"> span + span":{marginInlineStart:4}}}))};function Ru(n){return(0,Tn.Xj)("ColumnSetting",function(e){var t=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(n)});return[Eu(t)]})}var Iu=["key","dataIndex","children"],Tu=["disabled"],Yo=function(e){var t=e.title,r=e.show,a=e.children,i=e.columnKey,l=e.fixed,s=(0,o.useContext)(ia),c=s.columnsMap,u=s.setColumnsMap;return r?(0,b.jsx)(Vr.Z,{title:t,children:(0,b.jsx)("span",{onClick:function(m){m.stopPropagation(),m.preventDefault();var v=c[i]||{},g=(0,d.Z)((0,d.Z)({},c),{},(0,A.Z)({},i,(0,d.Z)((0,d.Z)({},v),{},{fixed:l})));u(g)},children:a})}):null},Pu=function(e){var t=e.columnKey,r=e.isLeaf,a=e.title,i=e.className,l=e.fixed,s=e.showListItemOption,c=(0,wn.YB)(),u=(0,o.useContext)(wn.L_),p=u.hashId,m=(0,b.jsxs)("span",{className:"".concat(i,"-list-item-option ").concat(p).trim(),children:[(0,b.jsx)(Yo,{columnKey:t,fixed:"left",title:c.getMessage("tableToolBar.leftPin","\u56FA\u5B9A\u5728\u5217\u9996"),show:l!=="left",children:(0,b.jsx)(du,{})}),(0,b.jsx)(Yo,{columnKey:t,fixed:void 0,title:c.getMessage("tableToolBar.noPin","\u4E0D\u56FA\u5B9A"),show:!!l,children:(0,b.jsx)(pu,{})}),(0,b.jsx)(Yo,{columnKey:t,fixed:"right",title:c.getMessage("tableToolBar.rightPin","\u56FA\u5B9A\u5728\u5217\u5C3E"),show:l!=="right",children:(0,b.jsx)(bu,{})})]});return(0,b.jsxs)("span",{className:"".concat(i,"-list-item ").concat(p).trim(),children:[(0,b.jsx)("div",{className:"".concat(i,"-list-item-title ").concat(p).trim(),children:a}),s&&!r?m:null]},t)},Jo=function(e){var t,r,a,i=e.list,l=e.draggable,s=e.checkable,c=e.showListItemOption,u=e.className,p=e.showTitle,m=p===void 0?!0:p,v=e.title,g=e.listHeight,f=g===void 0?280:g,C=(0,o.useContext)(wn.L_),y=C.hashId,S=(0,o.useContext)(ia),x=S.columnsMap,T=S.setColumnsMap,O=S.sortKeyColumns,z=S.setSortKeyColumns,W=i&&i.length>0,N=(0,o.useMemo)(function(){if(!W)return{};var P=[],$=new Map,H=function F(w,D){return w.map(function(K){var X,k=K.key,R=K.dataIndex,M=K.children,G=(0,cn.Z)(K,Iu),ee=Pa(k,[D==null?void 0:D.columnKey,G.index].filter(Boolean).join("-")),oe=x[ee||"null"]||{show:!0};oe.show!==!1&&!M&&P.push(ee);var q=(0,d.Z)((0,d.Z)({key:ee},(0,Gr.Z)(G,["className"])),{},{selectable:!1,disabled:oe.disable===!0,disableCheckbox:typeof oe.disable=="boolean"?oe.disable:(X=oe.disable)===null||X===void 0?void 0:X.checkbox,isLeaf:D?!0:void 0});if(M){var Y;q.children=F(M,(0,d.Z)((0,d.Z)({},oe),{},{columnKey:ee})),(Y=q.children)!==null&&Y!==void 0&&Y.every(function(J){return P==null?void 0:P.includes(J.key)})&&P.push(ee)}return $.set(k,q),q})};return{list:H(i),keys:P,map:$}},[x,i,W]),V=(0,Ze.J)(function(P,$,H){var F=(0,d.Z)({},x),w=(0,he.Z)(O),D=w.findIndex(function(R){return R===P}),K=w.findIndex(function(R){return R===$}),X=H>=D;if(!(D<0)){var k=w[D];w.splice(D,1),H===0?w.unshift(k):w.splice(X?K:K+1,0,k),w.forEach(function(R,M){F[R]=(0,d.Z)((0,d.Z)({},F[R]||{}),{},{order:M})}),T(F),z(w)}}),j=(0,Ze.J)(function(P){var $=(0,d.Z)({},x),H=function F(w){var D,K=(0,d.Z)({},$[w]);if(K.show=P.checked,(D=N.map)!==null&&D!==void 0&&(D=D.get(w))!==null&&D!==void 0&&D.children){var X;(X=N.map.get(w))===null||X===void 0||(X=X.children)===null||X===void 0||X.forEach(function(k){return F(k.key)})}$[w]=K};H(P.node.key),T((0,d.Z)({},$))});if(!W)return null;var B=(0,b.jsx)(dl.Z,{itemHeight:24,draggable:l&&!!((t=N.list)!==null&&t!==void 0&&t.length)&&((r=N.list)===null||r===void 0?void 0:r.length)>1,checkable:s,onDrop:function($){var H=$.node.key,F=$.dragNode.key,w=$.dropPosition,D=$.dropToGap,K=w===-1||!D?w+1:w;V(F,H,K)},blockNode:!0,onCheck:function($,H){return j(H)},checkedKeys:N.keys,showLine:!1,titleRender:function($){var H=(0,d.Z)((0,d.Z)({},$),{},{children:void 0});if(!H.title)return null;var F=(0,Ir.h)(H.title,H),w=(0,b.jsx)(Jl.Z.Text,{style:{width:80},ellipsis:{tooltip:F},children:F});return(0,b.jsx)(Pu,(0,d.Z)((0,d.Z)({className:u},H),{},{showListItemOption:c,title:w,columnKey:H.key}))},height:f,treeData:(a=N.list)===null||a===void 0?void 0:a.map(function(P){var $=P.disabled,H=(0,cn.Z)(P,Tu);return H})});return(0,b.jsxs)(b.Fragment,{children:[m&&(0,b.jsx)("span",{className:"".concat(u,"-list-title ").concat(y).trim(),children:v}),B]})},Nu=function(e){var t=e.localColumns,r=e.className,a=e.draggable,i=e.checkable,l=e.showListItemOption,s=e.listsHeight,c=(0,o.useContext)(wn.L_),u=c.hashId,p=[],m=[],v=[],g=(0,wn.YB)();t.forEach(function(y){if(!y.hideInSetting){var S=y.fixed;if(S==="left"){m.push(y);return}if(S==="right"){p.push(y);return}v.push(y)}});var f=p&&p.length>0,C=m&&m.length>0;return(0,b.jsxs)("div",{className:We()("".concat(r,"-list"),u,(0,A.Z)({},"".concat(r,"-list-group"),f||C)),children:[(0,b.jsx)(Jo,{title:g.getMessage("tableToolBar.leftFixedTitle","\u56FA\u5B9A\u5728\u5DE6\u4FA7"),list:m,draggable:a,checkable:i,showListItemOption:l,className:r,listHeight:s}),(0,b.jsx)(Jo,{list:v,draggable:a,checkable:i,showListItemOption:l,title:g.getMessage("tableToolBar.noFixedTitle","\u4E0D\u56FA\u5B9A"),showTitle:C||f,className:r,listHeight:s}),(0,b.jsx)(Jo,{title:g.getMessage("tableToolBar.rightFixedTitle","\u56FA\u5B9A\u5728\u53F3\u4FA7"),list:p,draggable:a,checkable:i,showListItemOption:l,className:r,listHeight:s})]})};function $u(n){var e,t,r,a,i=(0,o.useRef)(null),l=(0,o.useContext)(ia),s=n.columns,c=n.checkedReset,u=c===void 0?!0:c,p=l.columnsMap,m=l.setColumnsMap,v=l.clearPersistenceStorage;(0,o.useEffect)(function(){var j;if((j=l.propsRef.current)!==null&&j!==void 0&&(j=j.columnsState)!==null&&j!==void 0&&j.value){var B;i.current=JSON.parse(JSON.stringify(((B=l.propsRef.current)===null||B===void 0||(B=B.columnsState)===null||B===void 0?void 0:B.value)||{}))}},[]);var g=(0,Ze.J)(function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,B={},P=function $(H){H.forEach(function(F){var w=F.key,D=F.fixed,K=F.index,X=F.children,k=F.disable,R=Pa(w,K);if(R){var M,G;B[R]={show:k?(M=p[R])===null||M===void 0?void 0:M.show:j,fixed:D,disable:k,order:(G=p[R])===null||G===void 0?void 0:G.order}}X&&$(X)})};P(s),m(B)}),f=(0,Ze.J)(function(j){j.target.checked?g():g(!1)}),C=(0,Ze.J)(function(){var j;v==null||v(),m(((j=l.propsRef.current)===null||j===void 0||(j=j.columnsState)===null||j===void 0?void 0:j.defaultValue)||i.current||l.defaultColumnKeyMap)}),y=Object.values(p).filter(function(j){return!j||j.show===!1}),S=y.length>0&&y.length!==s.length,x=(0,wn.YB)(),T=(0,o.useContext)(sr.ZP.ConfigContext),O=T.getPrefixCls,z=O("pro-table-column-setting"),W=Ru(z),N=W.wrapSSR,V=W.hashId;return N((0,b.jsx)(Ql.Z,{arrow:!1,title:(0,b.jsxs)("div",{className:"".concat(z,"-title ").concat(V).trim(),children:[n.checkable===!1?(0,b.jsx)("div",{}):(0,b.jsx)(Ua.Z,{indeterminate:S,checked:y.length===0&&y.length!==s.length,onChange:function(B){f(B)},children:x.getMessage("tableToolBar.columnDisplay","\u5217\u5C55\u793A")}),u?(0,b.jsx)("a",{onClick:C,className:"".concat(z,"-action-rest-button ").concat(V).trim(),children:x.getMessage("tableToolBar.reset","\u91CD\u7F6E")}):null,n!=null&&n.extra?(0,b.jsx)(Na.Z,{size:12,align:"center",children:n.extra}):null]}),overlayClassName:"".concat(z,"-overlay ").concat(V).trim(),trigger:"click",placement:"bottomRight",content:(0,b.jsx)(Nu,{checkable:(e=n.checkable)!==null&&e!==void 0?e:!0,draggable:(t=n.draggable)!==null&&t!==void 0?t:!0,showListItemOption:(r=n.showListItemOption)!==null&&r!==void 0?r:!0,className:z,localColumns:s,listsHeight:n.listsHeight}),children:n.children||(0,b.jsx)(Vr.Z,{title:x.getMessage("tableToolBar.columnSetting","\u5217\u8BBE\u7F6E"),children:(a=n.settingIcon)!==null&&a!==void 0?a:(0,b.jsx)(wu,{})})}))}var Ku=$u,yo=h(48096),Ou=h(56874),ql=h(86413),Mu=function(e){var t=(0,o.useContext)(wn.L_),r=t.hashId,a=e.items,i=a===void 0?[]:a,l=e.type,s=l===void 0?"inline":l,c=e.prefixCls,u=e.activeKey,p=e.defaultActiveKey,m=(0,Xe.Z)(u||p,{value:u,onChange:e.onChange}),v=(0,Se.Z)(m,2),g=v[0],f=v[1];if(i.length<1)return null;var C=i.find(function(S){return S.key===g})||i[0];if(s==="inline")return(0,b.jsx)("div",{className:We()("".concat(c,"-menu"),"".concat(c,"-inline-menu"),r),children:i.map(function(S,x){return(0,b.jsx)("div",{onClick:function(){f(S.key)},className:We()("".concat(c,"-inline-menu-item"),C.key===S.key?"".concat(c,"-inline-menu-item-active"):void 0,r),children:S.label},S.key||x)})});if(s==="tab")return(0,b.jsx)(yo.Z,{items:i.map(function(S){var x;return(0,d.Z)((0,d.Z)({},S),{},{key:(x=S.key)===null||x===void 0?void 0:x.toString()})}),activeKey:C.key,onTabClick:function(x){return f(x)},children:(0,Xo.n)(Go.Z,"4.23.0")<0?i==null?void 0:i.map(function(S,x){return(0,o.createElement)(yo.Z.TabPane,(0,d.Z)((0,d.Z)({},S),{},{key:S.key||x,tab:S.label}))}):null});var y=(0,ql.Q)({selectedKeys:[C.key],onClick:function(x){f(x.key)},items:i.map(function(S,x){return{key:S.key||x,disabled:S.disabled,label:S.label}})});return(0,b.jsx)("div",{className:We()("".concat(c,"-menu"),"".concat(c,"-dropdownmenu")),children:(0,b.jsx)(io.Z,(0,d.Z)((0,d.Z)({trigger:["click"]},y),{},{children:(0,b.jsxs)(Na.Z,{className:"".concat(c,"-dropdownmenu-label"),children:[C.label,(0,b.jsx)(Ou.Z,{})]})}))})},Fu=Mu,Du=function(e){return(0,A.Z)({},e.componentCls,(0,A.Z)((0,A.Z)((0,A.Z)({lineHeight:"1","&-container":{display:"flex",justifyContent:"space-between",paddingBlock:e.padding,paddingInline:0,"&-mobile":{flexDirection:"column"}},"&-title":{display:"flex",alignItems:"center",justifyContent:"flex-start",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSizeLG},"&-search:not(:last-child)":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"&-setting-item":{marginBlock:0,marginInline:4,color:e.colorIconHover,fontSize:e.fontSizeLG,cursor:"pointer","> span":{display:"block",width:"100%",height:"100%"},"&:hover":{color:e.colorPrimary}},"&-left":(0,A.Z)((0,A.Z)({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.marginXS,justifyContent:"flex-start",maxWidth:"calc(100% - 200px)",flex:1},"".concat(e.antCls,"-tabs"),{width:"100%"}),"&-has-tabs",{overflow:"hidden"}),"&-right":{flex:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-end",gap:e.marginXS},"&-extra-line":{marginBlockEnd:e.margin},"&-setting-items":{display:"flex",gap:e.marginXS,lineHeight:"32px",alignItems:"center"},"&-filter":(0,A.Z)({"&:not(:last-child)":{marginInlineEnd:e.margin},display:"flex",alignItems:"center"},"div$".concat(e.antCls,"-pro-table-search"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0}),"&-inline-menu-item":{display:"inline-block",marginInlineEnd:e.marginLG,cursor:"pointer",opacity:"0.75","&-active":{fontWeight:"bold",opacity:"1"}}},"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),(0,A.Z)({marginBlockEnd:0,"&::before":{borderBlockEnd:0}},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:0,"${token.antCls}-tabs-tab":{paddingBlockStart:0}})),"&-dropdownmenu-label",{fontWeight:"bold",fontSize:e.fontSizeIcon,textAlign:"center",cursor:"pointer"}),"@media (max-width: 768px)",(0,A.Z)({},e.componentCls,{"&-container":{display:"flex",flexWrap:"wrap",flexDirection:"column"},"&-left":{marginBlockEnd:"16px",maxWidth:"100%"}})))};function ju(n){return(0,Tn.Xj)("ProTableListToolBar",function(e){var t=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(n)});return[Du(t)]})}function Lu(n){if(o.isValidElement(n))return n;if(n){var e=n,t=e.icon,r=e.tooltip,a=e.onClick,i=e.key;return t&&r?(0,b.jsx)(Vr.Z,{title:r,children:(0,b.jsx)("span",{onClick:function(){a&&a(i)},children:t},i)}):(0,b.jsx)("span",{onClick:function(){a&&a(i)},children:t},i)}return null}var Bu=function(e){var t,r=e.prefixCls,a=e.tabs,i=e.multipleLine,l=e.filtersNode;return i?(0,b.jsx)("div",{className:"".concat(r,"-extra-line"),children:a!=null&&a.items&&a!==null&&a!==void 0&&a.items.length?(0,b.jsx)(yo.Z,{style:{width:"100%"},defaultActiveKey:a.defaultActiveKey,activeKey:a.activeKey,items:a.items.map(function(s,c){var u;return(0,d.Z)((0,d.Z)({label:s.tab},s),{},{key:((u=s.key)===null||u===void 0?void 0:u.toString())||(c==null?void 0:c.toString())})}),onChange:a.onChange,tabBarExtraContent:l,children:(t=a.items)===null||t===void 0?void 0:t.map(function(s,c){return(0,Xo.n)(Go.Z,"4.23.0")<0?(0,o.createElement)(yo.Z.TabPane,(0,d.Z)((0,d.Z)({},s),{},{key:s.key||c,tab:s.tab})):null})}):l}):null},ku=function(e){var t=e.prefixCls,r=e.title,a=e.subTitle,i=e.tooltip,l=e.className,s=e.style,c=e.search,u=e.onSearch,p=e.multipleLine,m=p===void 0?!1:p,v=e.filter,g=e.actions,f=g===void 0?[]:g,C=e.settings,y=C===void 0?[]:C,S=e.tabs,x=e.menu,T=(0,o.useContext)(sr.ZP.ConfigContext),O=T.getPrefixCls,z=Tn.Ow.useToken(),W=z.token,N=O("pro-table-list-toolbar",t),V=ju(N),j=V.wrapSSR,B=V.hashId,P=(0,wn.YB)(),$=(0,o.useState)(!1),H=(0,Se.Z)($,2),F=H[0],w=H[1],D=P.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),K=(0,o.useMemo)(function(){return c?o.isValidElement(c)?c:(0,b.jsx)(Bo.Z.Search,(0,d.Z)((0,d.Z)({style:{width:200},placeholder:D},c),{},{onSearch:(0,le.Z)((0,Q.Z)().mark(function Y(){var J,ne,we,Ke,ge,Le,ue=arguments;return(0,Q.Z)().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:for(we=ue.length,Ke=new Array(we),ge=0;gea":{fontSize:e.fontSize}}),"".concat(e.antCls,"-table").concat(e.antCls,"-table-tbody").concat(e.antCls,"-table-wrapper:only-child").concat(e.antCls,"-table"),{marginBlock:0,marginInline:0}),"".concat(e.antCls,"-table").concat(e.antCls,"-table-middle ").concat(e.componentCls),(0,A.Z)({marginBlock:0,marginInline:-8},"".concat(e.proComponentsCls,"-card"),{backgroundColor:"initial"})),"& &-search",(0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)({marginBlockEnd:"16px",background:e.colorBgContainer,"&-ghost":{background:"transparent"}},"&".concat(e.componentCls,"-form"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:16,overflow:"unset"}),"&-light-filter",{marginBlockEnd:0,paddingBlock:0,paddingInline:0}),"&-form-option",(0,A.Z)((0,A.Z)((0,A.Z)({},"".concat(e.antCls,"-form-item"),{}),"".concat(e.antCls,"-form-item-label"),{}),"".concat(e.antCls,"-form-item-control-input"),{})),"@media (max-width: 575px)",(0,A.Z)({},e.componentCls,(0,A.Z)({height:"auto !important",paddingBlockEnd:"24px"},"".concat(e.antCls,"-form-item-label"),{minWidth:"80px",textAlign:"start"})))),"&-toolbar",{display:"flex",alignItems:"center",justifyContent:"space-between",height:"64px",paddingInline:24,paddingBlock:0,"&-option":{display:"flex",alignItems:"center",justifyContent:"flex-end"},"&-title":{flex:"1",color:e.colorTextLabel,fontWeight:"500",fontSize:"16px",lineHeight:"24px",opacity:"0.85"}})),"@media (max-width: ".concat(e.screenXS,")px"),(0,A.Z)({},e.componentCls,(0,A.Z)({},"".concat(e.antCls,"-table"),{width:"100%",overflowX:"auto","&-thead > tr,&-tbody > tr":{"> th,> td":{whiteSpace:"pre",">span":{display:"block"}}}}))),"@media (max-width: 575px)",(0,A.Z)({},"".concat(e.componentCls,"-toolbar"),{flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",height:"auto",marginBlockEnd:"16px",marginInlineStart:"16px",paddingBlock:8,paddingInline:8,paddingBlockStart:"16px",lineHeight:"normal","&-title":{marginBlockEnd:16},"&-option":{display:"flex",justifyContent:"space-between",width:"100%"},"&-default-option":{display:"flex",flex:"1",alignItems:"center",justifyContent:"flex-end"}}))};function vf(n){return(0,Tn.Xj)("ProTable",function(e){var t=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(n)});return[ff(t)]})}var mf=["data","success","total"],pf=function(e){var t=e.pageInfo;if(t){var r=t.current,a=t.defaultCurrent,i=t.pageSize,l=t.defaultPageSize;return{current:r||a||1,total:0,pageSize:i||l||20}}return{current:1,total:0,pageSize:20}},gf=function(e,t,r){var a,i=(0,o.useRef)(!1),l=(0,o.useRef)(null),s=r||{},c=s.onLoad,u=s.manual,p=s.polling,m=s.onRequestError,v=s.debounceTime,g=v===void 0?20:v,f=s.effects,C=f===void 0?[]:f,y=(0,o.useRef)(u),S=(0,o.useRef)(),x=(0,Xe.Z)(t,{value:r==null?void 0:r.dataSource,onChange:r==null?void 0:r.onDataSourceChange}),T=(0,Se.Z)(x,2),O=T[0],z=T[1],W=(0,Xe.Z)(!1,{value:(0,mn.Z)(r==null?void 0:r.loading)==="object"?r==null||(a=r.loading)===null||a===void 0?void 0:a.spinning:r==null?void 0:r.loading,onChange:r==null?void 0:r.onLoadingChange}),N=(0,Se.Z)(W,2),V=N[0],j=N[1],B=(0,Xe.Z)(function(){return pf(r)},{onChange:r==null?void 0:r.onPageInfoChange}),P=(0,Se.Z)(B,2),$=P[0],H=P[1],F=(0,Ze.J)(function(J){(J.current!==$.current||J.pageSize!==$.pageSize||J.total!==$.total)&&H(J)}),w=(0,Xe.Z)(!1),D=(0,Se.Z)(w,2),K=D[0],X=D[1],k=function(ne,we){(0,ur.unstable_batchedUpdates)(function(){z(ne),($==null?void 0:$.total)!==we&&F((0,d.Z)((0,d.Z)({},$),{},{total:we||ne.length}))})},R=(0,ze.D)($==null?void 0:$.current),M=(0,ze.D)($==null?void 0:$.pageSize),G=(0,ze.D)(p),ee=(0,Ze.J)(function(){(0,ur.unstable_batchedUpdates)(function(){j(!1),X(!1)})}),oe=function(){var J=(0,le.Z)((0,Q.Z)().mark(function ne(we){var Ke,ge,Le,ue,me,je,Rn,de,_,ce,pe,sn;return(0,Q.Z)().wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:if(!y.current){fn.next=3;break}return y.current=!1,fn.abrupt("return");case 3:return we?X(!0):j(!0),Ke=$||{},ge=Ke.pageSize,Le=Ke.current,fn.prev=5,ue=(r==null?void 0:r.pageInfo)!==!1?{current:Le,pageSize:ge}:void 0,fn.next=9,e==null?void 0:e(ue);case 9:if(fn.t0=fn.sent,fn.t0){fn.next=12;break}fn.t0={};case 12:if(me=fn.t0,je=me.data,Rn=je===void 0?[]:je,de=me.success,_=me.total,ce=_===void 0?0:_,pe=(0,cn.Z)(me,mf),de!==!1){fn.next=21;break}return fn.abrupt("return",[]);case 21:return sn=Gs(Rn,[r.postData].filter(function(Dn){return Dn})),k(sn,ce),c==null||c(sn,pe),fn.abrupt("return",sn);case 27:if(fn.prev=27,fn.t1=fn.catch(5),m!==void 0){fn.next=31;break}throw new Error(fn.t1);case 31:O===void 0&&z([]),m(fn.t1);case 33:return fn.prev=33,ee(),fn.finish(33);case 36:return fn.abrupt("return",[]);case 37:case"end":return fn.stop()}},ne,null,[[5,27,33,36]])}));return function(we){return J.apply(this,arguments)}}(),q=(0,re.D)(function(){var J=(0,le.Z)((0,Q.Z)().mark(function ne(we){var Ke,ge,Le;return(0,Q.Z)().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(S.current&&clearTimeout(S.current),e){me.next=3;break}return me.abrupt("return");case 3:return Ke=new AbortController,l.current=Ke,me.prev=5,me.next=8,Promise.race([oe(we),new Promise(function(je,Rn){var de,_;(de=l.current)===null||de===void 0||(de=de.signal)===null||de===void 0||(_=de.addEventListener)===null||_===void 0||_.call(de,"abort",function(){Rn("aborted"),q.cancel(),ee()})})]);case 8:if(ge=me.sent,!Ke.signal.aborted){me.next=11;break}return me.abrupt("return");case 11:return Le=(0,Ir.h)(p,ge),Le&&!i.current&&(S.current=setTimeout(function(){q.run(Le)},Math.max(Le,2e3))),me.abrupt("return",ge);case 16:if(me.prev=16,me.t0=me.catch(5),me.t0!=="aborted"){me.next=20;break}return me.abrupt("return");case 20:throw me.t0;case 21:case"end":return me.stop()}},ne,null,[[5,16]])}));return function(ne){return J.apply(this,arguments)}}(),g||30),Y=function(){var ne;(ne=l.current)===null||ne===void 0||ne.abort(),q.cancel(),ee()};return(0,o.useEffect)(function(){return p||clearTimeout(S.current),!G&&p&&q.run(!0),function(){clearTimeout(S.current)}},[p]),(0,o.useEffect)(function(){return i.current=!1,function(){i.current=!0}},[]),(0,o.useEffect)(function(){var J=$||{},ne=J.current,we=J.pageSize;(!R||R===ne)&&(!M||M===we)||r.pageInfo&&O&&(O==null?void 0:O.length)>we||ne!==void 0&&O&&O.length<=we&&(Y(),q.run(!1))},[$==null?void 0:$.current]),(0,o.useEffect)(function(){M&&(Y(),q.run(!1))},[$==null?void 0:$.pageSize]),(0,ke.KW)(function(){return Y(),q.run(!1),u||(y.current=!1),function(){Y()}},[].concat((0,he.Z)(C),[u])),{dataSource:O,setDataSource:z,loading:(0,mn.Z)(r==null?void 0:r.loading)==="object"?(0,d.Z)((0,d.Z)({},r==null?void 0:r.loading),{},{spinning:V}):V,reload:function(){var J=(0,le.Z)((0,Q.Z)().mark(function we(){return(0,Q.Z)().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return Y(),ge.abrupt("return",q.run(!1));case 2:case"end":return ge.stop()}},we)}));function ne(){return J.apply(this,arguments)}return ne}(),pageInfo:$,pollingLoading:K,reset:function(){var J=(0,le.Z)((0,Q.Z)().mark(function we(){var Ke,ge,Le,ue,me,je,Rn,de;return(0,Q.Z)().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:Ke=r||{},ge=Ke.pageInfo,Le=ge||{},ue=Le.defaultCurrent,me=ue===void 0?1:ue,je=Le.defaultPageSize,Rn=je===void 0?20:je,de={current:me,total:0,pageSize:Rn},F(de);case 4:case"end":return ce.stop()}},we)}));function ne(){return J.apply(this,arguments)}return ne}(),setPageInfo:function(){var J=(0,le.Z)((0,Q.Z)().mark(function we(Ke){return(0,Q.Z)().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:F((0,d.Z)((0,d.Z)({},$),Ke));case 1:case"end":return Le.stop()}},we)}));function ne(we){return J.apply(this,arguments)}return ne}()}},hf=gf,yf=function(e){return function(t,r){var a,i,l=t.fixed,s=t.index,c=r.fixed,u=r.index;if(l==="left"&&c!=="left"||c==="right"&&l!=="right")return-2;if(c==="left"&&l!=="left"||l==="right"&&c!=="right")return 2;var p=t.key||"".concat(s),m=r.key||"".concat(u);if((a=e[p])!==null&&a!==void 0&&a.order||(i=e[m])!==null&&i!==void 0&&i.order){var v,g;return(((v=e[p])===null||v===void 0?void 0:v.order)||0)-(((g=e[m])===null||g===void 0?void 0:g.order)||0)}return(t.index||0)-(r.index||0)}},Cf=h(53439),bf=function(e){var t={};return Object.keys(e||{}).forEach(function(r){var a;Array.isArray(e[r])&&((a=e[r])===null||a===void 0?void 0:a.length)===0||e[r]!==void 0&&(t[r]=e[r])}),t},xf=function(e){var t;return!!(e!=null&&(t=e.valueType)!==null&&t!==void 0&&t.toString().startsWith("date")||(e==null?void 0:e.valueType)==="select"||e!=null&&e.valueEnum)},Sf=function(e){var t;return((t=e.ellipsis)===null||t===void 0?void 0:t.showTitle)===!1?!1:e.ellipsis},Zf=function(e,t,r){if(t.copyable||t.ellipsis){var a=t.copyable&&r?{text:r,tooltips:["",""]}:void 0,i=xf(t),l=Sf(t)&&r?{tooltip:(t==null?void 0:t.tooltip)!==!1&&i?(0,b.jsx)("div",{className:"pro-table-tooltip-text",children:e}):r}:!1;return(0,b.jsx)(Jl.Z.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:a,ellipsis:l,children:e})}return e},wf=h(74763),Ef=h(66758),Rf=function(e){var t="".concat(e.antCls,"-progress-bg");return(0,A.Z)({},e.componentCls,{"&-multiple":{paddingBlockStart:6,paddingBlockEnd:12,paddingInline:8},"&-progress":{"&-success":(0,A.Z)({},t,{backgroundColor:e.colorSuccess}),"&-error":(0,A.Z)({},t,{backgroundColor:e.colorError}),"&-warning":(0,A.Z)({},t,{backgroundColor:e.colorWarning})},"&-rule":{display:"flex",alignItems:"center","&-icon":{"&-default":{display:"flex",alignItems:"center",justifyContent:"center",width:"14px",height:"22px","&-circle":{width:"6px",height:"6px",backgroundColor:e.colorTextSecondary,borderRadius:"4px"}},"&-loading":{color:e.colorPrimary},"&-error":{color:e.colorError},"&-success":{color:e.colorSuccess}},"&-text":{color:e.colorText}}})};function If(n){return(0,Tn.Xj)("InlineErrorFormItem",function(e){var t=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(n)});return[Rf(t)]})}var Tf=["rules","name","children","popoverProps"],Pf=["errorType","rules","name","popoverProps","children"],ei={marginBlockStart:-5,marginBlockEnd:-5,marginInlineStart:0,marginInlineEnd:0},Nf=function(e){var t=e.inputProps,r=e.input,a=e.extra,i=e.errorList,l=e.popoverProps,s=(0,o.useState)(!1),c=(0,Se.Z)(s,2),u=c[0],p=c[1],m=(0,o.useState)([]),v=(0,Se.Z)(m,2),g=v[0],f=v[1],C=(0,o.useContext)(sr.ZP.ConfigContext),y=C.getPrefixCls,S=y(),x=(0,Tn.dQ)(),T=If("".concat(S,"-form-item-with-help")),O=T.wrapSSR,z=T.hashId;(0,o.useEffect)(function(){t.validateStatus!=="validating"&&f(t.errors)},[t.errors,t.validateStatus]);var W=(0,Uo.X)(g.length<1?!1:u,function(V){V!==u&&p(V)}),N=t.validateStatus==="validating";return(0,b.jsx)(Ql.Z,(0,d.Z)((0,d.Z)((0,d.Z)({trigger:(l==null?void 0:l.trigger)||["click"],placement:(l==null?void 0:l.placement)||"topLeft"},W),{},{getPopupContainer:l==null?void 0:l.getPopupContainer,getTooltipContainer:l==null?void 0:l.getTooltipContainer,content:O((0,b.jsx)("div",{className:"".concat(S,"-form-item ").concat(z," ").concat(x.hashId).trim(),style:{margin:0,padding:0},children:(0,b.jsxs)("div",{className:"".concat(S,"-form-item-with-help ").concat(z," ").concat(x.hashId).trim(),children:[N?(0,b.jsx)(Ve,{}):null,i]})}))},l),{},{children:(0,b.jsxs)(b.Fragment,{children:[r,a]})}),"popover")},$f=function(e){var t=e.rules,r=e.name,a=e.children,i=e.popoverProps,l=(0,cn.Z)(e,Tf);return(0,b.jsx)(Me.Z.Item,(0,d.Z)((0,d.Z)({name:r,rules:t,hasFeedback:!1,shouldUpdate:function(c,u){if(c===u)return!1;var p=[r].flat(1);p.length>1&&p.pop();try{return JSON.stringify((0,E.Z)(c,p))!==JSON.stringify((0,E.Z)(u,p))}catch(m){return!0}},_internalItemRender:{mark:"pro_table_render",render:function(c,u){return(0,b.jsx)(Nf,(0,d.Z)({inputProps:c,popoverProps:i},u))}}},l),{},{style:(0,d.Z)((0,d.Z)({},ei),l==null?void 0:l.style),children:a}))},Kf=function(e){var t=e.errorType,r=e.rules,a=e.name,i=e.popoverProps,l=e.children,s=(0,cn.Z)(e,Pf);return a&&r!==null&&r!==void 0&&r.length&&t==="popover"?(0,b.jsx)($f,(0,d.Z)((0,d.Z)({name:a,rules:r,popoverProps:i},s),{},{children:l})):(0,b.jsx)(Me.Z.Item,(0,d.Z)((0,d.Z)({rules:r,shouldUpdate:a?function(c,u){if(c===u)return!1;var p=[a].flat(1);p.length>1&&p.pop();try{return JSON.stringify((0,E.Z)(c,p))!==JSON.stringify((0,E.Z)(u,p))}catch(m){return!0}}:void 0},s),{},{style:(0,d.Z)((0,d.Z)({},ei),s.style),name:a,children:l}))},Qo=function(e,t,r){return t===void 0?e:(0,Ir.h)(e,t,r)},Of=["children"],Mf=["",null,void 0],ni=function(){for(var e=arguments.length,t=new Array(e),r=0;rue.length?(ue.push(ne),ue):(ue.splice((s==null?void 0:s.current)*(s==null?void 0:s.pageSize)-1,0,ne),ue)}return[].concat((0,he.Z)(a.dataSource),[ne])},w=function(){return(0,d.Z)((0,d.Z)({},B),{},{size:u,rowSelection:c===!1?void 0:c,className:t,style:m,columns:$.map(function(q){return q.isExtraColumns?q.extraColumn:q}),loading:a.loading,dataSource:V.newLineRecord?F(a.dataSource):a.dataSource,pagination:s,onChange:function(Y,J,ne,we){var Ke;if((Ke=B.onChange)===null||Ke===void 0||Ke.call(B,Y,J,ne,we),H||T((0,Un.Y)(J)),Array.isArray(ne)){var ge=ne.reduce(function(je,Rn){return(0,d.Z)((0,d.Z)({},je),{},(0,A.Z)({},"".concat(Rn.field),Rn.order))},{});x((0,Un.Y)(ge))}else{var Le,ue=(Le=ne.column)===null||Le===void 0?void 0:Le.sorter,me=(ue==null?void 0:ue.toString())===ue;x((0,Un.Y)((0,A.Z)({},"".concat(me?ue:ne.field),ne.order)))}}})},D=(0,o.useMemo)(function(){return n.search===!1&&!n.headerTitle&&n.toolBarRender===!1},[]),K=(0,b.jsx)(In._p.Provider,{value:{grid:!1,colProps:void 0,rowProps:void 0},children:(0,b.jsx)(la,(0,d.Z)((0,d.Z)({},w()),{},{rowKey:e}))}),X=n.tableViewRender?n.tableViewRender((0,d.Z)((0,d.Z)({},w()),{},{rowSelection:c!==!1?c:void 0}),K):K,k=(0,o.useMemo)(function(){if(n.editable&&!n.name){var oe,q,Y;return(0,b.jsxs)(b.Fragment,{children:[v,y,(0,o.createElement)(pn,(0,d.Z)((0,d.Z)({},(oe=n.editable)===null||oe===void 0?void 0:oe.formProps),{},{formRef:(q=n.editable)===null||q===void 0||(q=q.formProps)===null||q===void 0?void 0:q.formRef,component:!1,form:(Y=n.editable)===null||Y===void 0?void 0:Y.form,onValuesChange:V.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:n.dateFormatter}),X)]})}return(0,b.jsxs)(b.Fragment,{children:[v,y,X]})},[y,n.loading,!!n.editable,X,v]),R=(0,o.useMemo)(function(){return C===!1||D===!0||n.name?{}:v?{paddingBlockStart:0}:v&&s===!1?{paddingBlockStart:0}:{padding:0}},[D,s,n.name,C,v]),M=C===!1||D===!0||n.name?k:(0,b.jsx)(Te,(0,d.Z)((0,d.Z)({ghost:n.ghost,bordered:Rl("table",N),bodyStyle:R},C),{},{children:k})),G=function(){return n.tableRender?n.tableRender(n,M,{toolbar:v||void 0,alert:y||void 0,table:X||void 0}):M},ee=(0,b.jsxs)("div",{className:We()(W,(0,A.Z)({},"".concat(r,"-polling"),a.pollingLoading)),style:f,ref:P.rootDomRef,children:[z?null:g,l!=="form"&&n.tableExtraRender&&(0,b.jsx)("div",{className:We()(W,"".concat(r,"-extra")),children:n.tableExtraRender(n,a.dataSource||[])}),l!=="form"&&G()]});return!O||!(O!=null&&O.fullScreen)?ee:(0,b.jsx)(sr.ZP,{getPopupContainer:function(){return P.rootDomRef.current||document.body},children:ee})}var Wf={},Vf=function(e){var t,r=e.cardBordered,a=e.request,i=e.className,l=e.params,s=l===void 0?Wf:l,c=e.defaultData,u=e.headerTitle,p=e.postData,m=e.ghost,v=e.pagination,g=e.actionRef,f=e.columns,C=f===void 0?[]:f,y=e.toolBarRender,S=e.optionsRender,x=e.onLoad,T=e.onRequestError,O=e.style,z=e.cardProps,W=e.tableStyle,N=e.tableClassName,V=e.columnsStateMap,j=e.onColumnsStateChange,B=e.options,P=e.search,$=e.name,H=e.onLoadingChange,F=e.rowSelection,w=F===void 0?!1:F,D=e.beforeSearchSubmit,K=e.tableAlertRender,X=e.defaultClassName,k=e.formRef,R=e.type,M=R===void 0?"table":R,G=e.columnEmptyText,ee=G===void 0?"-":G,oe=e.toolbar,q=e.rowKey,Y=e.manualRequest,J=e.polling,ne=e.tooltip,we=e.revalidateOnFocus,Ke=we===void 0?!1:we,ge=e.searchFormRender,Le=(0,cn.Z)(e,Af),ue=vf(e.defaultClassName),me=ue.wrapSSR,je=ue.hashId,Rn=We()(X,i,je),de=(0,o.useRef)(),_=(0,o.useRef)(),ce=k||_;(0,o.useImperativeHandle)(g,function(){return de.current});var pe=(0,Xe.Z)(w?(w==null?void 0:w.defaultSelectedRowKeys)||[]:void 0,{value:w?w.selectedRowKeys:void 0}),sn=(0,Se.Z)(pe,2),bn=sn[0],fn=sn[1],Dn=(0,Xe.Z)(function(){if(!(Y||P!==!1))return{}}),Wn=(0,Se.Z)(Dn,2),jt=Wn[0],On=Wn[1],Br=(0,Xe.Z)({}),Yr=(0,Se.Z)(Br,2),jn=Yr[0],nt=Yr[1],it=(0,Xe.Z)({}),wt=(0,Se.Z)(it,2),bt=wt[0],ot=wt[1];(0,o.useEffect)(function(){var Ne=Qs(C),He=Ne.sort,Oe=Ne.filter;nt(Oe),ot(He)},[]);var Lt=(0,wn.YB)(),Wt=(0,mn.Z)(v)==="object"?v:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},Ln=(0,o.useContext)(ia),Ot=(0,o.useMemo)(function(){if(a)return function(){var Ne=(0,le.Z)((0,Q.Z)().mark(function He(Oe){var vn,tt;return(0,Q.Z)().wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return vn=(0,d.Z)((0,d.Z)((0,d.Z)({},Oe||{}),jt),s),delete vn._timestamp,Et.next=4,a(vn,bt,jn);case 4:return tt=Et.sent,Et.abrupt("return",tt);case 6:case"end":return Et.stop()}},He)}));return function(He){return Ne.apply(this,arguments)}}()},[jt,s,jn,bt,a]),Bn=hf(Ot,c,{pageInfo:v===!1?!1:Wt,loading:e.loading,dataSource:e.dataSource,onDataSourceChange:e.onDataSourceChange,onLoad:x,onLoadingChange:H,onRequestError:T,postData:p,revalidateOnFocus:Ke,manual:jt===void 0,polling:J,effects:[(0,ct.ZP)(s),(0,ct.ZP)(jt),(0,ct.ZP)(jn),(0,ct.ZP)(bt)],debounceTime:e.debounceTime,onPageInfoChange:function(He){var Oe,vn;!v||!Ot||(v==null||(Oe=v.onChange)===null||Oe===void 0||Oe.call(v,He.current,He.pageSize),v==null||(vn=v.onShowSizeChange)===null||vn===void 0||vn.call(v,He.current,He.pageSize))}});(0,o.useEffect)(function(){var Ne;if(!(e.manualRequest||!e.request||!Ke||(Ne=e.form)!==null&&Ne!==void 0&&Ne.ignoreRules)){var He=function(){document.visibilityState==="visible"&&Bn.reload()};return document.addEventListener("visibilitychange",He),function(){return document.removeEventListener("visibilitychange",He)}}},[]);var ca=o.useRef(new Map),Tr=o.useMemo(function(){return typeof q=="function"?q:function(Ne,He){var Oe;return He===-1?Ne==null?void 0:Ne[q]:e.name?He==null?void 0:He.toString():(Oe=Ne==null?void 0:Ne[q])!==null&&Oe!==void 0?Oe:He==null?void 0:He.toString()}},[e.name,q]);(0,o.useMemo)(function(){var Ne;if((Ne=Bn.dataSource)!==null&&Ne!==void 0&&Ne.length){var He=Bn.dataSource.map(function(Oe){var vn=Tr(Oe,-1);return ca.current.set(vn,Oe),vn});return He}return[]},[Bn.dataSource,Tr]);var xt=(0,o.useMemo)(function(){var Ne=v===!1?!1:(0,d.Z)({},v),He=(0,d.Z)((0,d.Z)({},Bn.pageInfo),{},{setPageInfo:function(vn){var tt=vn.pageSize,pt=vn.current,Et=Bn.pageInfo;if(tt===Et.pageSize||Et.current===1){Bn.setPageInfo({pageSize:tt,current:pt});return}a&&Bn.setDataSource([]),Bn.setPageInfo({pageSize:tt,current:M==="list"?pt:1})}});return a&&Ne&&(delete Ne.onChange,delete Ne.onShowSizeChange),Us(Ne,He,Lt)},[v,Bn,Lt]);(0,ke.KW)(function(){var Ne;e.request&&s&&Bn.dataSource&&(Bn==null||(Ne=Bn.pageInfo)===null||Ne===void 0?void 0:Ne.current)!==1&&Bn.setPageInfo({current:1})},[s]),Ln.setPrefixName(e.name);var Vt=(0,o.useCallback)(function(){w&&w.onChange&&w.onChange([],[],{type:"none"}),fn([])},[w,fn]);Ln.propsRef.current=e;var Bt=kt((0,d.Z)((0,d.Z)({},e.editable),{},{tableName:e.name,getRowKey:Tr,childrenColumnName:((t=e.expandable)===null||t===void 0?void 0:t.childrenColumnName)||"children",dataSource:Bn.dataSource||[],setDataSource:function(He){var Oe,vn;(Oe=e.editable)===null||Oe===void 0||(vn=Oe.onValuesChange)===null||vn===void 0||vn.call(Oe,void 0,He),Bn.setDataSource(He)}})),Tt=Tn.Ow===null||Tn.Ow===void 0?void 0:Tn.Ow.useToken(),Qt=Tt.token;Xs(de,Bn,{fullScreen:function(){var He;if(!(!((He=Ln.rootDomRef)!==null&&He!==void 0&&He.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var Oe;(Oe=Ln.rootDomRef)===null||Oe===void 0||Oe.current.requestFullscreen()}},onCleanSelected:function(){Vt()},resetAll:function(){var He;Vt(),nt({}),ot({}),Ln.setKeyWords(void 0),Bn.setPageInfo({current:1}),ce==null||(He=ce.current)===null||He===void 0||He.resetFields(),On({})},editableUtils:Bt}),Ln.setAction(de.current);var Ut=(0,o.useMemo)(function(){var Ne;return ri({columns:C,counter:Ln,columnEmptyText:ee,type:M,marginSM:Qt.marginSM,editableUtils:Bt,rowKey:q,childrenColumnName:(Ne=e.expandable)===null||Ne===void 0?void 0:Ne.childrenColumnName}).sort(yf(Ln.columnsMap))},[C,Ln==null?void 0:Ln.sortKeyColumns,Ln==null?void 0:Ln.columnsMap,ee,M,Bt.editableKeys&&Bt.editableKeys.join(",")]);(0,ke.Au)(function(){if(Ut&&Ut.length>0){var Ne=Ut.map(function(He){return Pa(He.key,He.index)});Ln.setSortKeyColumns(Ne)}},[Ut],["render","renderFormItem"],100),(0,ke.KW)(function(){var Ne=Bn.pageInfo,He=v||{},Oe=He.current,vn=Oe===void 0?Ne==null?void 0:Ne.current:Oe,tt=He.pageSize,pt=tt===void 0?Ne==null?void 0:Ne.pageSize:tt;v&&(vn||pt)&&(pt!==(Ne==null?void 0:Ne.pageSize)||vn!==(Ne==null?void 0:Ne.current))&&Bn.setPageInfo({pageSize:pt||Ne.pageSize,current:vn||Ne.current})},[v&&v.pageSize,v&&v.current]);var Jr=(0,d.Z)((0,d.Z)({selectedRowKeys:bn},w),{},{onChange:function(He,Oe,vn){w&&w.onChange&&w.onChange(He,Oe,vn),fn(He)}}),pr=P!==!1&&(P==null?void 0:P.filterType)==="light",qt=(0,o.useCallback)(function(Ne){if(B&&B.search){var He,Oe,vn=B.search===!0?{}:B.search,tt=vn.name,pt=tt===void 0?"keyword":tt,Et=(He=B.search)===null||He===void 0||(Oe=He.onSearch)===null||Oe===void 0?void 0:Oe.call(He,Ln.keyWords);if(Et!==!1){On((0,d.Z)((0,d.Z)({},Ne),{},(0,A.Z)({},pt,Ln.keyWords)));return}}On(Ne)},[Ln.keyWords,B,On]),da=(0,o.useMemo)(function(){if((0,mn.Z)(Bn.loading)==="object"){var Ne;return((Ne=Bn.loading)===null||Ne===void 0?void 0:Ne.spinning)||!1}return Bn.loading},[Bn.loading]),Oa=(0,o.useMemo)(function(){var Ne=P===!1&&M!=="form"?null:(0,b.jsx)(tu,{pagination:xt,beforeSearchSubmit:D,action:de,columns:C,onFormSearchSubmit:function(Oe){qt(Oe)},ghost:m,onReset:e.onReset,onSubmit:e.onSubmit,loading:!!da,manualRequest:Y,search:P,form:e.form,formRef:ce,type:e.type||"table",cardBordered:e.cardBordered,dateFormatter:e.dateFormatter});return ge&&Ne?(0,b.jsx)(b.Fragment,{children:ge(e,Ne)}):Ne},[D,ce,m,da,Y,qt,xt,e,C,P,ge,M]),Ma=(0,o.useMemo)(function(){return bn==null?void 0:bn.map(function(Ne){var He;return(He=ca.current)===null||He===void 0?void 0:He.get(Ne)})},[bn]),qa=y===!1?null:(0,b.jsx)(df,{headerTitle:u,hideToolbar:B===!1&&!u&&!y&&!oe&&!pr,selectedRows:Ma,selectedRowKeys:bn,tableColumn:Ut,tooltip:ne,toolbar:oe,onFormSearchSubmit:function(He){On((0,d.Z)((0,d.Z)({},jt),He))},searchNode:pr?Oa:null,options:B,optionsRender:S,actionRef:de,toolBarRender:y}),_a=w!==!1?(0,b.jsx)(ac,{selectedRowKeys:bn,selectedRows:Ma,onCleanSelected:Vt,alertOptionRender:Le.tableAlertOptionRender,alertInfoRender:K,alwaysShowAlert:w==null?void 0:w.alwaysShowAlert}):null;return me((0,b.jsx)(Hf,(0,d.Z)((0,d.Z)({},e),{},{name:$,defaultClassName:X,size:Ln.tableSize,onSizeChange:Ln.setTableSize,pagination:xt,searchNode:Oa,rowSelection:w!==!1?Jr:void 0,className:Rn,tableColumn:Ut,isLightFilter:pr,action:Bn,alertDom:_a,toolbarDom:qa,onSortChange:function(He){bt!==He&&ot(He!=null?He:{})},onFilterChange:function(He){He!==jn&&nt(He)},editableUtils:Bt,getRowKey:Tr})))},ai=function(e){var t=(0,o.useContext)(sr.ZP.ConfigContext),r=t.getPrefixCls,a=e.ErrorBoundary===!1?o.Fragment:e.ErrorBoundary||ft.S;return(0,b.jsx)(_s,{initValue:e,children:(0,b.jsx)(wn._Y,{needDeps:!0,children:(0,b.jsx)(a,{children:(0,b.jsx)(Vf,(0,d.Z)({defaultClassName:"".concat(r("pro-table"))},e))})})})};ai.Summary=la.Summary;var Uf=ai},78026:function(dr,gt,h){h.d(gt,{Z:function(){return nr}});var Q=h(87462),le=h(97685),mn=h(4942),Se=h(91),A=h(67294),he=h(93967),d=h.n(he),cn=h(86500),Ie=h(1350),Te=2,In=.16,En=.05,pn=.05,wn=.15,Tn=5,Pe=4,_e=[{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 o(ye){var on=ye.r,nn=ye.g,rn=ye.b,dt=(0,cn.py)(on,nn,rn);return{h:dt.h*360,s:dt.s,v:dt.v}}function Fn(ye){var on=ye.r,nn=ye.g,rn=ye.b;return"#".concat((0,cn.vq)(on,nn,rn,!1))}function Pn(ye,on,nn){var rn=nn/100,dt={r:(on.r-ye.r)*rn+ye.r,g:(on.g-ye.g)*rn+ye.g,b:(on.b-ye.b)*rn+ye.b};return dt}function se(ye,on,nn){var rn;return Math.round(ye.h)>=60&&Math.round(ye.h)<=240?rn=nn?Math.round(ye.h)-Te*on:Math.round(ye.h)+Te*on:rn=nn?Math.round(ye.h)+Te*on:Math.round(ye.h)-Te*on,rn<0?rn+=360:rn>=360&&(rn-=360),rn}function Ce(ye,on,nn){if(ye.h===0&&ye.s===0)return ye.s;var rn;return nn?rn=ye.s-In*on:on===Pe?rn=ye.s+In:rn=ye.s+En*on,rn>1&&(rn=1),nn&&on===Tn&&rn>.1&&(rn=.1),rn<.06&&(rn=.06),Number(rn.toFixed(2))}function Ve(ye,on,nn){var rn;return nn?rn=ye.v+pn*on:rn=ye.v-wn*on,rn>1&&(rn=1),Number(rn.toFixed(2))}function Je(ye){for(var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nn=[],rn=(0,Ie.uA)(ye),dt=Tn;dt>0;dt-=1){var Mt=o(rn),Jt=Fn((0,Ie.uA)({h:se(Mt,dt,!0),s:Ce(Mt,dt,!0),v:Ve(Mt,dt,!0)}));nn.push(Jt)}nn.push(Fn(rn));for(var We=1;We<=Pe;We+=1){var tr=o(rn),Ft=Fn((0,Ie.uA)({h:se(tr,We),s:Ce(tr,We),v:Ve(tr,We)}));nn.push(Ft)}return on.theme==="dark"?_e.map(function(Rt){var At=Rt.index,vr=Rt.opacity,an=Fn(Pn((0,Ie.uA)(on.backgroundColor||"#141414"),(0,Ie.uA)(nn[At]),vr*100));return an}):nn}var Me={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"},Ue={},Ee={};Object.keys(Me).forEach(function(ye){Ue[ye]=Je(Me[ye]),Ue[ye].primary=Ue[ye][5],Ee[ye]=Je(Me[ye],{theme:"dark",backgroundColor:"#141414"}),Ee[ye].primary=Ee[ye][5]});var Xe=Ue.red,E=Ue.volcano,Be=Ue.gold,Fe=Ue.orange,Ze=Ue.yellow,re=Ue.lime,fe=Ue.green,ke=Ue.cyan,ze=Ue.blue,tn=Ue.geekblue,b=Ue.purple,An=Ue.magenta,xn=Ue.grey,qn=Ue.grey,kn=(0,A.createContext)({}),Hn=kn,_n=h(1413),ht=h(71002),Cn=h(44958),st=h(27571),$t=h(80334);function kt(ye){return ye.replace(/-(.)/g,function(on,nn){return nn.toUpperCase()})}function Un(ye,on){(0,$t.ZP)(ye,"[@ant-design/icons] ".concat(on))}function ct(ye){return(0,ht.Z)(ye)==="object"&&typeof ye.name=="string"&&typeof ye.theme=="string"&&((0,ht.Z)(ye.icon)==="object"||typeof ye.icon=="function")}function ft(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(ye).reduce(function(on,nn){var rn=ye[nn];switch(nn){case"class":on.className=rn,delete on.class;break;default:delete on[nn],on[kt(nn)]=rn}return on},{})}function Xn(ye,on,nn){return nn?A.createElement(ye.tag,(0,_n.Z)((0,_n.Z)({key:on},ft(ye.attrs)),nn),(ye.children||[]).map(function(rn,dt){return Xn(rn,"".concat(on,"-").concat(ye.tag,"-").concat(dt))})):A.createElement(ye.tag,(0,_n.Z)({key:on},ft(ye.attrs)),(ye.children||[]).map(function(rn,dt){return Xn(rn,"".concat(on,"-").concat(ye.tag,"-").concat(dt))}))}function Ct(ye){return Je(ye)[0]}function at(ye){return ye?Array.isArray(ye)?ye:[ye]:[]}var yt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Gt=` +.anticon { + display: inline-flex; + alignItems: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,ur=function(on){var nn=(0,A.useContext)(Hn),rn=nn.csp,dt=nn.prefixCls,Mt=Gt;dt&&(Mt=Mt.replace(/anticon/g,dt)),(0,A.useEffect)(function(){var Jt=on.current,We=(0,st.A)(Jt);(0,Cn.hq)(Mt,"@ant-design-icons",{prepend:!0,csp:rn,attachTo:We})},[])},er=["icon","className","onClick","style","primaryColor","secondaryColor"],vt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Yt(ye){var on=ye.primaryColor,nn=ye.secondaryColor;vt.primaryColor=on,vt.secondaryColor=nn||Ct(on),vt.calculated=!!nn}function Nr(){return(0,_n.Z)({},vt)}var lr=function(on){var nn=on.icon,rn=on.className,dt=on.onClick,Mt=on.style,Jt=on.primaryColor,We=on.secondaryColor,tr=(0,Se.Z)(on,er),Ft=A.useRef(),Rt=vt;if(Jt&&(Rt={primaryColor:Jt,secondaryColor:We||Ct(Jt)}),ur(Ft),Un(ct(nn),"icon should be icon definiton, but got ".concat(nn)),!ct(nn))return null;var At=nn;return At&&typeof At.icon=="function"&&(At=(0,_n.Z)((0,_n.Z)({},At),{},{icon:At.icon(Rt.primaryColor,Rt.secondaryColor)})),Xn(At.icon,"svg-".concat(At.name),(0,_n.Z)((0,_n.Z)({className:rn,onClick:dt,style:Mt,"data-icon":At.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},tr),{},{ref:Ft}))};lr.displayName="IconReact",lr.getTwoToneColors=Nr,lr.setTwoToneColors=Yt;var zt=lr;function fr(ye){var on=at(ye),nn=(0,le.Z)(on,2),rn=nn[0],dt=nn[1];return zt.setTwoToneColors({primaryColor:rn,secondaryColor:dt})}function $r(){var ye=zt.getTwoToneColors();return ye.calculated?[ye.primaryColor,ye.secondaryColor]:ye.primaryColor}var Sr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];fr(ze.primary);var Zr=A.forwardRef(function(ye,on){var nn=ye.className,rn=ye.icon,dt=ye.spin,Mt=ye.rotate,Jt=ye.tabIndex,We=ye.onClick,tr=ye.twoToneColor,Ft=(0,Se.Z)(ye,Sr),Rt=A.useContext(Hn),At=Rt.prefixCls,vr=At===void 0?"anticon":At,an=Rt.rootClassName,kr=d()(an,vr,(0,mn.Z)((0,mn.Z)({},"".concat(vr,"-").concat(rn.name),!!rn.name),"".concat(vr,"-spin"),!!dt||rn.name==="loading"),nn),Kr=Jt;Kr===void 0&&We&&(Kr=-1);var wr=Mt?{msTransform:"rotate(".concat(Mt,"deg)"),transform:"rotate(".concat(Mt,"deg)")}:void 0,rr=at(tr),Qr=(0,le.Z)(rr,2),gr=Qr[0],fa=Qr[1];return A.createElement("span",(0,Q.Z)({role:"img","aria-label":rn.name},Ft,{ref:on,tabIndex:Kr,onClick:We,className:kr}),A.createElement(zt,{icon:rn,primaryColor:gr,secondaryColor:fa,style:wr}))});Zr.displayName="AntdIcon",Zr.getTwoToneColor=$r,Zr.setTwoToneColor=fr;var nr=Zr},56874:function(dr,gt,h){var Q=h(87462),le=h(67294),mn=h(66023),Se=h(78026),A=function(cn,Ie){return le.createElement(Se.Z,(0,Q.Z)({},cn,{ref:Ie,icon:mn.Z}))},he=le.forwardRef(A);gt.Z=he},86413:function(dr,gt,h){h.d(gt,{Q:function(){return d}});var Q=h(1413),le=h(68508),mn=h(51812),Se=h(1977),A=h(73177),he=h(85893),d=function(Ie){var Te=(0,Se.n)((0,A.b)(),"4.24.0")>-1?{menu:Ie}:{overlay:(0,he.jsx)(le.Z,(0,Q.Z)({},Ie))};return(0,mn.Y)(Te)}},86738:function(dr,gt,h){h.d(gt,{Z:function(){return Xe}});var Q=h(67294),le=h(26702),mn=h(93967),Se=h.n(mn),A=h(21770),he=h(15105),d=h(98423),cn=h(96159),Ie=h(53124),Te=h(55241),In=h(86743),En=h(81643),pn=h(14726),wn=h(33671),Tn=h(10110),Pe=h(24457),_e=h(66330),o=h(91945);const Fn=E=>{const{componentCls:Be,iconCls:Fe,antCls:Ze,zIndexPopup:re,colorText:fe,colorWarning:ke,marginXXS:ze,marginXS:tn,fontSize:b,fontWeightStrong:An,colorTextHeading:xn}=E;return{[Be]:{zIndex:re,[`&${Ze}-popover`]:{fontSize:b},[`${Be}-message`]:{marginBottom:tn,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Be}-message-icon ${Fe}`]:{color:ke,fontSize:b,lineHeight:1,marginInlineEnd:tn},[`${Be}-title`]:{fontWeight:An,color:xn,"&:only-child":{fontWeight:"normal"}},[`${Be}-description`]:{marginTop:ze,color:fe}},[`${Be}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:tn}}}}},Pn=E=>{const{zIndexPopupBase:Be}=E;return{zIndexPopup:Be+60}};var se=(0,o.I$)("Popconfirm",E=>Fn(E),Pn,{resetStyle:!1}),Ce=function(E,Be){var Fe={};for(var Ze in E)Object.prototype.hasOwnProperty.call(E,Ze)&&Be.indexOf(Ze)<0&&(Fe[Ze]=E[Ze]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,Ze=Object.getOwnPropertySymbols(E);re{const{prefixCls:Be,okButtonProps:Fe,cancelButtonProps:Ze,title:re,description:fe,cancelText:ke,okText:ze,okType:tn="primary",icon:b=Q.createElement(le.Z,null),showCancel:An=!0,close:xn,onConfirm:qn,onCancel:kn,onPopupClick:Hn}=E,{getPrefixCls:_n}=Q.useContext(Ie.E_),[ht]=(0,Tn.Z)("Popconfirm",Pe.Z.Popconfirm),Cn=(0,En.Z)(re),st=(0,En.Z)(fe);return Q.createElement("div",{className:`${Be}-inner-content`,onClick:Hn},Q.createElement("div",{className:`${Be}-message`},b&&Q.createElement("span",{className:`${Be}-message-icon`},b),Q.createElement("div",{className:`${Be}-message-text`},Cn&&Q.createElement("div",{className:Se()(`${Be}-title`)},Cn),st&&Q.createElement("div",{className:`${Be}-description`},st))),Q.createElement("div",{className:`${Be}-buttons`},An&&Q.createElement(pn.ZP,Object.assign({onClick:kn,size:"small"},Ze),ke||(ht==null?void 0:ht.cancelText)),Q.createElement(In.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,wn.nx)(tn)),Fe),actionFn:qn,close:xn,prefixCls:_n("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},ze||(ht==null?void 0:ht.okText))))};var Me=E=>{const{prefixCls:Be,placement:Fe,className:Ze,style:re}=E,fe=Ce(E,["prefixCls","placement","className","style"]),{getPrefixCls:ke}=Q.useContext(Ie.E_),ze=ke("popconfirm",Be),[tn]=se(ze);return tn(Q.createElement(_e.ZP,{placement:Fe,className:Se()(ze,Ze),style:re,content:Q.createElement(Ve,Object.assign({prefixCls:ze},fe))}))},Ue=function(E,Be){var Fe={};for(var Ze in E)Object.prototype.hasOwnProperty.call(E,Ze)&&Be.indexOf(Ze)<0&&(Fe[Ze]=E[Ze]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,Ze=Object.getOwnPropertySymbols(E);re{var Fe,Ze;const{prefixCls:re,placement:fe="top",trigger:ke="click",okType:ze="primary",icon:tn=Q.createElement(le.Z,null),children:b,overlayClassName:An,onOpenChange:xn,onVisibleChange:qn}=E,kn=Ue(E,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Hn}=Q.useContext(Ie.E_),[_n,ht]=(0,A.Z)(!1,{value:(Fe=E.open)!==null&&Fe!==void 0?Fe:E.visible,defaultValue:(Ze=E.defaultOpen)!==null&&Ze!==void 0?Ze:E.defaultVisible}),Cn=(at,yt)=>{ht(at,!0),qn==null||qn(at),xn==null||xn(at,yt)},st=at=>{Cn(!1,at)},$t=at=>{var yt;return(yt=E.onConfirm)===null||yt===void 0?void 0:yt.call(void 0,at)},kt=at=>{var yt;Cn(!1,at),(yt=E.onCancel)===null||yt===void 0||yt.call(void 0,at)},Un=at=>{at.keyCode===he.Z.ESC&&_n&&Cn(!1,at)},ct=at=>{const{disabled:yt=!1}=E;yt||Cn(at)},ft=Hn("popconfirm",re),Xn=Se()(ft,An),[Ct]=se(ft);return Ct(Q.createElement(Te.Z,Object.assign({},(0,d.Z)(kn,["title"]),{trigger:ke,placement:fe,onOpenChange:ct,open:_n,ref:Be,overlayClassName:Xn,content:Q.createElement(Ve,Object.assign({okType:ze,icon:tn},E,{prefixCls:ft,close:st,onConfirm:$t,onCancel:kt})),"data-popover-inject":!0}),(0,cn.Tm)(b,{onKeyDown:at=>{var yt,Gt;Q.isValidElement(b)&&((Gt=b==null?void 0:(yt=b.props).onKeyDown)===null||Gt===void 0||Gt.call(yt,at)),Un(at)}})))});Ee._InternalPanelDoNotUseOrYouWillBeFired=Me;var Xe=Ee},66593:function(dr,gt,h){h.d(gt,{Z:function(){return fa}});var Q=h(87462),le=h(71002),mn=h(1413),Se=h(74902),A=h(15671),he=h(43144),d=h(97326),cn=h(32531),Ie=h(29388),Te=h(4942),In=h(93967),En=h.n(In),pn=h(15105),wn=h(64217),Tn=h(80334),Pe=h(67294),_e=h(69610);function o(be){var Ae=be.dropPosition,Ge=be.dropLevelOffset,Z=be.indent,xe={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ae){case-1:xe.top=0,xe.left=-Ge*Z;break;case 1:xe.bottom=0,xe.left=-Ge*Z;break;case 0:xe.bottom=0,xe.left=Z;break}return Pe.createElement("div",{style:xe})}var Fn=h(36459),Pn=h(97685),se=h(91),Ce=h(8410),Ve=h(85344),Je=h(82225),Me=h(56261);function Ue(be,Ae){var Ge=Pe.useState(!1),Z=(0,Pn.Z)(Ge,2),xe=Z[0],Qe=Z[1];(0,Ce.Z)(function(){if(xe)return be(),function(){Ae()}},[xe]),(0,Ce.Z)(function(){return Qe(!0),function(){Qe(!1)}},[])}var Ee=h(26052),Xe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],E=function(Ae,Ge){var Z=Ae.className,xe=Ae.style,Qe=Ae.motion,en=Ae.motionNodes,U=Ae.motionType,ie=Ae.onMotionStart,ae=Ae.onMotionEnd,$e=Ae.active,Ye=Ae.treeNodeRequiredProps,dn=(0,se.Z)(Ae,Xe),ln=Pe.useState(!0),hn=(0,Pn.Z)(ln,2),Zn=hn[0],De=hn[1],qe=Pe.useContext(_e.k),Kn=qe.prefixCls,yn=en&&U!=="hide";(0,Ce.Z)(function(){en&&yn!==Zn&&De(yn)},[en]);var gn=function(){en&&ie()},Nn=Pe.useRef(!1),$n=function(){en&&!Nn.current&&(Nn.current=!0,ae())};Ue(gn,$n);var lt=function(zn){yn===zn&&$n()};return en?Pe.createElement(Je.ZP,(0,Q.Z)({ref:Ge,visible:Zn},Qe,{motionAppear:U==="show",onVisibleChanged:lt}),function(Mn,zn){var Jn=Mn.className,mt=Mn.style;return Pe.createElement("div",{ref:zn,className:En()("".concat(Kn,"-treenode-motion"),Jn),style:mt},en.map(function(L){var I=Object.assign({},((0,Fn.Z)(L.data),L.data)),te=L.title,ve=L.key,un=L.isStart,Sn=L.isEnd;delete I.children;var Gn=(0,Ee.H8)(ve,Ye);return Pe.createElement(Me.Z,(0,Q.Z)({},I,Gn,{title:te,active:$e,data:L.data,key:ve,isStart:un,isEnd:Sn}))}))}):Pe.createElement(Me.Z,(0,Q.Z)({domRef:Ge,className:Z,style:xe},dn,{active:$e}))};E.displayName="MotionTreeNode";var Be=Pe.forwardRef(E),Fe=Be;function Ze(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ge=be.length,Z=Ae.length;if(Math.abs(Ge-Z)!==1)return{add:!1,key:null};function xe(Qe,en){var U=new Map;Qe.forEach(function(ae){U.set(ae,!0)});var ie=en.filter(function(ae){return!U.has(ae)});return ie.length===1?ie[0]:null}return Ge ").concat(Ae);return Ae}var _n=Pe.forwardRef(function(be,Ae){var Ge=be.prefixCls,Z=be.data,xe=be.selectable,Qe=be.checkable,en=be.expandedKeys,U=be.selectedKeys,ie=be.checkedKeys,ae=be.loadedKeys,$e=be.loadingKeys,Ye=be.halfCheckedKeys,dn=be.keyEntities,ln=be.disabled,hn=be.dragging,Zn=be.dragOverNodeKey,De=be.dropPosition,qe=be.motion,Kn=be.height,yn=be.itemHeight,gn=be.virtual,Nn=be.focusable,$n=be.activeItem,lt=be.focused,Mn=be.tabIndex,zn=be.onKeyDown,Jn=be.onFocus,mt=be.onBlur,L=be.onActiveChange,I=be.onListChangeStart,te=be.onListChangeEnd,ve=(0,se.Z)(be,fe),un=Pe.useRef(null),Sn=Pe.useRef(null);Pe.useImperativeHandle(Ae,function(){return{scrollTo:function(yr){un.current.scrollTo(yr)},getIndentWidth:function(){return Sn.current.offsetWidth}}});var Gn=Pe.useState(en),Yn=(0,Pn.Z)(Gn,2),Qn=Yn[0],Pt=Yn[1],St=Pe.useState(Z),ut=(0,Pn.Z)(St,2),Nt=ut[0],Dt=ut[1],hr=Pe.useState(Z),ir=(0,Pn.Z)(hr,2),Or=ir[0],Ht=ir[1],ar=Pe.useState([]),qr=(0,Pn.Z)(ar,2),_r=qr[0],va=qr[1],ea=Pe.useState(null),ma=(0,Pn.Z)(ea,2),zr=ma[0],na=ma[1],pa=Pe.useRef(Z);pa.current=Z;function ta(){var Zt=pa.current;Dt(Zt),Ht(Zt),va([]),na(null),te()}(0,Ce.Z)(function(){Pt(en);var Zt=Ze(Qn,en);if(Zt.key!==null)if(Zt.add){var yr=Nt.findIndex(function(Ar){var Hr=Ar.key;return Hr===Zt.key}),mr=qn(re(Nt,Z,Zt.key),gn,Kn,yn),Er=Nt.slice();Er.splice(yr+1,0,xn),Ht(Er),va(mr),na("show")}else{var Rr=Z.findIndex(function(Ar){var Hr=Ar.key;return Hr===Zt.key}),Cr=qn(re(Z,Nt,Zt.key),gn,Kn,yn),Mr=Z.slice();Mr.splice(Rr+1,0,xn),Ht(Mr),va(Cr),na("hide")}else Nt!==Z&&(Dt(Z),Ht(Z))},[en,Z]),Pe.useEffect(function(){hn||ta()},[hn]);var ja=qe?Or:Z,ga={expandedKeys:en,selectedKeys:U,loadedKeys:ae,loadingKeys:$e,checkedKeys:ie,halfCheckedKeys:Ye,dragOverNodeKey:Zn,dropPosition:De,keyEntities:dn};return Pe.createElement(Pe.Fragment,null,lt&&$n&&Pe.createElement("span",{style:ke,"aria-live":"assertive"},Hn($n)),Pe.createElement("div",null,Pe.createElement("input",{style:ke,disabled:Nn===!1||ln,tabIndex:Nn!==!1?Mn:null,onKeyDown:zn,onFocus:Jn,onBlur:mt,value:"",onChange:ze,"aria-label":"for screen reader"})),Pe.createElement("div",{className:"".concat(Ge,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Pe.createElement("div",{className:"".concat(Ge,"-indent")},Pe.createElement("div",{ref:Sn,className:"".concat(Ge,"-indent-unit")}))),Pe.createElement(Ve.Z,(0,Q.Z)({},ve,{data:ja,itemKey:kn,height:Kn,fullHeight:!1,virtual:gn,itemHeight:yn,prefixCls:"".concat(Ge,"-list"),ref:un,onVisibleChange:function(yr,mr){var Er=new Set(yr),Rr=mr.filter(function(Cr){return!Er.has(Cr)});Rr.some(function(Cr){return kn(Cr)===tn})&&ta()}}),function(Zt){var yr=Zt.pos,mr=Object.assign({},((0,Fn.Z)(Zt.data),Zt.data)),Er=Zt.title,Rr=Zt.key,Cr=Zt.isStart,Mr=Zt.isEnd,Ar=(0,Ee.km)(Rr,yr);delete mr.key,delete mr.children;var Hr=(0,Ee.H8)(Ar,ga);return Pe.createElement(Fe,(0,Q.Z)({},mr,Hr,{title:Er,active:!!$n&&Rr===$n.key,pos:yr,data:Zt.data,isStart:Cr,isEnd:Mr,motion:qe,motionNodes:Rr===tn?_r:null,motionType:zr,onMotionStart:I,onMotionEnd:ta,treeNodeRequiredProps:ga,onMouseMove:function(){L(null)}}))}))});_n.displayName="NodeList";var ht=_n,Cn=h(29873),st=h(97153),$t=h(3596),kt=10,Un=function(be){(0,cn.Z)(Ge,be);var Ae=(0,Ie.Z)(Ge);function Ge(){var Z;(0,A.Z)(this,Ge);for(var xe=arguments.length,Qe=new Array(xe),en=0;en2&&arguments[2]!==void 0?arguments[2]:!1,Ye=Z.state,dn=Ye.dragChildrenKeys,ln=Ye.dropPosition,hn=Ye.dropTargetKey,Zn=Ye.dropTargetPos,De=Ye.dropAllowed;if(De){var qe=Z.props.onDrop;if(Z.setState({dragOverNodeKey:null}),Z.cleanDragState(),hn!==null){var Kn=(0,mn.Z)((0,mn.Z)({},(0,Ee.H8)(hn,Z.getTreeNodeRequiredProps())),{},{active:((ae=Z.getActiveItem())===null||ae===void 0?void 0:ae.key)===hn,data:(0,$t.Z)(Z.state.keyEntities,hn).node}),yn=dn.indexOf(hn)!==-1;(0,Tn.ZP)(!yn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var gn=(0,Cn.yx)(Zn),Nn={event:U,node:(0,Ee.F)(Kn),dragNode:Z.dragNode?(0,Ee.F)(Z.dragNode.props):null,dragNodesKeys:[Z.dragNode.props.eventKey].concat(dn),dropToGap:ln!==0,dropPosition:ln+Number(gn[gn.length-1])};$e||qe==null||qe(Nn),Z.dragNode=null}}}),(0,Te.Z)((0,d.Z)(Z),"cleanDragState",function(){var U=Z.state.draggingNodeKey;U!==null&&Z.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Z.dragStartMousePosition=null,Z.currentMouseOverDroppableNodeKey=null}),(0,Te.Z)((0,d.Z)(Z),"triggerExpandActionExpand",function(U,ie){var ae=Z.state,$e=ae.expandedKeys,Ye=ae.flattenNodes,dn=ie.expanded,ln=ie.key,hn=ie.isLeaf;if(!(hn||U.shiftKey||U.metaKey||U.ctrlKey)){var Zn=Ye.filter(function(qe){return qe.key===ln})[0],De=(0,Ee.F)((0,mn.Z)((0,mn.Z)({},(0,Ee.H8)(ln,Z.getTreeNodeRequiredProps())),{},{data:Zn.data}));Z.setExpandedKeys(dn?(0,Cn._5)($e,ln):(0,Cn.L0)($e,ln)),Z.onNodeExpand(U,De)}}),(0,Te.Z)((0,d.Z)(Z),"onNodeClick",function(U,ie){var ae=Z.props,$e=ae.onClick,Ye=ae.expandAction;Ye==="click"&&Z.triggerExpandActionExpand(U,ie),$e==null||$e(U,ie)}),(0,Te.Z)((0,d.Z)(Z),"onNodeDoubleClick",function(U,ie){var ae=Z.props,$e=ae.onDoubleClick,Ye=ae.expandAction;Ye==="doubleClick"&&Z.triggerExpandActionExpand(U,ie),$e==null||$e(U,ie)}),(0,Te.Z)((0,d.Z)(Z),"onNodeSelect",function(U,ie){var ae=Z.state.selectedKeys,$e=Z.state,Ye=$e.keyEntities,dn=$e.fieldNames,ln=Z.props,hn=ln.onSelect,Zn=ln.multiple,De=ie.selected,qe=ie[dn.key],Kn=!De;Kn?Zn?ae=(0,Cn.L0)(ae,qe):ae=[qe]:ae=(0,Cn._5)(ae,qe);var yn=ae.map(function(gn){var Nn=(0,$t.Z)(Ye,gn);return Nn?Nn.node:null}).filter(function(gn){return gn});Z.setUncontrolledState({selectedKeys:ae}),hn==null||hn(ae,{event:"select",selected:Kn,node:ie,selectedNodes:yn,nativeEvent:U.nativeEvent})}),(0,Te.Z)((0,d.Z)(Z),"onNodeCheck",function(U,ie,ae){var $e=Z.state,Ye=$e.keyEntities,dn=$e.checkedKeys,ln=$e.halfCheckedKeys,hn=Z.props,Zn=hn.checkStrictly,De=hn.onCheck,qe=ie.key,Kn,yn={event:"check",node:ie,checked:ae,nativeEvent:U.nativeEvent};if(Zn){var gn=ae?(0,Cn.L0)(dn,qe):(0,Cn._5)(dn,qe),Nn=(0,Cn._5)(ln,qe);Kn={checked:gn,halfChecked:Nn},yn.checkedNodes=gn.map(function(mt){return(0,$t.Z)(Ye,mt)}).filter(function(mt){return mt}).map(function(mt){return mt.node}),Z.setUncontrolledState({checkedKeys:gn})}else{var $n=(0,st.S)([].concat((0,Se.Z)(dn),[qe]),!0,Ye),lt=$n.checkedKeys,Mn=$n.halfCheckedKeys;if(!ae){var zn=new Set(lt);zn.delete(qe);var Jn=(0,st.S)(Array.from(zn),{checked:!1,halfCheckedKeys:Mn},Ye);lt=Jn.checkedKeys,Mn=Jn.halfCheckedKeys}Kn=lt,yn.checkedNodes=[],yn.checkedNodesPositions=[],yn.halfCheckedKeys=Mn,lt.forEach(function(mt){var L=(0,$t.Z)(Ye,mt);if(L){var I=L.node,te=L.pos;yn.checkedNodes.push(I),yn.checkedNodesPositions.push({node:I,pos:te})}}),Z.setUncontrolledState({checkedKeys:lt},!1,{halfCheckedKeys:Mn})}De==null||De(Kn,yn)}),(0,Te.Z)((0,d.Z)(Z),"onNodeLoad",function(U){var ie=U.key,ae=new Promise(function($e,Ye){Z.setState(function(dn){var ln=dn.loadedKeys,hn=ln===void 0?[]:ln,Zn=dn.loadingKeys,De=Zn===void 0?[]:Zn,qe=Z.props,Kn=qe.loadData,yn=qe.onLoad;if(!Kn||hn.indexOf(ie)!==-1||De.indexOf(ie)!==-1)return null;var gn=Kn(U);return gn.then(function(){var Nn=Z.state.loadedKeys,$n=(0,Cn.L0)(Nn,ie);yn==null||yn($n,{event:"load",node:U}),Z.setUncontrolledState({loadedKeys:$n}),Z.setState(function(lt){return{loadingKeys:(0,Cn._5)(lt.loadingKeys,ie)}}),$e()}).catch(function(Nn){if(Z.setState(function(lt){return{loadingKeys:(0,Cn._5)(lt.loadingKeys,ie)}}),Z.loadingRetryTimes[ie]=(Z.loadingRetryTimes[ie]||0)+1,Z.loadingRetryTimes[ie]>=kt){var $n=Z.state.loadedKeys;(0,Tn.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Z.setUncontrolledState({loadedKeys:(0,Cn.L0)($n,ie)}),$e()}Ye(Nn)}),{loadingKeys:(0,Cn.L0)(De,ie)}})});return ae.catch(function(){}),ae}),(0,Te.Z)((0,d.Z)(Z),"onNodeMouseEnter",function(U,ie){var ae=Z.props.onMouseEnter;ae==null||ae({event:U,node:ie})}),(0,Te.Z)((0,d.Z)(Z),"onNodeMouseLeave",function(U,ie){var ae=Z.props.onMouseLeave;ae==null||ae({event:U,node:ie})}),(0,Te.Z)((0,d.Z)(Z),"onNodeContextMenu",function(U,ie){var ae=Z.props.onRightClick;ae&&(U.preventDefault(),ae({event:U,node:ie}))}),(0,Te.Z)((0,d.Z)(Z),"onFocus",function(){var U=Z.props.onFocus;Z.setState({focused:!0});for(var ie=arguments.length,ae=new Array(ie),$e=0;$e1&&arguments[1]!==void 0?arguments[1]:!1,ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Z.destroyed){var $e=!1,Ye=!0,dn={};Object.keys(U).forEach(function(ln){if(ln in Z.props){Ye=!1;return}$e=!0,dn[ln]=U[ln]}),$e&&(!ie||Ye)&&Z.setState((0,mn.Z)((0,mn.Z)({},dn),ae))}}),(0,Te.Z)((0,d.Z)(Z),"scrollTo",function(U){Z.listRef.current.scrollTo(U)}),Z}return(0,he.Z)(Ge,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var xe=this.props,Qe=xe.activeKey,en=xe.itemScrollOffset,U=en===void 0?0:en;Qe!==void 0&&Qe!==this.state.activeKey&&(this.setState({activeKey:Qe}),Qe!==null&&this.scrollTo({key:Qe,offset:U}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var xe=this.state,Qe=xe.focused,en=xe.flattenNodes,U=xe.keyEntities,ie=xe.draggingNodeKey,ae=xe.activeKey,$e=xe.dropLevelOffset,Ye=xe.dropContainerKey,dn=xe.dropTargetKey,ln=xe.dropPosition,hn=xe.dragOverNodeKey,Zn=xe.indent,De=this.props,qe=De.prefixCls,Kn=De.className,yn=De.style,gn=De.showLine,Nn=De.focusable,$n=De.tabIndex,lt=$n===void 0?0:$n,Mn=De.selectable,zn=De.showIcon,Jn=De.icon,mt=De.switcherIcon,L=De.draggable,I=De.checkable,te=De.checkStrictly,ve=De.disabled,un=De.motion,Sn=De.loadData,Gn=De.filterTreeNode,Yn=De.height,Qn=De.itemHeight,Pt=De.virtual,St=De.titleRender,ut=De.dropIndicatorRender,Nt=De.onContextMenu,Dt=De.onScroll,hr=De.direction,ir=De.rootClassName,Or=De.rootStyle,Ht=(0,wn.Z)(this.props,{aria:!0,data:!0}),ar;return L&&((0,le.Z)(L)==="object"?ar=L:typeof L=="function"?ar={nodeDraggable:L}:ar={}),Pe.createElement(_e.k.Provider,{value:{prefixCls:qe,selectable:Mn,showIcon:zn,icon:Jn,switcherIcon:mt,draggable:ar,draggingNodeKey:ie,checkable:I,checkStrictly:te,disabled:ve,keyEntities:U,dropLevelOffset:$e,dropContainerKey:Ye,dropTargetKey:dn,dropPosition:ln,dragOverNodeKey:hn,indent:Zn,direction:hr,dropIndicatorRender:ut,loadData:Sn,filterTreeNode:Gn,titleRender:St,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},Pe.createElement("div",{role:"tree",className:En()(qe,Kn,ir,(0,Te.Z)((0,Te.Z)((0,Te.Z)({},"".concat(qe,"-show-line"),gn),"".concat(qe,"-focused"),Qe),"".concat(qe,"-active-focused"),ae!==null)),style:Or},Pe.createElement(ht,(0,Q.Z)({ref:this.listRef,prefixCls:qe,style:yn,data:en,disabled:ve,selectable:Mn,checkable:!!I,motion:un,dragging:ie!==null,height:Yn,itemHeight:Qn,virtual:Pt,focusable:Nn,focused:Qe,tabIndex:lt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Nt,onScroll:Dt},this.getTreeNodeRequiredProps(),Ht))))}}],[{key:"getDerivedStateFromProps",value:function(xe,Qe){var en=Qe.prevProps,U={prevProps:xe};function ie($n){return!en&&$n in xe||en&&en[$n]!==xe[$n]}var ae,$e=Qe.fieldNames;if(ie("fieldNames")&&($e=(0,Ee.w$)(xe.fieldNames),U.fieldNames=$e),ie("treeData")?ae=xe.treeData:ie("children")&&((0,Tn.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ae=(0,Ee.zn)(xe.children)),ae){U.treeData=ae;var Ye=(0,Ee.I8)(ae,{fieldNames:$e});U.keyEntities=(0,mn.Z)((0,Te.Z)({},tn,An),Ye.keyEntities)}var dn=U.keyEntities||Qe.keyEntities;if(ie("expandedKeys")||en&&ie("autoExpandParent"))U.expandedKeys=xe.autoExpandParent||!en&&xe.defaultExpandParent?(0,Cn.r7)(xe.expandedKeys,dn):xe.expandedKeys;else if(!en&&xe.defaultExpandAll){var ln=(0,mn.Z)({},dn);delete ln[tn],U.expandedKeys=Object.keys(ln).map(function($n){return ln[$n].key})}else!en&&xe.defaultExpandedKeys&&(U.expandedKeys=xe.autoExpandParent||xe.defaultExpandParent?(0,Cn.r7)(xe.defaultExpandedKeys,dn):xe.defaultExpandedKeys);if(U.expandedKeys||delete U.expandedKeys,ae||U.expandedKeys){var hn=(0,Ee.oH)(ae||Qe.treeData,U.expandedKeys||Qe.expandedKeys,$e);U.flattenNodes=hn}if(xe.selectable&&(ie("selectedKeys")?U.selectedKeys=(0,Cn.BT)(xe.selectedKeys,xe):!en&&xe.defaultSelectedKeys&&(U.selectedKeys=(0,Cn.BT)(xe.defaultSelectedKeys,xe))),xe.checkable){var Zn;if(ie("checkedKeys")?Zn=(0,Cn.E6)(xe.checkedKeys)||{}:!en&&xe.defaultCheckedKeys?Zn=(0,Cn.E6)(xe.defaultCheckedKeys)||{}:ae&&(Zn=(0,Cn.E6)(xe.checkedKeys)||{checkedKeys:Qe.checkedKeys,halfCheckedKeys:Qe.halfCheckedKeys}),Zn){var De=Zn,qe=De.checkedKeys,Kn=qe===void 0?[]:qe,yn=De.halfCheckedKeys,gn=yn===void 0?[]:yn;if(!xe.checkStrictly){var Nn=(0,st.S)(Kn,!0,dn);Kn=Nn.checkedKeys,gn=Nn.halfCheckedKeys}U.checkedKeys=Kn,U.halfCheckedKeys=gn}}return ie("loadedKeys")&&(U.loadedKeys=xe.loadedKeys),U}}]),Ge}(Pe.Component);(0,Te.Z)(Un,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:o,allowDrop:function(){return!0},expandAction:!1}),(0,Te.Z)(Un,"TreeNode",Me.Z);var ct=Un,ft=ct,Xn=h(5309),Ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},at=Ct,yt=h(93771),Gt=function(Ae,Ge){return Pe.createElement(yt.Z,(0,Q.Z)({},Ae,{ref:Ge,icon:at}))},ur=Pe.forwardRef(Gt),er=ur,vt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Yt=vt,Nr=function(Ae,Ge){return Pe.createElement(yt.Z,(0,Q.Z)({},Ae,{ref:Ge,icon:Yt}))},lr=Pe.forwardRef(Nr),zt=lr,fr=h(53124),$r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Sr=$r,Zr=function(Ae,Ge){return Pe.createElement(yt.Z,(0,Q.Z)({},Ae,{ref:Ge,icon:Sr}))},nr=Pe.forwardRef(Zr),ye=nr,on=h(33603),nn=h(32157);const rn=4;function dt(be){const{dropPosition:Ae,dropLevelOffset:Ge,prefixCls:Z,indent:xe,direction:Qe="ltr"}=be,en=Qe==="ltr"?"left":"right",U=Qe==="ltr"?"right":"left",ie={[en]:-Ge*xe+rn,[U]:0};switch(Ae){case-1:ie.top=-3;break;case 1:ie.bottom=-3;break;default:ie.bottom=-3,ie[en]=xe+rn;break}return Pe.createElement("div",{style:ie,className:`${Z}-drop-indicator`})}var Mt=h(77632),Jt=h(29691),tr=Pe.forwardRef((be,Ae)=>{var Ge;const{getPrefixCls:Z,direction:xe,virtual:Qe,tree:en}=Pe.useContext(fr.E_),{prefixCls:U,className:ie,showIcon:ae=!1,showLine:$e,switcherIcon:Ye,blockNode:dn=!1,children:ln,checkable:hn=!1,selectable:Zn=!0,draggable:De,motion:qe,style:Kn}=be,yn=Z("tree",U),gn=Z(),Nn=qe!=null?qe:Object.assign(Object.assign({},(0,on.Z)(gn)),{motionAppear:!1}),$n=Object.assign(Object.assign({},be),{checkable:hn,selectable:Zn,showIcon:ae,motion:Nn,blockNode:dn,showLine:!!$e,dropIndicatorRender:dt}),[lt,Mn,zn]=(0,nn.ZP)(yn),[,Jn]=(0,Jt.ZP)(),mt=Jn.paddingXS/2+(((Ge=Jn.Tree)===null||Ge===void 0?void 0:Ge.titleHeight)||Jn.controlHeightSM),L=Pe.useMemo(()=>{if(!De)return!1;let te={};switch(typeof De){case"function":te.nodeDraggable=De;break;case"object":te=Object.assign({},De);break;default:break}return te.icon!==!1&&(te.icon=te.icon||Pe.createElement(ye,null)),te},[De]),I=te=>Pe.createElement(Mt.Z,{prefixCls:yn,switcherIcon:Ye,treeNodeProps:te,showLine:$e});return lt(Pe.createElement(ft,Object.assign({itemHeight:mt,ref:Ae,virtual:Qe},$n,{style:Object.assign(Object.assign({},en==null?void 0:en.style),Kn),prefixCls:yn,className:En()({[`${yn}-icon-hide`]:!ae,[`${yn}-block-node`]:dn,[`${yn}-unselectable`]:!Zn,[`${yn}-rtl`]:xe==="rtl"},en==null?void 0:en.className,ie,Mn,zn),direction:xe,checkable:hn&&Pe.createElement("span",{className:`${yn}-checkbox-inner`}),selectable:Zn,switcherIcon:I,draggable:L}),ln))}),Ft;(function(be){be[be.None=0]="None",be[be.Start=1]="Start",be[be.End=2]="End"})(Ft||(Ft={}));function Rt(be,Ae,Ge){const{key:Z,children:xe}=Ge;function Qe(en){const U=en[Z],ie=en[xe];Ae(U,en)!==!1&&Rt(ie||[],Ae,Ge)}be.forEach(Qe)}function At(be){let{treeData:Ae,expandedKeys:Ge,startKey:Z,endKey:xe,fieldNames:Qe}=be;const en=[];let U=Ft.None;if(Z&&Z===xe)return[Z];if(!Z||!xe)return[];function ie(ae){return ae===Z||ae===xe}return Rt(Ae,ae=>{if(U===Ft.End)return!1;if(ie(ae)){if(en.push(ae),U===Ft.None)U=Ft.Start;else if(U===Ft.Start)return U=Ft.End,!1}else U===Ft.Start&&en.push(ae);return Ge.includes(ae)},(0,Ee.w$)(Qe)),en}function vr(be,Ae,Ge){const Z=(0,Se.Z)(Ae),xe=[];return Rt(be,(Qe,en)=>{const U=Z.indexOf(Qe);return U!==-1&&(xe.push(en),Z.splice(U,1)),!!Z.length},(0,Ee.w$)(Ge)),xe}var an=function(be,Ae){var Ge={};for(var Z in be)Object.prototype.hasOwnProperty.call(be,Z)&&Ae.indexOf(Z)<0&&(Ge[Z]=be[Z]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Z=Object.getOwnPropertySymbols(be);xe{var{defaultExpandAll:Ge,defaultExpandParent:Z,defaultExpandedKeys:xe}=be,Qe=an(be,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const en=Pe.useRef(),U=Pe.useRef(),ie=()=>{const{keyEntities:Mn}=(0,Ee.I8)(Kr(Qe));let zn;return Ge?zn=Object.keys(Mn):Z?zn=(0,Cn.r7)(Qe.expandedKeys||xe||[],Mn):zn=Qe.expandedKeys||xe||[],zn},[ae,$e]=Pe.useState(Qe.selectedKeys||Qe.defaultSelectedKeys||[]),[Ye,dn]=Pe.useState(()=>ie());Pe.useEffect(()=>{"selectedKeys"in Qe&&$e(Qe.selectedKeys)},[Qe.selectedKeys]),Pe.useEffect(()=>{"expandedKeys"in Qe&&dn(Qe.expandedKeys)},[Qe.expandedKeys]);const ln=(Mn,zn)=>{var Jn;return"expandedKeys"in Qe||dn(Mn),(Jn=Qe.onExpand)===null||Jn===void 0?void 0:Jn.call(Qe,Mn,zn)},hn=(Mn,zn)=>{var Jn;const{multiple:mt,fieldNames:L}=Qe,{node:I,nativeEvent:te}=zn,{key:ve=""}=I,un=Kr(Qe),Sn=Object.assign(Object.assign({},zn),{selected:!0}),Gn=(te==null?void 0:te.ctrlKey)||(te==null?void 0:te.metaKey),Yn=te==null?void 0:te.shiftKey;let Qn;mt&&Gn?(Qn=Mn,en.current=ve,U.current=Qn,Sn.selectedNodes=vr(un,Qn,L)):mt&&Yn?(Qn=Array.from(new Set([].concat((0,Se.Z)(U.current||[]),(0,Se.Z)(At({treeData:un,expandedKeys:Ye,startKey:ve,endKey:en.current,fieldNames:L}))))),Sn.selectedNodes=vr(un,Qn,L)):(Qn=[ve],en.current=ve,U.current=Qn,Sn.selectedNodes=vr(un,Qn,L)),(Jn=Qe.onSelect)===null||Jn===void 0||Jn.call(Qe,Qn,Sn),"selectedKeys"in Qe||$e(Qn)},{getPrefixCls:Zn,direction:De}=Pe.useContext(fr.E_),{prefixCls:qe,className:Kn,showIcon:yn=!0,expandAction:gn="click"}=Qe,Nn=an(Qe,["prefixCls","className","showIcon","expandAction"]),$n=Zn("tree",qe),lt=En()(`${$n}-directory`,{[`${$n}-directory-rtl`]:De==="rtl"},Kn);return Pe.createElement(tr,Object.assign({icon:kr,ref:Ae,blockNode:!0},Nn,{showIcon:yn,expandAction:gn,prefixCls:$n,className:lt,expandedKeys:Ye,selectedKeys:ae,onSelect:hn,onExpand:ln}))};var Qr=Pe.forwardRef(wr);const gr=tr;gr.DirectoryTree=Qr,gr.TreeNode=Me.Z;var fa=gr},56261:function(dr,gt,h){h.d(gt,{Z:function(){return Me}});var Q=h(87462),le=h(91),mn=h(1413),Se=h(15671),A=h(43144),he=h(97326),d=h(32531),cn=h(29388),Ie=h(4942),Te=h(93967),In=h.n(Te),En=h(64217),pn=h(67294),wn=h(69610),Tn=function(Ee){for(var Xe=Ee.prefixCls,E=Ee.level,Be=Ee.isStart,Fe=Ee.isEnd,Ze="".concat(Xe,"-indent-unit"),re=[],fe=0;fe=0&&Ve.splice(Je,1),Ve}function Te(se,Ce){var Ve=(se||[]).slice();return Ve.indexOf(Ce)===-1&&Ve.push(Ce),Ve}function In(se){return se.split("-")}function En(se,Ce){var Ve=[],Je=(0,he.Z)(Ce,se);function Me(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ue.forEach(function(Ee){var Xe=Ee.key,E=Ee.children;Ve.push(Xe),Me(E)})}return Me(Je.children),Ve}function pn(se){if(se.parent){var Ce=In(se.pos);return Number(Ce[Ce.length-1])===se.parent.children.length-1}return!1}function wn(se){var Ce=In(se.pos);return Number(Ce[Ce.length-1])===0}function Tn(se,Ce,Ve,Je,Me,Ue,Ee,Xe,E,Be){var Fe,Ze=se.clientX,re=se.clientY,fe=se.target.getBoundingClientRect(),ke=fe.top,ze=fe.height,tn=(Be==="rtl"?-1:1)*(((Me==null?void 0:Me.x)||0)-Ze),b=(tn-12)/Je,An=E.filter(function(Xn){var Ct;return(Ct=Xe[Xn])===null||Ct===void 0||(Ct=Ct.children)===null||Ct===void 0?void 0:Ct.length}),xn=(0,he.Z)(Xe,Ve.props.eventKey);if(re-1.5?Ue({dragNode:Un,dropNode:ct,dropPosition:1})?st=1:ft=!1:Ue({dragNode:Un,dropNode:ct,dropPosition:0})?st=0:Ue({dragNode:Un,dropNode:ct,dropPosition:1})?st=1:ft=!1:Ue({dragNode:Un,dropNode:ct,dropPosition:1})?st=1:ft=!1,{dropPosition:st,dropLevelOffset:$t,dropTargetKey:xn.key,dropTargetPos:xn.pos,dragOverNodeKey:Cn,dropContainerKey:st===0?null:((Fe=xn.parent)===null||Fe===void 0?void 0:Fe.key)||null,dropAllowed:ft}}function Pe(se,Ce){if(se){var Ve=Ce.multiple;return Ve?se.slice():se.length?[se[0]]:se}}var _e=function(Ce){return Ce};function o(se,Ce){if(!se)return[];var Ve=Ce||{},Je=Ve.processProps,Me=Je===void 0?_e:Je,Ue=Array.isArray(se)?se:[se];return Ue.map(function(Ee){var Xe=Ee.children,E=_objectWithoutProperties(Ee,cn),Be=o(Xe,Ce);return React.createElement(TreeNode,_extends({key:E.key},Me(E)),Be)})}function Fn(se){if(!se)return null;var Ce;if(Array.isArray(se))Ce={checkedKeys:se,halfCheckedKeys:void 0};else if((0,le.Z)(se)==="object")Ce={checkedKeys:se.checked||void 0,halfCheckedKeys:se.halfChecked||void 0};else return(0,mn.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ce}function Pn(se,Ce){var Ve=new Set;function Je(Me){if(!Ve.has(Me)){var Ue=(0,he.Z)(Ce,Me);if(Ue){Ve.add(Me);var Ee=Ue.parent,Xe=Ue.node;Xe.disabled||Ee&&Je(Ee.key)}}}return(se||[]).forEach(function(Me){Je(Me)}),(0,Q.Z)(Ve)}},97153:function(dr,gt,h){h.d(gt,{S:function(){return d}});var Q=h(80334),le=h(3596);function mn(cn,Ie){var Te=new Set;return cn.forEach(function(In){Ie.has(In)||Te.add(In)}),Te}function Se(cn){var Ie=cn||{},Te=Ie.disabled,In=Ie.disableCheckbox,En=Ie.checkable;return!!(Te||In)||En===!1}function A(cn,Ie,Te,In){for(var En=new Set(cn),pn=new Set,wn=0;wn<=Te;wn+=1){var Tn=Ie.get(wn)||new Set;Tn.forEach(function(Fn){var Pn=Fn.key,se=Fn.node,Ce=Fn.children,Ve=Ce===void 0?[]:Ce;En.has(Pn)&&!In(se)&&Ve.filter(function(Je){return!In(Je.node)}).forEach(function(Je){En.add(Je.key)})})}for(var Pe=new Set,_e=Te;_e>=0;_e-=1){var o=Ie.get(_e)||new Set;o.forEach(function(Fn){var Pn=Fn.parent,se=Fn.node;if(!(In(se)||!Fn.parent||Pe.has(Fn.parent.key))){if(In(Fn.parent.node)){Pe.add(Pn.key);return}var Ce=!0,Ve=!1;(Pn.children||[]).filter(function(Je){return!In(Je.node)}).forEach(function(Je){var Me=Je.key,Ue=En.has(Me);Ce&&!Ue&&(Ce=!1),!Ve&&(Ue||pn.has(Me))&&(Ve=!0)}),Ce&&En.add(Pn.key),Ve&&pn.add(Pn.key),Pe.add(Pn.key)}})}return{checkedKeys:Array.from(En),halfCheckedKeys:Array.from(mn(pn,En))}}function he(cn,Ie,Te,In,En){for(var pn=new Set(cn),wn=new Set(Ie),Tn=0;Tn<=In;Tn+=1){var Pe=Te.get(Tn)||new Set;Pe.forEach(function(Pn){var se=Pn.key,Ce=Pn.node,Ve=Pn.children,Je=Ve===void 0?[]:Ve;!pn.has(se)&&!wn.has(se)&&!En(Ce)&&Je.filter(function(Me){return!En(Me.node)}).forEach(function(Me){pn.delete(Me.key)})})}wn=new Set;for(var _e=new Set,o=In;o>=0;o-=1){var Fn=Te.get(o)||new Set;Fn.forEach(function(Pn){var se=Pn.parent,Ce=Pn.node;if(!(En(Ce)||!Pn.parent||_e.has(Pn.parent.key))){if(En(Pn.parent.node)){_e.add(se.key);return}var Ve=!0,Je=!1;(se.children||[]).filter(function(Me){return!En(Me.node)}).forEach(function(Me){var Ue=Me.key,Ee=pn.has(Ue);Ve&&!Ee&&(Ve=!1),!Je&&(Ee||wn.has(Ue))&&(Je=!0)}),Ve||pn.delete(se.key),Je&&wn.add(se.key),_e.add(se.key)}})}return{checkedKeys:Array.from(pn),halfCheckedKeys:Array.from(mn(wn,pn))}}function d(cn,Ie,Te,In){var En=[],pn;In?pn=In:pn=Se;var wn=new Set(cn.filter(function(o){var Fn=!!(0,le.Z)(Te,o);return Fn||En.push(o),Fn})),Tn=new Map,Pe=0;Object.keys(Te).forEach(function(o){var Fn=Te[o],Pn=Fn.level,se=Tn.get(Pn);se||(se=new Set,Tn.set(Pn,se)),se.add(Fn),Pe=Math.max(Pe,Pn)}),(0,Q.ZP)(!En.length,"Tree missing follow keys: ".concat(En.slice(0,100).map(function(o){return"'".concat(o,"'")}).join(", ")));var _e;return Ie===!0?_e=A(wn,Tn,Pe,pn):_e=he(wn,Ie.halfCheckedKeys,Tn,Pe,pn),_e}},3596:function(dr,gt,h){h.d(gt,{Z:function(){return Q}});function Q(le,mn){return le[mn]}},26052:function(dr,gt,h){h.d(gt,{F:function(){return Pn},H8:function(){return Fn},I8:function(){return o},km:function(){return En},oH:function(){return Pe},w$:function(){return pn},zn:function(){return Tn}});var Q=h(71002),le=h(74902),mn=h(1413),Se=h(91),A=h(50344),he=h(98423),d=h(80334),cn=h(3596),Ie=["children"];function Te(se,Ce){return"".concat(se,"-").concat(Ce)}function In(se){return se&&se.type&&se.type.isTreeNode}function En(se,Ce){return se!=null?se:Ce}function pn(se){var Ce=se||{},Ve=Ce.title,Je=Ce._title,Me=Ce.key,Ue=Ce.children,Ee=Ve||"title";return{title:Ee,_title:Je||[Ee],key:Me||"key",children:Ue||"children"}}function wn(se,Ce){var Ve=new Map;function Je(Me){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Me||[]).forEach(function(Ee){var Xe=Ee[Ce.key],E=Ee[Ce.children];warning(Xe!=null,"Tree node must have a certain key: [".concat(Ue).concat(Xe,"]"));var Be=String(Xe);warning(!Ve.has(Be)||Xe===null||Xe===void 0,"Same 'key' exist in the Tree: ".concat(Be)),Ve.set(Be,!0),Je(E,"".concat(Ue).concat(Be," > "))})}Je(se)}function Tn(se){function Ce(Ve){var Je=(0,A.Z)(Ve);return Je.map(function(Me){if(!In(Me))return(0,d.ZP)(!Me,"Tree/TreeNode can only accept TreeNode as children."),null;var Ue=Me.key,Ee=Me.props,Xe=Ee.children,E=(0,Se.Z)(Ee,Ie),Be=(0,mn.Z)({key:Ue},E),Fe=Ce(Xe);return Fe.length&&(Be.children=Fe),Be}).filter(function(Me){return Me})}return Ce(se)}function Pe(se,Ce,Ve){var Je=pn(Ve),Me=Je._title,Ue=Je.key,Ee=Je.children,Xe=new Set(Ce===!0?[]:Ce),E=[];function Be(Fe){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Fe.map(function(re,fe){for(var ke=Te(Ze?Ze.pos:"0",fe),ze=En(re[Ue],ke),tn,b=0;b1&&arguments[1]!==void 0?arguments[1]:{},Ve=Ce.initWrapper,Je=Ce.processEntity,Me=Ce.onProcessFinished,Ue=Ce.externalGetKey,Ee=Ce.childrenPropName,Xe=Ce.fieldNames,E=arguments.length>2?arguments[2]:void 0,Be=Ue||E,Fe={},Ze={},re={posEntities:Fe,keyEntities:Ze};return Ve&&(re=Ve(re)||re),_e(se,function(fe){var ke=fe.node,ze=fe.index,tn=fe.pos,b=fe.key,An=fe.parentPos,xn=fe.level,qn=fe.nodes,kn={node:ke,nodes:qn,index:ze,key:b,pos:tn,level:xn},Hn=En(b,tn);Fe[tn]=kn,Ze[Hn]=kn,kn.parent=Fe[An],kn.parent&&(kn.parent.children=kn.parent.children||[],kn.parent.children.push(kn)),Je&&Je(kn,re)},{externalGetKey:Be,childrenPropName:Ee,fieldNames:Xe}),Me&&Me(re),re}function Fn(se,Ce){var Ve=Ce.expandedKeys,Je=Ce.selectedKeys,Me=Ce.loadedKeys,Ue=Ce.loadingKeys,Ee=Ce.checkedKeys,Xe=Ce.halfCheckedKeys,E=Ce.dragOverNodeKey,Be=Ce.dropPosition,Fe=Ce.keyEntities,Ze=(0,cn.Z)(Fe,se),re={eventKey:se,expanded:Ve.indexOf(se)!==-1,selected:Je.indexOf(se)!==-1,loaded:Me.indexOf(se)!==-1,loading:Ue.indexOf(se)!==-1,checked:Ee.indexOf(se)!==-1,halfChecked:Xe.indexOf(se)!==-1,pos:String(Ze?Ze.pos:""),dragOver:E===se&&Be===0,dragOverGapTop:E===se&&Be===-1,dragOverGapBottom:E===se&&Be===1};return re}function Pn(se){var Ce=se.data,Ve=se.expanded,Je=se.selected,Me=se.checked,Ue=se.loaded,Ee=se.loading,Xe=se.halfChecked,E=se.dragOver,Be=se.dragOverGapTop,Fe=se.dragOverGapBottom,Ze=se.pos,re=se.active,fe=se.eventKey,ke=(0,mn.Z)((0,mn.Z)({},Ce),{},{expanded:Ve,selected:Je,checked:Me,loaded:Ue,loading:Ee,halfChecked:Xe,dragOver:E,dragOverGapTop:Be,dragOverGapBottom:Fe,pos:Ze,active:re,key:fe});return"props"in ke||Object.defineProperty(ke,"props",{get:function(){return(0,d.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),se}}),ke}}}]); diff --git a/starter/src/main/resources/templates/admin/227.393dcd6f.async.js b/starter/src/main/resources/templates/admin/227.393dcd6f.async.js new file mode 100644 index 0000000000..b5d4bb26dd --- /dev/null +++ b/starter/src/main/resources/templates/admin/227.393dcd6f.async.js @@ -0,0 +1,40 @@ +(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[227],{12044:function(ee,E,s){"use strict";s.d(E,{j:function(){return F}});var n=s(34155),v=typeof n!="undefined"&&n.versions!=null&&n.versions.node!=null,F=function(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.matchMedia!="undefined"&&!v}},49867:function(ee,E,s){"use strict";s.d(E,{N:function(){return n}});const n=v=>({color:v.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${v.motionDurationSlow}`,"&:focus, &:hover":{color:v.colorLinkHover},"&:active":{color:v.colorLinkActive}})},31064:function(ee,E,s){"use strict";s.d(E,{Z:function(){return Ut}});var n=s(67294),v=s(87462),F={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"},oe=F,N=s(93771),m=function(o,r){return n.createElement(N.Z,(0,v.Z)({},o,{ref:r,icon:oe}))},y=n.forwardRef(m),T=y,G=s(93967),te=s.n(G),re=s(20640),J=s.n(re),b=s(9220),ie=s(50344),le=s(8410),A=s(21770),se=s(98423),Re=s(42550),Ie=s(79370),fe=s(15105),Ge=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{const r=g=>{const{keyCode:c}=g;c===fe.Z.ENTER&&g.preventDefault()},t=g=>{const{keyCode:c}=g,{onClick:f}=e;c===fe.Z.ENTER&&f&&f()},{style:i,noStyle:u,disabled:x}=e,O=Ge(e,["style","noStyle","disabled"]);let d={};return u||(d=Object.assign({},Je)),x&&(d.pointerEvents="none"),d=Object.assign(Object.assign({},d),i),n.createElement("div",Object.assign({role:"button",tabIndex:0,ref:o},O,{onKeyDown:r,onKeyUp:t,style:d}))}),Le=s(53124),Qe=s(10110),Oe=s(83062),Ye={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"},qe=Ye,_e=function(o,r){return n.createElement(N.Z,(0,v.Z)({},o,{ref:r,icon:qe}))},et=n.forwardRef(_e),tt=et,nt=s(96159),ot=s(70006),Pe=s(49867),rt=s(91945),it=s(78589),lt=s(6731);const st=(e,o,r,t)=>{const{titleMarginBottom:i,fontWeightStrong:u}=t;return{marginBottom:i,color:r,fontWeight:u,fontSize:e,lineHeight:o}},at=e=>{const o=[1,2,3,4,5],r={};return o.forEach(t=>{r[` + h${t}&, + div&-h${t}, + div&-h${t} > textarea, + h${t} + `]=st(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),r},ct=e=>{const{componentCls:o}=e;return{"a&, a":Object.assign(Object.assign({},(0,Pe.N)(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},dt=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:it.EV[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}}),ut=e=>{const{componentCls:o,paddingSM:r}=e,t=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(t).mul(-1).equal(),marginBottom:`calc(1em - ${(0,lt.bf)(t)})`},[`${o}-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"}}}},ft=e=>({[`${e.componentCls}-copy-success`]:{[` + &, + &:hover, + &:focus`]:{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),pt=()=>({[` + a&-ellipsis, + span&-ellipsis + `]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{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"}}),gt=e=>{const{componentCls:o,titleMarginTop:r}=e;return{[o]: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,[`&${o}-secondary`]:{color:e.colorTextDescription},[`&${o}-success`]:{color:e.colorSuccess},[`&${o}-warning`]:{color:e.colorWarning},[`&${o}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` + div&, + p + `]:{marginBottom:"1em"}},at(e)),{[` + & + h1${o}, + & + h2${o}, + & + h3${o}, + & + h4${o}, + & + h5${o} + `]:{marginTop:r},[` + div, + ul, + li, + p, + h1, + h2, + h3, + h4, + h5`]:{[` + + h1, + + h2, + + h3, + + h4, + + h5 + `]:{marginTop:r}}}),dt(e)),ct(e)),{[` + ${o}-expand, + ${o}-edit, + ${o}-copy + `]:Object.assign(Object.assign({},(0,Pe.N)(e)),{marginInlineStart:e.marginXXS})}),ut(e)),ft(e)),pt()),{"&-rtl":{direction:"rtl"}})}},mt=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var $e=(0,rt.I$)("Typography",e=>[gt(e)],mt),yt=e=>{const{prefixCls:o,"aria-label":r,className:t,style:i,direction:u,maxLength:x,autoSize:O=!0,value:d,onSave:g,onCancel:c,onEnd:f,component:S,enterIcon:j=n.createElement(tt,null)}=e,R=n.useRef(null),I=n.useRef(!1),H=n.useRef(),[D,B]=n.useState(d);n.useEffect(()=>{B(d)},[d]),n.useEffect(()=>{if(R.current&&R.current.resizableTextArea){const{textArea:M}=R.current.resizableTextArea;M.focus();const{length:$}=M.value;M.setSelectionRange($,$)}},[]);const C=M=>{let{target:$}=M;B($.value.replace(/[\n\r]/g,""))},V=()=>{I.current=!0},W=()=>{I.current=!1},L=M=>{let{keyCode:$}=M;I.current||(H.current=$)},X=()=>{g(D.trim())},w=M=>{let{keyCode:$,ctrlKey:ne,altKey:Y,metaKey:ve,shiftKey:be}=M;H.current===$&&!I.current&&!ne&&!Y&&!ve&&!be&&($===fe.Z.ENTER?(X(),f==null||f()):$===fe.Z.ESC&&c())},p=()=>{X()},P=S?`${o}-${S}`:"",[Q,Z,k]=$e(o),ae=te()(o,`${o}-edit-content`,{[`${o}-rtl`]:u==="rtl"},t,P,Z,k);return Q(n.createElement("div",{className:ae,style:i},n.createElement(ot.Z,{ref:R,maxLength:x,value:D,onChange:C,onKeyDown:L,onKeyUp:w,onCompositionStart:V,onCompositionEnd:W,onBlur:p,"aria-label":r,rows:1,autoSize:O}),j!==null?(0,nt.Tm)(j,{className:`${o}-edit-content-confirm`}):null))};function Se(e,o){return n.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},o),r&&typeof e=="object"?e:null)]},[e])}var vt=(e,o)=>{const r=n.useRef(!1);n.useEffect(()=>{r.current?e():r.current=!0},o)},bt=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{const{prefixCls:r,component:t="article",className:i,rootClassName:u,setContentRef:x,children:O,direction:d,style:g}=e,c=bt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:S,typography:j}=n.useContext(Le.E_),R=d!=null?d:S;let I=o;x&&(I=(0,Re.sQ)(o,x));const H=f("typography",r),[D,B,C]=$e(H),V=te()(H,j==null?void 0:j.className,{[`${H}-rtl`]:R==="rtl"},i,u,B,C),W=Object.assign(Object.assign({},j==null?void 0:j.style),g);return D(n.createElement(t,Object.assign({className:V,style:W,ref:I},c),O))}),Et=s(35918),ht=s(48820),xt=function(o,r){return n.createElement(N.Z,(0,v.Z)({},o,{ref:r,icon:ht.Z}))},Ot=n.forwardRef(xt),St=Ot;function Ne(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function pe(e,o,r){return e===!0||e===void 0?o:e||r&&o}function Ct(e){const{prefixCls:o,copied:r,locale:t={},onCopy:i,iconOnly:u,tooltips:x,icon:O}=e,d=Ne(x),g=Ne(O),{copied:c,copy:f}=t,S=r?pe(d[1],c):pe(d[0],f),R=typeof S=="string"?S:r?c:f;return n.createElement(Oe.Z,{key:"copy",title:S},n.createElement(De,{className:te()(`${o}-copy`,{[`${o}-copy-success`]:r,[`${o}-copy-icon-only`]:u}),onClick:i,"aria-label":R},r?pe(g[1],n.createElement(Et.Z,null),!0):pe(g[0],n.createElement(St,null),!0)))}var wt=s(74902);const ge=n.forwardRef((e,o)=>{let{style:r,children:t}=e;const i=n.useRef(null);return n.useImperativeHandle(o,()=>({isExceed:()=>{const u=i.current;return u.scrollHeight>u.clientHeight},getHeight:()=>i.current.clientHeight})),n.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},t)});function Ae(e){const o=typeof e;return o==="string"||o==="number"}function Tt(e){let o=0;return e.forEach(r=>{Ae(r)?o+=String(r).length:o+=1}),o}function He(e,o){let r=0;const t=[];for(let i=0;io){const g=o-r;return t.push(String(u).slice(0,g)),t}t.push(u),r=d}return e}const Ce=0,we=1,Te=2,Be=3,me={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function jt(e){const{enableMeasure:o,width:r,text:t,children:i,rows:u,miscDeps:x,onEllipsis:O}=e,d=n.useMemo(()=>(0,ie.Z)(t),[t]),g=n.useMemo(()=>Tt(d),[t]),c=n.useMemo(()=>i(d,!1,!1),[t]),[f,S]=n.useState(null),j=n.useRef(null),R=n.useRef(null),I=n.useRef(null),H=n.useRef(null),[D,B]=n.useState(Ce),[C,V]=n.useState(0);(0,le.Z)(()=>{B(o&&r&&g?we:Ce)},[r,t,u,o,d]),(0,le.Z)(()=>{var w,p,P,Q;if(D===we){const Z=!!(!((w=R.current)===null||w===void 0)&&w.isExceed());B(Z?Te:Be),S(Z?[0,g]:null);const k=((p=R.current)===null||p===void 0?void 0:p.getHeight())||0,ae=u===1?0:((P=I.current)===null||P===void 0?void 0:P.getHeight())||0,M=((Q=H.current)===null||Q===void 0?void 0:Q.getHeight())||0,$=ae+M,ne=Math.max(k,$);V(ne+1),O(Z)}},[D]);const W=f?Math.ceil((f[0]+f[1])/2):0;(0,le.Z)(()=>{var w;const[p,P]=f||[0,0];if(p!==P){const Z=(((w=j.current)===null||w===void 0?void 0:w.getHeight())||0)>C;let k=W;P-p===1&&(k=Z?p:P),S(Z?[p,k]:[k,P])}},[f,W]);const L=n.useMemo(()=>{if(D!==Te||!f||f[0]!==f[1]){const w=i(d,!1,!1);return D!==Be&&D!==Ce?n.createElement("span",{style:Object.assign(Object.assign({},me),{WebkitLineClamp:u})},w):w}return i(He(d,f[0]),!0,!0)},[D,f,d].concat((0,wt.Z)(x))),X={width:r,whiteSpace:"normal",margin:0,padding:0};return n.createElement(n.Fragment,null,L,D===we&&n.createElement(n.Fragment,null,n.createElement(ge,{style:Object.assign(Object.assign(Object.assign({},X),me),{WebkitLineClamp:u}),ref:R},c),n.createElement(ge,{style:Object.assign(Object.assign(Object.assign({},X),me),{WebkitLineClamp:u-1}),ref:I},c),n.createElement(ge,{style:Object.assign(Object.assign(Object.assign({},X),me),{WebkitLineClamp:1}),ref:H},i([],!0,!0))),D===Te&&f&&f[0]!==f[1]&&n.createElement(ge,{style:Object.assign(Object.assign({},X),{top:400}),ref:j},i(He(d,W),!0,!0)))}var Rt=e=>{let{enableEllipsis:o,isEllipsis:r,children:t,tooltipProps:i}=e;return!(i!=null&&i.title)||!o?t:n.createElement(Oe.Z,Object.assign({open:r?void 0:!1},i),t)},It=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{var r,t,i;const{prefixCls:u,className:x,style:O,type:d,disabled:g,children:c,ellipsis:f,editable:S,copyable:j,component:R,title:I}=e,H=It(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:D,direction:B}=n.useContext(Le.E_),[C]=(0,Qe.Z)("Text"),V=n.useRef(null),W=n.useRef(null),L=D("typography",u),X=(0,se.Z)(H,["mark","code","delete","underline","strong","keyboard","italic"]),[w,p]=Se(S),[P,Q]=(0,A.Z)(!1,{value:p.editing}),{triggerType:Z=["icon"]}=p,k=l=>{var a;l&&((a=p.onStart)===null||a===void 0||a.call(p)),Q(l)};vt(()=>{var l;P||(l=W.current)===null||l===void 0||l.focus()},[P]);const ae=l=>{l==null||l.preventDefault(),k(!0)},M=l=>{var a;(a=p.onChange)===null||a===void 0||a.call(p,l),k(!1)},$=()=>{var l;(l=p.onCancel)===null||l===void 0||l.call(p),k(!1)},[ne,Y]=Se(j),[ve,be]=n.useState(!1),je=n.useRef(null),Ze={};Y.format&&(Ze.format=Y.format);const ke=()=>{je.current&&clearTimeout(je.current)},Wt=l=>{var a;l==null||l.preventDefault(),l==null||l.stopPropagation(),J()(Y.text||String(c)||"",Ze),be(!0),ke(),je.current=setTimeout(()=>{be(!1)},3e3),(a=Y.onCopy)===null||a===void 0||a.call(Y,l)};n.useEffect(()=>ke,[]);const[Ue,zt]=n.useState(!1),[We,Kt]=n.useState(!1),[ze,Ft]=n.useState(!1),[Ke,Vt]=n.useState(!1),[Fe,Xt]=n.useState(!1),[Gt,Jt]=n.useState(!0),[q,h]=Se(f,{expandable:!1}),U=q&&!ze,{rows:ce=1}=h,Ee=n.useMemo(()=>!U||h.suffix!==void 0||h.onEllipsis||h.expandable||w||ne,[U,h,w,ne]);(0,le.Z)(()=>{q&&!Ee&&(zt((0,Ie.G)("webkitLineClamp")),Kt((0,Ie.G)("textOverflow")))},[Ee,q]);const z=n.useMemo(()=>Ee?!1:ce===1?We:Ue,[Ee,We,Ue]),Ve=U&&(z?Fe:Ke),Qt=U&&ce===1&&z,he=U&&ce>1&&z,Yt=l=>{var a;Ft(!0),(a=h.onExpand)===null||a===void 0||a.call(h,l)},[Xe,qt]=n.useState(0),_t=l=>{let{offsetWidth:a}=l;qt(a)},en=l=>{var a;Vt(l),Ke!==l&&((a=h.onEllipsis)===null||a===void 0||a.call(h,l))};n.useEffect(()=>{const l=V.current;if(q&&z&&l){const a=he?l.offsetHeight{const l=V.current;if(typeof IntersectionObserver=="undefined"||!l||!z||!U)return;const a=new IntersectionObserver(()=>{Jt(!!l.offsetParent)});return a.observe(l),()=>{a.disconnect()}},[z,U]);let _={};h.tooltip===!0?_={title:(r=p.text)!==null&&r!==void 0?r:c}:n.isValidElement(h.tooltip)?_={title:h.tooltip}:typeof h.tooltip=="object"?_=Object.assign({title:(t=p.text)!==null&&t!==void 0?t:c},h.tooltip):_={title:h.tooltip};const xe=n.useMemo(()=>{const l=a=>["string","number"].includes(typeof a);if(!(!q||z)){if(l(p.text))return p.text;if(l(c))return c;if(l(I))return I;if(l(_.title))return _.title}},[q,z,I,_.title,Ve]);if(P)return n.createElement(yt,{value:(i=p.text)!==null&&i!==void 0?i:typeof c=="string"?c:"",onSave:M,onCancel:$,onEnd:p.onEnd,prefixCls:L,className:x,style:O,direction:B,component:R,maxLength:p.maxLength,autoSize:p.autoSize,enterIcon:p.enterIcon});const tn=()=>{const{expandable:l,symbol:a}=h;if(!l)return null;let K;return a?K=a:K=C==null?void 0:C.expand,n.createElement("a",{key:"expand",className:`${L}-expand`,onClick:Yt,"aria-label":C==null?void 0:C.expand},K)},nn=()=>{if(!w)return;const{icon:l,tooltip:a}=p,K=(0,ie.Z)(a)[0]||(C==null?void 0:C.edit),ue=typeof K=="string"?K:"";return Z.includes("icon")?n.createElement(Oe.Z,{key:"edit",title:a===!1?"":K},n.createElement(De,{ref:W,className:`${L}-edit`,onClick:ae,"aria-label":ue},l||n.createElement(T,{role:"button"}))):null},on=()=>ne?n.createElement(Ct,Object.assign({key:"copy"},Y,{prefixCls:L,copied:ve,locale:C,onCopy:Wt,iconOnly:c==null})):null,rn=l=>[l&&tn(),nn(),on()],ln=l=>[l&&n.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Lt),h.suffix,rn(l)];return n.createElement(b.Z,{onResize:_t,disabled:!U},l=>n.createElement(Rt,{tooltipProps:_,enableEllipsis:U,isEllipsis:Ve},n.createElement(Me,Object.assign({className:te()({[`${L}-${d}`]:d,[`${L}-disabled`]:g,[`${L}-ellipsis`]:q,[`${L}-single-line`]:U&&ce===1,[`${L}-ellipsis-single-line`]:Qt,[`${L}-ellipsis-multiple-line`]:he},x),prefixCls:u,style:Object.assign(Object.assign({},O),{WebkitLineClamp:he?ce:void 0}),component:R,ref:(0,Re.sQ)(l,V,o),direction:B,onClick:Z.includes("text")?ae:void 0,"aria-label":xe==null?void 0:xe.toString(),title:I},X),n.createElement(jt,{enableMeasure:U&&!z,text:c,rows:ce,width:Xe,onEllipsis:en,miscDeps:[ve,ze]},(a,K)=>{let ue=a;return a.length&&K&&xe&&(ue=n.createElement("span",{key:"show-content","aria-hidden":!0},ue)),Dt(e,n.createElement(n.Fragment,null,ue,ln(K)))}))))}),Pt=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{var{ellipsis:r,rel:t}=e,i=Pt(e,["ellipsis","rel"]);const u=Object.assign(Object.assign({},i),{rel:t===void 0&&i.target==="_blank"?"noopener noreferrer":t});return delete u.navigate,n.createElement(ye,Object.assign({},u,{ref:o,ellipsis:!!r,component:"a"}))}),Mt=n.forwardRef((e,o)=>n.createElement(ye,Object.assign({ref:o},e,{component:"div"}))),Nt=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{var{ellipsis:r}=e,t=Nt(e,["ellipsis"]);const i=n.useMemo(()=>r&&typeof r=="object"?(0,se.Z)(r,["expandable","rows"]):r,[r]);return n.createElement(ye,Object.assign({ref:o},t,{ellipsis:i,component:"span"}))};var Ht=n.forwardRef(At),Bt=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{const{level:r=1}=e,t=Bt(e,["level"]);let i;return Zt.includes(r)?i=`h${r}`:i="h1",n.createElement(ye,Object.assign({ref:o},t,{component:i}))});const de=Me;de.Text=Ht,de.Link=$t,de.Title=kt,de.Paragraph=Mt;var Ut=de},20640:function(ee,E,s){"use strict";var n=s(11742),v={"text/plain":"Text","text/html":"Url",default:"Text"},F="Copy to clipboard: #{key}, Enter";function oe(m){var y=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return m.replace(/#{\s*key\s*}/g,y)}function N(m,y){var T,G,te,re,J,b,ie=!1;y||(y={}),T=y.debug||!1;try{te=n(),re=document.createRange(),J=document.getSelection(),b=document.createElement("span"),b.textContent=m,b.ariaHidden="true",b.style.all="unset",b.style.position="fixed",b.style.top=0,b.style.clip="rect(0, 0, 0, 0)",b.style.whiteSpace="pre",b.style.webkitUserSelect="text",b.style.MozUserSelect="text",b.style.msUserSelect="text",b.style.userSelect="text",b.addEventListener("copy",function(A){if(A.stopPropagation(),y.format)if(A.preventDefault(),typeof A.clipboardData=="undefined"){T&&console.warn("unable to use e.clipboardData"),T&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var se=v[y.format]||v.default;window.clipboardData.setData(se,m)}else A.clipboardData.clearData(),A.clipboardData.setData(y.format,m);y.onCopy&&(A.preventDefault(),y.onCopy(A.clipboardData))}),document.body.appendChild(b),re.selectNodeContents(b),J.addRange(re);var le=document.execCommand("copy");if(!le)throw new Error("copy command was unsuccessful");ie=!0}catch(A){T&&console.error("unable to copy using execCommand: ",A),T&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(y.format||"text",m),y.onCopy&&y.onCopy(window.clipboardData),ie=!0}catch(se){T&&console.error("unable to copy using clipboardData: ",se),T&&console.error("falling back to prompt"),G=oe("message"in y?y.message:F),window.prompt(G,m)}}finally{J&&(typeof J.removeRange=="function"?J.removeRange(re):J.removeAllRanges()),b&&document.body.removeChild(b),te()}return ie}ee.exports=N},79370:function(ee,E,s){"use strict";s.d(E,{G:function(){return oe}});var n=s(98924),v=function(m){if((0,n.Z)()&&window.document.documentElement){var y=Array.isArray(m)?m:[m],T=window.document.documentElement;return y.some(function(G){return G in T.style})}return!1},F=function(m,y){if(!v(m))return!1;var T=document.createElement("div"),G=T.style[m];return T.style[m]=y,T.style[m]!==G};function oe(N,m){return!Array.isArray(N)&&m!==void 0?F(N,m):v(N)}},11742:function(ee){ee.exports=function(){var E=document.getSelection();if(!E.rangeCount)return function(){};for(var s=document.activeElement,n=[],v=0;v=60&&Math.round(n.h)<=240?t=a?Math.round(n.h)-Ie*e:Math.round(n.h)+Ie*e:t=a?Math.round(n.h)+Ie*e:Math.round(n.h)-Ie*e,t<0?t+=360:t>=360&&(t-=360),t}function on(n,e,a){if(n.h===0&&n.s===0)return n.s;var t;return a?t=n.s-en*e:e===an?t=n.s+en:t=n.s+Hn*e,t>1&&(t=1),a&&e===nn&&t>.1&&(t=.1),t<.06&&(t=.06),Number(t.toFixed(2))}function ln(n,e,a){var t;return a?t=n.v+Fn*e:t=n.v-Vn*e,t>1&&(t=1),Number(t.toFixed(2))}function Oe(n){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=[],t=(0,he.uA)(n),l=nn;l>0;l-=1){var d=tn(t),i=Re((0,he.uA)({h:rn(d,l,!0),s:on(d,l,!0),v:ln(d,l,!0)}));a.push(i)}a.push(Re(t));for(var c=1;c<=an;c+=1){var m=tn(t),s=Re((0,he.uA)({h:rn(m,c),s:on(m,c),v:ln(m,c)}));a.push(s)}return e.theme==="dark"?Wn.map(function(x){var g=x.index,R=x.opacity,E=Re(Gn((0,he.uA)(e.backgroundColor||"#141414"),(0,he.uA)(a[g]),R*100));return E}):a}var He={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"},L={},Fe={};Object.keys(He).forEach(function(n){L[n]=Oe(He[n]),L[n].primary=L[n][5],Fe[n]=Oe(He[n],{theme:"dark",backgroundColor:"#141414"}),Fe[n].primary=Fe[n][5]});var nt=L.red,at=L.volcano,tt=L.gold,rt=L.orange,ot=L.yellow,it=L.lime,lt=L.green,ct=L.cyan,Xn=L.blue,dt=L.geekblue,st=L.purple,ut=L.magenta,vt=L.grey,ft=L.grey,Yn=(0,v.createContext)({}),cn=Yn,dn=C(71002);function Qn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function Un(n,e){if(!n)return!1;if(n.contains)return n.contains(e);for(var a=e;a;){if(a===n)return!0;a=a.parentNode}return!1}var sn="data-rc-order",un="data-rc-priority",Jn="rc-util-key",Ee=new Map;function vn(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.mark;return e?e.startsWith("data-")?e:"data-".concat(e):Jn}function je(n){if(n.attachTo)return n.attachTo;var e=document.querySelector("head");return e||document.body}function qn(n){return n==="queue"?"prependQueue":n?"prepend":"append"}function Ve(n){return Array.from((Ee.get(n)||n).children).filter(function(e){return e.tagName==="STYLE"})}function fn(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Qn())return null;var a=e.csp,t=e.prepend,l=e.priority,d=l===void 0?0:l,i=qn(t),c=i==="prependQueue",m=document.createElement("style");m.setAttribute(sn,i),c&&d&&m.setAttribute(un,"".concat(d)),a!=null&&a.nonce&&(m.nonce=a==null?void 0:a.nonce),m.innerHTML=n;var s=je(e),x=s.firstChild;if(t){if(c){var g=(e.styles||Ve(s)).filter(function(R){if(!["prepend","prependQueue"].includes(R.getAttribute(sn)))return!1;var E=Number(R.getAttribute(un)||0);return d>=E});if(g.length)return s.insertBefore(m,g[g.length-1].nextSibling),m}s.insertBefore(m,x)}else s.appendChild(m);return m}function mn(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=je(e);return(e.styles||Ve(a)).find(function(t){return t.getAttribute(vn(e))===n})}function mt(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=mn(n,e);if(a){var t=je(e);t.removeChild(a)}}function _n(n,e){var a=Ee.get(n);if(!a||!Un(document,a)){var t=fn("",e),l=t.parentNode;Ee.set(n,l),n.removeChild(t)}}function gt(){Ee.clear()}function ea(n,e){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=je(a),l=Ve(t),d=(0,f.Z)((0,f.Z)({},a),{},{styles:l});_n(t,d);var i=mn(e,d);if(i){var c,m;if((c=d.csp)!==null&&c!==void 0&&c.nonce&&i.nonce!==((m=d.csp)===null||m===void 0?void 0:m.nonce)){var s;i.nonce=(s=d.csp)===null||s===void 0?void 0:s.nonce}return i.innerHTML!==n&&(i.innerHTML=n),i}var x=fn(n,d);return x.setAttribute(vn(d),e),x}function gn(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}function na(n){return gn(n)instanceof ShadowRoot}function aa(n){return na(n)?gn(n):null}var We={},ta=[],ra=function(e){ta.push(e)};function oa(n,e){if(!1)var a}function ia(n,e){if(!1)var a}function la(){We={}}function xn(n,e,a){!e&&!We[a]&&(n(!1,a),We[a]=!0)}function Ne(n,e){xn(oa,n,e)}function ca(n,e){xn(ia,n,e)}Ne.preMessage=ra,Ne.resetWarned=la,Ne.noteOnce=ca;var da=Ne;function sa(n){return n.replace(/-(.)/g,function(e,a){return a.toUpperCase()})}function ua(n,e){da(n,"[@ant-design/icons] ".concat(e))}function Cn(n){return(0,dn.Z)(n)==="object"&&typeof n.name=="string"&&typeof n.theme=="string"&&((0,dn.Z)(n.icon)==="object"||typeof n.icon=="function")}function hn(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(n).reduce(function(e,a){var t=n[a];switch(a){case"class":e.className=t,delete e.class;break;default:delete e[a],e[sa(a)]=t}return e},{})}function Ge(n,e,a){return a?v.createElement(n.tag,(0,f.Z)((0,f.Z)({key:e},hn(n.attrs)),a),(n.children||[]).map(function(t,l){return Ge(t,"".concat(e,"-").concat(n.tag,"-").concat(l))})):v.createElement(n.tag,(0,f.Z)({key:e},hn(n.attrs)),(n.children||[]).map(function(t,l){return Ge(t,"".concat(e,"-").concat(n.tag,"-").concat(l))}))}function pn(n){return Oe(n)[0]}function yn(n){return n?Array.isArray(n)?n:[n]:[]}var xt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},va=` -.anticon { - display: inline-flex; - alignItems: center; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,fa=function(e){var a=(0,v.useContext)(cn),t=a.csp,l=a.prefixCls,d=va;l&&(d=d.replace(/anticon/g,l)),(0,v.useEffect)(function(){var i=e.current,c=aa(i);ea(d,"@ant-design-icons",{prepend:!0,csp:t,attachTo:c})},[])},ma=["icon","className","onClick","style","primaryColor","secondaryColor"],pe={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ga(n){var e=n.primaryColor,a=n.secondaryColor;pe.primaryColor=e,pe.secondaryColor=a||pn(e),pe.calculated=!!a}function xa(){return(0,f.Z)({},pe)}var Pe=function(e){var a=e.icon,t=e.className,l=e.onClick,d=e.style,i=e.primaryColor,c=e.secondaryColor,m=(0,ue.Z)(e,ma),s=v.useRef(),x=pe;if(i&&(x={primaryColor:i,secondaryColor:c||pn(i)}),fa(s),ua(Cn(a),"icon should be icon definiton, but got ".concat(a)),!Cn(a))return null;var g=a;return g&&typeof g.icon=="function"&&(g=(0,f.Z)((0,f.Z)({},g),{},{icon:g.icon(x.primaryColor,x.secondaryColor)})),Ge(g.icon,"svg-".concat(g.name),(0,f.Z)((0,f.Z)({className:t,onClick:l,style:d,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:s}))};Pe.displayName="IconReact",Pe.getTwoToneColors=xa,Pe.setTwoToneColors=ga;var Xe=Pe;function bn(n){var e=yn(n),a=(0,le.Z)(e,2),t=a[0],l=a[1];return Xe.setTwoToneColors({primaryColor:t,secondaryColor:l})}function Ca(){var n=Xe.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var ha=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];bn(Xn.primary);var Te=v.forwardRef(function(n,e){var a=n.className,t=n.icon,l=n.spin,d=n.rotate,i=n.tabIndex,c=n.onClick,m=n.twoToneColor,s=(0,ue.Z)(n,ha),x=v.useContext(cn),g=x.prefixCls,R=g===void 0?"anticon":g,E=x.rootClassName,P=F()(E,R,(0,r.Z)((0,r.Z)({},"".concat(R,"-").concat(t.name),!!t.name),"".concat(R,"-spin"),!!l||t.name==="loading"),a),j=i;j===void 0&&c&&(j=-1);var W=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,G=yn(m),N=(0,le.Z)(G,2),T=N[0],Y=N[1];return v.createElement("span",(0,qe.Z)({role:"img","aria-label":t.name},s,{ref:e,tabIndex:j,onClick:c,className:P}),v.createElement(Xe,{icon:t,primaryColor:T,secondaryColor:Y,style:W}))});Te.displayName="AntdIcon",Te.getTwoToneColor=Ca,Te.setTwoToneColor=bn;var pa=Te,ya=function(e,a){return v.createElement(pa,(0,qe.Z)({},e,{ref:a,icon:On.Z}))},ba=v.forwardRef(ya),Za=ba,Zn=C(21770),wa=C(7134),Sa=C(80171),ye=C(71230),oe=C(15746),Ia=C(97435),o=C(85893),Ra=["prefixCls","className","style","options","loading","multiple","bordered","onChange"],Ea=function(e){var a=e.prefixCls,t="".concat(a,"-loading-block");return(0,o.jsxs)("div",{className:"".concat(a,"-loading-content"),children:[(0,o.jsx)(ye.Z,{gutter:{xs:8,sm:8,md:8,lg:12},children:(0,o.jsx)(oe.Z,{span:22,children:(0,o.jsx)("div",{className:t})})}),(0,o.jsxs)(ye.Z,{gutter:8,children:[(0,o.jsx)(oe.Z,{span:8,children:(0,o.jsx)("div",{className:t})}),(0,o.jsx)(oe.Z,{span:14,children:(0,o.jsx)("div",{className:t})})]}),(0,o.jsxs)(ye.Z,{gutter:8,children:[(0,o.jsx)(oe.Z,{span:6,children:(0,o.jsx)("div",{className:t})}),(0,o.jsx)(oe.Z,{span:16,children:(0,o.jsx)("div",{className:t})})]}),(0,o.jsxs)(ye.Z,{gutter:8,children:[(0,o.jsx)(oe.Z,{span:13,children:(0,o.jsx)("div",{className:t})}),(0,o.jsx)(oe.Z,{span:9,children:(0,o.jsx)("div",{className:t})})]}),(0,o.jsxs)(ye.Z,{gutter:8,children:[(0,o.jsx)(oe.Z,{span:4,children:(0,o.jsx)("div",{className:t})}),(0,o.jsx)(oe.Z,{span:3,children:(0,o.jsx)("div",{className:t})}),(0,o.jsx)(oe.Z,{span:14,children:(0,o.jsx)("div",{className:t})})]})]})},wn=(0,v.createContext)(null),ja=function(e){var a=e.prefixCls,t=e.className,l=e.style,d=e.options,i=d===void 0?[]:d,c=e.loading,m=c===void 0?!1:c,s=e.multiple,x=s===void 0?!1:s,g=e.bordered,R=g===void 0?!0:g,E=e.onChange,P=(0,ue.Z)(e,Ra),j=(0,v.useContext)(Ce.ZP.ConfigContext),W=(0,v.useCallback)(function(){return i==null?void 0:i.map(function(I){return typeof I=="string"?{title:I,value:I}:I})},[i]),G=j.getPrefixCls("pro-checkcard",a),N="".concat(G,"-group"),T=(0,Ia.Z)(P,["children","defaultValue","value","disabled","size"]),Y=(0,Zn.Z)(e.defaultValue,{value:e.value,onChange:e.onChange}),U=(0,le.Z)(Y,2),S=U[0],u=U[1],J=(0,v.useRef)(new Map),ie=function(h){var w;(w=J.current)===null||w===void 0||w.set(h,!0)},M=function(h){var w;(w=J.current)===null||w===void 0||w.delete(h)},q=function(h){if(!x){var w;w=S,w===h.value?w=void 0:w=h.value,u==null||u(w)}if(x){var A,V=[],$=S,z=$==null?void 0:$.includes(h.value);V=(0,Le.Z)($||[]),z||V.push(h.value),z&&(V=V.filter(function(b){return b!==h.value}));var O=W(),B=(A=V)===null||A===void 0||(A=A.filter(function(b){return J.current.has(b)}))===null||A===void 0?void 0:A.sort(function(b,Z){var y=O.findIndex(function(k){return k.value===b}),D=O.findIndex(function(k){return k.value===Z});return y-D});u(B)}},X=(0,v.useMemo)(function(){if(m)return new Array(i.length||v.Children.toArray(e.children).length||1).fill(0).map(function(h,w){return(0,o.jsx)(Ye,{loading:!0},w)});if(i&&i.length>0){var I=S;return W().map(function(h){var w;return(0,o.jsx)(Ye,{disabled:h.disabled,size:(w=h.size)!==null&&w!==void 0?w:e.size,value:h.value,checked:x?I==null?void 0:I.includes(h.value):I===h.value,onChange:h.onChange,title:h.title,avatar:h.avatar,description:h.description,cover:h.cover},h.value.toString())})}return e.children},[W,m,x,i,e.children,e.size,S]),Q=F()(N,t);return(0,o.jsx)(wn.Provider,{value:{toggleOption:q,bordered:R,value:S,disabled:e.disabled,size:e.size,loading:e.loading,multiple:e.multiple,registerValue:ie,cancelValue:M},children:(0,o.jsx)("div",(0,f.Z)((0,f.Z)({className:Q,style:l},T),{},{children:X}))})},Na=ja,Sn=C(87107),In=C(98082),Rn=function(e){return{backgroundColor:e.colorPrimaryBg,borderColor:e.colorPrimary}},En=function(e){return(0,r.Z)({backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},e.componentCls,{"&-description":{color:e.colorTextDisabled},"&-title":{color:e.colorTextDisabled},"&-avatar":{opacity:"0.25"}})},Pa=new Sn.E4("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ta=function(e){var a;return(0,r.Z)({},e.componentCls,(a={position:"relative",display:"inline-block",width:"320px",marginInlineEnd:"16px",marginBlockEnd:"16px",color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,verticalAlign:"top",backgroundColor:e.colorBgContainer,borderRadius:e.borderRadius,overflow:"auto",cursor:"pointer",transition:"all 0.3s","&:last-child":{marginInlineEnd:0},"& + &":{marginInlineStart:"0 !important"},"&-bordered":{border:"".concat(e.lineWidth,"px solid ").concat(e.colorBorder)},"&-group":{display:"inline-block"}},(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)(a,"".concat(e.componentCls,"-loading"),{overflow:"hidden",userSelect:"none","&-content":(0,r.Z)({paddingInline:e.padding,paddingBlock:e.paddingSM,p:{marginBlock:0,marginInline:0}},"".concat(e.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",animationName:Pa,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"})}),"&:focus",Rn(e)),"&-checked",(0,f.Z)((0,f.Z)({},Rn(e)),{},{"&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"".concat(e.borderRadius+4,"px solid ").concat(e.colorPrimary),borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px"),content:"''"}})),"&-disabled",En(e)),"&[disabled]",En(e)),"&-checked&-disabled",{"&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"".concat(e.borderRadius+4,"px solid ").concat(e.colorTextDisabled),borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px"),content:"''"}}),"&-lg",{width:440}),"&-sm",{width:212}),"&-cover",{paddingInline:e.paddingXXS,paddingBlock:e.paddingXXS,img:{width:"100%",height:"100%",overflow:"hidden",borderRadius:e.borderRadius}}),"&-content",{display:"flex",paddingInline:e.paddingSM,paddingBlock:e.padding}),(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)(a,"&-body",{paddingInline:e.paddingSM,paddingBlock:e.padding}),"&-avatar-header",{display:"flex",alignItems:"center"}),"&-avatar",{paddingInlineEnd:8}),"&-detail",{overflow:"hidden",width:"100%","> div:not(:last-child)":{marginBlockEnd:4}}),"&-header",{display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:e.lineHeight,"&-left":{display:"flex",alignItems:"center",gap:e.sizeSM}}),"&-title",{overflow:"hidden",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSize,whiteSpace:"nowrap",textOverflow:"ellipsis",display:"flex",alignItems:"center",justifyContent:"space-between"}),"&-description",{color:e.colorTextSecondary}),"&:not(".concat(e.componentCls,"-disabled)"),{"&:hover":{borderColor:e.colorPrimary}})))};function Aa(n){return(0,In.Xj)("CheckCard",function(e){var a=(0,f.Z)((0,f.Z)({},e),{},{componentCls:".".concat(n)});return[Ta(a)]})}var Ba=["prefixCls","className","avatar","title","description","cover","extra","style"],jn=function(e){var a=(0,Zn.Z)(e.defaultChecked||!1,{value:e.checked,onChange:e.onChange}),t=(0,le.Z)(a,2),l=t[0],d=t[1],i=(0,v.useContext)(wn),c=(0,v.useContext)(Ce.ZP.ConfigContext),m=c.getPrefixCls,s=function(y){var D,k;e==null||(D=e.onClick)===null||D===void 0||D.call(e,y);var te=!l;i==null||(k=i.toggleOption)===null||k===void 0||k.call(i,{value:e.value}),d==null||d(te)},x=function(y){return y==="large"?"lg":y==="small"?"sm":""};(0,v.useEffect)(function(){var Z;return i==null||(Z=i.registerValue)===null||Z===void 0||Z.call(i,e.value),function(){var y;return i==null||(y=i.cancelValue)===null||y===void 0?void 0:y.call(i,e.value)}},[e.value]);var g=function(y,D){return(0,o.jsx)("div",{className:"".concat(y,"-cover"),children:typeof D=="string"?(0,o.jsx)("img",{src:D,alt:"checkcard"}):D})},R=e.prefixCls,E=e.className,P=e.avatar,j=e.title,W=e.description,G=e.cover,N=e.extra,T=e.style,Y=T===void 0?{}:T,U=(0,ue.Z)(e,Ba),S=(0,f.Z)({},U),u=m("pro-checkcard",R),J=Aa(u),ie=J.wrapSSR,M=J.hashId;S.checked=l;var q=!1;if(i){var X;S.disabled=e.disabled||i.disabled,S.loading=e.loading||i.loading,S.bordered=e.bordered||i.bordered,q=i.multiple;var Q=i.multiple?(X=i.value)===null||X===void 0?void 0:X.includes(e.value):i.value===e.value;S.checked=S.loading?!1:Q,S.size=e.size||i.size}var I=S.disabled,h=I===void 0?!1:I,w=S.size,A=S.loading,V=S.bordered,$=V===void 0?!0:V,z=S.checked,O=x(w),B=F()(u,E,M,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(u,"-loading"),A),"".concat(u,"-").concat(O),O),"".concat(u,"-checked"),z),"".concat(u,"-multiple"),q),"".concat(u,"-disabled"),h),"".concat(u,"-bordered"),$),"".concat(u,"-ghost"),e.ghost)),b=(0,v.useMemo)(function(){if(A)return(0,o.jsx)(Ea,{prefixCls:u||""});if(G)return g(u||"",G);var Z=P?(0,o.jsx)("div",{className:"".concat(u,"-avatar ").concat(M).trim(),children:typeof P=="string"?(0,o.jsx)(wa.C,{size:48,shape:"square",src:P}):P}):null,y=(j!=null?j:N)!=null&&(0,o.jsxs)("div",{className:"".concat(u,"-header ").concat(M).trim(),children:[(0,o.jsxs)("div",{className:"".concat(u,"-header-left ").concat(M).trim(),children:[(0,o.jsx)("div",{className:"".concat(u,"-title ").concat(M).trim(),children:j}),e.subTitle?(0,o.jsx)("div",{className:"".concat(u,"-subTitle ").concat(M).trim(),children:e.subTitle}):null]}),N&&(0,o.jsx)("div",{className:"".concat(u,"-extra ").concat(M).trim(),children:N})]}),D=W?(0,o.jsx)("div",{className:"".concat(u,"-description ").concat(M).trim(),children:W}):null,k=F()("".concat(u,"-content"),M,(0,r.Z)({},"".concat(u,"-avatar-header"),Z&&y&&!D));return(0,o.jsxs)("div",{className:k,children:[Z,y||D?(0,o.jsxs)("div",{className:"".concat(u,"-detail ").concat(M).trim(),children:[y,D]}):null]})},[P,A,G,W,N,M,u,e.subTitle,j]);return ie((0,o.jsxs)("div",{className:B,style:Y,onClick:function(y){!A&&!h&&s(y)},onMouseEnter:e.onMouseEnter,children:[b,e.children?(0,o.jsx)("div",{className:F()("".concat(u,"-body")),style:e.bodyStyle,children:e.children}):null,e.actions?(0,o.jsx)(Sa.Z,{actions:e.actions,prefixCls:u}):null]}))};jn.Group=Na;var Ye=jn,Nn=C(99559);function ka(n,e){return Ka(n)||Da(n,e)||za(n,e)||Ma()}function Ma(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function za(n,e){if(n){if(typeof n=="string")return Pn(n,e);var a=Object.prototype.toString.call(n).slice(8,-1);if(a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set")return Array.from(n);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Pn(n,e)}}function Pn(n,e){(e==null||e>n.length)&&(e=n.length);for(var a=0,t=new Array(e);a0&&Q&&Oa({prefixCls:m,hashId:c,expandIcon:ve,onExpand:_,expanded:de,record:z})]}),(a=b&&(b==null?void 0:b(z,u,Me)))!==null&&a!==void 0?a:Me]}),ee&&(R||se)&&(0,o.jsxs)("div",{className:"".concat(p,"-content ").concat(c).trim(),children:[R,te&&Q&&(0,o.jsx)("div",{className:Ae&&Ae(z,u,Ze),children:se})]})]})}));return T?(0,o.jsx)("div",{className:F()(c,(0,r.Z)((0,r.Z)({},"".concat(p,"-card"),T),$,$!==s)),style:A,children:Se}):Se}var Fa=Ha,Va=["title","subTitle","avatar","description","extra","content","actions","type"],Wa=Va.reduce(function(n,e){return n.set(e,!0),n},new Map),Tn=C(1977),Ga=["dataSource","columns","rowKey","showActions","showExtra","prefixCls","actionRef","itemTitleRender","renderItem","itemCardProps","itemHeaderRender","expandable","rowSelection","pagination","onRow","onItem","rowClassName"];function Xa(n){var e=n.dataSource,a=n.columns,t=n.rowKey,l=n.showActions,d=n.showExtra,i=n.prefixCls,c=n.actionRef,m=n.itemTitleRender,s=n.renderItem,x=n.itemCardProps,g=n.itemHeaderRender,R=n.expandable,E=n.rowSelection,P=n.pagination,j=n.onRow,W=n.onItem,G=n.rowClassName,N=(0,ue.Z)(n,Ga),T=(0,v.useContext)(Ke.L_),Y=T.hashId,U=(0,v.useContext)(Ce.ZP.ConfigContext),S=U.getPrefixCls,u=v.useMemo(function(){return typeof t=="function"?t:function(_,p){return _[t]||p}},[t]),J=(0,Dn.Z)(e,"children",u),ie=(0,le.Z)(J,1),M=ie[0],q=[function(){},P];(0,Tn.n)(Je.Z,"5.3.0")<0&&q.reverse();var X=(0,Kn.ZP)(e.length,q[0],q[1]),Q=(0,le.Z)(X,1),I=Q[0],h=v.useMemo(function(){if(P===!1||!I.pageSize||e.length .anticon > svg":{transition:"0.3s"}}),"&-expanded",{" > .anticon > svg":{transform:"rotate(90deg)"}}),"&-title",{marginInlineEnd:"16px",wordBreak:"break-all",cursor:"pointer","&-editable":{paddingBlock:8},"&:hover":{color:e.colorPrimary}}),"&-content",{position:"relative",display:"flex",flex:"1",flexDirection:"column",marginBlock:0,marginInline:32}),"&-subTitle",{color:"rgba(0, 0, 0, 0.45)","&-editable":{paddingBlock:8}}),"&-description",{marginBlockStart:"4px",wordBreak:"break-all"}),"&-avatar",{display:"flex"}),(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)(a,"&-header",{display:"flex",flex:"1",justifyContent:"flex-start",h4:{margin:0,padding:0}}),"&-header-container",{display:"flex",alignItems:"center",justifyContent:"flex-start"}),"&-header-option",{display:"flex"}),"&-checkbox",{width:"16px",marginInlineEnd:"12px"}),"&-no-split",(0,r.Z)((0,r.Z)({},"".concat(e.componentCls,"-row"),{borderBlockEnd:"none"}),"".concat(e.antCls,"-list ").concat(e.antCls,"-list-item"),{borderBlockEnd:"none"})),"&-bordered",(0,r.Z)({},"".concat(e.componentCls,"-toolbar"),{borderBlockEnd:"1px solid ".concat(e.colorSplit)})),"".concat(e.antCls,"-list-vertical"),(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(e.componentCls,"-row"),{borderBlockEnd:"12px 18px 12px 24px"}),"&-header-title",{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center"}),"&-content",{marginBlock:0,marginInline:0}),"&-subTitle",{marginBlockStart:8}),"".concat(e.antCls,"-list-item-extra"),(0,r.Z)({display:"flex",alignItems:"center",marginInlineStart:"32px"},"".concat(e.componentCls,"-row-description"),{marginBlockStart:16})),"".concat(e.antCls,"-list-bordered ").concat(e.antCls,"-list-item"),{paddingInline:0}),"".concat(e.componentCls,"-row-show-extra-hover"),(0,r.Z)({},"".concat(e.antCls,"-list-item-extra "),{display:"none"}))),"".concat(e.antCls,"-list-pagination"),{marginBlockStart:e.margin,marginBlockEnd:e.margin}),"".concat(e.antCls,"-list-list"),{"&-item":{cursor:"pointer",paddingBlock:12,paddingInline:12}}),"".concat(e.antCls,"-list-vertical ").concat(e.proComponentsCls,"-list-row"),(0,r.Z)({"&-header":{paddingBlock:0,paddingInline:0,borderBlockEnd:"none"}},"".concat(e.antCls,"-list-item"),(0,r.Z)((0,r.Z)((0,r.Z)({width:"100%",paddingBlock:12,paddingInlineStart:24,paddingInlineEnd:18},"".concat(e.antCls,"-list-item-meta-avatar"),{display:"flex",alignItems:"center",marginInlineEnd:8}),"".concat(e.antCls,"-list-item-action-split"),{display:"none"}),"".concat(e.antCls,"-list-item-meta-title"),{marginBlock:0,marginInline:0}))))))};function Ja(n){return(0,In.Xj)("ProList",function(e){var a=(0,f.Z)((0,f.Z)({},e),{},{componentCls:".".concat(n)});return[Ua(a)]})}var qa=["metas","split","footer","rowKey","tooltip","className","options","search","expandable","showActions","showExtra","rowSelection","pagination","itemLayout","renderItem","grid","itemCardProps","onRow","onItem","rowClassName","locale","itemHeaderRender","itemTitleRender"];function An(n){var e=n.metas,a=n.split,t=n.footer,l=n.rowKey,d=n.tooltip,i=n.className,c=n.options,m=c===void 0?!1:c,s=n.search,x=s===void 0?!1:s,g=n.expandable,R=n.showActions,E=n.showExtra,P=n.rowSelection,j=P===void 0?!1:P,W=n.pagination,G=W===void 0?!1:W,N=n.itemLayout,T=n.renderItem,Y=n.grid,U=n.itemCardProps,S=n.onRow,u=n.onItem,J=n.rowClassName,ie=n.locale,M=n.itemHeaderRender,q=n.itemTitleRender,X=(0,ue.Z)(n,qa),Q=(0,v.useRef)();(0,v.useImperativeHandle)(X.actionRef,function(){return Q.current},[Q.current]);var I=(0,v.useContext)(Ce.ZP.ConfigContext),h=I.getPrefixCls,w=(0,v.useMemo)(function(){var B=[];return Object.keys(e||{}).forEach(function(b){var Z=e[b]||{},y=Z.valueType;y||(b==="avatar"&&(y="avatar"),b==="actions"&&(y="option"),b==="description"&&(y="textarea")),B.push((0,f.Z)((0,f.Z)({listKey:b,dataIndex:(Z==null?void 0:Z.dataIndex)||b},Z),{},{valueType:y}))}),B},[e]),A=h("pro-list",n.prefixCls),V=Ja(A),$=V.wrapSSR,z=V.hashId,O=F()(A,z,(0,r.Z)({},"".concat(A,"-no-split"),!a));return $((0,o.jsx)(Mn,(0,f.Z)((0,f.Z)({tooltip:d},X),{},{actionRef:Q,pagination:G,type:"list",rowSelection:j,search:x,options:m,className:F()(A,i,O),columns:w,rowKey:l,tableViewRender:function(b){var Z=b.columns,y=b.size,D=b.pagination,k=b.rowSelection,te=b.dataSource,ve=b.loading;return(0,o.jsx)(Ya,{grid:Y,itemCardProps:U,itemTitleRender:q,prefixCls:n.prefixCls,columns:Z,renderItem:T,actionRef:Q,dataSource:te||[],size:y,footer:t,split:a,rowKey:l,expandable:g,rowSelection:j===!1?void 0:k,showActions:R,showExtra:E,pagination:D,itemLayout:N,loading:ve,itemHeaderRender:M,onRow:S,onItem:u,rowClassName:J,locale:ie})}})))}function Ct(n){return _jsx(ProConfigProvider,{needDeps:!0,children:_jsx(An,_objectSpread({cardProps:!1,search:!1,toolBarRender:!1},n))})}function _a(n){return(0,o.jsx)(Ke._Y,{needDeps:!0,children:(0,o.jsx)(An,(0,f.Z)({},n))})}var ht=null}}]); diff --git a/starter/src/main/resources/templates/admin/297.ac939a2f.async.js b/starter/src/main/resources/templates/admin/297.ac939a2f.async.js new file mode 100644 index 0000000000..6614c47e41 --- /dev/null +++ b/starter/src/main/resources/templates/admin/297.ac939a2f.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[297],{15746:function(D,h,s){var l=s(21584);h.Z=l.Z},96074:function(D,h,s){s.d(h,{Z:function(){return t}});var l=s(67294),b=s(93967),I=s.n(b),_=s(53124),y=s(6731),j=s(14747),E=s(91945),M=s(45503);const R=n=>{const{componentCls:e,sizePaddingEdgeHorizontal:a,colorSplit:r,lineWidth:o,textPaddingInline:O,orientationMargin:u,verticalMarginInline:g}=n;return{[e]:Object.assign(Object.assign({},(0,j.Wf)(n)),{borderBlockStart:`${(0,y.bf)(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:g,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,y.bf)(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,y.bf)(n.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,y.bf)(n.dividerHorizontalWithTextGutterMargin)} 0`,color:n.colorTextHeading,fontWeight:500,fontSize:n.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,y.bf)(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:`calc(${u} * 100%)`},"&::after":{width:`calc(100% - ${u} * 100%)`}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:`calc(100% - ${u} * 100%)`},"&::after":{width:`calc(${u} * 100%)`}},[`${e}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:O},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${(0,y.bf)(o)} 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:n.colorText,fontWeight:"normal",fontSize:n.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:a}}})}},W=n=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:n.marginXS});var c=(0,E.I$)("Divider",n=>{const e=(0,M.TS)(n,{dividerHorizontalWithTextGutterMargin:n.margin,dividerHorizontalGutterMargin:n.marginLG,sizePaddingEdgeHorizontal:0});return[R(e)]},W,{unitless:{orientationMargin:!0}}),x=function(n,e){var a={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(a[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{const{getPrefixCls:e,direction:a,divider:r}=l.useContext(_.E_),{prefixCls:o,type:O="horizontal",orientation:u="center",orientationMargin:g,className:L,rootClassName:G,children:S,dashed:K,plain:T,style:f}=n,U=x(n,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),$=e("divider",o),[A,B,C]=c($),z=u.length>0?`-${u}`:u,m=!!S,p=u==="left"&&g!=null,d=u==="right"&&g!=null,P=I()($,r==null?void 0:r.className,B,C,`${$}-${O}`,{[`${$}-with-text`]:m,[`${$}-with-text${z}`]:m,[`${$}-dashed`]:!!K,[`${$}-plain`]:!!T,[`${$}-rtl`]:a==="rtl",[`${$}-no-default-orientation-margin-left`]:p,[`${$}-no-default-orientation-margin-right`]:d},L,G),w=l.useMemo(()=>typeof g=="number"?g:/^\d+$/.test(g)?Number(g):g,[g]),H=Object.assign(Object.assign({},p&&{marginLeft:w}),d&&{marginRight:w});return A(l.createElement("div",Object.assign({className:P,style:Object.assign(Object.assign({},r==null?void 0:r.style),f)},U,{role:"separator"}),S&&O!=="vertical"&&l.createElement("span",{className:`${$}-inner-text`,style:H},S)))}},99134:function(D,h,s){var l=s(67294);const b=(0,l.createContext)({});h.Z=b},21584:function(D,h,s){var l=s(67294),b=s(93967),I=s.n(b),_=s(53124),y=s(99134),j=s(6999),E=function(c,x){var i={};for(var t in c)Object.prototype.hasOwnProperty.call(c,t)&&x.indexOf(t)<0&&(i[t]=c[t]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(c);n{const{getPrefixCls:i,direction:t}=l.useContext(_.E_),{gutter:n,wrap:e}=l.useContext(y.Z),{prefixCls:a,span:r,order:o,offset:O,push:u,pull:g,className:L,children:G,flex:S,style:K}=c,T=E(c,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),f=i("col",a),[U,$,A]=(0,j.cG)(f),B={};let C={};R.forEach(p=>{let d={};const P=c[p];typeof P=="number"?d.span=P:typeof P=="object"&&(d=P||{}),delete T[p],C=Object.assign(Object.assign({},C),{[`${f}-${p}-${d.span}`]:d.span!==void 0,[`${f}-${p}-order-${d.order}`]:d.order||d.order===0,[`${f}-${p}-offset-${d.offset}`]:d.offset||d.offset===0,[`${f}-${p}-push-${d.push}`]:d.push||d.push===0,[`${f}-${p}-pull-${d.pull}`]:d.pull||d.pull===0,[`${f}-rtl`]:t==="rtl"}),d.flex&&(C[`${f}-${p}-flex`]=!0,B[`--${f}-${p}-flex`]=M(d.flex))});const z=I()(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${o}`]:o,[`${f}-offset-${O}`]:O,[`${f}-push-${u}`]:u,[`${f}-pull-${g}`]:g},L,C,$,A),m={};if(n&&n[0]>0){const p=n[0]/2;m.paddingLeft=p,m.paddingRight=p}return S&&(m.flex=M(S),e===!1&&!m.minWidth&&(m.minWidth=0)),U(l.createElement("div",Object.assign({},T,{style:Object.assign(Object.assign(Object.assign({},m),K),B),className:z,ref:x}),G))});h.Z=W},92820:function(D,h,s){var l=s(67294),b=s(93967),I=s.n(b),_=s(74443),y=s(53124),j=s(99134),E=s(6999),M=function(i,t){var n={};for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&t.indexOf(e)<0&&(n[e]=i[e]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(i);a{if(typeof i=="string"&&e(i),typeof i=="object")for(let r=0;r<_.c4.length;r++){const o=_.c4[r];if(!t[o])continue;const O=i[o];if(O!==void 0){e(O);return}}};return l.useEffect(()=>{a()},[JSON.stringify(i),t]),n}const x=l.forwardRef((i,t)=>{const{prefixCls:n,justify:e,align:a,className:r,style:o,children:O,gutter:u=0,wrap:g}=i,L=M(i,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:G,direction:S}=l.useContext(y.E_),[K,T]=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[f,U]=l.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),$=c(a,f),A=c(e,f),B=l.useRef(u),C=(0,_.ZP)();l.useEffect(()=>{const N=C.subscribe(J=>{U(J);const v=B.current||0;(!Array.isArray(v)&&typeof v=="object"||Array.isArray(v)&&(typeof v[0]=="object"||typeof v[1]=="object"))&&T(J)});return()=>C.unsubscribe(N)},[]);const z=()=>{const N=[void 0,void 0];return(Array.isArray(u)?u:[u,void 0]).forEach((v,Q)=>{if(typeof v=="object")for(let X=0;X<_.c4.length;X++){const F=_.c4[X];if(K[F]&&v[F]!==void 0){N[Q]=v[F];break}}else N[Q]=v}),N},m=G("row",n),[p,d,P]=(0,E.VM)(m),w=z(),H=I()(m,{[`${m}-no-wrap`]:g===!1,[`${m}-${A}`]:A,[`${m}-${$}`]:$,[`${m}-rtl`]:S==="rtl"},r,d,P),Z={},V=w[0]!=null&&w[0]>0?w[0]/-2:void 0;V&&(Z.marginLeft=V,Z.marginRight=V);const[Y,k]=w;Z.rowGap=k;const q=l.useMemo(()=>({gutter:[Y,k],wrap:g}),[Y,k,g]);return p(l.createElement(j.Z.Provider,{value:q},l.createElement("div",Object.assign({},L,{className:H,style:Object.assign(Object.assign({},Z),o),ref:t}),O)))});h.Z=x},6999:function(D,h,s){s.d(h,{VM:function(){return c},cG:function(){return x}});var l=s(6731),b=s(91945),I=s(45503);const _=i=>{const{componentCls:t}=i;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},y=i=>{const{componentCls:t}=i;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},j=(i,t)=>{const{prefixCls:n,componentCls:e,gridColumns:a}=i,r={};for(let o=a;o>=0;o--)o===0?(r[`${e}${t}-${o}`]={display:"none"},r[`${e}-push-${o}`]={insetInlineStart:"auto"},r[`${e}-pull-${o}`]={insetInlineEnd:"auto"},r[`${e}${t}-push-${o}`]={insetInlineStart:"auto"},r[`${e}${t}-pull-${o}`]={insetInlineEnd:"auto"},r[`${e}${t}-offset-${o}`]={marginInlineStart:0},r[`${e}${t}-order-${o}`]={order:0}):(r[`${e}${t}-${o}`]=[{["--ant-display"]:"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/a*100}%`,maxWidth:`${o/a*100}%`}],r[`${e}${t}-push-${o}`]={insetInlineStart:`${o/a*100}%`},r[`${e}${t}-pull-${o}`]={insetInlineEnd:`${o/a*100}%`},r[`${e}${t}-offset-${o}`]={marginInlineStart:`${o/a*100}%`},r[`${e}${t}-order-${o}`]={order:o});return r[`${e}${t}-flex`]={flex:`var(--${n}${t}-flex)`},r},E=(i,t)=>j(i,t),M=(i,t,n)=>({[`@media (min-width: ${(0,l.bf)(t)})`]:Object.assign({},E(i,n))}),R=()=>({}),W=()=>({}),c=(0,b.I$)("Grid",_,R),x=(0,b.I$)("Grid",i=>{const t=(0,I.TS)(i,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[y(t),E(t,""),E(t,"-xs"),Object.keys(n).map(e=>M(t,n[e],e)).reduce((e,a)=>Object.assign(Object.assign({},e),a),{})]},W)},71230:function(D,h,s){var l=s(92820);h.Z=l.Z}}]); diff --git a/starter/src/main/resources/templates/admin/30.d6b9f068.async.js b/starter/src/main/resources/templates/admin/30.d6b9f068.async.js new file mode 100644 index 0000000000..f2adf9653d --- /dev/null +++ b/starter/src/main/resources/templates/admin/30.d6b9f068.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[30],{1977:function(A,P,n){n.d(P,{n:function(){return m}});var o=n(97685),p=n(71002),f=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,g=function(t){return t==="*"||t==="x"||t==="X"},C=function(t){var e=parseInt(t,10);return isNaN(e)?t:e},S=function(t,e){return(0,p.Z)(t)!==(0,p.Z)(e)?[String(t),String(e)]:[t,e]},M=function(t,e){if(g(t)||g(e))return 0;var r=S(C(t),C(e)),a=(0,o.Z)(r,2),s=a[0],d=a[1];return s>d?1:sp?typeof p=="function"?p():p:null},57838:function(A,P,n){n.d(P,{Z:function(){return p}});var o=n(67294);function p(){const[,f]=o.useReducer(g=>g+1,0);return f}},74443:function(A,P,n){n.d(P,{ZP:function(){return S},c4:function(){return f}});var o=n(67294),p=n(29691);const f=["xxl","xl","lg","md","sm","xs"],g=u=>({xs:`(max-width: ${u.screenXSMax}px)`,sm:`(min-width: ${u.screenSM}px)`,md:`(min-width: ${u.screenMD}px)`,lg:`(min-width: ${u.screenLG}px)`,xl:`(min-width: ${u.screenXL}px)`,xxl:`(min-width: ${u.screenXXL}px)`}),C=u=>{const l=u,m=[].concat(f).reverse();return m.forEach((i,t)=>{const e=i.toUpperCase(),r=`screen${e}Min`,a=`screen${e}`;if(!(l[r]<=l[a]))throw new Error(`${r}<=${a} fails : !(${l[r]}<=${l[a]})`);if(t{const m=new Map;let i=-1,t={};return{matchHandlers:{},dispatch(e){return t=e,m.forEach(r=>r(t)),m.size>=1},subscribe(e){return m.size||this.register(),i+=1,m.set(i,e),e(t),i},unsubscribe(e){m.delete(e),m.size||this.unregister()},unregister(){Object.keys(l).forEach(e=>{const r=l[e],a=this.matchHandlers[r];a==null||a.mql.removeListener(a==null?void 0:a.listener)}),m.clear()},register(){Object.keys(l).forEach(e=>{const r=l[e],a=d=>{let{matches:O}=d;this.dispatch(Object.assign(Object.assign({},t),{[e]:O}))},s=window.matchMedia(r);s.addListener(a),this.matchHandlers[r]={mql:s,listener:a},a(s)})},responsiveMap:l}},[u])}const M=(u,l)=>{if(l&&typeof l=="object")for(let m=0;m{const{antCls:h,componentCls:E,iconCls:v,avatarBg:x,avatarColor:Y,containerSize:U,containerSizeLG:D,containerSizeSM:N,textFontSize:B,textFontSizeLG:G,textFontSizeSM:re,borderRadius:I,borderRadiusLG:W,borderRadiusSM:F,lineWidth:J,lineType:q}=c,H=(V,Z,ee)=>({width:V,height:V,borderRadius:"50%",[`&${E}-square`]:{borderRadius:ee},[`&${E}-icon`]:{fontSize:Z,[`> ${v}`]:{margin:0}}});return{[E]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,e.Wf)(c)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:Y,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:x,border:`${(0,t.bf)(J)} ${q} transparent`,["&-image"]:{background:"transparent"},[`${h}-image-img`]:{display:"block"}}),H(U,B,I)),{["&-lg"]:Object.assign({},H(D,G,W)),["&-sm"]:Object.assign({},H(N,re,F)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},d=c=>{const{componentCls:h,groupBorderColor:E,groupOverlapping:v,groupSpace:x}=c;return{[`${h}-group`]:{display:"inline-flex",[`${h}`]:{borderColor:E},["> *:not(:first-child)"]:{marginInlineStart:v}},[`${h}-group-popover`]:{[`${h} + ${h}`]:{marginInlineStart:x}}}},O=c=>{const{controlHeight:h,controlHeightLG:E,controlHeightSM:v,fontSize:x,fontSizeLG:Y,fontSizeXL:U,fontSizeHeading3:D,marginXS:N,marginXXS:B,colorBorderBg:G}=c;return{containerSize:h,containerSizeLG:E,containerSizeSM:v,textFontSize:Math.round((Y+U)/2),textFontSizeLG:D,textFontSizeSM:x,groupSpace:B,groupOverlapping:-N,groupBorderColor:G}};var $=(0,r.I$)("Avatar",c=>{const{colorTextLightSolid:h,colorTextPlaceholder:E}=c,v=(0,a.TS)(c,{avatarBg:E,avatarColor:h});return[s(v),d(v)]},O),b=n(35792),X=function(c,h){var E={};for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&h.indexOf(v)<0&&(E[v]=c[v]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,v=Object.getOwnPropertySymbols(c);x{const[E,v]=o.useState(1),[x,Y]=o.useState(!1),[U,D]=o.useState(!0),N=o.useRef(null),B=o.useRef(null),G=(0,C.sQ)(h,N),{getPrefixCls:re,avatar:I}=o.useContext(M.E_),W=o.useContext(i),F=()=>{if(!B.current||!N.current)return;const _=B.current.offsetWidth,y=N.current.offsetWidth;if(_!==0&&y!==0){const{gap:K=4}=c;K*2{Y(!0)},[]),o.useEffect(()=>{D(!0),v(1)},[c.src]),o.useEffect(F,[c.gap]);const J=()=>{const{onError:_}=c;(_==null?void 0:_())!==!1&&D(!1)},{prefixCls:q,shape:H,size:V,src:Z,srcSet:ee,icon:L,className:oe,rootClassName:te,alt:ae,draggable:he,children:ue,crossOrigin:Ee}=c,le=X(c,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),R=(0,u.Z)(_=>{var y,K;return(K=(y=V!=null?V:W==null?void 0:W.size)!==null&&y!==void 0?y:_)!==null&&K!==void 0?K:"default"}),Oe=Object.keys(typeof R=="object"?R||{}:{}).some(_=>["xs","sm","md","lg","xl","xxl"].includes(_)),ve=(0,l.Z)(Oe),Pe=o.useMemo(()=>{if(typeof R!="object")return{};const _=S.c4.find(K=>ve[K]),y=R[_];return y?{width:y,height:y,fontSize:y&&(L||ue)?y/2:18}:{}},[ve,R]),z=re("avatar",q),fe=(0,b.Z)(z),[Ce,_e,ye]=$(z,fe),xe=f()({[`${z}-lg`]:R==="large",[`${z}-sm`]:R==="small"}),pe=o.isValidElement(Z),Me=H||(W==null?void 0:W.shape)||"circle",Se=f()(z,xe,I==null?void 0:I.className,`${z}-${Me}`,{[`${z}-image`]:pe||Z&&U,[`${z}-icon`]:!!L},ye,fe,oe,te,_e),$e=typeof R=="number"?{width:R,height:R,fontSize:L?R/2:18}:{};let ne;if(typeof Z=="string"&&U)ne=o.createElement("img",{src:Z,draggable:he,srcSet:ee,onError:J,alt:ae,crossOrigin:Ee});else if(pe)ne=Z;else if(L)ne=L;else if(x||E!==1){const _=`scale(${E})`,y={msTransform:_,WebkitTransform:_,transform:_};ne=o.createElement(g.Z,{onResize:F},o.createElement("span",{className:`${z}-string`,ref:B,style:Object.assign({},y)},ue))}else ne=o.createElement("span",{className:`${z}-string`,style:{opacity:0},ref:B},ue);return delete le.onError,delete le.gap,Ce(o.createElement("span",Object.assign({},le,{style:Object.assign(Object.assign(Object.assign(Object.assign({},$e),Pe),I==null?void 0:I.style),le.style),className:Se,ref:G}),ne))};var j=o.forwardRef(Q),w=n(50344),T=n(55241),ce=n(96159);const se=c=>{const{size:h,shape:E}=o.useContext(i),v=o.useMemo(()=>({size:c.size||h,shape:c.shape||E}),[c.size,c.shape,h,E]);return o.createElement(i.Provider,{value:v},c.children)};var de=c=>{const{getPrefixCls:h,direction:E}=o.useContext(M.E_),{prefixCls:v,className:x,rootClassName:Y,style:U,maxCount:D,maxStyle:N,size:B,shape:G,maxPopoverPlacement:re="top",maxPopoverTrigger:I="hover",children:W}=c,F=h("avatar",v),J=`${F}-group`,q=(0,b.Z)(F),[H,V,Z]=$(F,q),ee=f()(J,{[`${J}-rtl`]:E==="rtl"},Z,q,x,Y,V),L=(0,w.Z)(W).map((te,ae)=>(0,ce.Tm)(te,{key:`avatar-key-${ae}`})),oe=L.length;if(D&&D0&&arguments[0]!==void 0?arguments[0]:!0;const M=(0,o.useRef)({}),u=(0,f.Z)(),l=(0,g.ZP)();return(0,p.Z)(()=>{const m=l.subscribe(i=>{M.current=i,S&&u()});return()=>l.unsubscribe(m)},[]),M.current}P.Z=C},66330:function(A,P,n){var o=n(67294),p=n(93967),f=n.n(p),g=n(92419),C=n(81643),S=n(53124),M=n(20136),u=function(t,e){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(t);s!e&&!r?null:o.createElement(o.Fragment,null,e&&o.createElement("div",{className:`${t}-title`},(0,C.Z)(e)),o.createElement("div",{className:`${t}-inner-content`},(0,C.Z)(r))),m=t=>{const{hashId:e,prefixCls:r,className:a,style:s,placement:d="top",title:O,content:$,children:b}=t;return o.createElement("div",{className:f()(e,r,`${r}-pure`,`${r}-placement-${d}`,a),style:s},o.createElement("div",{className:`${r}-arrow`}),o.createElement(g.G,Object.assign({},t,{className:e,prefixCls:r}),b||l(r,O,$)))},i=t=>{const{prefixCls:e,className:r}=t,a=u(t,["prefixCls","className"]),{getPrefixCls:s}=o.useContext(S.E_),d=s("popover",e),[O,$,b]=(0,M.Z)(d);return O(o.createElement(m,Object.assign({},a,{prefixCls:d,hashId:$,className:f()(r,b)})))};P.ZP=i},55241:function(A,P,n){var o=n(67294),p=n(93967),f=n.n(p),g=n(81643),C=n(33603),S=n(53124),M=n(83062),u=n(66330),l=n(20136),m=function(e,r){var a={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&r.indexOf(s)<0&&(a[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,s=Object.getOwnPropertySymbols(e);d{let{title:r,content:a,prefixCls:s}=e;return o.createElement(o.Fragment,null,r&&o.createElement("div",{className:`${s}-title`},(0,g.Z)(r)),o.createElement("div",{className:`${s}-inner-content`},(0,g.Z)(a)))},t=o.forwardRef((e,r)=>{const{prefixCls:a,title:s,content:d,overlayClassName:O,placement:$="top",trigger:b="hover",mouseEnterDelay:X=.1,mouseLeaveDelay:Q=.1,overlayStyle:k={}}=e,j=m(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:w}=o.useContext(S.E_),T=w("popover",a),[ce,se,me]=(0,l.Z)(T),de=w(),ie=f()(O,se,me);return ce(o.createElement(M.Z,Object.assign({placement:$,trigger:b,mouseEnterDelay:X,mouseLeaveDelay:Q,overlayStyle:k},j,{prefixCls:T,overlayClassName:ie,ref:r,overlay:s||d?o.createElement(i,{prefixCls:T,title:s,content:d}):null,transitionName:(0,C.m)(de,"zoom-big",j.transitionName),"data-popover-inject":!0})))});t._InternalPanelDoNotUseOrYouWillBeFired=u.ZP,P.Z=t},20136:function(A,P,n){var o=n(14747),p=n(50438),f=n(97414),g=n(8796),C=n(91945),S=n(45503),M=n(79511);const u=i=>{const{componentCls:t,popoverColor:e,titleMinWidth:r,fontWeightStrong:a,innerPadding:s,boxShadowSecondary:d,colorTextHeading:O,borderRadiusLG:$,zIndexPopup:b,titleMarginBottom:X,colorBgElevated:Q,popoverBg:k,titleBorderBottom:j,innerContentPadding:w,titlePadding:T}=i;return[{[t]:Object.assign(Object.assign({},(0,o.Wf)(i)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:b,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Q,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:k,backgroundClip:"padding-box",borderRadius:$,boxShadow:d,padding:s},[`${t}-title`]:{minWidth:r,marginBottom:X,color:O,fontWeight:a,borderBottom:j,padding:T},[`${t}-inner-content`]:{color:e,padding:w}})},(0,f.ZP)(i,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:i.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},l=i=>{const{componentCls:t}=i;return{[t]:g.i.map(e=>{const r=i[`${e}6`];return{[`&${t}-${e}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},m=i=>{const{lineWidth:t,controlHeight:e,fontHeight:r,padding:a,wireframe:s,zIndexPopupBase:d,borderRadiusLG:O,marginXS:$,lineType:b,colorSplit:X,paddingSM:Q}=i,k=e-r,j=k/2,w=k/2-t,T=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:d+30},(0,M.w)(i)),(0,f.wZ)({contentRadius:O,limitVerticalRadius:!0})),{innerPadding:s?0:12,titleMarginBottom:s?0:$,titlePadding:s?`${j}px ${T}px ${w}px`:0,titleBorderBottom:s?`${t}px ${b} ${X}`:"none",innerContentPadding:s?`${Q}px ${T}px`:0})};P.Z=(0,C.I$)("Popover",i=>{const{colorBgElevated:t,colorText:e}=i,r=(0,S.TS)(i,{popoverBg:t,popoverColor:e});return[u(r),l(r),(0,p._y)(r,"zoom-big")]},m,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},97435:function(A,P){function n(o,p){for(var f=Object.assign({},o),g=0;g=2,has16m:f>=3}}function s(f){if(g===!1)return 0;if(b("color=16m")||b("color=full")||b("color=truecolor"))return 3;if(b("color=256"))return 2;if(f&&!f.isTTY&&g!==!0)return 0;var h=g?1:0;if(t.platform==="win32"){var p=v.release().split(".");return Number(t.versions.node.split(".")[0])>=8&&Number(p[0])>=10&&Number(p[2])>=10586?Number(p[2])>=14931?3:2:1}if("CI"in d)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(E){return E in d})||d.CI_NAME==="codeship"?1:h;if("TEAMCITY_VERSION"in d)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(d.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in d){var P=parseInt((d.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(d.TERM_PROGRAM){case"iTerm.app":return P>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(d.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(d.TERM)||"COLORTERM"in d?1:(d.TERM==="dumb",h)}function i(f){var h=s(f);return a(h)}A.exports={supportsColor:i,stdout:i(t.stdout),stderr:i(t.stderr)}},33645:function(A,r,e){var t=e(32289);A.exports=t},12524:function(A,r,e){A.exports=e(10519)},10519:function(A,r,e){var t=e(4099),v=t(function b(d,g){return g=g||{},g.namespace=d,g.prod=!0,g.dev=!1,g.force||b.force?b.yep(g):b.nope(g)});A.exports=v},4099:function(A){var r=[],e=[],t=function(){};function v(p){return~r.indexOf(p)?!1:(r.push(p),!0)}function b(p){t=p}function d(p){for(var P=[],E=0;E0&&arguments[0]!==void 0?arguments[0]:{};v(this,O),o.levels||(o.levels=P.cli.levels),this.colorizer=new i(o),this.padder=new h(o),this.options=o}return d(O,[{key:"transform",value:function(y,u){return this.colorizer.transform(this.padder.transform(y,u),u),y[E]="".concat(y.level,":").concat(y.message),y}}]),O}();A.exports=function(O){return new T(O)},A.exports.Format=T},60099:function(A,r,e){"use strict";function t(E){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},t(E)}function v(E,T){if(!(E instanceof T))throw new TypeError("Cannot call a class as a function")}function b(E,T){for(var O=0;O0&&arguments[0]!==void 0?arguments[0]:{};v(this,E),T.colors&&this.addColors(T.colors),this.options=T}return d(E,[{key:"addColors",value:function(O){return E.addColors(O)}},{key:"colorize",value:function(O,o,y){if(typeof y=="undefined"&&(y=o),!Array.isArray(E.allColors[O]))return s[E.allColors[O]](y);for(var u=0,n=E.allColors[O].length;u2)throw new O(o);function y(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=n}y.prototype.transform=o;function u(n){return new y(n)}return u.Format=y,u}},90140:function(A,r,e){"use strict";var t=e(35431),v=e(15396),b=v.MESSAGE,d=e(87668);function g(a,s){return typeof s=="bigint"?s.toString():s}A.exports=t(function(a,s){var i=d.configure(s);return a[b]=i(a,s.replacer||g,s.space),a})},9829:function(A,r,e){"use strict";var t=e(35431);A.exports=t(function(v,b){return b.message?(v.message="[".concat(b.label,"] ").concat(v.message),v):(v.label=b.label,v)})},59232:function(A,r,e){"use strict";var t=e(60099),v=t.Colorizer;A.exports=function(b){return v.addColors(b.colors||b),b}},12030:function(A,r,e){"use strict";var t=e(35431),v=e(15396),b=v.MESSAGE,d=e(87668);A.exports=t(function(g){var a={};return g.message&&(a["@message"]=g.message,delete g.message),g.timestamp&&(a["@timestamp"]=g.timestamp,delete g.timestamp),a["@fields"]=g,g[b]=d(a),g})},68229:function(A,r,e){"use strict";function t(i){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},t(i)}function v(i,f,h){return f=b(f),f in i?Object.defineProperty(i,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):i[f]=h,i}function b(i){var f=d(i,"string");return t(f)==="symbol"?f:String(f)}function d(i,f){if(t(i)!=="object"||i===null)return i;var h=i[Symbol.toPrimitive];if(h!==void 0){var p=h.call(i,f||"default");if(t(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(i)}var g=e(35431);function a(i,f,h){var p=f.reduce(function(E,T){return E[T]=i[T],delete i[T],E},{}),P=Object.keys(i).reduce(function(E,T){return E[T]=i[T],delete i[T],E},{});return Object.assign(i,p,v({},h,P)),i}function s(i,f,h){return i[h]=f.reduce(function(p,P){return p[P]=i[P],delete i[P],p},{}),i}A.exports=g(function(i){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h="metadata";f.key&&(h=f.key);var p=[];return!f.fillExcept&&!f.fillWith&&(p.push("level"),p.push("message")),f.fillExcept&&(p=f.fillExcept),p.length>0?a(i,p,h):f.fillWith?s(i,f.fillWith,h):i})},72838:function(A,r,e){"use strict";var t=void 0,v=e(35431),b=e(57824);A.exports=v(function(d){var g=+new Date;return t.diff=g-(t.prevTime||g),t.prevTime=g,d.ms="+".concat(b(t.diff)),d})},98641:function(A,r,e){"use strict";function t(u){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t(u)}function v(u){return a(u)||g(u)||d(u)||b()}function b(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(u,n){if(u){if(typeof u=="string")return s(u,n);var c=Object.prototype.toString.call(u).slice(8,-1);if(c==="Object"&&u.constructor&&(c=u.constructor.name),c==="Map"||c==="Set")return Array.from(u);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return s(u,n)}}function g(u){if(typeof Symbol!="undefined"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}function a(u){if(Array.isArray(u))return s(u)}function s(u,n){(n==null||n>u.length)&&(n=u.length);for(var c=0,m=new Array(n);c0&&arguments[0]!==void 0?arguments[0]:{levels:T.npm.levels};i(this,u),this.paddings=u.paddingForLevels(n.levels,n.filler),this.options=n}return h(u,[{key:"transform",value:function(c,m){return c.message="".concat(this.paddings[c[O]]).concat(c.message),c[o]&&(c[o]="".concat(this.paddings[c[O]]).concat(c[o])),c}}],[{key:"getLongestLevel",value:function(c){var m=Object.keys(c).map(function(S){return S.length});return Math.max.apply(Math,v(m))}},{key:"paddingForLevel",value:function(c,m,S){var W=S+1-c.length,V=Math.floor(W/m.length),K="".concat(m).concat(m.repeat(V));return K.slice(0,W)}},{key:"paddingForLevels",value:function(c){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",S=u.getLongestLevel(c);return Object.keys(c).reduce(function(W,V){return W[V]=u.paddingForLevel(V,m,S),W},{})}}]),u}();A.exports=function(u){return new y(u)},A.exports.Padder=A.exports.Format=y},85799:function(A,r,e){"use strict";var t=e(89539).inspect,v=e(35431),b=e(15396),d=b.LEVEL,g=b.MESSAGE,a=b.SPLAT;A.exports=v(function(s){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=Object.assign({},s);return delete f[d],delete f[g],delete f[a],s[g]=t(f,!1,i.depth||null,i.colorize),s})},67213:function(A,r,e){"use strict";function t(h){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},t(h)}function v(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function b(h,p){for(var P=0;Pn.length)&&(c=n.length);for(var m=0,S=new Array(c);m1?W.splice(0):W,Q=K.length;if(Q)for(var I=0;I1&&arguments[1]!==void 0?arguments[1]:{};return d.format&&(b.timestamp=typeof d.format=="function"?d.format():t.format(new Date,d.format)),b.timestamp||(b.timestamp=new Date().toISOString()),d.alias&&(b[d.alias]=b.timestamp),b})},98189:function(A,r,e){"use strict";var t=e(33645),v=e(35431),b=e(15396),d=b.MESSAGE;A.exports=v(function(g,a){return a.level!==!1&&(g.level=t.strip(g.level)),a.message!==!1&&(g.message=t.strip(String(g.message))),a.raw!==!1&&g[d]&&(g[d]=t.strip(String(g[d]))),g})},99425:function(A,r,e){"use strict";var t=e(72004).default,v=e(12444).default,b=e(25098).default,d=e(31996).default,g=e(26037).default,a=e(12665).default,s=function(i){d(h,i);var f=g(h);function h(p){var P;return v(this,h),P=f.call(this,`Format functions must be synchronous taking a two arguments: (info, opts) -Found: `.concat(p.toString().split(` -`)[0],` -`)),Error.captureStackTrace(b(P),h),P}return t(h)}(a(Error));A.exports=function(i){if(i.length>2)throw new s(i);function f(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=p}f.prototype.transform=i;function h(p){return new f(p)}return h.Format=f,h}},51126:function(A,r,e){"use strict";var t=e(99425),v=e(15396),b=v.MESSAGE,d=e(87668);function g(a,s){return typeof s=="bigint"?s.toString():s}A.exports=t(function(a,s){var i=d.configure(s);return a[b]=i(a,s.replacer||g,s.space),a})},71443:function(A,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=s;var t=e(2931),v=a(t),b=e(53722),d=a(b),g=e(55106);function a(h){return h&&h.__esModule?h:{default:h}}function s(h){return(0,g.isAsync)(h)?function(){for(var p=arguments.length,P=new Array(p),E=0;E=a||p||f||(p=!0,g.next().then(function(y){var u=y.value,n=y.done;if(!(h||f)){if(p=!1,n){f=!0,P<=0&&i(null);return}P++,s(u,E,O),E++,T()}}).catch(o))}function O(y,u){if(P-=1,!h){if(y)return o(y);if(y===!1){f=!0,h=!0;return}if(u===v.default||f&&P<=0)return f=!0,i(null);T()}}function o(y){h||(p=!1,f=!0,i(y))}T()}A.exports=r.default},47197:function(A,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=e;function e(t,v){if(v||(v=t.length),!v)throw new Error("arity is undefined");function b(){for(var d=this,g=arguments.length,a=new Array(g),s=0;s1?p-1:0),E=1;E1?P:P[0])},t.apply(d,a)})}return b}A.exports=r.default},25848:function(A,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var e={};r.default=e,A.exports=r.default},62867:function(A,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=e(46890),v=P(t),b=e(32884),d=P(b),g=e(49743),a=P(g),s=e(55106),i=e(40174),f=P(i),h=e(25848),p=P(h);function P(E){return E&&E.__esModule?E:{default:E}}r.default=function(E){return function(T,O,o){if(o=(0,v.default)(o),E<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!T)return o(null);if((0,s.isAsyncGenerator)(T))return(0,f.default)(T,E,O,o);if((0,s.isAsyncIterable)(T))return(0,f.default)(T[Symbol.asyncIterator](),E,O,o);var y=(0,d.default)(T),u=!1,n=!1,c=0,m=!1;function S(V,K){if(!n)if(c-=1,V)u=!0,o(V);else if(V===!1)u=!0,n=!0;else{if(K===p.default||u&&c<=0)return u=!0,o(null);m||W()}}function W(){for(m=!0;c=0&&t.length%1===0}A.exports=r.default},32884:function(A,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=f;var t=e(12512),v=g(t),b=e(17640),d=g(b);function g(h){return h&&h.__esModule?h:{default:h}}function a(h){var p=-1,P=h.length;return function(){return++p1?y-1:0),n=1;n1?p-1:0),E=1;E{const{componentCls:y,colorText:u,fontSize:n,lineHeight:c,fontFamily:m}=o;return{[y]:{color:u,fontSize:n,lineHeight:c,fontFamily:m}}},p=()=>({});var P=(0,f.I$)("App",h,p);const E=()=>t.useContext(i.Z),T=o=>{const{prefixCls:y,children:u,className:n,rootClassName:c,message:m,notification:S,style:W,component:V="div"}=o,{getPrefixCls:K}=(0,t.useContext)(d.E_),Q=K("app",y),[I,F,R]=P(Q),Z=b()(F,Q,n,c,R),U=(0,t.useContext)(i.J),H=t.useMemo(()=>({message:Object.assign(Object.assign({},U.message),m),notification:Object.assign(Object.assign({},U.notification),S)}),[m,S,U.message,U.notification]),[Y,M]=(0,g.Z)(H.message),[z,_]=(0,s.Z)(H.notification),[D,N]=(0,a.Z)(),G=t.useMemo(()=>({message:Y,notification:z,modal:D}),[Y,z,D]),$=V===!1?t.Fragment:V,te={className:Z,style:W};return I(t.createElement(i.Z.Provider,{value:G},t.createElement(i.J.Provider,{value:H},t.createElement($,Object.assign({},V===!1?void 0:te),N,M,_,u))))};T.useApp=E;var O=T},48583:function(A,r,e){"use strict";var t=e(28162)();function v(I,F){if(I===F)return 0;for(var R=I.length,Z=F.length,U=0,H=Math.min(R,Z);U=0){var M=U.indexOf(` -`,Y+1);U=U.substring(M+1)}this.stack=U}}},d.inherits(h.AssertionError,Error);function E(I,F){return typeof I=="string"?I.length=0;_--)if(Y[_]!==M[_])return!1;for(_=Y.length-1;_>=0;_--)if(z=Y[_],!u(I[z],F[z],R,Z))return!1;return!0}h.notDeepEqual=function(F,R,Z){u(F,R,!1)&&o(F,R,Z,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=m;function m(I,F,R){u(I,F,!0)&&o(I,F,R,"notDeepStrictEqual",m)}h.strictEqual=function(F,R,Z){F!==R&&o(F,R,Z,"===",h.strictEqual)},h.notStrictEqual=function(F,R,Z){F===R&&o(F,R,Z,"!==",h.notStrictEqual)};function S(I,F){if(!I||!F)return!1;if(Object.prototype.toString.call(F)=="[object RegExp]")return F.test(I);try{if(I instanceof F)return!0}catch(R){}return Error.isPrototypeOf(F)?!1:F.call({},I)===!0}function W(I){var F;try{I()}catch(R){F=R}return F}function V(I,F,R,Z){var U;if(typeof F!="function")throw new TypeError('"block" argument must be a function');typeof R=="string"&&(Z=R,R=null),U=W(F),Z=(R&&R.name?" ("+R.name+").":".")+(Z?" "+Z:"."),I&&!U&&o(U,R,"Missing expected exception"+Z);var H=typeof Z=="string",Y=!I&&d.isError(U),M=!I&&U&&!R;if((Y&&H&&S(U,R)||M)&&o(U,R,"Got unwanted exception"+Z),I&&U&&R&&!S(U,R)||!I&&U)throw U}h.throws=function(I,F,R){V(!0,I,F,R)},h.doesNotThrow=function(I,F,R){V(!1,I,F,R)},h.ifError=function(I){if(I)throw I};function K(I,F){I||o(I,!0,F,"==",K)}h.strict=t(K,h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var Q=Object.keys||function(I){var F=[];for(var R in I)g.call(I,R)&&F.push(R);return F}},16076:function(A){typeof Object.create=="function"?A.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:A.exports=function(e,t){e.super_=t;var v=function(){};v.prototype=t.prototype,e.prototype=new v,e.prototype.constructor=e}},52014:function(A){A.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}},30069:function(A,r,e){var t=e(34155),v=/%[sdj%]/g;r.format=function(M){if(!c(M)){for(var z=[],_=0;_=N)return te;switch(te){case"%s":return String(D[_++]);case"%d":return Number(D[_++]);case"%j":try{return JSON.stringify(D[_++])}catch(ee){return"[Circular]"}default:return te}}),$=D[_];_=3&&(_.depth=arguments[2]),arguments.length>=4&&(_.colors=arguments[3]),o(z)?_.showHidden=z:z&&r._extend(_,z),S(_.showHidden)&&(_.showHidden=!1),S(_.depth)&&(_.depth=2),S(_.colors)&&(_.colors=!1),S(_.customInspect)&&(_.customInspect=!0),_.colors&&(_.stylize=a),f(_,M,_.depth)}r.inspect=g,g.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function a(M,z){var _=g.styles[z];return _?"\x1B["+g.colors[_][0]+"m"+M+"\x1B["+g.colors[_][1]+"m":M}function s(M,z){return M}function i(M){var z={};return M.forEach(function(_,D){z[_]=!0}),z}function f(M,z,_){if(M.customInspect&&z&&I(z.inspect)&&z.inspect!==r.inspect&&!(z.constructor&&z.constructor.prototype===z)){var D=z.inspect(_,M);return c(D)||(D=f(M,D,_)),D}var N=h(M,z);if(N)return N;var G=Object.keys(z),$=i(G);if(M.showHidden&&(G=Object.getOwnPropertyNames(z)),Q(z)&&(G.indexOf("message")>=0||G.indexOf("description")>=0))return p(z);if(G.length===0){if(I(z)){var te=z.name?": "+z.name:"";return M.stylize("[Function"+te+"]","special")}if(W(z))return M.stylize(RegExp.prototype.toString.call(z),"regexp");if(K(z))return M.stylize(Date.prototype.toString.call(z),"date");if(Q(z))return p(z)}var ee="",fe=!1,le=["{","}"];if(O(z)&&(fe=!0,le=["[","]"]),I(z)){var X=z.name?": "+z.name:"";ee=" [Function"+X+"]"}if(W(z)&&(ee=" "+RegExp.prototype.toString.call(z)),K(z)&&(ee=" "+Date.prototype.toUTCString.call(z)),Q(z)&&(ee=" "+p(z)),G.length===0&&(!fe||z.length==0))return le[0]+ee+le[1];if(_<0)return W(z)?M.stylize(RegExp.prototype.toString.call(z),"regexp"):M.stylize("[Object]","special");M.seen.push(z);var w;return fe?w=P(M,z,_,$,G):w=G.map(function(x){return E(M,z,_,$,x,fe)}),M.seen.pop(),T(w,ee,le)}function h(M,z){if(S(z))return M.stylize("undefined","undefined");if(c(z)){var _="'"+JSON.stringify(z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return M.stylize(_,"string")}if(n(z))return M.stylize(""+z,"number");if(o(z))return M.stylize(""+z,"boolean");if(y(z))return M.stylize("null","null")}function p(M){return"["+Error.prototype.toString.call(M)+"]"}function P(M,z,_,D,N){for(var G=[],$=0,te=z.length;$-1&&(G?te=te.split(` -`).map(function(fe){return" "+fe}).join(` -`).substr(2):te=` -`+te.split(` -`).map(function(fe){return" "+fe}).join(` -`))):te=M.stylize("[Circular]","special")),S($)){if(G&&N.match(/^\d+$/))return te;$=JSON.stringify(""+N),$.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?($=$.substr(1,$.length-2),$=M.stylize($,"name")):($=$.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),$=M.stylize($,"string"))}return $+": "+te}function T(M,z,_){var D=0,N=M.reduce(function(G,$){return D++,$.indexOf(` -`)>=0&&D++,G+$.replace(/\u001b\[\d\d?m/g,"").length+1},0);return N>60?_[0]+(z===""?"":z+` - `)+" "+M.join(`, - `)+" "+_[1]:_[0]+z+" "+M.join(", ")+" "+_[1]}function O(M){return Array.isArray(M)}r.isArray=O;function o(M){return typeof M=="boolean"}r.isBoolean=o;function y(M){return M===null}r.isNull=y;function u(M){return M==null}r.isNullOrUndefined=u;function n(M){return typeof M=="number"}r.isNumber=n;function c(M){return typeof M=="string"}r.isString=c;function m(M){return typeof M=="symbol"}r.isSymbol=m;function S(M){return M===void 0}r.isUndefined=S;function W(M){return V(M)&&R(M)==="[object RegExp]"}r.isRegExp=W;function V(M){return typeof M=="object"&&M!==null}r.isObject=V;function K(M){return V(M)&&R(M)==="[object Date]"}r.isDate=K;function Q(M){return V(M)&&(R(M)==="[object Error]"||M instanceof Error)}r.isError=Q;function I(M){return typeof M=="function"}r.isFunction=I;function F(M){return M===null||typeof M=="boolean"||typeof M=="number"||typeof M=="string"||typeof M=="symbol"||typeof M=="undefined"}r.isPrimitive=F,r.isBuffer=e(52014);function R(M){return Object.prototype.toString.call(M)}function Z(M){return M<10?"0"+M.toString(10):M.toString(10)}var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function H(){var M=new Date,z=[Z(M.getHours()),Z(M.getMinutes()),Z(M.getSeconds())].join(":");return[M.getDate(),U[M.getMonth()],z].join(" ")}r.log=function(){console.log("%s - %s",H(),r.format.apply(r,arguments))},r.inherits=e(16076),r._extend=function(M,z){if(!z||!V(z))return M;for(var _=Object.keys(z),D=_.length;D--;)M[_[D]]=z[_[D]];return M};function Y(M,z){return Object.prototype.hasOwnProperty.call(M,z)}},74505:function(A,r,e){"use strict";var t=e(48764).Buffer,v=e(34155),b=e(48583),d=e(54860),g=e(42233),a=e(23001),s=e(77162);for(var i in s)r[i]=s[i];r.NONE=0,r.DEFLATE=1,r.INFLATE=2,r.GZIP=3,r.GUNZIP=4,r.DEFLATERAW=5,r.INFLATERAW=6,r.UNZIP=7;var f=31,h=139;function p(P){if(typeof P!="number"||Pr.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=P,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}p.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,b(this.init_done,"close before init"),b(this.mode<=r.UNZIP),this.mode===r.DEFLATE||this.mode===r.GZIP||this.mode===r.DEFLATERAW?g.deflateEnd(this.strm):(this.mode===r.INFLATE||this.mode===r.GUNZIP||this.mode===r.INFLATERAW||this.mode===r.UNZIP)&&a.inflateEnd(this.strm),this.mode=r.NONE,this.dictionary=null},p.prototype.write=function(P,E,T,O,o,y,u){return this._write(!0,P,E,T,O,o,y,u)},p.prototype.writeSync=function(P,E,T,O,o,y,u){return this._write(!1,P,E,T,O,o,y,u)},p.prototype._write=function(P,E,T,O,o,y,u,n){if(b.equal(arguments.length,8),b(this.init_done,"write before init"),b(this.mode!==r.NONE,"already finalized"),b.equal(!1,this.write_in_progress,"write already in progress"),b.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,b.equal(!1,E===void 0,"must provide flush value"),this.write_in_progress=!0,E!==r.Z_NO_FLUSH&&E!==r.Z_PARTIAL_FLUSH&&E!==r.Z_SYNC_FLUSH&&E!==r.Z_FULL_FLUSH&&E!==r.Z_FINISH&&E!==r.Z_BLOCK)throw new Error("Invalid flush value");if(T==null&&(T=t.alloc(0),o=0,O=0),this.strm.avail_in=o,this.strm.input=T,this.strm.next_in=O,this.strm.avail_out=n,this.strm.output=y,this.strm.next_out=u,this.flush=E,!P)return this._process(),this._checkError()?this._afterSync():void 0;var c=this;return v.nextTick(function(){c._process(),c._after()}),this},p.prototype._afterSync=function(){var P=this.strm.avail_out,E=this.strm.avail_in;return this.write_in_progress=!1,[E,P]},p.prototype._process=function(){var P=null;switch(this.mode){case r.DEFLATE:case r.GZIP:case r.DEFLATERAW:this.err=g.deflate(this.strm,this.flush);break;case r.UNZIP:switch(this.strm.avail_in>0&&(P=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(P===null)break;if(this.strm.input[P]===f){if(this.gzip_id_bytes_read=1,P++,this.strm.avail_in===1)break}else{this.mode=r.INFLATE;break}case 1:if(P===null)break;this.strm.input[P]===h?(this.gzip_id_bytes_read=2,this.mode=r.GUNZIP):this.mode=r.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case r.INFLATE:case r.GUNZIP:case r.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===r.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===r.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===r.Z_DATA_ERROR&&(this.err=r.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===r.GUNZIP&&this.err===r.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},p.prototype._checkError=function(){switch(this.err){case r.Z_OK:case r.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===r.Z_FINISH)return this._error("unexpected end of file"),!1;break;case r.Z_STREAM_END:break;case r.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},p.prototype._after=function(){if(this._checkError()){var P=this.strm.avail_out,E=this.strm.avail_in;this.write_in_progress=!1,this.callback(E,P),this.pending_close&&this.close()}},p.prototype._error=function(P){this.strm.msg&&(P=this.strm.msg),this.onerror(P,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},p.prototype.init=function(P,E,T,O,o){b(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),b(P>=8&&P<=15,"invalid windowBits"),b(E>=-1&&E<=9,"invalid compression level"),b(T>=1&&T<=9,"invalid memlevel"),b(O===r.Z_FILTERED||O===r.Z_HUFFMAN_ONLY||O===r.Z_RLE||O===r.Z_FIXED||O===r.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(E,P,T,O,o),this._setDictionary()},p.prototype.params=function(){throw new Error("deflateParams Not supported")},p.prototype.reset=function(){this._reset(),this._setDictionary()},p.prototype._init=function(P,E,T,O,o){switch(this.level=P,this.windowBits=E,this.memLevel=T,this.strategy=O,this.flush=r.Z_NO_FLUSH,this.err=r.Z_OK,(this.mode===r.GZIP||this.mode===r.GUNZIP)&&(this.windowBits+=16),this.mode===r.UNZIP&&(this.windowBits+=32),(this.mode===r.DEFLATERAW||this.mode===r.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new d,this.mode){case r.DEFLATE:case r.GZIP:case r.DEFLATERAW:this.err=g.deflateInit2(this.strm,this.level,r.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case r.INFLATE:case r.GUNZIP:case r.INFLATERAW:case r.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==r.Z_OK&&this._error("Init error"),this.dictionary=o,this.write_in_progress=!1,this.init_done=!0},p.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=r.Z_OK,this.mode){case r.DEFLATE:case r.DEFLATERAW:this.err=g.deflateSetDictionary(this.strm,this.dictionary);break;default:break}this.err!==r.Z_OK&&this._error("Failed to set dictionary")}},p.prototype._reset=function(){switch(this.err=r.Z_OK,this.mode){case r.DEFLATE:case r.DEFLATERAW:case r.GZIP:this.err=g.deflateReset(this.strm);break;case r.INFLATE:case r.INFLATERAW:case r.GUNZIP:this.err=a.inflateReset(this.strm);break;default:break}this.err!==r.Z_OK&&this._error("Failed to reset stream")},r.Zlib=p},42635:function(A,r,e){"use strict";var t=e(34155),v=e(48764).Buffer,b=e(42830).Transform,d=e(74505),g=e(89539),a=e(48583).ok,s=e(48764).kMaxLength,i="Cannot create final Buffer. It would be larger than 0x"+s.toString(16)+" bytes";d.Z_MIN_WINDOWBITS=8,d.Z_MAX_WINDOWBITS=15,d.Z_DEFAULT_WINDOWBITS=15,d.Z_MIN_CHUNK=64,d.Z_MAX_CHUNK=1/0,d.Z_DEFAULT_CHUNK=16*1024,d.Z_MIN_MEMLEVEL=1,d.Z_MAX_MEMLEVEL=9,d.Z_DEFAULT_MEMLEVEL=8,d.Z_MIN_LEVEL=-1,d.Z_MAX_LEVEL=9,d.Z_DEFAULT_LEVEL=d.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(d),h=0;h=s?N=new RangeError(i):D=v.concat(H,Y),H=[],R.close(),U(N,D)}}function y(R,Z){if(typeof Z=="string"&&(Z=v.from(Z)),!v.isBuffer(Z))throw new TypeError("Not a string or buffer");var U=R._finishFlushFlag;return R._processChunk(Z,U)}function u(R){if(!(this instanceof u))return new u(R);Q.call(this,R,d.DEFLATE)}function n(R){if(!(this instanceof n))return new n(R);Q.call(this,R,d.INFLATE)}function c(R){if(!(this instanceof c))return new c(R);Q.call(this,R,d.GZIP)}function m(R){if(!(this instanceof m))return new m(R);Q.call(this,R,d.GUNZIP)}function S(R){if(!(this instanceof S))return new S(R);Q.call(this,R,d.DEFLATERAW)}function W(R){if(!(this instanceof W))return new W(R);Q.call(this,R,d.INFLATERAW)}function V(R){if(!(this instanceof V))return new V(R);Q.call(this,R,d.UNZIP)}function K(R){return R===d.Z_NO_FLUSH||R===d.Z_PARTIAL_FLUSH||R===d.Z_SYNC_FLUSH||R===d.Z_FULL_FLUSH||R===d.Z_FINISH||R===d.Z_BLOCK}function Q(R,Z){var U=this;if(this._opts=R=R||{},this._chunkSize=R.chunkSize||r.Z_DEFAULT_CHUNK,b.call(this,R),R.flush&&!K(R.flush))throw new Error("Invalid flush flag: "+R.flush);if(R.finishFlush&&!K(R.finishFlush))throw new Error("Invalid flush flag: "+R.finishFlush);if(this._flushFlag=R.flush||d.Z_NO_FLUSH,this._finishFlushFlag=typeof R.finishFlush!="undefined"?R.finishFlush:d.Z_FINISH,R.chunkSize&&(R.chunkSizer.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+R.chunkSize);if(R.windowBits&&(R.windowBitsr.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+R.windowBits);if(R.level&&(R.levelr.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+R.level);if(R.memLevel&&(R.memLevelr.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+R.memLevel);if(R.strategy&&R.strategy!=r.Z_FILTERED&&R.strategy!=r.Z_HUFFMAN_ONLY&&R.strategy!=r.Z_RLE&&R.strategy!=r.Z_FIXED&&R.strategy!=r.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+R.strategy);if(R.dictionary&&!v.isBuffer(R.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new d.Zlib(Z);var H=this;this._hadError=!1,this._handle.onerror=function(z,_){I(H),H._hadError=!0;var D=new Error(z);D.errno=_,D.code=r.codes[_],H.emit("error",D)};var Y=r.Z_DEFAULT_COMPRESSION;typeof R.level=="number"&&(Y=R.level);var M=r.Z_DEFAULT_STRATEGY;typeof R.strategy=="number"&&(M=R.strategy),this._handle.init(R.windowBits||r.Z_DEFAULT_WINDOWBITS,Y,R.memLevel||r.Z_DEFAULT_MEMLEVEL,M,R.dictionary),this._buffer=v.allocUnsafe(this._chunkSize),this._offset=0,this._level=Y,this._strategy=M,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!U._handle},configurable:!0,enumerable:!0})}g.inherits(Q,b),Q.prototype.params=function(R,Z,U){if(Rr.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+R);if(Z!=r.Z_FILTERED&&Z!=r.Z_HUFFMAN_ONLY&&Z!=r.Z_RLE&&Z!=r.Z_FIXED&&Z!=r.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+Z);if(this._level!==R||this._strategy!==Z){var H=this;this.flush(d.Z_SYNC_FLUSH,function(){a(H._handle,"zlib binding closed"),H._handle.params(R,Z),H._hadError||(H._level=R,H._strategy=Z,U&&U())})}else t.nextTick(U)},Q.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},Q.prototype._flush=function(R){this._transform(v.alloc(0),"",R)},Q.prototype.flush=function(R,Z){var U=this,H=this._writableState;(typeof R=="function"||R===void 0&&!Z)&&(Z=R,R=d.Z_FULL_FLUSH),H.ended?Z&&t.nextTick(Z):H.ending?Z&&this.once("end",Z):H.needDrain?Z&&this.once("drain",function(){return U.flush(R,Z)}):(this._flushFlag=R,this.write(v.alloc(0),"",Z))},Q.prototype.close=function(R){I(this,R),t.nextTick(F,this)};function I(R,Z){Z&&t.nextTick(Z),R._handle&&(R._handle.close(),R._handle=null)}function F(R){R.emit("close")}Q.prototype._transform=function(R,Z,U){var H,Y=this._writableState,M=Y.ending||Y.ended,z=M&&(!R||Y.length===R.length);if(R!==null&&!v.isBuffer(R))return U(new Error("invalid input"));if(!this._handle)return U(new Error("zlib binding closed"));z?H=this._finishFlushFlag:(H=this._flushFlag,R.length>=Y.length&&(this._flushFlag=this._opts.flush||d.Z_NO_FLUSH)),this._processChunk(R,H,U)},Q.prototype._processChunk=function(R,Z,U){var H=R&&R.length,Y=this._chunkSize-this._offset,M=0,z=this,_=typeof U=="function";if(!_){var D=[],N=0,G;this.on("error",function(le){G=le}),a(this._handle,"zlib binding closed");do var $=this._handle.writeSync(Z,R,M,H,this._buffer,this._offset,Y);while(!this._hadError&&fe($[0],$[1]));if(this._hadError)throw G;if(N>=s)throw I(this),new RangeError(i);var te=v.concat(D,N);return I(this),te}a(this._handle,"zlib binding closed");var ee=this._handle.write(Z,R,M,H,this._buffer,this._offset,Y);ee.buffer=R,ee.callback=fe;function fe(le,X){if(this&&(this.buffer=null,this.callback=null),!z._hadError){var w=Y-X;if(a(w>=0,"have should not go down"),w>0){var x=z._buffer.slice(z._offset,z._offset+w);z._offset+=w,_?z.push(x):(D.push(x),N+=x.length)}if((X===0||z._offset>=z._chunkSize)&&(Y=z._chunkSize,z._offset=0,z._buffer=v.allocUnsafe(z._chunkSize)),X===0){if(M+=H-le,H=le,!_)return!0;var re=z._handle.write(Z,R,M,H,z._buffer,z._offset,z._chunkSize);re.callback=fe,re.buffer=R;return}if(!_)return!1;U()}}},g.inherits(u,Q),g.inherits(n,Q),g.inherits(c,Q),g.inherits(m,Q),g.inherits(S,Q),g.inherits(W,Q),g.inherits(V,Q)},6907:function(A,r){"use strict";var e=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function t(d,g){return Object.prototype.hasOwnProperty.call(d,g)}r.assign=function(d){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var a=g.shift();if(a){if(typeof a!="object")throw new TypeError(a+"must be non-object");for(var s in a)t(a,s)&&(d[s]=a[s])}}return d},r.shrinkBuf=function(d,g){return d.length===g?d:d.subarray?d.subarray(0,g):(d.length=g,d)};var v={arraySet:function(d,g,a,s,i){if(g.subarray&&d.subarray){d.set(g.subarray(a,a+s),i);return}for(var f=0;f>>16&65535|0,a=0;v!==0;){a=v>2e3?2e3:v,v-=a;do d=d+t[b++]|0,g=g+d|0;while(--a);d%=65521,g%=65521}return d|g<<16|0}A.exports=r},77162:function(A){"use strict";A.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},13415:function(A){"use strict";function r(){for(var v,b=[],d=0;d<256;d++){v=d;for(var g=0;g<8;g++)v=v&1?3988292384^v>>>1:v>>>1;b[d]=v}return b}var e=r();function t(v,b,d,g){var a=e,s=g+d;v^=-1;for(var i=g;i>>8^a[(v^b[i])&255];return v^-1}A.exports=t},42233:function(A,r,e){"use strict";var t=e(6907),v=e(81339),b=e(47575),d=e(13415),g=e(89364),a=0,s=1,i=3,f=4,h=5,p=0,P=1,E=-2,T=-3,O=-5,o=-1,y=1,u=2,n=3,c=4,m=0,S=2,W=8,V=9,K=15,Q=8,I=29,F=256,R=F+1+I,Z=30,U=19,H=2*R+1,Y=15,M=3,z=258,_=z+M+1,D=32,N=42,G=69,$=73,te=91,ee=103,fe=113,le=666,X=1,w=2,x=3,re=4,ie=3;function C(l,oe){return l.msg=g[oe],oe}function k(l){return(l<<1)-(l>4?9:0)}function ne(l){for(var oe=l.length;--oe>=0;)l[oe]=0}function he(l){var oe=l.state,ue=oe.pending;ue>l.avail_out&&(ue=l.avail_out),ue!==0&&(t.arraySet(l.output,oe.pending_buf,oe.pending_out,ue,l.next_out),l.next_out+=ue,oe.pending_out+=ue,l.total_out+=ue,l.avail_out-=ue,oe.pending-=ue,oe.pending===0&&(oe.pending_out=0))}function we(l,oe){v._tr_flush_block(l,l.block_start>=0?l.block_start:-1,l.strstart-l.block_start,oe),l.block_start=l.strstart,he(l.strm)}function ve(l,oe){l.pending_buf[l.pending++]=oe}function Ee(l,oe){l.pending_buf[l.pending++]=oe>>>8&255,l.pending_buf[l.pending++]=oe&255}function Le(l,oe,ue,L){var J=l.avail_in;return J>L&&(J=L),J===0?0:(l.avail_in-=J,t.arraySet(oe,l.input,l.next_in,J,ue),l.state.wrap===1?l.adler=b(l.adler,oe,J,ue):l.state.wrap===2&&(l.adler=d(l.adler,oe,J,ue)),l.next_in+=J,l.total_in+=J,J)}function Ce(l,oe){var ue=l.max_chain_length,L=l.strstart,J,ae,be=l.prev_length,ye=l.nice_match,me=l.strstart>l.w_size-_?l.strstart-(l.w_size-_):0,Se=l.window,He=l.w_mask,Re=l.prev,Oe=l.strstart+z,Me=Se[L+be-1],Fe=Se[L+be];l.prev_length>=l.good_match&&(ue>>=2),ye>l.lookahead&&(ye=l.lookahead);do if(J=oe,!(Se[J+be]!==Fe||Se[J+be-1]!==Me||Se[J]!==Se[L]||Se[++J]!==Se[L+1])){L+=2,J++;do;while(Se[++L]===Se[++J]&&Se[++L]===Se[++J]&&Se[++L]===Se[++J]&&Se[++L]===Se[++J]&&Se[++L]===Se[++J]&&Se[++L]===Se[++J]&&Se[++L]===Se[++J]&&Se[++L]===Se[++J]&&Lbe){if(l.match_start=oe,be=ae,ae>=ye)break;Me=Se[L+be-1],Fe=Se[L+be]}}while((oe=Re[oe&He])>me&&--ue!==0);return be<=l.lookahead?be:l.lookahead}function je(l){var oe=l.w_size,ue,L,J,ae,be;do{if(ae=l.window_size-l.lookahead-l.strstart,l.strstart>=oe+(oe-_)){t.arraySet(l.window,l.window,oe,oe,0),l.match_start-=oe,l.strstart-=oe,l.block_start-=oe,L=l.hash_size,ue=L;do J=l.head[--ue],l.head[ue]=J>=oe?J-oe:0;while(--L);L=oe,ue=L;do J=l.prev[--ue],l.prev[ue]=J>=oe?J-oe:0;while(--L);ae+=oe}if(l.strm.avail_in===0)break;if(L=Le(l.strm,l.window,l.strstart+l.lookahead,ae),l.lookahead+=L,l.lookahead+l.insert>=M)for(be=l.strstart-l.insert,l.ins_h=l.window[be],l.ins_h=(l.ins_h<l.pending_buf_size-5&&(ue=l.pending_buf_size-5);;){if(l.lookahead<=1){if(je(l),l.lookahead===0&&oe===a)return X;if(l.lookahead===0)break}l.strstart+=l.lookahead,l.lookahead=0;var L=l.block_start+ue;if((l.strstart===0||l.strstart>=L)&&(l.lookahead=l.strstart-L,l.strstart=L,we(l,!1),l.strm.avail_out===0)||l.strstart-l.block_start>=l.w_size-_&&(we(l,!1),l.strm.avail_out===0))return X}return l.insert=0,oe===f?(we(l,!0),l.strm.avail_out===0?x:re):(l.strstart>l.block_start&&(we(l,!1),l.strm.avail_out===0),X)}function ke(l,oe){for(var ue,L;;){if(l.lookahead<_){if(je(l),l.lookahead<_&&oe===a)return X;if(l.lookahead===0)break}if(ue=0,l.lookahead>=M&&(l.ins_h=(l.ins_h<=M)if(L=v._tr_tally(l,l.strstart-l.match_start,l.match_length-M),l.lookahead-=l.match_length,l.match_length<=l.max_lazy_match&&l.lookahead>=M){l.match_length--;do l.strstart++,l.ins_h=(l.ins_h<=M&&(l.ins_h=(l.ins_h<4096)&&(l.match_length=M-1)),l.prev_length>=M&&l.match_length<=l.prev_length){J=l.strstart+l.lookahead-M,L=v._tr_tally(l,l.strstart-1-l.prev_match,l.prev_length-M),l.lookahead-=l.prev_length-1,l.prev_length-=2;do++l.strstart<=J&&(l.ins_h=(l.ins_h<=M&&l.strstart>0&&(J=l.strstart-1,L=be[J],L===be[++J]&&L===be[++J]&&L===be[++J])){ae=l.strstart+z;do;while(L===be[++J]&&L===be[++J]&&L===be[++J]&&L===be[++J]&&L===be[++J]&&L===be[++J]&&L===be[++J]&&L===be[++J]&&Jl.lookahead&&(l.match_length=l.lookahead)}if(l.match_length>=M?(ue=v._tr_tally(l,1,l.match_length-M),l.lookahead-=l.match_length,l.strstart+=l.match_length,l.match_length=0):(ue=v._tr_tally(l,0,l.window[l.strstart]),l.lookahead--,l.strstart++),ue&&(we(l,!1),l.strm.avail_out===0))return X}return l.insert=0,oe===f?(we(l,!0),l.strm.avail_out===0?x:re):l.last_lit&&(we(l,!1),l.strm.avail_out===0)?X:w}function xe(l,oe){for(var ue;;){if(l.lookahead===0&&(je(l),l.lookahead===0)){if(oe===a)return X;break}if(l.match_length=0,ue=v._tr_tally(l,0,l.window[l.strstart]),l.lookahead--,l.strstart++,ue&&(we(l,!1),l.strm.avail_out===0))return X}return l.insert=0,oe===f?(we(l,!0),l.strm.avail_out===0?x:re):l.last_lit&&(we(l,!1),l.strm.avail_out===0)?X:w}function Pe(l,oe,ue,L,J){this.good_length=l,this.max_lazy=oe,this.nice_length=ue,this.max_chain=L,this.func=J}var De;De=[new Pe(0,0,0,0,Ue),new Pe(4,4,8,4,ke),new Pe(4,5,16,8,ke),new Pe(4,6,32,32,ke),new Pe(4,4,16,16,Te),new Pe(8,16,32,32,Te),new Pe(8,16,128,128,Te),new Pe(8,32,128,256,Te),new Pe(32,128,258,1024,Te),new Pe(32,258,258,4096,Te)];function ze(l){l.window_size=2*l.w_size,ne(l.head),l.max_lazy_match=De[l.level].max_lazy,l.good_match=De[l.level].good_length,l.nice_match=De[l.level].nice_length,l.max_chain_length=De[l.level].max_chain,l.strstart=0,l.block_start=0,l.lookahead=0,l.insert=0,l.match_length=l.prev_length=M-1,l.match_available=0,l.ins_h=0}function B(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=W,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new t.Buf16(H*2),this.dyn_dtree=new t.Buf16((2*Z+1)*2),this.bl_tree=new t.Buf16((2*U+1)*2),ne(this.dyn_ltree),ne(this.dyn_dtree),ne(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16(Y+1),this.heap=new t.Buf16(2*R+1),ne(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(2*R+1),ne(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ce(l){var oe;return!l||!l.state?C(l,E):(l.total_in=l.total_out=0,l.data_type=S,oe=l.state,oe.pending=0,oe.pending_out=0,oe.wrap<0&&(oe.wrap=-oe.wrap),oe.status=oe.wrap?N:fe,l.adler=oe.wrap===2?0:1,oe.last_flush=a,v._tr_init(oe),p)}function pe(l){var oe=ce(l);return oe===p&&ze(l.state),oe}function ge(l,oe){return!l||!l.state||l.state.wrap!==2?E:(l.state.gzhead=oe,p)}function q(l,oe,ue,L,J,ae){if(!l)return E;var be=1;if(oe===o&&(oe=6),L<0?(be=0,L=-L):L>15&&(be=2,L-=16),J<1||J>V||ue!==W||L<8||L>15||oe<0||oe>9||ae<0||ae>c)return C(l,E);L===8&&(L=9);var ye=new B;return l.state=ye,ye.strm=l,ye.wrap=be,ye.gzhead=null,ye.w_bits=L,ye.w_size=1<h||oe<0)return l?C(l,E):E;if(L=l.state,!l.output||!l.input&&l.avail_in!==0||L.status===le&&oe!==f)return C(l,l.avail_out===0?O:E);if(L.strm=l,ue=L.last_flush,L.last_flush=oe,L.status===N)if(L.wrap===2)l.adler=0,ve(L,31),ve(L,139),ve(L,8),L.gzhead?(ve(L,(L.gzhead.text?1:0)+(L.gzhead.hcrc?2:0)+(L.gzhead.extra?4:0)+(L.gzhead.name?8:0)+(L.gzhead.comment?16:0)),ve(L,L.gzhead.time&255),ve(L,L.gzhead.time>>8&255),ve(L,L.gzhead.time>>16&255),ve(L,L.gzhead.time>>24&255),ve(L,L.level===9?2:L.strategy>=u||L.level<2?4:0),ve(L,L.gzhead.os&255),L.gzhead.extra&&L.gzhead.extra.length&&(ve(L,L.gzhead.extra.length&255),ve(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&(l.adler=d(l.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=G):(ve(L,0),ve(L,0),ve(L,0),ve(L,0),ve(L,0),ve(L,L.level===9?2:L.strategy>=u||L.level<2?4:0),ve(L,ie),L.status=fe);else{var be=W+(L.w_bits-8<<4)<<8,ye=-1;L.strategy>=u||L.level<2?ye=0:L.level<6?ye=1:L.level===6?ye=2:ye=3,be|=ye<<6,L.strstart!==0&&(be|=D),be+=31-be%31,L.status=fe,Ee(L,be),L.strstart!==0&&(Ee(L,l.adler>>>16),Ee(L,l.adler&65535)),l.adler=1}if(L.status===G)if(L.gzhead.extra){for(J=L.pending;L.gzindex<(L.gzhead.extra.length&65535)&&!(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>J&&(l.adler=d(l.adler,L.pending_buf,L.pending-J,J)),he(l),J=L.pending,L.pending===L.pending_buf_size));)ve(L,L.gzhead.extra[L.gzindex]&255),L.gzindex++;L.gzhead.hcrc&&L.pending>J&&(l.adler=d(l.adler,L.pending_buf,L.pending-J,J)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=$)}else L.status=$;if(L.status===$)if(L.gzhead.name){J=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>J&&(l.adler=d(l.adler,L.pending_buf,L.pending-J,J)),he(l),J=L.pending,L.pending===L.pending_buf_size)){ae=1;break}L.gzindexJ&&(l.adler=d(l.adler,L.pending_buf,L.pending-J,J)),ae===0&&(L.gzindex=0,L.status=te)}else L.status=te;if(L.status===te)if(L.gzhead.comment){J=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>J&&(l.adler=d(l.adler,L.pending_buf,L.pending-J,J)),he(l),J=L.pending,L.pending===L.pending_buf_size)){ae=1;break}L.gzindexJ&&(l.adler=d(l.adler,L.pending_buf,L.pending-J,J)),ae===0&&(L.status=ee)}else L.status=ee;if(L.status===ee&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&he(l),L.pending+2<=L.pending_buf_size&&(ve(L,l.adler&255),ve(L,l.adler>>8&255),l.adler=0,L.status=fe)):L.status=fe),L.pending!==0){if(he(l),l.avail_out===0)return L.last_flush=-1,p}else if(l.avail_in===0&&k(oe)<=k(ue)&&oe!==f)return C(l,O);if(L.status===le&&l.avail_in!==0)return C(l,O);if(l.avail_in!==0||L.lookahead!==0||oe!==a&&L.status!==le){var me=L.strategy===u?xe(L,oe):L.strategy===n?Ne(L,oe):De[L.level].func(L,oe);if((me===x||me===re)&&(L.status=le),me===X||me===x)return l.avail_out===0&&(L.last_flush=-1),p;if(me===w&&(oe===s?v._tr_align(L):oe!==h&&(v._tr_stored_block(L,0,0,!1),oe===i&&(ne(L.head),L.lookahead===0&&(L.strstart=0,L.block_start=0,L.insert=0))),he(l),l.avail_out===0))return L.last_flush=-1,p}return oe!==f?p:L.wrap<=0?P:(L.wrap===2?(ve(L,l.adler&255),ve(L,l.adler>>8&255),ve(L,l.adler>>16&255),ve(L,l.adler>>24&255),ve(L,l.total_in&255),ve(L,l.total_in>>8&255),ve(L,l.total_in>>16&255),ve(L,l.total_in>>24&255)):(Ee(L,l.adler>>>16),Ee(L,l.adler&65535)),he(l),L.wrap>0&&(L.wrap=-L.wrap),L.pending!==0?p:P)}function de(l){var oe;return!l||!l.state?E:(oe=l.state.status,oe!==N&&oe!==G&&oe!==$&&oe!==te&&oe!==ee&&oe!==fe&&oe!==le?C(l,E):(l.state=null,oe===fe?C(l,T):p))}function _e(l,oe){var ue=oe.length,L,J,ae,be,ye,me,Se,He;if(!l||!l.state||(L=l.state,be=L.wrap,be===2||be===1&&L.status!==N||L.lookahead))return E;for(be===1&&(l.adler=b(l.adler,oe,ue,0)),L.wrap=0,ue>=L.w_size&&(be===0&&(ne(L.head),L.strstart=0,L.block_start=0,L.insert=0),He=new t.Buf8(L.w_size),t.arraySet(He,oe,ue-L.w_size,L.w_size,0),oe=He,ue=L.w_size),ye=l.avail_in,me=l.next_in,Se=l.input,l.avail_in=ue,l.next_in=0,l.input=oe,je(L);L.lookahead>=M;){J=L.strstart,ae=L.lookahead-(M-1);do L.ins_h=(L.ins_h<>>24,O>>>=S,o-=S,S=m>>>16&255,S===0)F[s++]=m&65535;else if(S&16){W=m&65535,S&=15,S&&(o>>=S,o-=S),o<15&&(O+=I[g++]<>>24,O>>>=S,o-=S,S=m>>>16&255,S&16){if(V=m&65535,S&=15,oh){v.msg="invalid distance too far back",d.mode=r;break e}if(O>>>=S,o-=S,S=s-i,V>S){if(S=V-S,S>P&&d.sane){v.msg="invalid distance too far back",d.mode=r;break e}if(K=0,Q=T,E===0){if(K+=p-S,S2;)F[s++]=Q[K++],F[s++]=Q[K++],F[s++]=Q[K++],W-=3;W&&(F[s++]=Q[K++],W>1&&(F[s++]=Q[K++]))}else{K=s-V;do F[s++]=F[K++],F[s++]=F[K++],F[s++]=F[K++],W-=3;while(W>2);W&&(F[s++]=F[K++],W>1&&(F[s++]=F[K++]))}}else if(S&64){v.msg="invalid distance code",d.mode=r;break e}else{m=u[(m&65535)+(O&(1<>3,g-=W,o-=W<<3,O&=(1<>>24&255)+(q>>>8&65280)+((q&65280)<<8)+((q&255)<<24)}function Le(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ce(q){var se;return!q||!q.state?O:(se=q.state,q.total_in=q.total_out=se.total=0,q.msg="",se.wrap&&(q.adler=se.wrap&1),se.mode=c,se.last=0,se.havedict=0,se.dmax=32768,se.head=null,se.hold=0,se.bits=0,se.lencode=se.lendyn=new t.Buf32(ne),se.distcode=se.distdyn=new t.Buf32(he),se.sane=1,se.back=-1,P)}function je(q){var se;return!q||!q.state?O:(se=q.state,se.wsize=0,se.whave=0,se.wnext=0,Ce(q))}function Ue(q,se){var j,de;return!q||!q.state||(de=q.state,se<0?(j=0,se=-se):(j=(se>>4)+1,se<48&&(se&=15)),se&&(se<8||se>15))?O:(de.window!==null&&de.wbits!==se&&(de.window=null),de.wrap=j,de.wbits=se,je(q))}function ke(q,se){var j,de;return q?(de=new Le,q.state=de,de.window=null,j=Ue(q,se),j!==P&&(q.state=null),j):O}function Te(q){return ke(q,ve)}var Ne=!0,xe,Pe;function De(q){if(Ne){var se;for(xe=new t.Buf32(512),Pe=new t.Buf32(32),se=0;se<144;)q.lens[se++]=8;for(;se<256;)q.lens[se++]=9;for(;se<280;)q.lens[se++]=7;for(;se<288;)q.lens[se++]=8;for(g(s,q.lens,0,288,xe,0,q.work,{bits:9}),se=0;se<32;)q.lens[se++]=5;g(i,q.lens,0,32,Pe,0,q.work,{bits:5}),Ne=!1}q.lencode=xe,q.lenbits=9,q.distcode=Pe,q.distbits=5}function ze(q,se,j,de){var _e,l=q.state;return l.window===null&&(l.wsize=1<=l.wsize?(t.arraySet(l.window,se,j-l.wsize,l.wsize,0),l.wnext=0,l.whave=l.wsize):(_e=l.wsize-l.wnext,_e>de&&(_e=de),t.arraySet(l.window,se,j-de,_e,l.wnext),de-=_e,de?(t.arraySet(l.window,se,j-de,de,0),l.wnext=de,l.whave=l.wsize):(l.wnext+=_e,l.wnext===l.wsize&&(l.wnext=0),l.whave>>8&255,j.check=b(j.check,Ie,2,0),J=0,ae=0,j.mode=m;break}if(j.flags=0,j.head&&(j.head.done=!1),!(j.wrap&1)||(((J&255)<<8)+(J>>8))%31){q.msg="incorrect header check",j.mode=ie;break}if((J&15)!==n){q.msg="unknown compression method",j.mode=ie;break}if(J>>>=4,ae-=4,Ae=(J&15)+8,j.wbits===0)j.wbits=Ae;else if(Ae>j.wbits){q.msg="invalid window size",j.mode=ie;break}j.dmax=1<>8&1),j.flags&512&&(Ie[0]=J&255,Ie[1]=J>>>8&255,j.check=b(j.check,Ie,2,0)),J=0,ae=0,j.mode=S;case S:for(;ae<32;){if(ue===0)break e;ue--,J+=de[l++]<>>8&255,Ie[2]=J>>>16&255,Ie[3]=J>>>24&255,j.check=b(j.check,Ie,4,0)),J=0,ae=0,j.mode=W;case W:for(;ae<16;){if(ue===0)break e;ue--,J+=de[l++]<>8),j.flags&512&&(Ie[0]=J&255,Ie[1]=J>>>8&255,j.check=b(j.check,Ie,2,0)),J=0,ae=0,j.mode=V;case V:if(j.flags&1024){for(;ae<16;){if(ue===0)break e;ue--,J+=de[l++]<>>8&255,j.check=b(j.check,Ie,2,0)),J=0,ae=0}else j.head&&(j.head.extra=null);j.mode=K;case K:if(j.flags&1024&&(me=j.length,me>ue&&(me=ue),me&&(j.head&&(Ae=j.head.extra_len-j.length,j.head.extra||(j.head.extra=new Array(j.head.extra_len)),t.arraySet(j.head.extra,de,l,me,Ae)),j.flags&512&&(j.check=b(j.check,de,me,l)),ue-=me,l+=me,j.length-=me),j.length))break e;j.length=0,j.mode=Q;case Q:if(j.flags&2048){if(ue===0)break e;me=0;do Ae=de[l+me++],j.head&&Ae&&j.length<65536&&(j.head.name+=String.fromCharCode(Ae));while(Ae&&me>9&1,j.head.done=!0),q.adler=j.check=0,j.mode=U;break;case R:for(;ae<32;){if(ue===0)break e;ue--,J+=de[l++]<>>=ae&7,ae-=ae&7,j.mode=w;break}for(;ae<3;){if(ue===0)break e;ue--,J+=de[l++]<>>=1,ae-=1,J&3){case 0:j.mode=Y;break;case 1:if(De(j),j.mode=G,se===p){J>>>=2,ae-=2;break e}break;case 2:j.mode=_;break;case 3:q.msg="invalid block type",j.mode=ie}J>>>=2,ae-=2;break;case Y:for(J>>>=ae&7,ae-=ae&7;ae<32;){if(ue===0)break e;ue--,J+=de[l++]<>>16^65535)){q.msg="invalid stored block lengths",j.mode=ie;break}if(j.length=J&65535,J=0,ae=0,j.mode=M,se===p)break e;case M:j.mode=z;case z:if(me=j.length,me){if(me>ue&&(me=ue),me>L&&(me=L),me===0)break e;t.arraySet(_e,de,l,me,oe),ue-=me,l+=me,L-=me,oe+=me,j.length-=me;break}j.mode=U;break;case _:for(;ae<14;){if(ue===0)break e;ue--,J+=de[l++]<>>=5,ae-=5,j.ndist=(J&31)+1,J>>>=5,ae-=5,j.ncode=(J&15)+4,J>>>=4,ae-=4,j.nlen>286||j.ndist>30){q.msg="too many length or distance symbols",j.mode=ie;break}j.have=0,j.mode=D;case D:for(;j.have>>=3,ae-=3}for(;j.have<19;)j.lens[Ye[j.have++]]=0;if(j.lencode=j.lendyn,j.lenbits=7,Ge={bits:j.lenbits},Ze=g(a,j.lens,0,19,j.lencode,0,j.work,Ge),j.lenbits=Ge.bits,Ze){q.msg="invalid code lengths set",j.mode=ie;break}j.have=0,j.mode=N;case N:for(;j.have>>24,Me=Re>>>16&255,Fe=Re&65535,!(Oe<=ae);){if(ue===0)break e;ue--,J+=de[l++]<>>=Oe,ae-=Oe,j.lens[j.have++]=Fe;else{if(Fe===16){for(We=Oe+2;ae>>=Oe,ae-=Oe,j.have===0){q.msg="invalid bit length repeat",j.mode=ie;break}Ae=j.lens[j.have-1],me=3+(J&3),J>>>=2,ae-=2}else if(Fe===17){for(We=Oe+3;ae>>=Oe,ae-=Oe,Ae=0,me=3+(J&7),J>>>=3,ae-=3}else{for(We=Oe+7;ae>>=Oe,ae-=Oe,Ae=0,me=11+(J&127),J>>>=7,ae-=7}if(j.have+me>j.nlen+j.ndist){q.msg="invalid bit length repeat",j.mode=ie;break}for(;me--;)j.lens[j.have++]=Ae}}if(j.mode===ie)break;if(j.lens[256]===0){q.msg="invalid code -- missing end-of-block",j.mode=ie;break}if(j.lenbits=9,Ge={bits:j.lenbits},Ze=g(s,j.lens,0,j.nlen,j.lencode,0,j.work,Ge),j.lenbits=Ge.bits,Ze){q.msg="invalid literal/lengths set",j.mode=ie;break}if(j.distbits=6,j.distcode=j.distdyn,Ge={bits:j.distbits},Ze=g(i,j.lens,j.nlen,j.ndist,j.distcode,0,j.work,Ge),j.distbits=Ge.bits,Ze){q.msg="invalid distances set",j.mode=ie;break}if(j.mode=G,se===p)break e;case G:j.mode=$;case $:if(ue>=6&&L>=258){q.next_out=oe,q.avail_out=L,q.next_in=l,q.avail_in=ue,j.hold=J,j.bits=ae,d(q,ye),oe=q.next_out,_e=q.output,L=q.avail_out,l=q.next_in,de=q.input,ue=q.avail_in,J=j.hold,ae=j.bits,j.mode===U&&(j.back=-1);break}for(j.back=0;Re=j.lencode[J&(1<>>24,Me=Re>>>16&255,Fe=Re&65535,!(Oe<=ae);){if(ue===0)break e;ue--,J+=de[l++]<>Be)],Oe=Re>>>24,Me=Re>>>16&255,Fe=Re&65535,!(Be+Oe<=ae);){if(ue===0)break e;ue--,J+=de[l++]<>>=Be,ae-=Be,j.back+=Be}if(J>>>=Oe,ae-=Oe,j.back+=Oe,j.length=Fe,Me===0){j.mode=X;break}if(Me&32){j.back=-1,j.mode=U;break}if(Me&64){q.msg="invalid literal/length code",j.mode=ie;break}j.extra=Me&15,j.mode=te;case te:if(j.extra){for(We=j.extra;ae>>=j.extra,ae-=j.extra,j.back+=j.extra}j.was=j.length,j.mode=ee;case ee:for(;Re=j.distcode[J&(1<>>24,Me=Re>>>16&255,Fe=Re&65535,!(Oe<=ae);){if(ue===0)break e;ue--,J+=de[l++]<>Be)],Oe=Re>>>24,Me=Re>>>16&255,Fe=Re&65535,!(Be+Oe<=ae);){if(ue===0)break e;ue--,J+=de[l++]<>>=Be,ae-=Be,j.back+=Be}if(J>>>=Oe,ae-=Oe,j.back+=Oe,Me&64){q.msg="invalid distance code",j.mode=ie;break}j.offset=Fe,j.extra=Me&15,j.mode=fe;case fe:if(j.extra){for(We=j.extra;ae>>=j.extra,ae-=j.extra,j.back+=j.extra}if(j.offset>j.dmax){q.msg="invalid distance too far back",j.mode=ie;break}j.mode=le;case le:if(L===0)break e;if(me=ye-L,j.offset>me){if(me=j.offset-me,me>j.whave&&j.sane){q.msg="invalid distance too far back",j.mode=ie;break}me>j.wnext?(me-=j.wnext,Se=j.wsize-me):Se=j.wnext-me,me>j.length&&(me=j.length),He=j.window}else He=_e,Se=oe-j.offset,me=j.length;me>L&&(me=L),L-=me,j.length-=me;do _e[oe++]=He[Se++];while(--me);j.length===0&&(j.mode=$);break;case X:if(L===0)break e;_e[oe++]=j.length,L--,j.mode=$;break;case w:if(j.wrap){for(;ae<32;){if(ue===0)break e;ue--,J|=de[l++]<=1&&$[K]===0;K--);if(Q>K&&(Q=K),K===0)return y[u++]=1<<24|64<<16|0,y[u++]=1<<24|64<<16|0,c.bits=1,0;for(V=1;V0&&(E===g||K!==1))return-1;for(te[1]=0,S=1;Sb||E===s&&Z>d)return 1;for(;;){le=S-F,n[W]G?(X=ee[fe+n[W]],w=D[N+n[W]]):(X=32+64,w=0),H=1<>F)+Y]=le<<24|X<<16|w|0;while(Y!==0);for(H=1<>=1;if(H!==0?(U&=H-1,U+=H):U=0,W++,--$[S]===0){if(S===K)break;S=T[O+n[W]]}if(S>Q&&(U&z)!==M){for(F===0&&(F=Q),_+=V,I=S-F,R=1<b||E===s&&Z>d)return 1;M=U&z,y[M]=Q<<24|I<<16|_-u|0}}return U!==0&&(y[_+U]=S-F<<24|64<<16|0),c.bits=Q,0}},89364:function(A){"use strict";A.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},81339:function(A,r,e){"use strict";var t=e(6907),v=4,b=0,d=1,g=2;function a(B){for(var ce=B.length;--ce>=0;)B[ce]=0}var s=0,i=1,f=2,h=3,p=258,P=29,E=256,T=E+1+P,O=30,o=19,y=2*T+1,u=15,n=16,c=7,m=256,S=16,W=17,V=18,K=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=512,Z=new Array((T+2)*2);a(Z);var U=new Array(O*2);a(U);var H=new Array(R);a(H);var Y=new Array(p-h+1);a(Y);var M=new Array(P);a(M);var z=new Array(O);a(z);function _(B,ce,pe,ge,q){this.static_tree=B,this.extra_bits=ce,this.extra_base=pe,this.elems=ge,this.max_length=q,this.has_stree=B&&B.length}var D,N,G;function $(B,ce){this.dyn_tree=B,this.max_code=0,this.stat_desc=ce}function te(B){return B<256?H[B]:H[256+(B>>>7)]}function ee(B,ce){B.pending_buf[B.pending++]=ce&255,B.pending_buf[B.pending++]=ce>>>8&255}function fe(B,ce,pe){B.bi_valid>n-pe?(B.bi_buf|=ce<>n-B.bi_valid,B.bi_valid+=pe-n):(B.bi_buf|=ce<>>=1,pe<<=1;while(--ce>0);return pe>>>1}function w(B){B.bi_valid===16?(ee(B,B.bi_buf),B.bi_buf=0,B.bi_valid=0):B.bi_valid>=8&&(B.pending_buf[B.pending++]=B.bi_buf&255,B.bi_buf>>=8,B.bi_valid-=8)}function x(B,ce){var pe=ce.dyn_tree,ge=ce.max_code,q=ce.stat_desc.static_tree,se=ce.stat_desc.has_stree,j=ce.stat_desc.extra_bits,de=ce.stat_desc.extra_base,_e=ce.stat_desc.max_length,l,oe,ue,L,J,ae,be=0;for(L=0;L<=u;L++)B.bl_count[L]=0;for(pe[B.heap[B.heap_max]*2+1]=0,l=B.heap_max+1;l_e&&(L=_e,be++),pe[oe*2+1]=L,!(oe>ge)&&(B.bl_count[L]++,J=0,oe>=de&&(J=j[oe-de]),ae=pe[oe*2],B.opt_len+=ae*(L+J),se&&(B.static_len+=ae*(q[oe*2+1]+J)));if(be!==0){do{for(L=_e-1;B.bl_count[L]===0;)L--;B.bl_count[L]--,B.bl_count[L+1]+=2,B.bl_count[_e]--,be-=2}while(be>0);for(L=_e;L!==0;L--)for(oe=B.bl_count[L];oe!==0;)ue=B.heap[--l],!(ue>ge)&&(pe[ue*2+1]!==L&&(B.opt_len+=(L-pe[ue*2+1])*pe[ue*2],pe[ue*2+1]=L),oe--)}}function re(B,ce,pe){var ge=new Array(u+1),q=0,se,j;for(se=1;se<=u;se++)ge[se]=q=q+pe[se-1]<<1;for(j=0;j<=ce;j++){var de=B[j*2+1];de!==0&&(B[j*2]=X(ge[de]++,de))}}function ie(){var B,ce,pe,ge,q,se=new Array(u+1);for(pe=0,ge=0;ge>=7;ge8?ee(B,B.bi_buf):B.bi_valid>0&&(B.pending_buf[B.pending++]=B.bi_buf),B.bi_buf=0,B.bi_valid=0}function ne(B,ce,pe,ge){k(B),ge&&(ee(B,pe),ee(B,~pe)),t.arraySet(B.pending_buf,B.window,ce,pe,B.pending),B.pending+=pe}function he(B,ce,pe,ge){var q=ce*2,se=pe*2;return B[q]>1;j>=1;j--)we(B,pe,j);l=se;do j=B.heap[1],B.heap[1]=B.heap[B.heap_len--],we(B,pe,1),de=B.heap[1],B.heap[--B.heap_max]=j,B.heap[--B.heap_max]=de,pe[l*2]=pe[j*2]+pe[de*2],B.depth[l]=(B.depth[j]>=B.depth[de]?B.depth[j]:B.depth[de])+1,pe[j*2+1]=pe[de*2+1]=l,B.heap[1]=l++,we(B,pe,1);while(B.heap_len>=2);B.heap[--B.heap_max]=B.heap[1],x(B,ce),re(pe,_e,B.bl_count)}function Le(B,ce,pe){var ge,q=-1,se,j=ce[0*2+1],de=0,_e=7,l=4;for(j===0&&(_e=138,l=3),ce[(pe+1)*2+1]=65535,ge=0;ge<=pe;ge++)se=j,j=ce[(ge+1)*2+1],!(++de<_e&&se===j)&&(de=3&&B.bl_tree[F[ce]*2+1]===0;ce--);return B.opt_len+=3*(ce+1)+5+5+4,ce}function Ue(B,ce,pe,ge){var q;for(fe(B,ce-257,5),fe(B,pe-1,5),fe(B,ge-4,4),q=0;q>>=1)if(ce&1&&B.dyn_ltree[pe*2]!==0)return b;if(B.dyn_ltree[9*2]!==0||B.dyn_ltree[10*2]!==0||B.dyn_ltree[13*2]!==0)return d;for(pe=32;pe0?(B.strm.data_type===g&&(B.strm.data_type=ke(B)),Ee(B,B.l_desc),Ee(B,B.d_desc),j=je(B),q=B.opt_len+3+7>>>3,se=B.static_len+3+7>>>3,se<=q&&(q=se)):q=se=pe+5,pe+4<=q&&ce!==-1?xe(B,ce,pe,ge):B.strategy===v||se===q?(fe(B,(i<<1)+(ge?1:0),3),ve(B,Z,U)):(fe(B,(f<<1)+(ge?1:0),3),Ue(B,B.l_desc.max_code+1,B.d_desc.max_code+1,j+1),ve(B,B.dyn_ltree,B.dyn_dtree)),C(B),ge&&k(B)}function ze(B,ce,pe){return B.pending_buf[B.d_buf+B.last_lit*2]=ce>>>8&255,B.pending_buf[B.d_buf+B.last_lit*2+1]=ce&255,B.pending_buf[B.l_buf+B.last_lit]=pe&255,B.last_lit++,ce===0?B.dyn_ltree[pe*2]++:(B.matches++,ce--,B.dyn_ltree[(Y[pe]+E+1)*2]++,B.dyn_dtree[te(ce)*2]++),B.last_lit===B.lit_bufsize-1}r._tr_init=Ne,r._tr_stored_block=xe,r._tr_flush_block=De,r._tr_tally=ze,r._tr_align=Pe},54860:function(A){"use strict";function r(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}A.exports=r},21924:function(A,r,e){"use strict";var t=e(40210),v=e(55559),b=v(t("String.prototype.indexOf"));A.exports=function(g,a){var s=t(g,!!a);return typeof s=="function"&&b(g,".prototype.")>-1?v(s):s}},55559:function(A,r,e){"use strict";var t=e(58612),v=e(40210),b=e(62490),d=e(14453),g=v("%Function.prototype.apply%"),a=v("%Function.prototype.call%"),s=v("%Reflect.apply%",!0)||t.call(a,g),i=e(24429),f=v("%Math.max%");A.exports=function(P){if(typeof P!="function")throw new d("a function is required");var E=s(t,a,arguments);return b(E,1+f(0,P.length-(arguments.length-1)),!0)};var h=function(){return s(t,g,arguments)};i?i(A.exports,"apply",{value:h}):A.exports.apply=h},12296:function(A,r,e){"use strict";var t=e(24429),v=e(33464),b=e(14453),d=e(27296);A.exports=function(a,s,i){if(!a||typeof a!="object"&&typeof a!="function")throw new b("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new b("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new b("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new b("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new b("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new b("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,P=arguments.length>6?arguments[6]:!1,E=!!d&&d(a,s);if(t)t(a,s,{configurable:p===null&&E?E.configurable:!p,enumerable:f===null&&E?E.enumerable:!f,value:i,writable:h===null&&E?E.writable:!h});else if(P||!f&&!h&&!p)a[s]=i;else throw new v("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},24429:function(A,r,e){"use strict";var t=e(40210),v=t("%Object.defineProperty%",!0)||!1;if(v)try{v({},"a",{value:1})}catch(b){v=!1}A.exports=v},53981:function(A){"use strict";A.exports=EvalError},81648:function(A){"use strict";A.exports=Error},24726:function(A){"use strict";A.exports=RangeError},26712:function(A){"use strict";A.exports=ReferenceError},33464:function(A){"use strict";A.exports=SyntaxError},14453:function(A){"use strict";A.exports=TypeError},43915:function(A){"use strict";A.exports=URIError},17187:function(A){"use strict";var r=typeof Reflect=="object"?Reflect:null,e=r&&typeof r.apply=="function"?r.apply:function(c,m,S){return Function.prototype.apply.call(c,m,S)},t;r&&typeof r.ownKeys=="function"?t=r.ownKeys:Object.getOwnPropertySymbols?t=function(c){return Object.getOwnPropertyNames(c).concat(Object.getOwnPropertySymbols(c))}:t=function(c){return Object.getOwnPropertyNames(c)};function v(n){console&&console.warn&&console.warn(n)}var b=Number.isNaN||function(c){return c!==c};function d(){d.init.call(this)}A.exports=d,A.exports.once=o,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var g=10;function a(n){if(typeof n!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n)}Object.defineProperty(d,"defaultMaxListeners",{enumerable:!0,get:function(){return g},set:function(n){if(typeof n!="number"||n<0||b(n))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+n+".");g=n}}),d.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},d.prototype.setMaxListeners=function(c){if(typeof c!="number"||c<0||b(c))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+c+".");return this._maxListeners=c,this};function s(n){return n._maxListeners===void 0?d.defaultMaxListeners:n._maxListeners}d.prototype.getMaxListeners=function(){return s(this)},d.prototype.emit=function(c){for(var m=[],S=1;S0&&(K=m[0]),K instanceof Error)throw K;var Q=new Error("Unhandled error."+(K?" ("+K.message+")":""));throw Q.context=K,Q}var I=V[c];if(I===void 0)return!1;if(typeof I=="function")e(I,this,m);else for(var F=I.length,R=E(I,F),S=0;S0&&K.length>W&&!K.warned){K.warned=!0;var Q=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(c)+" listeners added. Use emitter.setMaxListeners() to increase limit");Q.name="MaxListenersExceededWarning",Q.emitter=n,Q.type=c,Q.count=K.length,v(Q)}return n}d.prototype.addListener=function(c,m){return i(this,c,m,!1)},d.prototype.on=d.prototype.addListener,d.prototype.prependListener=function(c,m){return i(this,c,m,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(n,c,m){var S={fired:!1,wrapFn:void 0,target:n,type:c,listener:m},W=f.bind(S);return W.listener=m,S.wrapFn=W,W}d.prototype.once=function(c,m){return a(m),this.on(c,h(this,c,m)),this},d.prototype.prependOnceListener=function(c,m){return a(m),this.prependListener(c,h(this,c,m)),this},d.prototype.removeListener=function(c,m){var S,W,V,K,Q;if(a(m),W=this._events,W===void 0)return this;if(S=W[c],S===void 0)return this;if(S===m||S.listener===m)--this._eventsCount===0?this._events=Object.create(null):(delete W[c],W.removeListener&&this.emit("removeListener",c,S.listener||m));else if(typeof S!="function"){for(V=-1,K=S.length-1;K>=0;K--)if(S[K]===m||S[K].listener===m){Q=S[K].listener,V=K;break}if(V<0)return this;V===0?S.shift():T(S,V),S.length===1&&(W[c]=S[0]),W.removeListener!==void 0&&this.emit("removeListener",c,Q||m)}return this},d.prototype.off=d.prototype.removeListener,d.prototype.removeAllListeners=function(c){var m,S,W;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[c]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[c]),this;if(arguments.length===0){var V=Object.keys(S),K;for(W=0;W=0;W--)this.removeListener(c,m[W]);return this};function p(n,c,m){var S=n._events;if(S===void 0)return[];var W=S[c];return W===void 0?[]:typeof W=="function"?m?[W.listener||W]:[W]:m?O(W):E(W,W.length)}d.prototype.listeners=function(c){return p(this,c,!0)},d.prototype.rawListeners=function(c){return p(this,c,!1)},d.listenerCount=function(n,c){return typeof n.listenerCount=="function"?n.listenerCount(c):P.call(n,c)},d.prototype.listenerCount=P;function P(n){var c=this._events;if(c!==void 0){var m=c[n];if(typeof m=="function")return 1;if(m!==void 0)return m.length}return 0}d.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function E(n,c){for(var m=new Array(c),S=0;S-1?_:null}};function h(H){for(var Y=[],M=1;M3?0:(H-H%10!==10?1:0)*H%10]}},o=h({},O),y=function(H){return o=h(o,H)},u=function(H){return H.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},n=function(H,Y){for(Y===void 0&&(Y=2),H=String(H);H.length0?"-":"+")+n(Math.floor(Math.abs(Y)/60)*100+Math.abs(Y)%60,4)},Z:function(H){var Y=H.getTimezoneOffset();return(Y>0?"-":"+")+n(Math.floor(Math.abs(Y)/60),2)+":"+n(Math.abs(Y)%60,2)}},m=function(H){return+H-1},S=[null,v],W=[null,a],V=["isPm",a,function(H,Y){var M=H.toLowerCase();return M===Y.amPm[0]?0:M===Y.amPm[1]?1:null}],K=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(H){var Y=(H+"").match(/([+-]|\d\d)/gi);if(Y){var M=+Y[1]*60+parseInt(Y[2],10);return Y[0]==="+"?M:-M}return 0}],Q={D:["day",v],DD:["day",b],Do:["day",v+a,function(H){return parseInt(H,10)}],M:["month",v,m],MM:["month",b,m],YY:["year",b,function(H){var Y=new Date,M=+(""+Y.getFullYear()).substr(0,2);return+(""+(+H>68?M-1:M)+H)}],h:["hour",v,void 0,"isPm"],hh:["hour",b,void 0,"isPm"],H:["hour",v],HH:["hour",b],m:["minute",v],mm:["minute",b],s:["second",v],ss:["second",b],YYYY:["year",g],S:["millisecond","\\d",function(H){return+H*100}],SS:["millisecond",b,function(H){return+H*10}],SSS:["millisecond",d],d:S,dd:S,ddd:W,dddd:W,MMM:["month",a,f("monthNamesShort")],MMMM:["month",a,f("monthNames")],a:V,A:V,ZZ:K,Z:K},I={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},F=function(H){return h(I,H)},R=function(H,Y,M){if(Y===void 0&&(Y=I.default),M===void 0&&(M={}),typeof H=="number"&&(H=new Date(H)),Object.prototype.toString.call(H)!=="[object Date]"||isNaN(H.getTime()))throw new Error("Invalid Date pass to format");Y=I[Y]||Y;var z=[];Y=Y.replace(s,function(D,N){return z.push(N),"@@@"});var _=h(h({},o),M);return Y=Y.replace(t,function(D){return c[D](H,_)}),Y.replace(/@@@/g,function(){return z.shift()})};function Z(H,Y,M){if(M===void 0&&(M={}),typeof Y!="string")throw new Error("Invalid format in fecha parse");if(Y=I[Y]||Y,H.length>1e3)return null;var z=new Date,_={year:z.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},D=[],N=[],G=Y.replace(s,function(ne,he){return N.push(u(he)),"@@@"}),$={},te={};G=u(G).replace(t,function(ne){var he=Q[ne],we=he[0],ve=he[1],Ee=he[3];if($[we])throw new Error("Invalid format. "+we+" specified twice in format");return $[we]=!0,Ee&&(te[Ee]=!0),D.push(he),"("+ve+")"}),Object.keys(te).forEach(function(ne){if(!$[ne])throw new Error("Invalid format. "+ne+" is required in specified format")}),G=G.replace(/@@@/g,function(){return N.shift()});var ee=H.match(new RegExp(G,"i"));if(!ee)return null;for(var fe=h(h({},o),M),le=1;le11||_.month<0||_.day>31||_.day<1||_.hour>23||_.hour<0||_.minute>59||_.minute<0||_.second>59||_.second<0)return null;return ie}var U={format:R,parse:Z,defaultI18n:O,setGlobalDateI18n:y,setGlobalDateMasks:F};r.default=U},32296:function(A){"use strict";var r=Object.prototype.toString;A.exports=function(t){if(typeof t.displayName=="string"&&t.constructor.name)return t.displayName;if(typeof t.name=="string"&&t.name)return t.name;if(typeof t=="object"&&t.constructor&&typeof t.constructor.name=="string")return t.constructor.name;var v=t.toString(),b=r.call(t).slice(8,-1);return b==="Function"?v=v.substring(v.indexOf("(")+1,v.indexOf(")")):v=b,v||"anonymous"}},17648:function(A){"use strict";var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,v="[object Function]",b=function(s,i){for(var f=[],h=0;h1&&typeof _!="boolean")throw new s('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,z)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var D=H(z),N=D.length>0?D[0]:"",G=Y("%"+N+"%",_),$=G.name,te=G.value,ee=!1,fe=G.alias;fe&&(N=fe[0],Q(D,K([0,1],fe)));for(var le=1,X=!0;le=D.length){var ie=p(te,w);X=!!ie,X&&"get"in ie&&!("originalValue"in ie.get)?te=ie.get:te=te[w]}else X=V(te,w),te=te[w];X&&!ee&&(n[$]=te)}}return te}},27296:function(A,r,e){"use strict";var t=e(40210),v=t("%Object.getOwnPropertyDescriptor%",!0);if(v)try{v([],"length")}catch(b){v=null}A.exports=v},31044:function(A,r,e){"use strict";var t=e(24429),v=function(){return!!t};v.hasArrayLengthDefineBug=function(){if(!t)return null;try{return t([],"length",{value:1}).length!==1}catch(d){return!0}},A.exports=v},28185:function(A){"use strict";var r={__proto__:null,foo:{}},e=Object;A.exports=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof e)}},41405:function(A,r,e){"use strict";var t=typeof Symbol!="undefined"&&Symbol,v=e(55419);A.exports=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:function(A){"use strict";A.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),v=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;var b=42;e[t]=b;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var d=Object.getOwnPropertySymbols(e);if(d.length!==1||d[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var g=Object.getOwnPropertyDescriptor(e,t);if(g.value!==b||g.enumerable!==!0)return!1}return!0}},48824:function(A,r,e){"use strict";var t=Function.prototype.call,v=Object.prototype.hasOwnProperty,b=e(58612);A.exports=b.call(t,v)},35717:function(A){typeof Object.create=="function"?A.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:A.exports=function(e,t){if(t){e.super_=t;var v=function(){};v.prototype=t.prototype,e.prototype=new v,e.prototype.constructor=e}}},24970:function(A){"use strict";const r=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";r.writable=e=>r(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object",r.readable=e=>r(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object",r.duplex=e=>r.writable(e)&&r.readable(e),r.transform=e=>r.duplex(e)&&typeof e._transform=="function",A.exports=r},57824:function(A){var r=1e3,e=r*60,t=e*60,v=t*24,b=v*7,d=v*365.25;A.exports=function(f,h){h=h||{};var p=typeof f;if(p==="string"&&f.length>0)return g(f);if(p==="number"&&isFinite(f))return h.long?s(f):a(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function g(f){if(f=String(f),!(f.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(h){var p=parseFloat(h[1]),P=(h[2]||"ms").toLowerCase();switch(P){case"years":case"year":case"yrs":case"yr":case"y":return p*d;case"weeks":case"week":case"w":return p*b;case"days":case"day":case"d":return p*v;case"hours":case"hour":case"hrs":case"hr":case"h":return p*t;case"minutes":case"minute":case"mins":case"min":case"m":return p*e;case"seconds":case"second":case"secs":case"sec":case"s":return p*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function a(f){var h=Math.abs(f);return h>=v?Math.round(f/v)+"d":h>=t?Math.round(f/t)+"h":h>=e?Math.round(f/e)+"m":h>=r?Math.round(f/r)+"s":f+"ms"}function s(f){var h=Math.abs(f);return h>=v?i(f,h,v,"day"):h>=t?i(f,h,t,"hour"):h>=e?i(f,h,e,"minute"):h>=r?i(f,h,r,"second"):f+" ms"}function i(f,h,p,P){var E=h>=p*1.5;return Math.round(f/p)+" "+P+(E?"s":"")}},18987:function(A,r,e){"use strict";var t;if(!Object.keys){var v=Object.prototype.hasOwnProperty,b=Object.prototype.toString,d=e(21414),g=Object.prototype.propertyIsEnumerable,a=!g.call({toString:null},"toString"),s=g.call(function(){},"prototype"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(E){var T=E.constructor;return T&&T.prototype===E},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if(typeof window=="undefined")return!1;for(var E in window)try{if(!h["$"+E]&&v.call(window,E)&&window[E]!==null&&typeof window[E]=="object")try{f(window[E])}catch(T){return!0}}catch(T){return!0}return!1}(),P=function(E){if(typeof window=="undefined"||!p)return f(E);try{return f(E)}catch(T){return!1}};t=function(T){var O=T!==null&&typeof T=="object",o=b.call(T)==="[object Function]",y=d(T),u=O&&b.call(T)==="[object String]",n=[];if(!O&&!o&&!y)throw new TypeError("Object.keys called on a non-object");var c=s&&o;if(u&&T.length>0&&!v.call(T,0))for(var m=0;m0)for(var S=0;S=0&&r.call(t.callee)==="[object Function]"),b}},92837:function(A,r,e){"use strict";var t=e(82215),v=e(55419)(),b=e(21924),d=Object,g=b("Array.prototype.push"),a=b("Object.prototype.propertyIsEnumerable"),s=v?Object.getOwnPropertySymbols:null;A.exports=function(f,h){if(f==null)throw new TypeError("target must be an object");var p=d(f);if(arguments.length===1)return p;for(var P=1;P=0;f--){var h=a[f];h==="."?a.splice(f,1):h===".."?(a.splice(f,1),i++):i&&(a.splice(f,1),i--)}if(s)for(;i--;i)a.unshift("..");return a}r.resolve=function(){for(var a="",s=!1,i=arguments.length-1;i>=-1&&!s;i--){var f=i>=0?arguments[i]:t.cwd();if(typeof f!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!f)continue;a=f+"/"+a,s=f.charAt(0)==="/"}return a=v(d(a.split("/"),function(h){return!!h}),!s).join("/"),(s?"/":"")+a||"."},r.normalize=function(a){var s=r.isAbsolute(a),i=g(a,-1)==="/";return a=v(d(a.split("/"),function(f){return!!f}),!s).join("/"),!a&&!s&&(a="."),a&&i&&(a+="/"),(s?"/":"")+a},r.isAbsolute=function(a){return a.charAt(0)==="/"},r.join=function(){var a=Array.prototype.slice.call(arguments,0);return r.normalize(d(a,function(s,i){if(typeof s!="string")throw new TypeError("Arguments to path.join must be strings");return s}).join("/"))},r.relative=function(a,s){a=r.resolve(a).substr(1),s=r.resolve(s).substr(1);function i(O){for(var o=0;o=0&&O[y]==="";y--);return o>y?[]:O.slice(o,y-o+1)}for(var f=i(a.split("/")),h=i(s.split("/")),p=Math.min(f.length,h.length),P=p,E=0;E=1;--p)if(s=a.charCodeAt(p),s===47){if(!h){f=p;break}}else h=!1;return f===-1?i?"/":".":i&&f===1?"/":a.slice(0,f)};function b(a){typeof a!="string"&&(a=a+"");var s=0,i=-1,f=!0,h;for(h=a.length-1;h>=0;--h)if(a.charCodeAt(h)===47){if(!f){s=h+1;break}}else i===-1&&(f=!1,i=h+1);return i===-1?"":a.slice(s,i)}r.basename=function(a,s){var i=b(a);return s&&i.substr(-1*s.length)===s&&(i=i.substr(0,i.length-s.length)),i},r.extname=function(a){typeof a!="string"&&(a=a+"");for(var s=-1,i=0,f=-1,h=!0,p=0,P=a.length-1;P>=0;--P){var E=a.charCodeAt(P);if(E===47){if(!h){i=P+1;break}continue}f===-1&&(h=!1,f=P+1),E===46?s===-1?s=P:p!==1&&(p=1):s!==-1&&(p=-1)}return s===-1||f===-1||p===0||p===1&&s===f-1&&s===i+1?"":a.slice(s,f)};function d(a,s){if(a.filter)return a.filter(s);for(var i=[],f=0;f2?"one of ".concat(s," ").concat(a.slice(0,i-1).join(", "),", or ")+a[i-1]:i===2?"one of ".concat(s," ").concat(a[0]," or ").concat(a[1]):"of ".concat(s," ").concat(a[0])}else return"of ".concat(s," ").concat(String(a))}function b(a,s,i){return a.substr(!i||i<0?0:+i,s.length)===s}function d(a,s,i){return(i===void 0||i>a.length)&&(i=a.length),a.substring(i-s.length,i)===s}function g(a,s,i){return typeof i!="number"&&(i=0),i+s.length>a.length?!1:a.indexOf(s,i)!==-1}t("ERR_INVALID_OPT_VALUE",function(a,s){return'The value "'+s+'" is invalid for option "'+a+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(a,s,i){var f;typeof s=="string"&&b(s,"not ")?(f="must not be",s=s.replace(/^not /,"")):f="must be";var h;if(d(a," argument"))h="The ".concat(a," ").concat(f," ").concat(v(s,"type"));else{var p=g(a,".")?"property":"argument";h='The "'.concat(a,'" ').concat(p," ").concat(f," ").concat(v(s,"type"))}return h+=". Received type ".concat(typeof i),h},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),A.exports.q=e},56753:function(A,r,e){"use strict";var t=e(34155),v=Object.keys||function(p){var P=[];for(var E in p)P.push(E);return P};A.exports=i;var b=e(79481),d=e(64229);e(35717)(i,b);for(var g=v(d.prototype),a=0;a0)if(typeof k!="string"&&!ve.objectMode&&Object.getPrototypeOf(k)!==a.prototype&&(k=i(k)),he)ve.endEmitted?V(C,new c):Z(C,ve,k,!0);else if(ve.ended)V(C,new u);else{if(ve.destroyed)return!1;ve.reading=!1,ve.decoder&&!ne?(k=ve.decoder.write(k),ve.objectMode||k.length!==0?Z(C,ve,k,!1):N(C,ve)):Z(C,ve,k,!1)}else he||(ve.reading=!1,N(C,ve))}return!ve.ended&&(ve.length=H?C=H:(C--,C|=C>>>1,C|=C>>>2,C|=C>>>4,C|=C>>>8,C|=C>>>16,C++),C}function M(C,k){return C<=0||k.length===0&&k.ended?0:k.objectMode?1:C!==C?k.flowing&&k.length?k.buffer.head.data.length:k.length:(C>k.highWaterMark&&(k.highWaterMark=Y(C)),C<=k.length?C:k.ended?k.length:(k.needReadable=!0,0))}F.prototype.read=function(C){p("read",C),C=parseInt(C,10);var k=this._readableState,ne=C;if(C!==0&&(k.emittedReadable=!1),C===0&&k.needReadable&&((k.highWaterMark!==0?k.length>=k.highWaterMark:k.length>0)||k.ended))return p("read: emitReadable",k.length,k.ended),k.length===0&&k.ended?x(this):_(this),null;if(C=M(C,k),C===0&&k.ended)return k.length===0&&x(this),null;var he=k.needReadable;p("need readable",he),(k.length===0||k.length-C0?we=w(C,k):we=null,we===null?(k.needReadable=k.length<=k.highWaterMark,C=0):(k.length-=C,k.awaitDrain=0),k.length===0&&(k.ended||(k.needReadable=!0),ne!==C&&k.ended&&x(this)),we!==null&&this.emit("data",we),we};function z(C,k){if(p("onEofChunk"),!k.ended){if(k.decoder){var ne=k.decoder.end();ne&&ne.length&&(k.buffer.push(ne),k.length+=k.objectMode?1:ne.length)}k.ended=!0,k.sync?_(C):(k.needReadable=!1,k.emittedReadable||(k.emittedReadable=!0,D(C)))}}function _(C){var k=C._readableState;p("emitReadable",k.needReadable,k.emittedReadable),k.needReadable=!1,k.emittedReadable||(p("emitReadable",k.flowing),k.emittedReadable=!0,t.nextTick(D,C))}function D(C){var k=C._readableState;p("emitReadable_",k.destroyed,k.length,k.ended),!k.destroyed&&(k.length||k.ended)&&(C.emit("readable"),k.emittedReadable=!1),k.needReadable=!k.flowing&&!k.ended&&k.length<=k.highWaterMark,X(C)}function N(C,k){k.readingMore||(k.readingMore=!0,t.nextTick(G,C,k))}function G(C,k){for(;!k.reading&&!k.ended&&(k.length1&&ie(he.pipes,C)!==-1)&&!je&&(p("false write response, pause",he.awaitDrain),he.awaitDrain++),ne.pause())}function Te(De){p("onerror",De),Pe(),C.removeListener("error",Te),d(C,"error")===0&&V(C,De)}Q(C,"error",Te);function Ne(){C.removeListener("finish",xe),Pe()}C.once("close",Ne);function xe(){p("onfinish"),C.removeListener("close",Ne),Pe()}C.once("finish",xe);function Pe(){p("unpipe"),ne.unpipe(C)}return C.emit("pipe",ne),he.flowing||(p("pipe resume"),ne.resume()),C};function $(C){return function(){var ne=C._readableState;p("pipeOnDrain",ne.awaitDrain),ne.awaitDrain&&ne.awaitDrain--,ne.awaitDrain===0&&d(C,"data")&&(ne.flowing=!0,X(C))}}F.prototype.unpipe=function(C){var k=this._readableState,ne={hasUnpiped:!1};if(k.pipesCount===0)return this;if(k.pipesCount===1)return C&&C!==k.pipes?this:(C||(C=k.pipes),k.pipes=null,k.pipesCount=0,k.flowing=!1,C&&C.emit("unpipe",this,ne),this);if(!C){var he=k.pipes,we=k.pipesCount;k.pipes=null,k.pipesCount=0,k.flowing=!1;for(var ve=0;ve0,he.flowing!==!1&&this.resume()):C==="readable"&&!he.endEmitted&&!he.readableListening&&(he.readableListening=he.needReadable=!0,he.flowing=!1,he.emittedReadable=!1,p("on readable",he.length,he.reading),he.length?_(this):he.reading||t.nextTick(ee,this)),ne},F.prototype.addListener=F.prototype.on,F.prototype.removeListener=function(C,k){var ne=g.prototype.removeListener.call(this,C,k);return C==="readable"&&t.nextTick(te,this),ne},F.prototype.removeAllListeners=function(C){var k=g.prototype.removeAllListeners.apply(this,arguments);return(C==="readable"||C===void 0)&&t.nextTick(te,this),k};function te(C){var k=C._readableState;k.readableListening=C.listenerCount("readable")>0,k.resumeScheduled&&!k.paused?k.flowing=!0:C.listenerCount("data")>0&&C.resume()}function ee(C){p("readable nexttick read 0"),C.read(0)}F.prototype.resume=function(){var C=this._readableState;return C.flowing||(p("resume"),C.flowing=!C.readableListening,fe(this,C)),C.paused=!1,this};function fe(C,k){k.resumeScheduled||(k.resumeScheduled=!0,t.nextTick(le,C,k))}function le(C,k){p("resume",k.reading),k.reading||C.read(0),k.resumeScheduled=!1,C.emit("resume"),X(C),k.flowing&&!k.reading&&C.read(0)}F.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function X(C){var k=C._readableState;for(p("flow",k.flowing);k.flowing&&C.read()!==null;);}F.prototype.wrap=function(C){var k=this,ne=this._readableState,he=!1;C.on("end",function(){if(p("wrapped end"),ne.decoder&&!ne.ended){var Ee=ne.decoder.end();Ee&&Ee.length&&k.push(Ee)}k.push(null)}),C.on("data",function(Ee){if(p("wrapped data"),ne.decoder&&(Ee=ne.decoder.write(Ee)),!(ne.objectMode&&Ee==null)&&!(!ne.objectMode&&(!Ee||!Ee.length))){var Le=k.push(Ee);Le||(he=!0,C.pause())}});for(var we in C)this[we]===void 0&&typeof C[we]=="function"&&(this[we]=function(Le){return function(){return C[Le].apply(C,arguments)}}(we));for(var ve=0;ve=k.length?(k.decoder?ne=k.buffer.join(""):k.buffer.length===1?ne=k.buffer.first():ne=k.buffer.concat(k.length),k.buffer.clear()):ne=k.buffer.consume(C,k.decoder),ne}function x(C){var k=C._readableState;p("endReadable",k.endEmitted),k.endEmitted||(k.ended=!0,t.nextTick(re,k,C))}function re(C,k){if(p("endReadableNT",C.endEmitted,C.length),!C.endEmitted&&C.length===0&&(C.endEmitted=!0,k.readable=!1,k.emit("end"),C.autoDestroy)){var ne=k._writableState;(!ne||ne.autoDestroy&&ne.finished)&&k.destroy()}}typeof Symbol=="function"&&(F.from=function(C,k){return W===void 0&&(W=e(15167)),W(F,C,k)});function ie(C,k){for(var ne=0,he=C.length;ne-1))throw new S(w);return this._writableState.defaultEncoding=w,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Z(X,w,x){return!X.objectMode&&X.decodeStrings!==!1&&typeof w=="string"&&(w=s.from(w,x)),w}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function U(X,w,x,re,ie,C){if(!x){var k=Z(w,re,ie);re!==k&&(x=!0,ie="buffer",re=k)}var ne=w.objectMode?1:re.length;w.length+=ne;var he=w.length0?this.tail.next=u:this.head=u,this.tail=u,++this.length}},{key:"unshift",value:function(y){var u={data:y,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length}},{key:"shift",value:function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(y){if(this.length===0)return"";for(var u=this.head,n=""+u.data;u=u.next;)n+=y+u.data;return n}},{key:"concat",value:function(y){if(this.length===0)return h.alloc(0);for(var u=h.allocUnsafe(y>>>0),n=this.head,c=0;n;)T(n.data,u,c),c+=n.data.length,n=n.next;return u}},{key:"consume",value:function(y,u){var n;return ym.length?m.length:y;if(S===m.length?c+=m:c+=m.slice(0,y),y-=S,y===0){S===m.length?(++n,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=m.slice(S));break}++n}return this.length-=n,c}},{key:"_getBuffer",value:function(y){var u=h.allocUnsafe(y),n=this.head,c=1;for(n.data.copy(u),y-=n.data.length;n=n.next;){var m=n.data,S=y>m.length?m.length:y;if(m.copy(u,u.length-y,0,S),y-=S,y===0){S===m.length?(++c,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=m.slice(S));break}++c}return this.length-=c,u}},{key:E,value:function(y,u){return P(this,v(v({},u),{},{depth:0,customInspect:!1}))}}]),O}()},61195:function(A,r,e){"use strict";var t=e(34155);function v(i,f){var h=this,p=this._readableState&&this._readableState.destroyed,P=this._writableState&&this._writableState.destroyed;return p||P?(f?f(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(a,this,i)):t.nextTick(a,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(E){!f&&E?h._writableState?h._writableState.errorEmitted?t.nextTick(d,h):(h._writableState.errorEmitted=!0,t.nextTick(b,h,E)):t.nextTick(b,h,E):f?(t.nextTick(d,h),f(E)):t.nextTick(d,h)}),this)}function b(i,f){a(i,f),d(i)}function d(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.emit("close")}function g(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(i,f){i.emit("error",f)}function s(i,f){var h=i._readableState,p=i._writableState;h&&h.autoDestroy||p&&p.autoDestroy?i.destroy(f):i.emit("error",f)}A.exports={destroy:v,undestroy:g,errorOrDestroy:s}},8610:function(A,r,e){"use strict";var t=e(94281).q.ERR_STREAM_PREMATURE_CLOSE;function v(a){var s=!1;return function(){if(!s){s=!0;for(var i=arguments.length,f=new Array(i),h=0;h0;return i(n,m,S,function(W){y||(y=W),W&&u.forEach(f),!m&&(u.forEach(f),o(y))})});return T.reduce(h)}A.exports=P},82457:function(A,r,e){"use strict";var t=e(94281).q.ERR_INVALID_OPT_VALUE;function v(d,g,a){return d.highWaterMark!=null?d.highWaterMark:g?d[a]:null}function b(d,g,a,s){var i=v(g,s,a);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var f=s?a:"highWaterMark";throw new t(f,i)}return Math.floor(i)}return d.objectMode?16:16*1024}A.exports={getHighWaterMark:b}},22503:function(A,r,e){A.exports=e(17187).EventEmitter},88473:function(A,r,e){r=A.exports=e(79481),r.Stream=r,r.Readable=r,r.Writable=e(64229),r.Duplex=e(56753),r.Transform=e(74605),r.PassThrough=e(82725),r.finished=e(8610),r.pipeline=e(59946)},89509:function(A,r,e){var t=e(48764),v=t.Buffer;function b(g,a){for(var s in g)a[s]=g[s]}v.from&&v.alloc&&v.allocUnsafe&&v.allocUnsafeSlow?A.exports=t:(b(t,r),r.Buffer=d);function d(g,a,s){return v(g,a,s)}d.prototype=Object.create(v.prototype),b(v,d),d.from=function(g,a,s){if(typeof g=="number")throw new TypeError("Argument must not be a number");return v(g,a,s)},d.alloc=function(g,a,s){if(typeof g!="number")throw new TypeError("Argument must be a number");var i=v(g);return a!==void 0?typeof s=="string"?i.fill(a,s):i.fill(a):i.fill(0),i},d.allocUnsafe=function(g){if(typeof g!="number")throw new TypeError("Argument must be a number");return v(g)},d.allocUnsafeSlow=function(g){if(typeof g!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(g)}},62490:function(A,r,e){"use strict";var t=e(40210),v=e(12296),b=e(31044)(),d=e(27296),g=e(14453),a=t("%Math.floor%");A.exports=function(i,f){if(typeof i!="function")throw new g("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||a(f)!==f)throw new g("`length` must be a positive 32-bit integer");var h=arguments.length>2&&!!arguments[2],p=!0,P=!0;if("length"in i&&d){var E=d(i,"length");E&&!E.configurable&&(p=!1),E&&!E.writable&&(P=!1)}return(p||P||!h)&&(b?v(i,"length",f,!0,!0):v(i,"length",f)),i}},77911:function(A,r){r.get=function(b){var d=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var g={},a=Error.prepareStackTrace;Error.prepareStackTrace=function(i,f){return f},Error.captureStackTrace(g,b||r.get);var s=g.stack;return Error.prepareStackTrace=a,Error.stackTraceLimit=d,s},r.parse=function(b){if(!b.stack)return[];var d=this,g=b.stack.split(` -`).slice(1);return g.map(function(a){if(a.match(/^\s*[-]{4,}$/))return d._createParsedCallSite({fileName:a,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var s=a.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(s){var i=null,f=null,h=null,p=null,P=null,E=s[5]==="native";if(s[1]){h=s[1];var T=h.lastIndexOf(".");if(h[T-1]=="."&&T--,T>0){i=h.substr(0,T),f=h.substr(T+1);var O=i.indexOf(".Module");O>0&&(h=h.substr(O+1),i=i.substr(0,O))}p=null}f&&(p=i,P=f),f===""&&(P=null,h=null);var o={fileName:s[2]||null,lineNumber:parseInt(s[3],10)||null,functionName:h,typeName:p,methodName:P,columnNumber:parseInt(s[4],10)||null,native:E};return d._createParsedCallSite(o)}}).filter(function(a){return!!a})};function e(b){for(var d in b)this[d]=b[d]}var t=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],v=["topLevel","eval","native","constructor"];t.forEach(function(b){e.prototype[b]=null,e.prototype["get"+b[0].toUpperCase()+b.substr(1)]=function(){return this[b]}}),v.forEach(function(b){e.prototype[b]=!1,e.prototype["is"+b[0].toUpperCase()+b.substr(1)]=function(){return this[b]}}),r._createParsedCallSite=function(b){return new e(b)}},42830:function(A,r,e){A.exports=b;var t=e(17187).EventEmitter,v=e(35717);v(b,t),b.Readable=e(42874),b.Writable=e(73098),b.Duplex=e(86649),b.Transform=e(95202),b.PassThrough=e(5990),b.Stream=b;function b(){t.call(this)}b.prototype.pipe=function(d,g){var a=this;function s(T){d.writable&&d.write(T)===!1&&a.pause&&a.pause()}a.on("data",s);function i(){a.readable&&a.resume&&a.resume()}d.on("drain",i),!d._isStdio&&(!g||g.end!==!1)&&(a.on("end",h),a.on("close",p));var f=!1;function h(){f||(f=!0,d.end())}function p(){f||(f=!0,typeof d.destroy=="function"&&d.destroy())}function P(T){if(E(),t.listenerCount(this,"error")===0)throw T}a.on("error",P),d.on("error",P);function E(){a.removeListener("data",s),d.removeListener("drain",i),a.removeListener("end",h),a.removeListener("close",p),a.removeListener("error",P),d.removeListener("error",P),a.removeListener("end",E),a.removeListener("close",E),d.removeListener("close",E)}return a.on("end",E),a.on("close",E),d.on("close",E),d.emit("pipe",a),d}},44339:function(A,r,e){function t(o){return Array.isArray?Array.isArray(o):O(o)==="[object Array]"}r.isArray=t;function v(o){return typeof o=="boolean"}r.isBoolean=v;function b(o){return o===null}r.isNull=b;function d(o){return o==null}r.isNullOrUndefined=d;function g(o){return typeof o=="number"}r.isNumber=g;function a(o){return typeof o=="string"}r.isString=a;function s(o){return typeof o=="symbol"}r.isSymbol=s;function i(o){return o===void 0}r.isUndefined=i;function f(o){return O(o)==="[object RegExp]"}r.isRegExp=f;function h(o){return typeof o=="object"&&o!==null}r.isObject=h;function p(o){return O(o)==="[object Date]"}r.isDate=p;function P(o){return O(o)==="[object Error]"||o instanceof Error}r.isError=P;function E(o){return typeof o=="function"}r.isFunction=E;function T(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||typeof o=="undefined"}r.isPrimitive=T,r.isBuffer=e(48764).Buffer.isBuffer;function O(o){return Object.prototype.toString.call(o)}},74068:function(A){var r={}.toString;A.exports=Array.isArray||function(e){return r.call(e)=="[object Array]"}},86649:function(A,r,e){A.exports=e(68656)},68656:function(A,r,e){"use strict";var t=e(88212),v=Object.keys||function(P){var E=[];for(var T in P)E.push(T);return E};A.exports=f;var b=Object.create(e(44339));b.inherits=e(35717);var d=e(56577),g=e(20323);b.inherits(f,d);for(var a=v(g.prototype),s=0;s0?(typeof x!="string"&&!k.objectMode&&Object.getPrototypeOf(x)!==i.prototype&&(x=h(x)),ie?k.endEmitted?w.emit("error",new Error("stream.unshift() after end event")):W(w,k,x,!0):k.ended?w.emit("error",new Error("stream.push() after EOF")):(k.reading=!1,k.decoder&&!re?(x=k.decoder.write(x),k.objectMode||x.length!==0?W(w,k,x,!1):H(w,k)):W(w,k,x,!1))):ie||(k.reading=!1)}return K(k)}function W(w,x,re,ie){x.flowing&&x.length===0&&!x.sync?(w.emit("data",re),w.read(0)):(x.length+=x.objectMode?1:re.length,ie?x.buffer.unshift(re):x.buffer.push(re),x.needReadable&&Z(w)),H(w,x)}function V(w,x){var re;return!p(x)&&typeof x!="string"&&x!==void 0&&!w.objectMode&&(re=new TypeError("Invalid non-string/buffer chunk")),re}function K(w){return!w.ended&&(w.needReadable||w.length=Q?w=Q:(w--,w|=w>>>1,w|=w>>>2,w|=w>>>4,w|=w>>>8,w|=w>>>16,w++),w}function F(w,x){return w<=0||x.length===0&&x.ended?0:x.objectMode?1:w!==w?x.flowing&&x.length?x.buffer.head.data.length:x.length:(w>x.highWaterMark&&(x.highWaterMark=I(w)),w<=x.length?w:x.ended?x.length:(x.needReadable=!0,0))}m.prototype.read=function(w){T("read",w),w=parseInt(w,10);var x=this._readableState,re=w;if(w!==0&&(x.emittedReadable=!1),w===0&&x.needReadable&&(x.length>=x.highWaterMark||x.ended))return T("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?fe(this):Z(this),null;if(w=F(w,x),w===0&&x.ended)return x.length===0&&fe(this),null;var ie=x.needReadable;T("need readable",ie),(x.length===0||x.length-w0?C=G(w,x):C=null,C===null?(x.needReadable=!0,w=0):x.length-=w,x.length===0&&(x.ended||(x.needReadable=!0),re!==w&&x.ended&&fe(this)),C!==null&&this.emit("data",C),C};function R(w,x){if(!x.ended){if(x.decoder){var re=x.decoder.end();re&&re.length&&(x.buffer.push(re),x.length+=x.objectMode?1:re.length)}x.ended=!0,Z(w)}}function Z(w){var x=w._readableState;x.needReadable=!1,x.emittedReadable||(T("emitReadable",x.flowing),x.emittedReadable=!0,x.sync?v.nextTick(U,w):U(w))}function U(w){T("emit readable"),w.emit("readable"),N(w)}function H(w,x){x.readingMore||(x.readingMore=!0,v.nextTick(Y,w,x))}function Y(w,x){for(var re=x.length;!x.reading&&!x.flowing&&!x.ended&&x.length1&&X(ie.pipes,w)!==-1)&&!ve&&(T("false write response, pause",ie.awaitDrain),ie.awaitDrain++,Le=!0),re.pause())}function je(Ne){T("onerror",Ne),Te(),w.removeListener("error",je),a(w,"error")===0&&w.emit("error",Ne)}n(w,"error",je);function Ue(){w.removeListener("finish",ke),Te()}w.once("close",Ue);function ke(){T("onfinish"),w.removeListener("close",Ue),Te()}w.once("finish",ke);function Te(){T("unpipe"),re.unpipe(w)}return w.emit("pipe",re),ie.flowing||(T("pipe resume"),re.resume()),w};function M(w){return function(){var x=w._readableState;T("pipeOnDrain",x.awaitDrain),x.awaitDrain&&x.awaitDrain--,x.awaitDrain===0&&a(w,"data")&&(x.flowing=!0,N(w))}}m.prototype.unpipe=function(w){var x=this._readableState,re={hasUnpiped:!1};if(x.pipesCount===0)return this;if(x.pipesCount===1)return w&&w!==x.pipes?this:(w||(w=x.pipes),x.pipes=null,x.pipesCount=0,x.flowing=!1,w&&w.emit("unpipe",this,re),this);if(!w){var ie=x.pipes,C=x.pipesCount;x.pipes=null,x.pipesCount=0,x.flowing=!1;for(var k=0;k=x.length?(x.decoder?re=x.buffer.join(""):x.buffer.length===1?re=x.buffer.head.data:re=x.buffer.concat(x.length),x.buffer.clear()):re=$(w,x.buffer,x.decoder),re}function $(w,x,re){var ie;return wk.length?k.length:w;if(ne===k.length?C+=k:C+=k.slice(0,w),w-=ne,w===0){ne===k.length?(++ie,re.next?x.head=re.next:x.head=x.tail=null):(x.head=re,re.data=k.slice(ne));break}++ie}return x.length-=ie,C}function ee(w,x){var re=i.allocUnsafe(w),ie=x.head,C=1;for(ie.data.copy(re),w-=ie.data.length;ie=ie.next;){var k=ie.data,ne=w>k.length?k.length:w;if(k.copy(re,re.length-w,0,ne),w-=ne,w===0){ne===k.length?(++C,ie.next?x.head=ie.next:x.head=x.tail=null):(x.head=ie,ie.data=k.slice(ne));break}++C}return x.length-=C,re}function fe(w){var x=w._readableState;if(x.length>0)throw new Error('"endReadable()" called on non-empty stream');x.endEmitted||(x.ended=!0,v.nextTick(le,x,w))}function le(w,x){!w.endEmitted&&w.length===0&&(w.endEmitted=!0,x.readable=!1,x.emit("end"))}function X(w,x){for(var re=0,ie=w.length;re-1?setImmediate:v.nextTick,a;u.WritableState=o;var s=Object.create(e(44339));s.inherits=e(35717);var i={deprecate:e(94927)},f=e(83194),h=e(56422).Buffer,p=(typeof e.g!="undefined"?e.g:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function P(_){return h.from(_)}function E(_){return h.isBuffer(_)||_ instanceof p}var T=e(71029);s.inherits(u,f);function O(){}function o(_,D){a=a||e(68656),_=_||{};var N=D instanceof a;this.objectMode=!!_.objectMode,N&&(this.objectMode=this.objectMode||!!_.writableObjectMode);var G=_.highWaterMark,$=_.writableHighWaterMark,te=this.objectMode?16:16*1024;G||G===0?this.highWaterMark=G:N&&($||$===0)?this.highWaterMark=$:this.highWaterMark=te,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ee=_.decodeStrings===!1;this.decodeStrings=!ee,this.defaultEncoding=_.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(fe){Q(D,fe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new d(this)}o.prototype.getBuffer=function(){for(var D=this.bufferedRequest,N=[];D;)N.push(D),D=D.next;return N},function(){try{Object.defineProperty(o.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(_){}}();var y;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(u,Symbol.hasInstance,{value:function(_){return y.call(this,_)?!0:this!==u?!1:_&&_._writableState instanceof o}})):y=function(_){return _ instanceof this};function u(_){if(a=a||e(68656),!y.call(u,this)&&!(this instanceof a))return new u(_);this._writableState=new o(_,this),this.writable=!0,_&&(typeof _.write=="function"&&(this._write=_.write),typeof _.writev=="function"&&(this._writev=_.writev),typeof _.destroy=="function"&&(this._destroy=_.destroy),typeof _.final=="function"&&(this._final=_.final)),f.call(this)}u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function n(_,D){var N=new Error("write after end");_.emit("error",N),v.nextTick(D,N)}function c(_,D,N,G){var $=!0,te=!1;return N===null?te=new TypeError("May not write null values to stream"):typeof N!="string"&&N!==void 0&&!D.objectMode&&(te=new TypeError("Invalid non-string/buffer chunk")),te&&(_.emit("error",te),v.nextTick(G,te),$=!1),$}u.prototype.write=function(_,D,N){var G=this._writableState,$=!1,te=!G.objectMode&&E(_);return te&&!h.isBuffer(_)&&(_=P(_)),typeof D=="function"&&(N=D,D=null),te?D="buffer":D||(D=G.defaultEncoding),typeof N!="function"&&(N=O),G.ended?n(this,N):(te||c(this,G,_,N))&&(G.pendingcb++,$=S(this,G,te,_,D,N)),$},u.prototype.cork=function(){var _=this._writableState;_.corked++},u.prototype.uncork=function(){var _=this._writableState;_.corked&&(_.corked--,!_.writing&&!_.corked&&!_.bufferProcessing&&_.bufferedRequest&&R(this,_))},u.prototype.setDefaultEncoding=function(D){if(typeof D=="string"&&(D=D.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((D+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+D);return this._writableState.defaultEncoding=D,this};function m(_,D,N){return!_.objectMode&&_.decodeStrings!==!1&&typeof D=="string"&&(D=h.from(D,N)),D}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S(_,D,N,G,$,te){if(!N){var ee=m(D,G,$);G!==ee&&(N=!0,$="buffer",G=ee)}var fe=D.objectMode?1:G.length;D.length+=fe;var le=D.length0?this.tail.next=i:this.head=i,this.tail=i,++this.length},g.prototype.unshift=function(s){var i={data:s,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},g.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},g.prototype.clear=function(){this.head=this.tail=null,this.length=0},g.prototype.join=function(s){if(this.length===0)return"";for(var i=this.head,f=""+i.data;i=i.next;)f+=s+i.data;return f},g.prototype.concat=function(s){if(this.length===0)return v.alloc(0);for(var i=v.allocUnsafe(s>>>0),f=this.head,h=0;f;)d(f.data,i,h),h+=f.data.length,f=f.next;return i},g}(),b&&b.inspect&&b.inspect.custom&&(A.exports.prototype[b.inspect.custom]=function(){var g=b.inspect({length:this.length});return this.constructor.name+" "+g})},71029:function(A,r,e){"use strict";var t=e(88212);function v(g,a){var s=this,i=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return i||f?(a?a(g):g&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(d,this,g)):t.nextTick(d,this,g)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,function(h){!a&&h?s._writableState?s._writableState.errorEmitted||(s._writableState.errorEmitted=!0,t.nextTick(d,s,h)):t.nextTick(d,s,h):a&&a(h)}),this)}function b(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function d(g,a){g.emit("error",a)}A.exports={destroy:v,undestroy:b}},83194:function(A,r,e){A.exports=e(17187).EventEmitter},5990:function(A,r,e){A.exports=e(42874).PassThrough},42874:function(A,r,e){r=A.exports=e(56577),r.Stream=r,r.Readable=r,r.Writable=e(20323),r.Duplex=e(68656),r.Transform=e(94473),r.PassThrough=e(2366)},95202:function(A,r,e){A.exports=e(42874).Transform},73098:function(A,r,e){A.exports=e(20323)},56422:function(A,r,e){var t=e(48764),v=t.Buffer;function b(g,a){for(var s in g)a[s]=g[s]}v.from&&v.alloc&&v.allocUnsafe&&v.allocUnsafeSlow?A.exports=t:(b(t,r),r.Buffer=d);function d(g,a,s){return v(g,a,s)}b(v,d),d.from=function(g,a,s){if(typeof g=="number")throw new TypeError("Argument must not be a number");return v(g,a,s)},d.alloc=function(g,a,s){if(typeof g!="number")throw new TypeError("Argument must be a number");var i=v(g);return a!==void 0?typeof s=="string"?i.fill(a,s):i.fill(a):i.fill(0),i},d.allocUnsafe=function(g){if(typeof g!="number")throw new TypeError("Argument must be a number");return v(g)},d.allocUnsafeSlow=function(g){if(typeof g!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(g)}},54729:function(A,r,e){"use strict";var t=e(56422).Buffer,v=t.isEncoding||function(u){switch(u=""+u,u&&u.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function b(u){if(!u)return"utf8";for(var n;;)switch(u){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return u;default:if(n)return;u=(""+u).toLowerCase(),n=!0}}function d(u){var n=b(u);if(typeof n!="string"&&(t.isEncoding===v||!v(u)))throw new Error("Unknown encoding: "+u);return n||u}r.s=g;function g(u){this.encoding=d(u);var n;switch(this.encoding){case"utf16le":this.text=P,this.end=E,n=4;break;case"utf8":this.fillLast=f,n=4;break;case"base64":this.text=T,this.end=O,n=3;break;default:this.write=o,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}g.prototype.write=function(u){if(u.length===0)return"";var n,c;if(this.lastNeed){if(n=this.fillLast(u),n===void 0)return"";c=this.lastNeed,this.lastNeed=0}else c=0;return c>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function s(u,n,c){var m=n.length-1;if(m=0?(S>0&&(u.lastNeed=S-1),S):--m=0?(S>0&&(u.lastNeed=S-2),S):--m=0?(S>0&&(S===2?S=0:u.lastNeed=S-3),S):0))}function i(u,n,c){if((n[0]&192)!==128)return u.lastNeed=0,"\uFFFD";if(u.lastNeed>1&&n.length>1){if((n[1]&192)!==128)return u.lastNeed=1,"\uFFFD";if(u.lastNeed>2&&n.length>2&&(n[2]&192)!==128)return u.lastNeed=2,"\uFFFD"}}function f(u){var n=this.lastTotal-this.lastNeed,c=i(this,u,n);if(c!==void 0)return c;if(this.lastNeed<=u.length)return u.copy(this.lastChar,n,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,n,0,u.length),this.lastNeed-=u.length}function h(u,n){var c=s(this,u,n);if(!this.lastNeed)return u.toString("utf8",n);this.lastTotal=c;var m=u.length-(c-this.lastNeed);return u.copy(this.lastChar,0,m),u.toString("utf8",n,m)}function p(u){var n=u&&u.length?this.write(u):"";return this.lastNeed?n+"\uFFFD":n}function P(u,n){if((u.length-n)%2===0){var c=u.toString("utf16le",n);if(c){var m=c.charCodeAt(c.length-1);if(m>=55296&&m<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],c.slice(0,-1)}return c}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",n,u.length-1)}function E(u){var n=u&&u.length?this.write(u):"";if(this.lastNeed){var c=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,c)}return n}function T(u,n){var c=(u.length-n)%3;return c===0?u.toString("base64",n):(this.lastNeed=3-c,this.lastTotal=3,c===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",n,u.length-c))}function O(u){var n=u&&u.length?this.write(u):"";return this.lastNeed?n+this.lastChar.toString("base64",0,3-this.lastNeed):n}function o(u){return u.toString(this.encoding)}function y(u){return u&&u.length?this.write(u):""}},32553:function(A,r,e){"use strict";var t=e(89509).Buffer,v=t.isEncoding||function(u){switch(u=""+u,u&&u.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function b(u){if(!u)return"utf8";for(var n;;)switch(u){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return u;default:if(n)return;u=(""+u).toLowerCase(),n=!0}}function d(u){var n=b(u);if(typeof n!="string"&&(t.isEncoding===v||!v(u)))throw new Error("Unknown encoding: "+u);return n||u}r.StringDecoder=g;function g(u){this.encoding=d(u);var n;switch(this.encoding){case"utf16le":this.text=P,this.end=E,n=4;break;case"utf8":this.fillLast=f,n=4;break;case"base64":this.text=T,this.end=O,n=3;break;default:this.write=o,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}g.prototype.write=function(u){if(u.length===0)return"";var n,c;if(this.lastNeed){if(n=this.fillLast(u),n===void 0)return"";c=this.lastNeed,this.lastNeed=0}else c=0;return c>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function s(u,n,c){var m=n.length-1;if(m=0?(S>0&&(u.lastNeed=S-1),S):--m=0?(S>0&&(u.lastNeed=S-2),S):--m=0?(S>0&&(S===2?S=0:u.lastNeed=S-3),S):0))}function i(u,n,c){if((n[0]&192)!==128)return u.lastNeed=0,"\uFFFD";if(u.lastNeed>1&&n.length>1){if((n[1]&192)!==128)return u.lastNeed=1,"\uFFFD";if(u.lastNeed>2&&n.length>2&&(n[2]&192)!==128)return u.lastNeed=2,"\uFFFD"}}function f(u){var n=this.lastTotal-this.lastNeed,c=i(this,u,n);if(c!==void 0)return c;if(this.lastNeed<=u.length)return u.copy(this.lastChar,n,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,n,0,u.length),this.lastNeed-=u.length}function h(u,n){var c=s(this,u,n);if(!this.lastNeed)return u.toString("utf8",n);this.lastTotal=c;var m=u.length-(c-this.lastNeed);return u.copy(this.lastChar,0,m),u.toString("utf8",n,m)}function p(u){var n=u&&u.length?this.write(u):"";return this.lastNeed?n+"\uFFFD":n}function P(u,n){if((u.length-n)%2===0){var c=u.toString("utf16le",n);if(c){var m=c.charCodeAt(c.length-1);if(m>=55296&&m<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],c.slice(0,-1)}return c}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",n,u.length-1)}function E(u){var n=u&&u.length?this.write(u):"";if(this.lastNeed){var c=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,c)}return n}function T(u,n){var c=(u.length-n)%3;return c===0?u.toString("base64",n):(this.lastNeed=3-c,this.lastTotal=3,c===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",n,u.length-c))}function O(u){var n=u&&u.length?this.write(u):"";return this.lastNeed?n+this.lastChar.toString("base64",0,3-this.lastNeed):n}function o(u){return u.toString(this.encoding)}function y(u){return u&&u.length?this.write(u):""}},9273:function(A,r){"use strict";r.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},r.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}},85243:function(A,r,e){"use strict";Object.defineProperty(r,"cli",{value:e(9273)}),Object.defineProperty(r,"npm",{value:e(2459)}),Object.defineProperty(r,"syslog",{value:e(51945)})},2459:function(A,r){"use strict";r.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},r.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}},51945:function(A,r){"use strict";r.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},r.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}},15396:function(A,r,e){"use strict";Object.defineProperty(r,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(r,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(r,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(r,"configs",{value:e(85243)})},94927:function(A,r,e){A.exports=t;function t(b,d){if(v("noDeprecation"))return b;var g=!1;function a(){if(!g){if(v("throwDeprecation"))throw new Error(d);v("traceDeprecation")?console.trace(d):console.warn(d),g=!0}return b.apply(this,arguments)}return a}function v(b){try{if(!e.g.localStorage)return!1}catch(g){return!1}var d=e.g.localStorage[b];return d==null?!1:String(d).toLowerCase()==="true"}},91496:function(A){typeof Object.create=="function"?A.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:A.exports=function(e,t){e.super_=t;var v=function(){};v.prototype=t.prototype,e.prototype=new v,e.prototype.constructor=e}},20384:function(A){A.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}},89539:function(A,r,e){var t=e(34155),v=Object.getOwnPropertyDescriptors||function(G){for(var $=Object.keys(G),te={},ee=0;ee<$.length;ee++)te[$[ee]]=Object.getOwnPropertyDescriptor(G,$[ee]);return te},b=/%[sdj%]/g;r.format=function(N){if(!m(N)){for(var G=[],$=0;$=ee)return X;switch(X){case"%s":return String(te[$++]);case"%d":return Number(te[$++]);case"%j":try{return JSON.stringify(te[$++])}catch(w){return"[Circular]"}default:return X}}),le=te[$];$=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),y(G)?$.showHidden=G:G&&r._extend($,G),W($.showHidden)&&($.showHidden=!1),W($.depth)&&($.depth=2),W($.colors)&&($.colors=!1),W($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=s),h($,N,$.depth)}r.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(N,G){var $=a.styles[G];return $?"\x1B["+a.colors[$][0]+"m"+N+"\x1B["+a.colors[$][1]+"m":N}function i(N,G){return N}function f(N){var G={};return N.forEach(function($,te){G[$]=!0}),G}function h(N,G,$){if(N.customInspect&&G&&F(G.inspect)&&G.inspect!==r.inspect&&!(G.constructor&&G.constructor.prototype===G)){var te=G.inspect($,N);return m(te)||(te=h(N,te,$)),te}var ee=p(N,G);if(ee)return ee;var fe=Object.keys(G),le=f(fe);if(N.showHidden&&(fe=Object.getOwnPropertyNames(G)),I(G)&&(fe.indexOf("message")>=0||fe.indexOf("description")>=0))return P(G);if(fe.length===0){if(F(G)){var X=G.name?": "+G.name:"";return N.stylize("[Function"+X+"]","special")}if(V(G))return N.stylize(RegExp.prototype.toString.call(G),"regexp");if(Q(G))return N.stylize(Date.prototype.toString.call(G),"date");if(I(G))return P(G)}var w="",x=!1,re=["{","}"];if(o(G)&&(x=!0,re=["[","]"]),F(G)){var ie=G.name?": "+G.name:"";w=" [Function"+ie+"]"}if(V(G)&&(w=" "+RegExp.prototype.toString.call(G)),Q(G)&&(w=" "+Date.prototype.toUTCString.call(G)),I(G)&&(w=" "+P(G)),fe.length===0&&(!x||G.length==0))return re[0]+w+re[1];if($<0)return V(G)?N.stylize(RegExp.prototype.toString.call(G),"regexp"):N.stylize("[Object]","special");N.seen.push(G);var C;return x?C=E(N,G,$,le,fe):C=fe.map(function(k){return T(N,G,$,le,k,x)}),N.seen.pop(),O(C,w,re)}function p(N,G){if(W(G))return N.stylize("undefined","undefined");if(m(G)){var $="'"+JSON.stringify(G).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return N.stylize($,"string")}if(c(G))return N.stylize(""+G,"number");if(y(G))return N.stylize(""+G,"boolean");if(u(G))return N.stylize("null","null")}function P(N){return"["+Error.prototype.toString.call(N)+"]"}function E(N,G,$,te,ee){for(var fe=[],le=0,X=G.length;le-1&&(fe?X=X.split(` -`).map(function(x){return" "+x}).join(` -`).substr(2):X=` -`+X.split(` -`).map(function(x){return" "+x}).join(` -`))):X=N.stylize("[Circular]","special")),W(le)){if(fe&&ee.match(/^\d+$/))return X;le=JSON.stringify(""+ee),le.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(le=le.substr(1,le.length-2),le=N.stylize(le,"name")):(le=le.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),le=N.stylize(le,"string"))}return le+": "+X}function O(N,G,$){var te=0,ee=N.reduce(function(fe,le){return te++,le.indexOf(` -`)>=0&&te++,fe+le.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ee>60?$[0]+(G===""?"":G+` - `)+" "+N.join(`, - `)+" "+$[1]:$[0]+G+" "+N.join(", ")+" "+$[1]}function o(N){return Array.isArray(N)}r.isArray=o;function y(N){return typeof N=="boolean"}r.isBoolean=y;function u(N){return N===null}r.isNull=u;function n(N){return N==null}r.isNullOrUndefined=n;function c(N){return typeof N=="number"}r.isNumber=c;function m(N){return typeof N=="string"}r.isString=m;function S(N){return typeof N=="symbol"}r.isSymbol=S;function W(N){return N===void 0}r.isUndefined=W;function V(N){return K(N)&&Z(N)==="[object RegExp]"}r.isRegExp=V;function K(N){return typeof N=="object"&&N!==null}r.isObject=K;function Q(N){return K(N)&&Z(N)==="[object Date]"}r.isDate=Q;function I(N){return K(N)&&(Z(N)==="[object Error]"||N instanceof Error)}r.isError=I;function F(N){return typeof N=="function"}r.isFunction=F;function R(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||typeof N=="undefined"}r.isPrimitive=R,r.isBuffer=e(20384);function Z(N){return Object.prototype.toString.call(N)}function U(N){return N<10?"0"+N.toString(10):N.toString(10)}var H=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y(){var N=new Date,G=[U(N.getHours()),U(N.getMinutes()),U(N.getSeconds())].join(":");return[N.getDate(),H[N.getMonth()],G].join(" ")}r.log=function(){console.log("%s - %s",Y(),r.format.apply(r,arguments))},r.inherits=e(91496),r._extend=function(N,G){if(!G||!K(G))return N;for(var $=Object.keys(G),te=$.length;te--;)N[$[te]]=G[$[te]];return N};function M(N,G){return Object.prototype.hasOwnProperty.call(N,G)}var z=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;r.promisify=function(G){if(typeof G!="function")throw new TypeError('The "original" argument must be of type Function');if(z&&G[z]){var $=G[z];if(typeof $!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty($,z,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(){for(var te,ee,fe=new Promise(function(w,x){te=w,ee=x}),le=[],X=0;X0&&arguments[0]!==void 0?arguments[0]:{};if(d.call(this,s),!s.transport||typeof s.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=s.transport,this.level=this.level||s.transport.level,this.handleExceptions=this.handleExceptions||s.transport.handleExceptions,this._deprecated();function i(f){this.emit("error",f,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=i.bind(this),this.transport.on("error",this.transport.__winstonError))};t.inherits(g,d),g.prototype._write=function(s,i,f){if(this.silent||s.exception===!0&&!this.handleExceptions)return f(null);(!this.level||this.levels[this.level]>=this.levels[s[b]])&&this.transport.log(s[b],s.message,s,this._nop),f(null)},g.prototype._writev=function(s,i){for(var f=0;f0&&arguments[0]!==void 0?arguments[0]:{};v.call(this,{objectMode:!0,highWaterMark:i.highWaterMark}),this.format=i.format,this.level=i.level,this.handleExceptions=i.handleExceptions,this.handleRejections=i.handleRejections,this.silent=i.silent,i.log&&(this.log=i.log),i.logv&&(this.logv=i.logv),i.close&&(this.close=i.close),this.once("pipe",function(f){s.levels=f.levels,s.parent=f}),this.once("unpipe",function(f){f===s.parent&&(s.parent=null,s.close&&s.close())})};t.inherits(g,v),g.prototype._write=function(s,i,f){if(this.silent||s.exception===!0&&!this.handleExceptions)return f(null);var h=this.level||this.parent&&this.parent.level;if(!h||this.levels[h]>=this.levels[s[d]]){if(s&&!this.format)return this.log(s,f);var p=void 0,P=void 0;try{P=this.format.transform(Object.assign({},s),this.format.options)}catch(E){p=E}if(p||!P){if(f(),p)throw p;return}return this.log(P,f)}return this._writableState.sync=!1,f(null)},g.prototype._writev=function(s,i){if(this.logv){var f=s.filter(this._accept,this);return f.length?this.logv(f,i):i(null)}for(var h=0;h=this.levels[i[d]])&&(this.handleExceptions||i.exception!==!0))},g.prototype._nop=function(){}},54201:function(A,r,e){"use strict";const t=e(89539),{LEVEL:v}=e(15396),b=e(51746),d=A.exports=function(a={}){if(b.call(this,a),!a.transport||typeof a.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=a.transport,this.level=this.level||a.transport.level,this.handleExceptions=this.handleExceptions||a.transport.handleExceptions,this._deprecated();function s(i){this.emit("error",i,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=s.bind(this),this.transport.on("error",this.transport.__winstonError))};t.inherits(d,b),d.prototype._write=function(a,s,i){if(this.silent||a.exception===!0&&!this.handleExceptions)return i(null);(!this.level||this.levels[this.level]>=this.levels[a[v]])&&this.transport.log(a[v],a.message,a,this._nop),i(null)},d.prototype._writev=function(a,s){for(let i=0;i{this.levels=s.levels,this.parent=s}),this.once("unpipe",s=>{s===this.parent&&(this.parent=null,this.close&&this.close())})};t.inherits(d,v),d.prototype._write=function(a,s,i){if(this.silent||a.exception===!0&&!this.handleExceptions)return i(null);const f=this.level||this.parent&&this.parent.level;if(!f||this.levels[f]>=this.levels[a[b]]){if(a&&!this.format)return this.log(a,i);let h,p;try{p=this.format.transform(Object.assign({},a),this.format.options)}catch(P){h=P}if(h||!p){if(i(),h)throw h;return}return this.log(p,i)}return this._writableState.sync=!1,i(null)},d.prototype._writev=function(a,s){if(this.logv){const i=a.filter(this._accept,this);return i.length?this.logv(i,s):s(null)}for(let i=0;i=this.levels[s[b]])&&(this.handleExceptions||s.exception!==!0))},d.prototype._nop=function(){}},15832:function(A,r,e){"use strict";var t=e(26129),v=e(23221),b=v.warn;r.version=e(12561).version,r.transports=e(50557),r.config=e(8953),r.addColors=t.levels,r.format=t.format,r.createLogger=e(53040),r.Logger=e(47803),r.ExceptionHandler=e(69796),r.RejectionHandler=e(74841),r.Container=e(75100),r.Transport=e(94307),r.loggers=new r.Container;var d=r.createLogger();Object.keys(r.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(g){return r[g]=function(){return d[g].apply(d,arguments)}}),Object.defineProperty(r,"level",{get:function(){return d.level},set:function(a){d.level=a}}),Object.defineProperty(r,"exceptions",{get:function(){return d.exceptions}}),Object.defineProperty(r,"rejections",{get:function(){return d.rejections}}),["exitOnError"].forEach(function(g){Object.defineProperty(r,g,{get:function(){return d[g]},set:function(s){d[g]=s}})}),Object.defineProperty(r,"default",{get:function(){return{exceptionHandlers:d.exceptionHandlers,rejectionHandlers:d.rejectionHandlers,transports:d.transports}}}),b.deprecated(r,"setLevels"),b.forFunctions(r,"useFormat",["cli"]),b.forProperties(r,"useFormat",["padLevels","stripColors"]),b.forFunctions(r,"deprecated",["addRewriter","addFilter","clone","extend"]),b.forProperties(r,"deprecated",["emitErrs","levelLength"])},23221:function(A,r,e){"use strict";var t=e(89539),v=t.format;r.warn={deprecated:function(d){return function(){throw new Error(v("{ %s } was removed in winston@3.0.0.",d))}},useFormat:function(d){return function(){throw new Error([v("{ %s } was removed in winston@3.0.0.",d),"Use a custom winston.format = winston.format(function) instead."].join(` -`))}},forFunctions:function(d,g,a){a.forEach(function(s){d[s]=r.warn[g](s)})},forProperties:function(d,g,a){a.forEach(function(s){var i=r.warn[g](s);Object.defineProperty(d,s,{get:i,set:i})})}}},8953:function(A,r,e){"use strict";var t=e(26129),v=e(15396),b=v.configs;r.cli=t.levels(b.cli),r.npm=t.levels(b.npm),r.syslog=t.levels(b.syslog),r.addColors=t.levels},75100:function(A,r,e){"use strict";function t(i){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},t(i)}function v(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}function b(i,f){for(var h=0;h0&&arguments[0]!==void 0?arguments[0]:{};v(this,i),this.loggers=new Map,this.options=f}return d(i,[{key:"add",value:function(h,p){var P=this;if(!this.loggers.has(h)){p=Object.assign({},p||this.options);var E=p.transports||this.options.transports;E?p.transports=Array.isArray(E)?E.slice():[E]:p.transports=[];var T=s(p);T.on("close",function(){return P._delete(h)}),this.loggers.set(h,T)}return this.loggers.get(h)}},{key:"get",value:function(h,p){return this.add(h,p)}},{key:"has",value:function(h){return!!this.loggers.has(h)}},{key:"close",value:function(h){var p=this;if(h)return this._removeLogger(h);this.loggers.forEach(function(P,E){return p._removeLogger(E)})}},{key:"_removeLogger",value:function(h){if(this.loggers.has(h)){var p=this.loggers.get(h);p.close(),this._delete(h)}}},{key:"_delete",value:function(h){this.loggers.delete(h)}}]),i}()},53040:function(A,r,e){"use strict";function t(c){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t(c)}function v(c,m){for(var S=0;S0&&arguments[0]!==void 0?arguments[0]:{};c.levels=c.levels||o.npm.levels;var m=function(W){P(V,W);function V(K){return a(this,V),s(this,V,[K])}return b(V)}(y),S=new m(c);return Object.keys(c.levels).forEach(function(W){if(u('Define prototype method for "%s"',W),W==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}m.prototype[W]=function(){for(var V=this||S,K=arguments.length,Q=new Array(K),I=0;I0&&arguments[0]!==void 0?arguments[0]:{},N=D.silent,G=D.format,$=D.defaultMeta,te=D.levels,ee=D.level,fe=ee===void 0?"info":ee,le=D.exitOnError,X=le===void 0?!0:le,w=D.transports,x=D.colors,re=D.emitErrs,ie=D.formatters,C=D.padLevels,k=D.rewriters,ne=D.stripColors,he=D.exceptionHandlers,we=D.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=N,this.format=G||this.format||e(51126)(),this.defaultMeta=$||null,this.levels=te||this.levels||R.npm.levels,this.level=fe,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new W(this),this.rejections=new V(this),this.profilers={},this.exitOnError=X,w&&(w=Array.isArray(w)?w:[w],w.forEach(function(ve){return _.add(ve)})),x||re||ie||C||k||ne)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(` -`));he&&this.exceptions.handle(he),we&&this.rejections.handle(we)}},{key:"isLevelEnabled",value:function(_){var D=this,N=H(this.levels,_);if(N===null)return!1;var G=H(this.levels,this.level);if(G===null)return!1;if(!this.transports||this.transports.length===0)return G>=N;var $=this.transports.findIndex(function(te){var ee=H(D.levels,te.level);return ee===null&&(ee=G),ee>=N});return $!==-1}},{key:"log",value:function(_,D){for(var N=arguments.length,G=new Array(N>2?N-2:0),$=2;$2?new K({transport:_}):_;if(!D._writableState||!D._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",D),this._onEvent("warn",D),this.pipe(D),_.handleExceptions&&this.exceptions.handle(),_.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(_){if(!_)return this;var D=_;return(!S(_)||_.log.length>2)&&(D=this.transports.filter(function(N){return N.transport===_})[0]),D&&this.unpipe(D),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){F.deprecated("setLevels")}},{key:"query",value:function(_,D){typeof _=="function"&&(D=_,_={}),_=_||{};var N={},G=Object.assign({},_.query||{});function $(ee,fe){_.query&&typeof ee.formatQuery=="function"&&(_.query=ee.formatQuery(G)),ee.query(_,function(le,X){if(le)return fe(le);typeof ee.formatResults=="function"&&(X=ee.formatResults(X,_.format)),fe(null,X)})}function te(ee,fe){$(ee,function(le,X){fe&&(X=le||X,X&&(N[ee.name]=X),fe()),fe=null})}u(this.transports.filter(function(ee){return!!ee.query}),te,function(){return D(null,N)})}},{key:"stream",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=new o,N=[];return D._streams=N,D.destroy=function(){for(var G=N.length;G--;)N[G].destroy()},this.transports.filter(function(G){return!!G.stream}).forEach(function(G){var $=G.stream(_);$&&(N.push($),$.on("log",function(te){te.transport=te.transport||[],te.transport.push(G.name),D.emit("log",te)}),$.on("error",function(te){te.transport=te.transport||[],te.transport.push(G.name),D.emit("error",te)}))}),D}},{key:"startTimer",value:function(){return new Q(this)}},{key:"profile",value:function(_){var D=Date.now();if(this.profilers[_]){var N=this.profilers[_];delete this.profilers[_];for(var G=arguments.length,$=new Array(G>1?G-1:0),te=1;tei.start)&&(f?f(null,E):P.emit("line",E)),O++,E=""),setTimeout(u,1e3);var m=p.write(h.slice(0,c));f||P.emit("data",m),m=(E+m).split(/\n+/);for(var S=m.length-1,W=0;Wi.start)&&(f?f(null,m[W]):P.emit("line",m[W])),O++;return E=m[S],T+=c,u()})})()}),f?P.destroy:P}},93739:function(A,r,e){"use strict";function t(n){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(n)}function v(n,c){if(!(n instanceof c))throw new TypeError("Cannot call a class as a function")}function b(n,c){for(var m=0;m0&&arguments[0]!==void 0?arguments[0]:{};return v(this,c),m=s(this,c,[S]),m.name=S.name||"console",m.stderrLevels=m._stringArrayToSet(S.stderrLevels),m.consoleWarnLevels=m._stringArrayToSet(S.consoleWarnLevels),m.eol=typeof S.eol=="string"?S.eol:T.EOL,m.setMaxListeners(30),m}return d(c,[{key:"log",value:function(S,W){var V=this;if(setImmediate(function(){return V.emit("logged",S)}),this.stderrLevels[S[o]]){console._stderr?console._stderr.write("".concat(S[y]).concat(this.eol)):console.error(S[y]),W&&W();return}else if(this.consoleWarnLevels[S[o]]){console._stderr?console._stderr.write("".concat(S[y]).concat(this.eol)):console.warn(S[y]),W&&W();return}console._stdout?console._stdout.write("".concat(S[y]).concat(this.eol)):console.log(S[y]),W&&W()}},{key:"_stringArrayToSet",value:function(S,W){if(!S)return{};if(W=W||"Cannot make set from type other than Array of string elements",!Array.isArray(S))throw new Error(W);return S.reduce(function(V,K){if(typeof K!="string")throw new Error(W);return V[K]=!0,V},{})}}]),c}(u)},13401:function(A,r,e){"use strict";var t=e(48764).Buffer;function v(F){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},v(F)}function b(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}function d(F,R){for(var Z=0;Z0&&arguments[0]!==void 0?arguments[0]:{};b(this,R),Z=i(this,R,[U]),Z.name=U.name||"file";function H(Y){for(var M=arguments.length,z=new Array(M>1?M-1:0),_=1;_1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return Y(),!0;if(this._drain){this._stream.once("drain",function(){H._drain=!1,H.log(U,Y)});return}if(this._rotate){this._stream.once("rotate",function(){H._rotate=!1,H.log(U,Y)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",function(){H._fileExist=!0,H.log(U,Y)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",function(){H._opening||H.open(),H.once("open",function(){H.log(U,Y)})});return}}var M="".concat(U[c]).concat(this.eol),z=t.byteLength(M);function _(){var N=this;if(this._size+=z,this._pendingSize-=z,K("logged %s %s",this._size,M),this.emit("logged",U),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(function(){N.emit("fileclosed")});return}this._rotate=!0,this._endStream(function(){return N._rotateFile()})}}this._pendingSize+=z,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var D=this._stream.write(M,_.bind(this));return D?Y():(this._drain=!0,this._stream.once("drain",function(){H._drain=!1,Y()})),K("written",D,this._drain),this.finishIfEnding(),D}},{key:"query",value:function(U,H){typeof U=="function"&&(H=U,U={}),U=te(U);var Y=o.join(this.dirname,this.filename),M="",z=[],_=0,D=O.createReadStream(Y,{encoding:"utf8"});D.on("error",function(ee){if(D.readable&&D.destroy(),!!H)return ee.code!=="ENOENT"?H(ee):H(null,z)}),D.on("data",function(ee){ee=(M+ee).split(/\n+/);for(var fe=ee.length-1,le=0;le=U.start)&&N(ee[le]),_++;M=ee[fe]}),D.on("close",function(){M&&N(M,!0),U.order==="desc"&&(z=z.reverse()),H&&H(null,z)});function N(ee,fe){try{var le=JSON.parse(ee);$(le)&&G(le)}catch(X){fe||D.emit("error",X)}}function G(ee){if(U.rows&&z.length>=U.rows&&U.order!=="desc"){D.readable&&D.destroy();return}U.fields&&(ee=U.fields.reduce(function(fe,le){return fe[le]=ee[le],fe},{})),U.order==="desc"&&z.length>=U.rows&&z.shift(),z.push(ee)}function $(ee){if(ee&&v(ee)==="object"){var fe=new Date(ee.timestamp);if(!(U.from&&feU.until||U.level&&U.level!==ee.level))return!0}}function te(ee){return ee=ee||{},ee.rows=ee.rows||ee.limit||10,ee.start=ee.start||0,ee.until=ee.until||new Date,v(ee.until)!=="object"&&(ee.until=new Date(ee.until)),ee.from=ee.from||ee.until-24*60*60*1e3,v(ee.from)!=="object"&&(ee.from=new Date(ee.from)),ee.order=ee.order||"desc",ee}}},{key:"stream",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=o.join(this.dirname,this.filename),Y=new S,M={file:H,start:U.start};return Y.destroy=I(M,function(z,_){if(z)return Y.emit("error",z);try{Y.emit("data",_),_=JSON.parse(_),Y.emit("log",_)}catch(D){Y.emit("error",D)}}),Y}},{key:"open",value:function(){var U=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(H,Y){if(H)return U.emit("error",H);K("stat done: %s { size: %s }",U.filename,Y),U._size=Y,U._dest=U._createStream(U._stream),U._opening=!1,U.once("open",function(){U._stream.eventNames().includes("rotate")?U._stream.emit("rotate"):U._rotate=!1})})))}},{key:"stat",value:function(U){var H=this,Y=this._getFile(),M=o.join(this.dirname,Y);O.stat(M,function(z,_){if(z&&z.code==="ENOENT")return K("ENOENT\xA0ok",M),H.filename=Y,U(null,0);if(z)return K("err ".concat(z.code," ").concat(M)),U(z);if(!_||H._needsNewFile(_.size))return H._incFile(function(){return H.stat(U)});H.filename=Y,U(null,_.size)})}},{key:"close",value:function(U){var H=this;this._stream&&this._stream.end(function(){U&&U(),H.emit("flush"),H.emit("closed")})}},{key:"_needsNewFile",value:function(U){return U=U||this._size,this.maxsize&&U>=this.maxsize}},{key:"_onError",value:function(U){this.emit("error",U)}},{key:"_setupStream",value:function(U){return U.on("error",this._onError),U}},{key:"_cleanupStream",value:function(U){return U.removeListener("error",this._onError),U.destroy(),U}},{key:"_rotateFile",value:function(){var U=this;this._incFile(function(){return U.open()})}},{key:"_endStream",value:function(){var U=this,H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){U._cleanupStream(U._dest),H()})):H()}},{key:"_createStream",value:function(U){var H=this,Y=o.join(this.dirname,this.filename);K("create stream start",Y,this.options);var M=O.createWriteStream(Y,this.options).on("error",function(z){return K(z)}).on("close",function(){return K("close",M.path,M.bytesWritten)}).on("open",function(){K("file open ok",Y),H.emit("open",Y),U.pipe(M),H.rotatedWhileOpening&&(H._stream=new W,H._stream.setMaxListeners(30),H._rotateFile(),H.rotatedWhileOpening=!1,H._cleanupStream(M),U.end())});return K("create stream ok",Y),M}},{key:"_incFile",value:function(U){K("_incFile",this.filename);var H=o.extname(this._basename),Y=o.basename(this._basename,H),M=[];this.zippedArchive&&M.push(function(z){var _=this._created>0&&!this.tailable?this._created:"";this._compressFile(o.join(this.dirname,"".concat(Y).concat(_).concat(H)),o.join(this.dirname,"".concat(Y).concat(_).concat(H,".gz")),z)}.bind(this)),M.push(function(z){this.tailable?this._checkMaxFilesTailable(H,Y,z):(this._created+=1,this._checkMaxFilesIncrementing(H,Y,z))}.bind(this)),y(M,U)}},{key:"_getFile",value:function(){var U=o.extname(this._basename),H=o.basename(this._basename,U),Y=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?"".concat(H).concat(Y).concat(U):"".concat(H).concat(U)}},{key:"_checkMaxFilesIncrementing",value:function(U,H,Y){if(!this.maxFiles||this._created1;D--)z.push(function(N,G){var $=this,te="".concat(H).concat(N-1).concat(U).concat(_),ee=o.join(this.dirname,te);O.exists(ee,function(fe){if(!fe)return G(null);te="".concat(H).concat(N).concat(U).concat(_),O.rename(ee,o.join($.dirname,te),G)})}.bind(this,D));y(z,function(){O.rename(o.join(M.dirname,"".concat(H).concat(U).concat(_)),o.join(M.dirname,"".concat(H,"1").concat(U).concat(_)),Y)})}}},{key:"_compressFile",value:function(U,H,Y){O.access(U,O.F_OK,function(M){if(M)return Y();var z=u.createGzip(),_=O.createReadStream(U),D=O.createWriteStream(H);D.on("finish",function(){O.unlink(U,Y)}),_.pipe(z).pipe(D)})}},{key:"_createLogDirIfNotExist",value:function(U){O.existsSync(U)||O.mkdirSync(U,{recursive:!0})}}]),R}(V)},85216:function(A,r,e){"use strict";var t=e(48764).Buffer;function v(V){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},v(V)}function b(V,K){var Q=Object.keys(V);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(V);K&&(I=I.filter(function(F){return Object.getOwnPropertyDescriptor(V,F).enumerable})),Q.push.apply(Q,I)}return Q}function d(V){for(var K=1;K0&&arguments[0]!==void 0?arguments[0]:{};return a(this,K),Q=p(this,K,[I]),Q.options=I,Q.name=I.name||"http",Q.ssl=!!I.ssl,Q.host=I.host||"localhost",Q.port=I.port,Q.auth=I.auth,Q.path=I.path||"",Q.agent=I.agent,Q.headers=I.headers||{},Q.headers["content-type"]="application/json",Q.batch=I.batch||!1,Q.batchInterval=I.batchInterval||5e3,Q.batchCount=I.batchCount||10,Q.batchOptions=[],Q.batchTimeoutID=-1,Q.batchCallback={},Q.port||(Q.port=Q.ssl?443:80),Q}return i(K,[{key:"log",value:function(I,F){var R=this;this._request(I,null,null,function(Z,U){U&&U.statusCode!==200&&(Z=new Error("Invalid HTTP Status Code: ".concat(U.statusCode))),Z?R.emit("warn",Z):R.emit("logged",I)}),F&&setImmediate(F)}},{key:"query",value:function(I,F){typeof I=="function"&&(F=I,I={}),I={method:"query",params:this.normalizeQuery(I)};var R=I.params.auth||null;delete I.params.auth;var Z=I.params.path||null;delete I.params.path,this._request(I,R,Z,function(U,H,Y){if(H&&H.statusCode!==200&&(U=new Error("Invalid HTTP Status Code: ".concat(H.statusCode))),U)return F(U);if(typeof Y=="string")try{Y=JSON.parse(Y)}catch(M){return F(M)}F(null,Y)})}},{key:"stream",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=new m;I={method:"stream",params:I};var R=I.params.path||null;delete I.params.path;var Z=I.params.auth||null;delete I.params.auth;var U="",H=this._request(I,Z,R);return F.destroy=function(){return H.destroy()},H.on("data",function(Y){Y=(U+Y).split(/\n+/);for(var M=Y.length-1,z=0;z0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var Z=this.batchOptions.slice();this.batchOptions=[],this._doRequest(Z,I,F,R)}},{key:"_doRequest",value:function(I,F,R,Z){var U=Object.assign({},this.headers);R&&R.bearer&&(U.Authorization="Bearer ".concat(R.bearer));var H=(this.ssl?n:u).request(d(d({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(Z.replace(/^\//,"")),headers:U,auth:R&&R.username&&R.password?"".concat(R.username,":").concat(R.password):"",agent:this.agent}));H.on("error",F),H.on("response",function(Y){return Y.on("end",function(){return F(null,Y)}).resume()}),H.end(t.from(W(I,this.options.replacer),"utf8"))}}]),K}(S)},50557:function(A,r,e){"use strict";Object.defineProperty(r,"Console",{configurable:!0,enumerable:!0,get:function(){return e(93739)}}),Object.defineProperty(r,"File",{configurable:!0,enumerable:!0,get:function(){return e(13401)}}),Object.defineProperty(r,"Http",{configurable:!0,enumerable:!0,get:function(){return e(85216)}}),Object.defineProperty(r,"Stream",{configurable:!0,enumerable:!0,get:function(){return e(36780)}})},36780:function(A,r,e){"use strict";function t(n){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(n)}function v(n,c){if(!(n instanceof c))throw new TypeError("Cannot call a class as a function")}function b(n,c){for(var m=0;m0&&arguments[0]!==void 0?arguments[0]:{};if(v(this,c),m=s(this,c,[S]),!S.stream||!T(S.stream))throw new Error("options.stream is required.");return m._stream=S.stream,m._stream.setMaxListeners(1/0),m.isObjectMode=S.stream._writableState.objectMode,m.eol=typeof S.eol=="string"?S.eol:y.EOL,m}return d(c,[{key:"log",value:function(S,W){var V=this;if(setImmediate(function(){return V.emit("logged",S)}),this.isObjectMode){this._stream.write(S),W&&W();return}this._stream.write("".concat(S[o]).concat(this.eol)),W&&W()}}]),c}(u)},42672:function(A,r,e){var t=e(21314),v=e(21771);function b(d,g,a){return v()?(A.exports=b=Reflect.construct.bind(),A.exports.__esModule=!0,A.exports.default=A.exports):(A.exports=b=function(i,f,h){var p=[null];p.push.apply(p,f);var P=Function.bind.apply(i,p),E=new P;return h&&t(E,h.prototype),E},A.exports.__esModule=!0,A.exports.default=A.exports),b.apply(null,arguments)}A.exports=b,A.exports.__esModule=!0,A.exports.default=A.exports},15143:function(A){function r(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(t){return typeof e=="function"}}A.exports=r,A.exports.__esModule=!0,A.exports.default=A.exports},12665:function(A,r,e){var t=e(48374),v=e(21314),b=e(15143),d=e(42672);function g(a){var s=typeof Map=="function"?new Map:void 0;return A.exports=g=function(f){if(f===null||!b(f))return f;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(typeof s!="undefined"){if(s.has(f))return s.get(f);s.set(f,h)}function h(){return d(f,arguments,t(this).constructor)}return h.prototype=Object.create(f.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),v(h,f)},A.exports.__esModule=!0,A.exports.default=A.exports,g(a)}A.exports=g,A.exports.__esModule=!0,A.exports.default=A.exports},12561:function(A){"use strict";A.exports={version:"3.12.0"}}}]); diff --git a/starter/src/main/resources/templates/admin/397.58820bd9.async.js b/starter/src/main/resources/templates/admin/397.58820bd9.async.js new file mode 100644 index 0000000000..b87e0c4466 --- /dev/null +++ b/starter/src/main/resources/templates/admin/397.58820bd9.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[397],{82947:function(K,T){var v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};T.Z=v},10397:function(K,T,v){v.d(T,{Z:function(){return pe}});var C=v(67294),J=v(87462),q=v(82947),ee=v(93771),te=function(r,u){return C.createElement(ee.Z,(0,J.Z)({},r,{ref:u,icon:q.Z}))},ne=C.forwardRef(te),oe=ne,re=v(93967),se=v.n(re),ie=Object.defineProperty,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,x=(l,r,u)=>r in l?ie(l,r,{enumerable:!0,configurable:!0,writable:!0,value:u}):l[r]=u,O=(l,r)=>{for(var u in r||(r={}))z.call(r,u)&&x(l,u,r[u]);if(b)for(var u of b(r))D.call(r,u)&&x(l,u,r[u]);return l},B=(l,r)=>{var u={};for(var i in l)z.call(l,i)&&r.indexOf(i)<0&&(u[i]=l[i]);if(l!=null&&b)for(var i of b(l))r.indexOf(i)<0&&D.call(l,i)&&(u[i]=l[i]);return u};var I;(l=>{const r=class{constructor(e,t,n,o){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],er.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=e*4+17;let s=[];for(let a=0;a7)throw new RangeError("Invalid value");let a,E;for(a=n;;a++){const m=r.getNumDataCodewords(a,t)*8,M=R.getTotalBits(e,a);if(M<=m){E=M;break}if(a>=o)throw new RangeError("Data too long")}for(const m of[r.Ecc.MEDIUM,r.Ecc.QUARTILE,r.Ecc.HIGH])c&&E<=r.getNumDataCodewords(a,m)*8&&(t=m);let g=[];for(const m of e){i(m.mode.modeBits,4,g),i(m.numChars,m.mode.numCharCountBits(a),g);for(const M of m.getData())g.push(M)}d(g.length==E);const P=r.getNumDataCodewords(a,t)*8;d(g.length<=P),i(0,Math.min(4,P-g.length),g),i(0,(8-g.length%8)%8,g),d(g.length%8==0);for(let m=236;g.lengthw[M>>>3]|=m<<7-(M&7)),new r(a,t,w,s)}getModule(e,t){return 0<=e&&e>>9)*1335;const o=(t<<10|n)^21522;d(o>>>15==0);for(let s=0;s<=5;s++)this.setFunctionModule(8,s,f(o,s));this.setFunctionModule(8,7,f(o,6)),this.setFunctionModule(8,8,f(o,7)),this.setFunctionModule(7,8,f(o,8));for(let s=9;s<15;s++)this.setFunctionModule(14-s,8,f(o,s));for(let s=0;s<8;s++)this.setFunctionModule(this.size-1-s,8,f(o,s));for(let s=8;s<15;s++)this.setFunctionModule(8,this.size-15+s,f(o,s));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let n=0;n<12;n++)e=e<<1^(e>>>11)*7973;const t=this.version<<12|e;d(t>>>18==0);for(let n=0;n<18;n++){const o=f(t,n),s=this.size-11+n%3,c=Math.floor(n/3);this.setFunctionModule(s,c,o),this.setFunctionModule(c,s,o)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let o=-4;o<=4;o++){const s=Math.max(Math.abs(o),Math.abs(n)),c=e+o,a=t+n;0<=c&&c{(m!=E-s||p>=a)&&w.push(M[m])});return d(w.length==c),w}drawCodewords(e){if(e.length!=Math.floor(r.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let t=0;for(let n=this.size-1;n>=1;n-=2){n==6&&(n=5);for(let o=0;o>>3],7-(t&7)),t++)}}d(t==e.length*8)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(a,E),c||(e+=this.finderPenaltyCountPatterns(E)*r.PENALTY_N3),c=this.modules[s][g],a=1);e+=this.finderPenaltyTerminateAndCount(c,a,E)*r.PENALTY_N3}for(let s=0;s5&&e++):(this.finderPenaltyAddHistory(a,E),c||(e+=this.finderPenaltyCountPatterns(E)*r.PENALTY_N3),c=this.modules[g][s],a=1);e+=this.finderPenaltyTerminateAndCount(c,a,E)*r.PENALTY_N3}for(let s=0;sc+(a?1:0),t);const n=this.size*this.size,o=Math.ceil(Math.abs(t*20-n*10)/n)-1;return d(0<=o&&o<=9),e+=o*r.PENALTY_N4,d(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{const e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2;let n=[6];for(let o=this.size-7;n.lengthr.MAX_VERSION)throw new RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){const n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return d(208<=t&&t<=29648),t}static getNumDataCodewords(e,t){return Math.floor(r.getNumRawDataModules(e)/8)-r.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*r.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let t=[];for(let o=0;o0);for(const o of e){const s=o^n.shift();n.push(0),t.forEach((c,a)=>n[a]^=r.reedSolomonMultiply(c,s))}return n}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");let n=0;for(let o=7;o>=0;o--)n=n<<1^(n>>>7)*285,n^=(t>>>o&1)*e;return d(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];d(t<=this.size*3);const n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}};let u=r;u.MIN_VERSION=1,u.MAX_VERSION=40,u.PENALTY_N1=3,u.PENALTY_N2=3,u.PENALTY_N3=40,u.PENALTY_N4=10,u.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],u.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],l.QrCode=u;function i(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(let o=t-1;o>=0;o--)n.push(e>>>o&1)}function f(e,t){return(e>>>t&1)!=0}function d(e){if(!e)throw new Error("Assertion error")}const h=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)i(n,8,t);return new h(h.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!h.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n=1<{let r;(u=>{const i=class{constructor(d,h){this.ordinal=d,this.formatBits=h}};let f=i;f.LOW=new i(0,1),f.MEDIUM=new i(1,0),f.QUARTILE=new i(2,3),f.HIGH=new i(3,2),u.Ecc=f})(r=l.QrCode||(l.QrCode={}))})(I||(I={})),(l=>{let r;(u=>{const i=class{constructor(d,h){this.modeBits=d,this.numBitsCharCount=h}numCharCountBits(d){return this.numBitsCharCount[Math.floor((d+7)/17)]}};let f=i;f.NUMERIC=new i(1,[10,12,14]),f.ALPHANUMERIC=new i(2,[9,11,13]),f.BYTE=new i(4,[8,16,16]),f.KANJI=new i(8,[8,10,12]),f.ECI=new i(7,[0,0,0]),u.Mode=f})(r=l.QrSegment||(l.QrSegment={}))})(I||(I={}));var S=I;var Q={L:S.QrCode.Ecc.LOW,M:S.QrCode.Ecc.MEDIUM,Q:S.QrCode.Ecc.QUARTILE,H:S.QrCode.Ecc.HIGH},U=128,$="L",H="#FFFFFF",_="#000000",k=!1,F=4,le=.1;function Y(l,r=0){const u=[];return l.forEach(function(i,f){let d=null;i.forEach(function(h,R){if(!h&&d!==null){u.push(`M${d+r} ${f+r}h${R-d}v1H${d+r}z`),d=null;return}if(R===i.length-1){if(!h)return;d===null?u.push(`M${R+r},${f+r} h1v1H${R+r}z`):u.push(`M${d+r},${f+r} h${R+1-d}v1H${d+r}z`);return}h&&d===null&&(d=R)})}),u.join("")}function j(l,r){return l.slice().map((u,i)=>i=r.y+r.h?u:u.map((f,d)=>d=r.x+r.w?f:!1))}function G(l,r,u,i){if(i==null)return null;const f=u?F:0,d=l.length+f*2,h=Math.floor(r*le),R=d/r,e=(i.width||h)*R,t=(i.height||h)*R,n=i.x==null?l.length/2-e/2:i.x*R,o=i.y==null?l.length/2-t/2:i.y*R;let s=null;if(i.excavate){let c=Math.floor(n),a=Math.floor(o),E=Math.ceil(e+n-c),g=Math.ceil(t+o-a);s={x:c,y:a,w:E,h:g}}return{x:n,y:o,h:t,w:e,excavation:s}}var ae=function(){try{new Path2D().addPath(new Path2D)}catch(l){return!1}return!0}();function Z(l){const r=l,{value:u,size:i=U,level:f=$,bgColor:d=H,fgColor:h=_,includeMargin:R=k,style:e,imageSettings:t}=r,n=B(r,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),o=t==null?void 0:t.src,s=(0,C.useRef)(null),c=(0,C.useRef)(null),[a,E]=(0,C.useState)(!1);(0,C.useEffect)(()=>{if(s.current!=null){const w=s.current,m=w.getContext("2d");if(!m)return;let M=S.QrCode.encodeText(u,Q[f]).getModules();const p=R?F:0,y=M.length+p*2,N=G(M,i,R,t),A=c.current,L=N!=null&&A!==null&&A.complete&&A.naturalHeight!==0&&A.naturalWidth!==0;L&&N.excavation!=null&&(M=j(M,N.excavation));const X=window.devicePixelRatio||1;w.height=w.width=i*X;const V=i/y*X;m.scale(V,V),m.fillStyle=d,m.fillRect(0,0,y,y),m.fillStyle=h,ae?m.fill(new Path2D(Y(M,p))):M.forEach(function(Ae,Pe){Ae.forEach(function(Ne,Ie){Ne&&m.fillRect(Ie+p,Pe+p,1,1)})}),L&&m.drawImage(A,N.x+p,N.y+p,N.w,N.h)}}),(0,C.useEffect)(()=>{E(!1)},[o]);const g=O({height:i,width:i},e);let P=null;return o!=null&&(P=C.createElement("img",{src:o,key:o,style:{display:"none"},onLoad:()=>{E(!0)},ref:c})),C.createElement(C.Fragment,null,C.createElement("canvas",O({style:g,height:i,width:i,ref:s},n)),P)}function W(l){const r=l,{value:u,size:i=U,level:f=$,bgColor:d=H,fgColor:h=_,includeMargin:R=k,imageSettings:e}=r,t=B(r,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let n=S.QrCode.encodeText(u,Q[f]).getModules();const o=R?F:0,s=n.length+o*2,c=G(n,i,R,e);let a=null;e!=null&&c!=null&&(c.excavation!=null&&(n=j(n,c.excavation)),a=C.createElement("image",{xlinkHref:e.src,height:c.h,width:c.w,x:c.x+o,y:c.y+o,preserveAspectRatio:"none"}));const E=Y(n,o);return C.createElement("svg",O({height:i,width:i,viewBox:`0 0 ${s} ${s}`},t),C.createElement("path",{fill:d,d:`M0,0 h${s}v${s}H0z`,shapeRendering:"crispEdges"}),C.createElement("path",{fill:h,d:E,shapeRendering:"crispEdges"}),a)}var Se=l=>{const r=l,{renderAs:u}=r,i=B(r,["renderAs"]);return u==="svg"?React.createElement(W,O({},i)):React.createElement(Z,O({},i))},ce=v(14726),ue=v(53124),de=v(10110),he=v(75081),fe=v(29691),ge=v(6731),me=v(10274),Ee=v(14747),Ce=v(91945),Re=v(45503);const Me=l=>{const{componentCls:r,lineWidth:u,lineType:i,colorSplit:f}=l;return{[r]:Object.assign(Object.assign({},(0,Ee.Wf)(l)),{display:"flex",justifyContent:"center",alignItems:"center",padding:l.paddingSM,backgroundColor:l.colorWhite,borderRadius:l.borderRadiusLG,border:`${(0,ge.bf)(u)} ${i} ${f}`,position:"relative",overflow:"hidden",[`& > ${r}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:l.colorText,lineHeight:l.lineHeight,background:l.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${r}-expired, & > ${r}-scanned`]:{color:l.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:l.marginXS,fontSize:l.controlHeight}}),[`${r}-borderless`]:{borderColor:"transparent"}}},ve=l=>({QRCodeMaskBackgroundColor:new me.C(l.colorBgContainer).setAlpha(.96).toRgbString()});var we=(0,Ce.I$)("QRCode",l=>{const r=(0,Re.TS)(l,{QRCodeTextColor:l.colorText});return Me(r)},ve),pe=l=>{const[,r]=(0,fe.ZP)(),{value:u,type:i="canvas",icon:f="",size:d=160,iconSize:h=40,color:R=r.colorText,errorLevel:e="M",status:t="active",bordered:n=!0,onRefresh:o,style:s,className:c,rootClassName:a,prefixCls:E,bgColor:g="transparent"}=l,{getPrefixCls:P}=(0,C.useContext)(ue.E_),w=P("qrcode",E),[m,M,p]=we(w),N={value:u,size:d,level:e,bgColor:g,fgColor:R,style:{width:void 0,height:void 0},imageSettings:f?{src:f,x:void 0,y:void 0,height:h,width:h,excavate:!0}:void 0},[A]=(0,de.Z)("QRCode");if(!u)return null;const L=se()(w,c,a,M,p,{[`${w}-borderless`]:!n});return m(C.createElement("div",{className:L,style:Object.assign(Object.assign({},s),{width:d,height:d,backgroundColor:g})},t!=="active"&&C.createElement("div",{className:`${w}-mask`},t==="loading"&&C.createElement(he.Z,null),t==="expired"&&C.createElement(C.Fragment,null,C.createElement("p",{className:`${w}-expired`},A==null?void 0:A.expired),o&&C.createElement(ce.ZP,{type:"link",icon:C.createElement(oe,null),onClick:o},A==null?void 0:A.refresh)),t==="scanned"&&C.createElement("p",{className:`${w}-scanned`},A==null?void 0:A.scanned)),i==="canvas"?C.createElement(Z,Object.assign({},N)):C.createElement(W,Object.assign({},N))))}}}]); diff --git a/starter/src/main/resources/templates/admin/403.ee0d25a3.async.js b/starter/src/main/resources/templates/admin/403.ee0d25a3.async.js new file mode 100644 index 0000000000..36a0d89fab --- /dev/null +++ b/starter/src/main/resources/templates/admin/403.ee0d25a3.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[403],{78164:function(Ze,he,r){r.d(he,{S:function(){return ve}});var t=r(15671),ge=r(43144),w=r(97326),P=r(32531),oe=r(29388),Ce=r(4942),de=r(29905),ye=r(67294),ue=r(85893),ve=function(me){(0,P.Z)(B,me);var T=(0,oe.Z)(B);function B(){var k;(0,t.Z)(this,B);for(var Z=arguments.length,G=new Array(Z),Q=0;Q{var n,l;const{prefixCls:a,title:s,footer:i,extra:c,closeIcon:d,closable:m,onClose:x,headerStyle:E,bodyStyle:S,footerStyle:N,children:C,classNames:f,styles:h}=e,{drawer:o}=t.useContext(be.E_),K=t.useCallback(p=>t.createElement("button",{type:"button",onClick:x,"aria-label":"Close",className:`${a}-close`},p),[x]),R=t.useMemo(()=>typeof(o==null?void 0:o.closable)=="object"&&o.closable.closeIcon?o.closable.closeIcon:o==null?void 0:o.closeIcon,[o==null?void 0:o.closable,o==null?void 0:o.closeIcon]),[M,b]=(0,Ge.Z)({closable:m!=null?m:o==null?void 0:o.closable,closeIcon:typeof d!="undefined"?d:R,customCloseIconRender:K,defaultClosable:!0}),j=t.useMemo(()=>{var p,u;return!s&&!M?null:t.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(p=o==null?void 0:o.styles)===null||p===void 0?void 0:p.header),E),h==null?void 0:h.header),className:w()(`${a}-header`,{[`${a}-header-close-only`]:M&&!s&&!c},(u=o==null?void 0:o.classNames)===null||u===void 0?void 0:u.header,f==null?void 0:f.header)},t.createElement("div",{className:`${a}-header-title`},b,s&&t.createElement("div",{className:`${a}-title`},s)),c&&t.createElement("div",{className:`${a}-extra`},c))},[M,b,c,E,a,s]),L=t.useMemo(()=>{var p,u;if(!i)return null;const O=`${a}-footer`;return t.createElement("div",{className:w()(O,(p=o==null?void 0:o.classNames)===null||p===void 0?void 0:p.footer,f==null?void 0:f.footer),style:Object.assign(Object.assign(Object.assign({},(u=o==null?void 0:o.styles)===null||u===void 0?void 0:u.footer),N),h==null?void 0:h.footer)},i)},[i,N,a]);return t.createElement(t.Fragment,null,j,t.createElement("div",{className:w()(`${a}-body`,f==null?void 0:f.body,(n=o==null?void 0:o.classNames)===null||n===void 0?void 0:n.body),style:Object.assign(Object.assign(Object.assign({},(l=o==null?void 0:o.styles)===null||l===void 0?void 0:l.body),S),h==null?void 0:h.body)},C),L)},J=r(6731),Qe=r(14747),Je=r(91945),_e=r(45503);const qe=e=>{const n="100%";return{left:`translateX(-${n})`,right:`translateX(${n})`,top:`translateY(-${n})`,bottom:`translateY(${n})`}[e]},De=(e,n)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":n}),"&-leave":Object.assign(Object.assign({},n),{"&-active":e})}),Pe=(e,n)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}},De({opacity:e},{opacity:1})),et=(e,n)=>[Pe(.7,n),De({transform:qe(e)},{transform:"none"})];var tt=e=>{const{componentCls:n,motionDurationSlow:l}=e;return{[n]:{[`${n}-mask-motion`]:Pe(0,l),[`${n}-panel-motion`]:["left","right","top","bottom"].reduce((a,s)=>Object.assign(Object.assign({},a),{[`&-${s}`]:et(s,l)}),{})}}};const nt=e=>{const{borderRadiusSM:n,componentCls:l,zIndexPopup:a,colorBgMask:s,colorBgElevated:i,motionDurationSlow:c,motionDurationMid:d,paddingXS:m,padding:x,paddingLG:E,fontSizeLG:S,lineHeightLG:N,lineWidth:C,lineType:f,colorSplit:h,marginXS:o,colorIcon:K,colorIconHover:R,colorBgTextHover:M,colorBgTextActive:b,colorText:j,fontWeightStrong:L,footerPaddingBlock:p,footerPaddingInline:u,calc:O}=e,I=`${l}-content-wrapper`;return{[l]:{position:"fixed",inset:0,zIndex:a,pointerEvents:"none","&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${l}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${l}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${l}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${l}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${l}-mask`]:{position:"absolute",inset:0,zIndex:a,background:s,pointerEvents:"auto"},[I]:{position:"absolute",zIndex:a,maxWidth:"100vw",transition:`all ${c}`,"&-hidden":{display:"none"}},[`&-left > ${I}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${I}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${I}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${I}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${l}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${l}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,J.bf)(x)} ${(0,J.bf)(E)}`,fontSize:S,lineHeight:N,borderBottom:`${(0,J.bf)(C)} ${f} ${h}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${l}-extra`]:{flex:"none"},[`${l}-close`]:Object.assign({display:"inline-flex",width:O(S).add(m).equal(),height:O(S).add(m).equal(),borderRadius:n,justifyContent:"center",alignItems:"center",marginInlineEnd:o,color:K,fontWeight:L,fontSize:S,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${d}`,textRendering:"auto","&:hover":{color:R,backgroundColor:M,textDecoration:"none"},"&:active":{backgroundColor:b}},(0,Qe.Qy)(e)),[`${l}-title`]:{flex:1,margin:0,color:j,fontWeight:e.fontWeightStrong,fontSize:S,lineHeight:N},[`${l}-body`]:{flex:1,minWidth:0,minHeight:0,padding:E,overflow:"auto"},[`${l}-footer`]:{flexShrink:0,padding:`${(0,J.bf)(p)} ${(0,J.bf)(u)}`,borderTop:`${(0,J.bf)(C)} ${f} ${h}`},"&-rtl":{direction:"rtl"}}}},ot=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding});var Ne=(0,Je.I$)("Drawer",e=>{const n=(0,_e.TS)(e,{});return[nt(n),tt(n)]},ot),Me=function(e,n){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(l[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s{var n;const{rootClassName:l,width:a,height:s,size:i="default",mask:c=!0,push:d=at,open:m,afterOpenChange:x,onClose:E,prefixCls:S,getContainer:N,style:C,className:f,visible:h,afterVisibleChange:o,maskStyle:K,drawerStyle:R,contentWrapperStyle:M}=e,b=Me(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:j,getPrefixCls:L,direction:p,drawer:u}=t.useContext(be.E_),O=L("drawer",S),[I,ae,_]=Ne(O),U=N===void 0&&j?()=>j(document.body):N,W=w()({"no-mask":!c,[`${O}-rtl`]:p==="rtl"},l,ae,_),H=t.useMemo(()=>a!=null?a:i==="large"?736:378,[a,i]),re=t.useMemo(()=>s!=null?s:i==="large"?736:378,[s,i]),le={motionName:(0,Se.m)(O,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},q=ce=>({motionName:(0,Se.m)(O,`panel-motion-${ce}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),se=(0,Ye.H)(),[ie,y]=(0,He.Cn)("Drawer",b.zIndex),{classNames:z={},styles:$={}}=b,{classNames:A={},styles:F={}}=u||{};return I(t.createElement(Xe.BR,null,t.createElement(Ve.Ux,{status:!0,override:!0},t.createElement(Fe.Z.Provider,{value:y},t.createElement(Ue,Object.assign({prefixCls:O,onClose:E,maskMotion:le,motion:q},b,{classNames:{mask:w()(z.mask,A.mask),content:w()(z.content,A.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},$.mask),K),F.mask),content:Object.assign(Object.assign(Object.assign({},$.content),R),F.content),wrapper:Object.assign(Object.assign(Object.assign({},$.wrapper),M),F.wrapper)},open:m!=null?m:h,mask:c,push:d,width:H,height:re,style:Object.assign(Object.assign({},u==null?void 0:u.style),C),className:w()(u==null?void 0:u.className,f),rootClassName:W,getContainer:U,afterOpenChange:x!=null?x:o,panelRef:se,zIndex:ie}),t.createElement(Oe,Object.assign({prefixCls:O},b,{onClose:E})))))))},rt=e=>{const{prefixCls:n,style:l,className:a,placement:s="right"}=e,i=Me(e,["prefixCls","style","className","placement"]),{getPrefixCls:c}=t.useContext(be.E_),d=c("drawer",n),[m,x,E]=Ne(d),S=w()(d,`${d}-pure`,`${d}-${s}`,x,E,a);return m(t.createElement("div",{className:S,style:l},t.createElement(Oe,Object.assign({prefixCls:d},i))))};$e._InternalPanelDoNotUseOrYouWillBeFired=rt;var lt=$e}}]); diff --git a/starter/src/main/resources/templates/admin/418.f6cb51be.async.js b/starter/src/main/resources/templates/admin/418.f6cb51be.async.js new file mode 100644 index 0000000000..653ea69e1d --- /dev/null +++ b/starter/src/main/resources/templates/admin/418.f6cb51be.async.js @@ -0,0 +1,68 @@ +(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[418],{47356:function(I,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};p.default=n},44149:function(I,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};p.default=n},77213:function(I,p,n){"use strict";n.d(p,{Z:function(){return J}});var o=n(1413),T=n(67294),i={icon:function(K,Z){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z",fill:K}},{tag:"path",attrs:{d:"M679.7 201c-73.1 0-136.5 40.8-167.7 100.4C480.8 241.8 417.4 201 344.3 201c-104 0-188.3 82.6-188.3 184.5 0 201.2 356 429.3 356 429.3s356-228.1 356-429.3C868 283.6 783.7 201 679.7 201z",fill:Z}}]}},name:"heart",theme:"twotone"},P=i,N=n(89099),M=function(K,Z){return T.createElement(N.Z,(0,o.Z)((0,o.Z)({},K),{},{ref:Z,icon:P}))},Q=T.forwardRef(M),J=Q},32147:function(I,p,n){"use strict";n.d(p,{Z:function(){return J}});var o=n(1413),T=n(67294),i={icon:function(K,Z){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:K}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 018-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 018 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:Z}},{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm376 112h-48.1c-4.2 0-7.8 3.2-8.1 7.4-3.7 49.5-45.3 88.6-95.8 88.6s-92-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4zm-24-112a48 48 0 1096 0 48 48 0 10-96 0z",fill:K}}]}},name:"smile",theme:"twotone"},P=i,N=n(89099),M=function(K,Z){return T.createElement(N.Z,(0,o.Z)((0,o.Z)({},K),{},{ref:Z,icon:P}))},Q=T.forwardRef(M),J=Q},39380:function(I,p,n){"use strict";n.d(p,{_z:function(){return tr}});var o=n(4942),T=n(91),i=n(1413),P=n(71002),N=n(10915),M=n(48096),Q=n(67159),J=n(28459),g=n(67294),K=n(93967),Z=n.n(K),$=n(9220),w=n(98423),d=n(48783),m=n(53124),s=n(91945);const y=t=>{const{componentCls:e}=t;return{[e]:{position:"fixed",zIndex:t.zIndexPopup}}},O=t=>({zIndexPopup:t.zIndexBase+10});var C=(0,s.I$)("Affix",y,O);function S(t){return t!==window?t.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function z(t,e,r){if(r!==void 0&&Math.round(e.top)>Math.round(t.top)-r)return r+e.top}function ae(t,e,r){if(r!==void 0&&Math.round(e.bottom){var r;const{style:c,offsetTop:u,offsetBottom:B,prefixCls:H,className:F,rootClassName:te,children:G,target:U,onChange:L}=t,{getPrefixCls:ee,getTargetContainer:k}=g.useContext(m.E_),W=ee("affix",H),[A,q]=g.useState(!1),[D,X]=g.useState(),[ie,Y]=g.useState(),be=g.useRef(l.None),ue=g.useRef(null),re=g.useRef(),ge=g.useRef(null),me=g.useRef(null),le=g.useRef(null),ce=(r=U!=null?U:k)!==null&&r!==void 0?r:E,_e=B===void 0&&u===void 0?0:u,Oe=()=>{if(be.current!==l.Prepare||!me.current||!ge.current||!ce)return;const fe=ce();if(fe){const de={status:l.None},oe=S(ge.current);if(oe.top===0&&oe.left===0&&oe.width===0&&oe.height===0)return;const Ne=S(fe),$e=z(oe,Ne,_e),Me=ae(oe,Ne,B);$e!==void 0?(de.affixStyle={position:"fixed",top:$e,width:oe.width,height:oe.height},de.placeholderStyle={width:oe.width,height:oe.height}):Me!==void 0&&(de.affixStyle={position:"fixed",bottom:Me,width:oe.width,height:oe.height},de.placeholderStyle={width:oe.width,height:oe.height}),de.lastAffix=!!de.affixStyle,A!==de.lastAffix&&(L==null||L(de.lastAffix)),be.current=de.status,X(de.affixStyle),Y(de.placeholderStyle),q(de.lastAffix)}},Ee=()=>{var fe;be.current=l.Prepare,Oe()},xe=(0,d.Z)(()=>{Ee()}),Pe=(0,d.Z)(()=>{if(ce&&D){const fe=ce();if(fe&&ge.current){const de=S(fe),oe=S(ge.current),Ne=z(oe,de,_e),$e=ae(oe,de,B);if(Ne!==void 0&&D.top===Ne||$e!==void 0&&D.bottom===$e)return}}Ee()}),Re=()=>{const fe=ce==null?void 0:ce();fe&&(b.forEach(de=>{var oe;re.current&&((oe=ue.current)===null||oe===void 0||oe.removeEventListener(de,re.current)),fe==null||fe.addEventListener(de,Pe)}),ue.current=fe,re.current=Pe)},ye=()=>{le.current&&(clearTimeout(le.current),le.current=null);const fe=ce==null?void 0:ce();b.forEach(de=>{var oe;fe==null||fe.removeEventListener(de,Pe),re.current&&((oe=ue.current)===null||oe===void 0||oe.removeEventListener(de,re.current))}),xe.cancel(),Pe.cancel()};g.useImperativeHandle(e,()=>({updatePosition:xe})),g.useEffect(()=>(le.current=setTimeout(Re),()=>ye()),[]),g.useEffect(()=>{Re()},[U,D]),g.useEffect(()=>{xe()},[U,u,B]);const[Te,Ue,We]=C(W),tt=Z()(te,Ue,W,We),Ve=Z()({[tt]:D});let lt=(0,w.Z)(t,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return Te(g.createElement($.Z,{onResize:xe},g.createElement("div",Object.assign({style:c,className:F,ref:ge},lt),D&&g.createElement("div",{style:ie,"aria-hidden":"true"}),g.createElement("div",{className:Ve,ref:me,style:D},g.createElement($.Z,{onResize:xe},G)))))}),j=n(76509),V=n(12044),ne=n(97435),we=n(73935),se=n(98082),Be=function(e){return(0,o.Z)({},e.componentCls,{position:"fixed",insetInlineEnd:0,bottom:0,zIndex:99,display:"flex",alignItems:"center",width:"100%",paddingInline:24,paddingBlock:0,boxSizing:"border-box",lineHeight:"64px",backgroundColor:(0,se.uK)(e.colorBgElevated,.6),borderBlockStart:"1px solid ".concat(e.colorSplit),"-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",color:e.colorText,transition:"all 0.2s ease 0s","&-left":{flex:1,color:e.colorText},"&-right":{color:e.colorText,"> *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function nt(t){return(0,se.Xj)("ProLayoutFooterToolbar",function(e){var r=(0,i.Z)((0,i.Z)({},e),{},{componentCls:".".concat(t)});return[Be(r)]})}function a(t,e){var r=e.stylish;return(0,se.Xj)("ProLayoutFooterToolbarStylish",function(c){var u=(0,i.Z)((0,i.Z)({},c),{},{componentCls:".".concat(t)});return r?[(0,o.Z)({},"".concat(u.componentCls),r==null?void 0:r(u))]:[]})}var f=n(85893),x=["children","className","extra","portalDom","style","renderContent"],_=function(e){var r=e.children,c=e.className,u=e.extra,B=e.portalDom,H=B===void 0?!0:B,F=e.style,te=e.renderContent,G=(0,T.Z)(e,x),U=(0,g.useContext)(J.ZP.ConfigContext),L=U.getPrefixCls,ee=U.getTargetContainer,k=e.prefixCls||L("pro"),W="".concat(k,"-footer-bar"),A=nt(W),q=A.wrapSSR,D=A.hashId,X=(0,g.useContext)(j.X),ie=(0,g.useMemo)(function(){var me=X.hasSiderMenu,le=X.isMobile,ce=X.siderWidth;if(me)return ce?le?"100%":"calc(100% - ".concat(ce,"px)"):"100%"},[X.collapsed,X.hasSiderMenu,X.isMobile,X.siderWidth]),Y=(0,g.useMemo)(function(){return(typeof window=="undefined"?"undefined":(0,P.Z)(window))===void 0||(typeof document=="undefined"?"undefined":(0,P.Z)(document))===void 0?null:(ee==null?void 0:ee())||document.body},[]),be=a("".concat(W,".").concat(W,"-stylish"),{stylish:e.stylish}),ue=(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:"".concat(W,"-left ").concat(D).trim(),children:u}),(0,f.jsx)("div",{className:"".concat(W,"-right ").concat(D).trim(),children:r})]});(0,g.useEffect)(function(){return!X||!(X!=null&&X.setHasFooterToolbar)?function(){}:(X==null||X.setHasFooterToolbar(!0),function(){var me;X==null||(me=X.setHasFooterToolbar)===null||me===void 0||me.call(X,!1)})},[]);var re=(0,f.jsx)("div",(0,i.Z)((0,i.Z)({className:Z()(c,D,W,(0,o.Z)({},"".concat(W,"-stylish"),!!e.stylish)),style:(0,i.Z)({width:ie},F)},(0,ne.Z)(G,["prefixCls"])),{},{children:te?te((0,i.Z)((0,i.Z)((0,i.Z)({},e),X),{},{leftWidth:ie}),ue):ue})),ge=!(0,V.j)()||!H||!Y?re:(0,we.createPortal)(re,Y,W);return be.wrapSSR(q((0,f.jsx)(g.Fragment,{children:ge},W)))},R=function(e){return(0,o.Z)({},e.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function Ce(t){return(0,se.Xj)("ProLayoutGridContent",function(e){var r=(0,i.Z)((0,i.Z)({},e),{},{componentCls:".".concat(t)});return[R(r)]})}var he=function(e){var r=(0,g.useContext)(j.X),c=e.children,u=e.contentWidth,B=e.className,H=e.style,F=(0,g.useContext)(J.ZP.ConfigContext),te=F.getPrefixCls,G=e.prefixCls||te("pro"),U=u||r.contentWidth,L="".concat(G,"-grid-content"),ee=Ce(L),k=ee.wrapSSR,W=ee.hashId,A=U==="Fixed"&&r.layout==="top";return k((0,f.jsx)("div",{className:Z()(L,W,B,(0,o.Z)({},"".concat(L,"-wide"),A)),style:H,children:(0,f.jsx)("div",{className:"".concat(G,"-grid-content-children ").concat(W).trim(),children:c})}))},Ze=n(97685),Ie=n(3770),De=n.n(Ie),He=n(77059),Ye=n.n(He),Le=n(50344),Fe=n(64217),st=n(96159),at=n(13622),Qe=n(27758);const Ge=t=>{let{children:e}=t;const{getPrefixCls:r}=g.useContext(m.E_),c=r("breadcrumb");return g.createElement("li",{className:`${c}-separator`,"aria-hidden":"true"},e===""?e:e||"/")};Ge.__ANT_BREADCRUMB_SEPARATOR=!0;var Je=Ge,mt=function(t,e){var r={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&e.indexOf(c)<0&&(r[c]=t[c]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,c=Object.getOwnPropertySymbols(t);ue[u]||c)}function dt(t,e,r,c){if(r==null)return null;const{className:u,onClick:B}=e,H=mt(e,["className","onClick"]),F=Object.assign(Object.assign({},(0,Fe.Z)(H,{data:!0,aria:!0})),{onClick:B});return c!==void 0?g.createElement("a",Object.assign({},F,{className:Z()(`${t}-link`,u),href:c}),r):g.createElement("span",Object.assign({},F,{className:Z()(`${t}-link`,u)}),r)}function pt(t,e){return(c,u,B,H,F)=>{if(e)return e(c,u,B,H);const te=vt(c,u);return dt(t,c,te,F)}}var Xe=function(t,e){var r={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&e.indexOf(c)<0&&(r[c]=t[c]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,c=Object.getOwnPropertySymbols(t);u{const{prefixCls:e,separator:r="/",children:c,menu:u,overlay:B,dropdownProps:H,href:F}=t,G=(U=>{if(u||B){const L=Object.assign({},H);if(u){const ee=u||{},{items:k}=ee,W=Xe(ee,["items"]);L.menu=Object.assign(Object.assign({},W),{items:k==null?void 0:k.map((A,q)=>{var{key:D,title:X,label:ie,path:Y}=A,be=Xe(A,["key","title","label","path"]);let ue=ie!=null?ie:X;return Y&&(ue=g.createElement("a",{href:`${F}${Y}`},ue)),Object.assign(Object.assign({},be),{key:D!=null?D:q,label:ue})})})}else B&&(L.overlay=B);return g.createElement(Qe.Z,Object.assign({placement:"bottom"},L),g.createElement("span",{className:`${e}-overlay-link`},U,g.createElement(at.Z,null)))}return U})(c);return G!=null?g.createElement(g.Fragment,null,g.createElement("li",null,G),r&&g.createElement(Je,null,r)):null},ut=t=>{const{prefixCls:e,children:r,href:c}=t,u=Xe(t,["prefixCls","children","href"]),{getPrefixCls:B}=g.useContext(m.E_),H=B("breadcrumb",e);return g.createElement(qe,Object.assign({},u,{prefixCls:H}),dt(H,u,r,c))};ut.__ANT_BREADCRUMB_ITEM=!0;var yt=ut,ft=n(6731),je=n(14747),ht=n(45503);const ze=t=>{const{componentCls:e,iconCls:r,calc:c}=t;return{[e]:Object.assign(Object.assign({},(0,je.Wf)(t)),{color:t.itemColor,fontSize:t.fontSize,[r]:{fontSize:t.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:t.linkColor,transition:`color ${t.motionDurationMid}`,padding:`0 ${(0,ft.bf)(t.paddingXXS)}`,borderRadius:t.borderRadiusSM,height:t.fontHeight,display:"inline-block",marginInline:c(t.marginXXS).mul(-1).equal(),"&:hover":{color:t.linkHoverColor,backgroundColor:t.colorBgTextHover}},(0,je.Qy)(t)),["li:last-child"]:{color:t.lastItemColor},[`${e}-separator`]:{marginInline:t.separatorMargin,color:t.separatorColor},[`${e}-link`]:{[` + > ${r} + span, + > ${r} + a + `]:{marginInlineStart:t.marginXXS}},[`${e}-overlay-link`]:{borderRadius:t.borderRadiusSM,height:t.fontHeight,display:"inline-block",padding:`0 ${(0,ft.bf)(t.paddingXXS)}`,marginInline:c(t.marginXXS).mul(-1).equal(),[`> ${r}`]:{marginInlineStart:t.marginXXS,fontSize:t.fontSizeIcon},"&:hover":{color:t.linkHoverColor,backgroundColor:t.colorBgTextHover,a:{color:t.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${t.componentCls}-rtl`]:{direction:"rtl"}})}},Ae=t=>({itemColor:t.colorTextDescription,lastItemColor:t.colorText,iconFontSize:t.fontSize,linkColor:t.colorTextDescription,linkHoverColor:t.colorText,separatorColor:t.colorTextDescription,separatorMargin:t.marginXS});var bt=(0,s.I$)("Breadcrumb",t=>{const e=(0,ht.TS)(t,{});return ze(e)},Ae),ve=function(t,e){var r={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&e.indexOf(c)<0&&(r[c]=t[c]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,c=Object.getOwnPropertySymbols(t);u{var{breadcrumbName:H}=B,F=ve(B,["breadcrumbName"]);return Object.assign(Object.assign({},F),{title:H})})}),u}function St(t,e){return(0,g.useMemo)(()=>t||(e?e.map(Ct):null),[t,e])}var xt=function(t,e){var r={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&e.indexOf(c)<0&&(r[c]=t[c]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,c=Object.getOwnPropertySymbols(t);u{if(e===void 0)return e;let r=(e||"").replace(/^\//,"");return Object.keys(t).forEach(c=>{r=r.replace(`:${c}`,t[c])}),r},ke=t=>{const{prefixCls:e,separator:r="/",style:c,className:u,rootClassName:B,routes:H,items:F,children:te,itemRender:G,params:U={}}=t,L=xt(t,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ee,direction:k,breadcrumb:W}=g.useContext(m.E_);let A;const q=ee("breadcrumb",e),[D,X,ie]=bt(q),Y=St(F,H),be=pt(q,G);if(Y&&Y.length>0){const ge=[],me=F||H;A=Y.map((le,ce)=>{const{path:_e,key:Oe,type:Ee,menu:xe,overlay:Pe,onClick:Re,className:ye,separator:Te,dropdownProps:Ue}=le,We=Ot(U,_e);We!==void 0&&ge.push(We);const tt=Oe!=null?Oe:ce;if(Ee==="separator")return g.createElement(Je,{key:tt},Te);const Ve={},lt=ce===Y.length-1;xe?Ve.menu=xe:Pe&&(Ve.overlay=Pe);let{href:fe}=le;return ge.length&&We!==void 0&&(fe=`#/${ge.join("/")}`),g.createElement(qe,Object.assign({key:tt},Ve,(0,Fe.Z)(le,{data:!0,aria:!0}),{className:ye,dropdownProps:Ue,href:fe,separator:lt?"":r,onClick:Re,prefixCls:q}),be(le,U,me,ge,fe))})}else if(te){const ge=(0,Le.Z)(te).length;A=(0,Le.Z)(te).map((me,le)=>{if(!me)return me;const ce=le===ge-1;return(0,st.Tm)(me,{separator:ce?"":r,key:le})})}const ue=Z()(q,W==null?void 0:W.className,{[`${q}-rtl`]:k==="rtl"},u,B,X,ie),re=Object.assign(Object.assign({},W==null?void 0:W.style),c);return D(g.createElement("nav",Object.assign({className:ue,style:re},L),g.createElement("ol",null,A)))};ke.Item=yt,ke.Separator=Je;var Pt=ke,gt=Pt,Ke=n(7134),wt=n(42075),ot=function(){return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},jt=function(e){var r;return(0,o.Z)({},e.componentCls,(0,i.Z)((0,i.Z)({},se.Wf===null||se.Wf===void 0?void 0:(0,se.Wf)(e)),{},(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({position:"relative",backgroundColor:e.pageHeaderBgGhost,paddingBlock:e.pageHeaderPaddingVertical+2,paddingInline:e.pageHeaderPadding,"&-no-children":{height:(r=e.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingBlockPageContainerContent},"& &-has-breadcrumb":{paddingBlockStart:e.pageHeaderPaddingBreadCrumb},"& &-has-footer":{paddingBlockEnd:0},"& &-back":(0,o.Z)({marginInlineEnd:e.margin,fontSize:16,lineHeight:1,"&-button":(0,i.Z)((0,i.Z)({fontSize:16},se.Nd===null||se.Nd===void 0?void 0:(0,se.Nd)(e)),{},{color:e.pageHeaderColorBack,cursor:"pointer"})},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:0})},"& ".concat("ant","-divider-vertical"),{height:14,marginBlock:0,marginInline:e.marginSM,verticalAlign:"middle"}),"& &-breadcrumb + &-heading",{marginBlockStart:e.marginXS}),"& &-heading",{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",marginBlock:e.marginXS/2,marginInlineEnd:0,marginInlineStart:0,overflow:"hidden"},"&-title":(0,i.Z)((0,i.Z)({marginInlineEnd:e.marginSM,marginBlockEnd:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderFontSizeHeaderTitle,lineHeight:e.controlHeight+"px"},ot()),{},(0,o.Z)({},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:0,marginInlineStart:e.marginSM})),"&-avatar":(0,o.Z)({marginInlineEnd:e.marginSM},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:e.marginSM}),"&-tags":(0,o.Z)({},"".concat(e.componentCls,"-rlt &"),{float:"right"}),"&-sub-title":(0,i.Z)((0,i.Z)({marginInlineEnd:e.marginSM,color:e.colorTextSecondary,fontSize:e.pageHeaderFontSizeHeaderSubTitle,lineHeight:e.lineHeight},ot()),{},(0,o.Z)({},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:12})),"&-extra":(0,o.Z)((0,o.Z)({marginBlock:e.marginXS/2,marginInlineEnd:0,marginInlineStart:0,whiteSpace:"nowrap","> *":(0,o.Z)({"white-space":"unset"},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:e.marginSM,marginInlineStart:0})},"".concat(e.componentCls,"-rlt &"),{float:"left"}),"*:first-child",(0,o.Z)({},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:0}))}),"&-content",{paddingBlockStart:e.pageHeaderPaddingContentPadding}),"&-footer",{marginBlockStart:e.margin}),"&-compact &-heading",{flexWrap:"wrap"}),"&-wide",{maxWidth:1152,margin:"0 auto"}),"&-rtl",{direction:"rtl"})))};function Tt(t){return(0,se.Xj)("ProLayoutPageHeader",function(e){var r=(0,i.Z)((0,i.Z)({},e),{},{componentCls:".".concat(t),pageHeaderBgGhost:"transparent",pageHeaderPadding:16,pageHeaderPaddingVertical:4,pageHeaderPaddingBreadCrumb:e.paddingSM,pageHeaderColorBack:e.colorTextHeading,pageHeaderFontSizeHeaderTitle:e.fontSizeHeading4,pageHeaderFontSizeHeaderSubTitle:14,pageHeaderPaddingContentPadding:e.paddingSM});return[jt(r)]})}var $t=function(e,r,c,u){return!c||!u?null:(0,f.jsx)("div",{className:"".concat(e,"-back ").concat(r).trim(),children:(0,f.jsx)("div",{role:"button",onClick:function(H){u==null||u(H)},className:"".concat(e,"-back-button ").concat(r).trim(),"aria-label":"back",children:c})})},It=function(e,r){var c;return(c=e.items)!==null&&c!==void 0&&c.length?(0,f.jsx)(gt,(0,i.Z)((0,i.Z)({},e),{},{className:Z()("".concat(r,"-breadcrumb"),e.className)})):null},Zt=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return e.backIcon!==void 0?e.backIcon:r==="rtl"?(0,f.jsx)(Ye(),{}):(0,f.jsx)(De(),{})},_t=function(e,r){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",u=arguments.length>3?arguments[3]:void 0,B=r.title,H=r.avatar,F=r.subTitle,te=r.tags,G=r.extra,U=r.onBack,L="".concat(e,"-heading"),ee=B||F||te||G;if(!ee)return null;var k=Zt(r,c),W=$t(e,u,k,U),A=W||H||ee;return(0,f.jsxs)("div",{className:L+" "+u,children:[A&&(0,f.jsxs)("div",{className:"".concat(L,"-left ").concat(u).trim(),children:[W,H&&(0,f.jsx)(Ke.C,(0,i.Z)({className:Z()("".concat(L,"-avatar"),u,H.className)},H)),B&&(0,f.jsx)("span",{className:"".concat(L,"-title ").concat(u).trim(),title:typeof B=="string"?B:void 0,children:B}),F&&(0,f.jsx)("span",{className:"".concat(L,"-sub-title ").concat(u).trim(),title:typeof F=="string"?F:void 0,children:F}),te&&(0,f.jsx)("span",{className:"".concat(L,"-tags ").concat(u).trim(),children:te})]}),G&&(0,f.jsx)("span",{className:"".concat(L,"-extra ").concat(u).trim(),children:(0,f.jsx)(wt.Z,{children:G})})]})},Et=function(e,r,c){return r?(0,f.jsx)("div",{className:"".concat(e,"-footer ").concat(c).trim(),children:r}):null},Rt=function(e,r,c){return(0,f.jsx)("div",{className:"".concat(e,"-content ").concat(c).trim(),children:r})},Nt=function(e){var r,c=g.useState(!1),u=(0,Ze.Z)(c,2),B=u[0],H=u[1],F=function(ye){var Te=ye.width;return H(Te<768)},te=g.useContext(J.ZP.ConfigContext),G=te.getPrefixCls,U=te.direction,L=e.prefixCls,ee=e.style,k=e.footer,W=e.children,A=e.breadcrumb,q=e.breadcrumbRender,D=e.className,X=e.contentWidth,ie=e.layout,Y=G("page-header",L),be=Tt(Y),ue=be.wrapSSR,re=be.hashId,ge=function(){return A&&!(A!=null&&A.items)&&A!==null&&A!==void 0&&A.routes&&(A.items=A.routes),A!=null&&A.items?It(A,Y):null},me=ge(),le=A&&"props"in A,ce=(r=q==null?void 0:q((0,i.Z)((0,i.Z)({},e),{},{prefixCls:Y}),me))!==null&&r!==void 0?r:me,_e=le?A:ce,Oe=Z()(Y,re,D,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(Y,"-has-breadcrumb"),!!_e),"".concat(Y,"-has-footer"),!!k),"".concat(Y,"-rtl"),U==="rtl"),"".concat(Y,"-compact"),B),"".concat(Y,"-wide"),X==="Fixed"&&ie=="top"),"".concat(Y,"-ghost"),!0)),Ee=_t(Y,e,U,re),xe=W&&Rt(Y,W,re),Pe=Et(Y,k,re);return!_e&&!Ee&&!Pe&&!xe?(0,f.jsx)("div",{className:Z()(re,["".concat(Y,"-no-children")])}):ue((0,f.jsx)($.Z,{onResize:F,children:(0,f.jsxs)("div",{className:Oe,style:ee,children:[_e,Ee,xe,Pe]})}))},Mt=n(83832),Se=function(e){if(!e)return 1;var r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||1;return(window.devicePixelRatio||1)/r},pe=function(e){var r=(0,se.dQ)(),c=r.token,u=e.children,B=e.style,H=e.className,F=e.markStyle,te=e.markClassName,G=e.zIndex,U=G===void 0?9:G,L=e.gapX,ee=L===void 0?212:L,k=e.gapY,W=k===void 0?222:k,A=e.width,q=A===void 0?120:A,D=e.height,X=D===void 0?64:D,ie=e.rotate,Y=ie===void 0?-22:ie,be=e.image,ue=e.offsetLeft,re=e.offsetTop,ge=e.fontStyle,me=ge===void 0?"normal":ge,le=e.fontWeight,ce=le===void 0?"normal":le,_e=e.fontColor,Oe=_e===void 0?c.colorFill:_e,Ee=e.fontSize,xe=Ee===void 0?16:Ee,Pe=e.fontFamily,Re=Pe===void 0?"sans-serif":Pe,ye=e.prefixCls,Te=(0,g.useContext)(J.ZP.ConfigContext),Ue=Te.getPrefixCls,We=Ue("pro-layout-watermark",ye),tt=Z()("".concat(We,"-wrapper"),H),Ve=Z()(We,te),lt=(0,g.useState)(""),fe=(0,Ze.Z)(lt,2),de=fe[0],oe=fe[1];return(0,g.useEffect)(function(){var Ne=document.createElement("canvas"),$e=Ne.getContext("2d"),Me=Se($e),rr="".concat((ee+q)*Me,"px"),nr="".concat((W+X)*Me,"px"),ar=ue||ee/2,or=re||W/2;if(Ne.setAttribute("width",rr),Ne.setAttribute("height",nr),!$e){console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas");return}$e.translate(ar*Me,or*Me),$e.rotate(Math.PI/180*Number(Y));var ir=q*Me,Wt=X*Me,Lt=function(ct){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Dt=Number(xe)*Me;$e.font="".concat(me," normal ").concat(ce," ").concat(Dt,"px/").concat(Wt,"px ").concat(Re),$e.fillStyle=Oe,Array.isArray(ct)?ct==null||ct.forEach(function(lr,cr){return $e.fillText(lr,0,cr*Dt+Bt)}):$e.fillText(ct,0,Bt?Bt+Dt:0),oe(Ne.toDataURL())};if(be){var rt=new Image;rt.crossOrigin="anonymous",rt.referrerPolicy="no-referrer",rt.src=be,rt.onload=function(){if($e.drawImage(rt,0,0,ir,Wt),oe(Ne.toDataURL()),e.content){Lt(e.content,rt.height+8);return}};return}if(e.content){Lt(e.content);return}},[ee,W,ue,re,Y,me,ce,q,X,Re,Oe,be,e.content,xe]),(0,f.jsxs)("div",{style:(0,i.Z)({position:"relative"},B),className:tt,children:[u,(0,f.jsx)("div",{className:Ve,style:(0,i.Z)((0,i.Z)({zIndex:U,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(ee+q,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},de?{backgroundImage:"url('".concat(de,"')")}:{}),F)})]})},it=[576,768,992,1200].map(function(t){return"@media (max-width: ".concat(t,"px)")}),et=(0,Ze.Z)(it,4),Ht=et[0],zt=et[1],Ft=et[2],Gt=et[3],Xt=function(e){var r,c,u,B,H,F,te,G,U,L,ee,k,W,A,q,D,X,ie;return(0,o.Z)({},e.componentCls,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({position:"relative","&-children-container":{paddingBlockStart:0,paddingBlockEnd:(r=e.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingBlockPageContainerContent,paddingInline:(c=e.layout)===null||c===void 0||(c=c.pageContainer)===null||c===void 0?void 0:c.paddingInlinePageContainerContent},"&-children-container-no-header":{paddingBlockStart:(u=e.layout)===null||u===void 0||(u=u.pageContainer)===null||u===void 0?void 0:u.paddingBlockPageContainerContent},"&-affix":(0,o.Z)({},"".concat(e.antCls,"-affix"),(0,o.Z)({},"".concat(e.componentCls,"-warp"),{backgroundColor:(B=e.layout)===null||B===void 0||(B=B.pageContainer)===null||B===void 0?void 0:B.colorBgPageContainerFixed,transition:"background-color 0.3s",boxShadow:"0 2px 8px #f0f1f2"}))},"& &-warp-page-header",(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({paddingBlockStart:((H=(F=e.layout)===null||F===void 0||(F=F.pageContainer)===null||F===void 0?void 0:F.paddingBlockPageContainerContent)!==null&&H!==void 0?H:40)/4,paddingBlockEnd:((te=(G=e.layout)===null||G===void 0||(G=G.pageContainer)===null||G===void 0?void 0:G.paddingBlockPageContainerContent)!==null&&te!==void 0?te:40)/2,paddingInlineStart:(U=e.layout)===null||U===void 0||(U=U.pageContainer)===null||U===void 0?void 0:U.paddingInlinePageContainerContent,paddingInlineEnd:(L=e.layout)===null||L===void 0||(L=L.pageContainer)===null||L===void 0?void 0:L.paddingInlinePageContainerContent},"& ~ ".concat(e.proComponentsCls,"-grid-content"),(0,o.Z)({},"".concat(e.proComponentsCls,"-page-container-children-content"),{paddingBlock:((ee=(k=e.layout)===null||k===void 0||(k=k.pageContainer)===null||k===void 0?void 0:k.paddingBlockPageContainerContent)!==null&&ee!==void 0?ee:24)/3})),"".concat(e.antCls,"-page-header-breadcrumb"),{paddingBlockStart:((W=(A=e.layout)===null||A===void 0||(A=A.pageContainer)===null||A===void 0?void 0:A.paddingBlockPageContainerContent)!==null&&W!==void 0?W:40)/4+10}),"".concat(e.antCls,"-page-header-heading"),{paddingBlockStart:((q=(D=e.layout)===null||D===void 0||(D=D.pageContainer)===null||D===void 0?void 0:D.paddingBlockPageContainerContent)!==null&&q!==void 0?q:40)/4}),"".concat(e.antCls,"-page-header-footer"),{marginBlockStart:((X=(ie=e.layout)===null||ie===void 0||(ie=ie.pageContainer)===null||ie===void 0?void 0:ie.paddingBlockPageContainerContent)!==null&&X!==void 0?X:40)/4})),"&-detail",(0,o.Z)({display:"flex"},Ht,{display:"block"})),"&-main",{width:"100%"}),"&-row",(0,o.Z)({display:"flex",width:"100%"},zt,{display:"block"})),"&-content",{flex:"auto",width:"100%"}),"&-extraContent",(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({flex:"0 1 auto",minWidth:"242px",marginInlineStart:88,textAlign:"end"},Gt,{marginInlineStart:44}),Ft,{marginInlineStart:20}),zt,{marginInlineStart:0,textAlign:"start"}),Ht,{marginInlineStart:0})))};function Kt(t,e){return(0,se.Xj)("ProLayoutPageContainer",function(r){var c,u=(0,i.Z)((0,i.Z)({},r),{},{componentCls:".".concat(t),layout:(0,i.Z)((0,i.Z)({},r==null?void 0:r.layout),{},{pageContainer:(0,i.Z)((0,i.Z)({},r==null||(c=r.layout)===null||c===void 0?void 0:c.pageContainer),e)})});return[Xt(u)]})}function Ut(t,e){var r=e.stylish;return(0,se.Xj)("ProLayoutPageContainerStylish",function(c){var u=(0,i.Z)((0,i.Z)({},c),{},{componentCls:".".concat(t)});return r?[(0,o.Z)({},"div".concat(u.componentCls),r==null?void 0:r(u))]:[]})}var Vt=n(1977),Yt=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","childrenContentStyle","style","prefixCls","hashId","value","breadcrumbRender"],Qt=["children","loading","className","style","footer","affixProps","token","fixedHeader","breadcrumbRender","footerToolBarProps","childrenContentStyle"];function Jt(t){return(0,P.Z)(t)==="object"?t:{spinning:t}}var qt=function(e){var r=e.tabList,c=e.tabActiveKey,u=e.onTabChange,B=e.hashId,H=e.tabBarExtraContent,F=e.tabProps,te=e.prefixedClassName;return Array.isArray(r)||H?(0,f.jsx)(M.Z,(0,i.Z)((0,i.Z)({className:"".concat(te,"-tabs ").concat(B).trim(),activeKey:c,onChange:function(U){u&&u(U)},tabBarExtraContent:H,items:r==null?void 0:r.map(function(G,U){var L;return(0,i.Z)((0,i.Z)({label:G.tab},G),{},{key:((L=G.key)===null||L===void 0?void 0:L.toString())||(U==null?void 0:U.toString())})})},F),{},{children:(0,Vt.n)(Q.Z,"4.23.0")<0?r==null?void 0:r.map(function(G,U){return(0,f.jsx)(M.Z.TabPane,(0,i.Z)({tab:G.tab},G),G.key||U)}):null})):null},kt=function(e,r,c,u){return!e&&!r?null:(0,f.jsx)("div",{className:"".concat(c,"-detail ").concat(u).trim(),children:(0,f.jsx)("div",{className:"".concat(c,"-main ").concat(u).trim(),children:(0,f.jsxs)("div",{className:"".concat(c,"-row ").concat(u).trim(),children:[e&&(0,f.jsx)("div",{className:"".concat(c,"-content ").concat(u).trim(),children:e}),r&&(0,f.jsx)("div",{className:"".concat(c,"-extraContent ").concat(u).trim(),children:r})]})})})},sr=function(e){var r=useContext(RouteContext);return _jsx("div",{style:{height:"100%",display:"flex",alignItems:"center"},children:_jsx(Breadcrumb,_objectSpread(_objectSpread(_objectSpread({},r==null?void 0:r.breadcrumb),r==null?void 0:r.breadcrumbProps),e))})},At=function(e){var r,c=e.title,u=e.content,B=e.pageHeaderRender,H=e.header,F=e.prefixedClassName,te=e.extraContent,G=e.childrenContentStyle,U=e.style,L=e.prefixCls,ee=e.hashId,k=e.value,W=e.breadcrumbRender,A=(0,T.Z)(e,Yt),q=function(){if(W)return W};if(B===!1)return null;if(B)return(0,f.jsxs)(f.Fragment,{children:[" ",B((0,i.Z)((0,i.Z)({},e),k))]});var D=c;!c&&c!==!1&&(D=k.title);var X=(0,i.Z)((0,i.Z)((0,i.Z)({},k),{},{title:D},A),{},{footer:qt((0,i.Z)((0,i.Z)({},A),{},{hashId:ee,breadcrumbRender:W,prefixedClassName:F}))},H),ie=X,Y=ie.breadcrumb,be=(!Y||!(Y!=null&&Y.itemRender)&&!(Y!=null&&(r=Y.items)!==null&&r!==void 0&&r.length))&&!W;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(ue){return!X[ue]})&&be&&!u&&!te?null:(0,f.jsx)(Nt,(0,i.Z)((0,i.Z)({},X),{},{className:"".concat(F,"-warp-page-header ").concat(ee).trim(),breadcrumb:W===!1?void 0:(0,i.Z)((0,i.Z)({},X.breadcrumb),k.breadcrumbProps),breadcrumbRender:q(),prefixCls:L,children:(H==null?void 0:H.children)||kt(u,te,F,ee)}))},er=function(e){var r,c,u=e.children,B=e.loading,H=B===void 0?!1:B,F=e.className,te=e.style,G=e.footer,U=e.affixProps,L=e.token,ee=e.fixedHeader,k=e.breadcrumbRender,W=e.footerToolBarProps,A=e.childrenContentStyle,q=(0,T.Z)(e,Qt),D=(0,g.useContext)(j.X);(0,g.useEffect)(function(){var ye;return!D||!(D!=null&&D.setHasPageContainer)?function(){}:(D==null||(ye=D.setHasPageContainer)===null||ye===void 0||ye.call(D,function(Te){return Te+1}),function(){var Te;D==null||(Te=D.setHasPageContainer)===null||Te===void 0||Te.call(D,function(Ue){return Ue-1})})},[]);var X=(0,g.useContext)(N.L_),ie=X.token,Y=(0,g.useContext)(J.ZP.ConfigContext),be=Y.getPrefixCls,ue=e.prefixCls||be("pro"),re="".concat(ue,"-page-container"),ge=Kt(re,L),me=ge.wrapSSR,le=ge.hashId,ce=Ut("".concat(re,".").concat(re,"-stylish"),{stylish:e.stylish}),_e=(0,g.useMemo)(function(){var ye;return k==!1?!1:k||(q==null||(ye=q.header)===null||ye===void 0?void 0:ye.breadcrumbRender)},[k,q==null||(r=q.header)===null||r===void 0?void 0:r.breadcrumbRender]),Oe=At((0,i.Z)((0,i.Z)({},q),{},{breadcrumbRender:_e,ghost:!0,hashId:le,prefixCls:void 0,prefixedClassName:re,value:D})),Ee=(0,g.useMemo)(function(){if(g.isValidElement(H))return H;if(typeof H=="boolean"&&!H)return null;var ye=Jt(H);return ye.spinning?(0,f.jsx)(Mt.S,(0,i.Z)({},ye)):null},[H]),xe=(0,g.useMemo)(function(){return u?(0,f.jsx)(f.Fragment,{children:(0,f.jsx)("div",{className:Z()(le,"".concat(re,"-children-container"),(0,o.Z)({},"".concat(re,"-children-container-no-header"),!Oe)),style:A,children:u})}):null},[u,re,A,le]),Pe=(0,g.useMemo)(function(){var ye=Ee||xe;if(e.waterMarkProps||D.waterMarkProps){var Te=(0,i.Z)((0,i.Z)({},D.waterMarkProps),e.waterMarkProps);return(0,f.jsx)(pe,(0,i.Z)((0,i.Z)({},Te),{},{children:ye}))}return ye},[e.waterMarkProps,D.waterMarkProps,Ee,xe]),Re=Z()(re,le,F,(0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(re,"-with-footer"),G),"".concat(re,"-with-affix"),ee&&Oe),"".concat(re,"-stylish"),!!q.stylish));return me(ce.wrapSSR((0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("div",{style:te,className:Re,children:[ee&&Oe?(0,f.jsx)(h,(0,i.Z)((0,i.Z)({offsetTop:D.hasHeader&&D.fixedHeader?(c=ie.layout)===null||c===void 0||(c=c.header)===null||c===void 0?void 0:c.heightLayoutHeader:1},U),{},{className:"".concat(re,"-affix ").concat(le).trim(),children:(0,f.jsx)("div",{className:"".concat(re,"-warp ").concat(le).trim(),children:Oe})})):Oe,Pe&&(0,f.jsx)(he,{children:Pe})]}),G&&(0,f.jsx)(_,(0,i.Z)((0,i.Z)({stylish:q.footerStylish,prefixCls:ue},W),{},{children:G}))]})))},tr=function(e){return(0,f.jsx)(N._Y,{needDeps:!0,children:(0,f.jsx)(er,(0,i.Z)({},e))})},dr=function(e){var r=useContext(RouteContext);return At(_objectSpread(_objectSpread({},e),{},{hashId:"",value:r}))}},83832:function(I,p,n){"use strict";n.d(p,{S:function(){return Q}});var o=n(1413),T=n(91),i=n(75081),P=n(67294),N=n(85893),M=["isLoading","pastDelay","timedOut","error","retry"],Q=function(g){var K=g.isLoading,Z=g.pastDelay,$=g.timedOut,w=g.error,d=g.retry,m=(0,T.Z)(g,M);return(0,N.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,N.jsx)(i.Z,(0,o.Z)({size:"large"},m))})}},76509:function(I,p,n){"use strict";n.d(p,{X:function(){return T}});var o=n(67294),T=(0,o.createContext)({})},3770:function(I,p,n){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;const o=T(n(27863));function T(P){return P&&P.__esModule?P:{default:P}}const i=o;p.default=i,I.exports=i},77059:function(I,p,n){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;const o=T(n(21379));function T(P){return P&&P.__esModule?P:{default:P}}const i=o;p.default=i,I.exports=i},33046:function(I,p,n){"use client";"use strict";Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return E}});var o=w(n(67294)),T=Z(n(93967)),i=n(34853),P=Z(n(61711)),N=Z(n(27727)),M=n(26814),Q=n(72014);function J(l,v){(v==null||v>l.length)&&(v=l.length);for(var h=0,j=new Array(v);h=0)&&Object.prototype.propertyIsEnumerable.call(l,j)&&(h[j]=l[j])}return h}function S(l,v){if(l==null)return{};var h={},j=Object.keys(l),V,ne;for(ne=0;ne=0)&&(h[V]=l[V]);return h}function z(l,v){return g(l)||d(l,v)||ae(l,v)||m()}function ae(l,v){if(l){if(typeof l=="string")return J(l,v);var h=Object.prototype.toString.call(l).slice(8,-1);if(h==="Object"&&l.constructor&&(h=l.constructor.name),h==="Map"||h==="Set")return Array.from(h);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return J(l,v)}}(0,M.setTwoToneColor)(i.blue.primary);var b=o.forwardRef(function(l,v){var h=l.className,j=l.icon,V=l.spin,ne=l.rotate,we=l.tabIndex,se=l.onClick,Be=l.twoToneColor,nt=C(l,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),a=o.useContext(P.default),f=a.prefixCls,x=f===void 0?"anticon":f,_=a.rootClassName,R,Ce=(0,T.default)(_,x,(R={},K(R,"".concat(x,"-").concat(j.name),!!j.name),K(R,"".concat(x,"-spin"),!!V||j.name==="loading"),R),h),he=we;he===void 0&&se&&(he=-1);var Ze=ne?{msTransform:"rotate(".concat(ne,"deg)"),transform:"rotate(".concat(ne,"deg)")}:void 0,Ie=z((0,Q.normalizeTwoToneColors)(Be),2),De=Ie[0],He=Ie[1];return o.createElement("span",O(s({role:"img","aria-label":j.name},nt),{ref:v,tabIndex:he,onClick:se,className:Ce}),o.createElement(N.default,{icon:j,primaryColor:De,secondaryColor:He,style:Ze}))});b.displayName="AntdIcon",b.getTwoToneColor=M.getTwoToneColor,b.setTwoToneColor=M.setTwoToneColor;var E=b},61711:function(I,p,n){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return i}});var o=n(67294),T=(0,o.createContext)({}),i=T},27727:function(I,p,n){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return m}});var o=N(n(67294)),T=n(72014);function i(s,y,O){return y in s?Object.defineProperty(s,y,{value:O,enumerable:!0,configurable:!0,writable:!0}):s[y]=O,s}function P(s){if(typeof WeakMap!="function")return null;var y=new WeakMap,O=new WeakMap;return(P=function(C){return C?O:y})(s)}function N(s,y){if(!y&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var O=P(y);if(O&&O.has(s))return O.get(s);var C={__proto__:null},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in s)if(z!=="default"&&Object.prototype.hasOwnProperty.call(s,z)){var ae=S?Object.getOwnPropertyDescriptor(s,z):null;ae&&(ae.get||ae.set)?Object.defineProperty(C,z,ae):C[z]=s[z]}return C.default=s,O&&O.set(s,C),C}function M(s){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(s,C)&&(O[C]=s[C])}return O}function K(s,y){if(s==null)return{};var O={},C=Object.keys(s),S,z;for(z=0;z=0)&&(O[S]=s[S]);return O}var Z={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function $(s){var y=s.primaryColor,O=s.secondaryColor;Z.primaryColor=y,Z.secondaryColor=O||(0,T.getSecondaryColor)(y),Z.calculated=!!O}function w(){return M({},Z)}var d=function(s){var y=s.icon,O=s.className,C=s.onClick,S=s.style,z=s.primaryColor,ae=s.secondaryColor,b=g(s,["icon","className","onClick","style","primaryColor","secondaryColor"]),E=o.useRef(),l=Z;if(z&&(l={primaryColor:z,secondaryColor:ae||(0,T.getSecondaryColor)(z)}),(0,T.useInsertStyles)(E),(0,T.warning)((0,T.isIconDefinition)(y),"icon should be icon definiton, but got ".concat(y)),!(0,T.isIconDefinition)(y))return null;var v=y;return v&&typeof v.icon=="function"&&(v=J(M({},v),{icon:v.icon(l.primaryColor,l.secondaryColor)})),(0,T.generate)(v.icon,"svg-".concat(v.name),J(M({className:O,onClick:C,style:S,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},b),{ref:E}))};d.displayName="IconReact",d.getTwoToneColors=w,d.setTwoToneColors=$;var m=d},26814:function(I,p,n){"use strict";Object.defineProperty(p,"__esModule",{value:!0});function o(w,d){for(var m in d)Object.defineProperty(w,m,{enumerable:!0,get:d[m]})}o(p,{getTwoToneColor:function(){return $},setTwoToneColor:function(){return Z}});var T=M(n(27727)),i=n(72014);function P(w,d){(d==null||d>w.length)&&(d=w.length);for(var m=0,s=new Array(d);m0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(b).reduce(function(E,l){var v=b[l];switch(l){case"class":E.className=v,delete E.class;break;default:delete E[l],E[w(l)]=v}return E},{})}function y(b,E,l){return l?M.default.createElement(b.tag,$({key:E},s(b.attrs),l),(b.children||[]).map(function(v,h){return y(v,"".concat(E,"-").concat(b.tag,"-").concat(h))})):M.default.createElement(b.tag,$({key:E},s(b.attrs)),(b.children||[]).map(function(v,h){return y(v,"".concat(E,"-").concat(b.tag,"-").concat(h))}))}function O(b){return(0,T.generate)(b)[0]}function C(b){return b?Array.isArray(b)?b:[b]:[]}var S={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},z=` +.anticon { + display: inline-flex; + alignItems: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,ae=function(b){var E=(0,M.useContext)(Q.default),l=E.csp,v=E.prefixCls,h=z;v&&(h=h.replace(/anticon/g,v)),(0,M.useEffect)(function(){var j=b.current,V=(0,P.getShadowRoot)(j);(0,i.updateCSS)(h,"@ant-design-icons",{prepend:!0,csp:l,attachTo:V})},[])}},4393:function(I,p,n){"use strict";n.d(p,{Z:function(){return nt}});var o=n(67294),T=n(93967),i=n.n(T),P=n(98423),N=n(53124),M=n(98675),Q=n(99559),J=n(48096),g=function(a,f){var x={};for(var _ in a)Object.prototype.hasOwnProperty.call(a,_)&&f.indexOf(_)<0&&(x[_]=a[_]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,_=Object.getOwnPropertySymbols(a);R<_.length;R++)f.indexOf(_[R])<0&&Object.prototype.propertyIsEnumerable.call(a,_[R])&&(x[_[R]]=a[_[R]]);return x},Z=a=>{var{prefixCls:f,className:x,hoverable:_=!0}=a,R=g(a,["prefixCls","className","hoverable"]);const{getPrefixCls:Ce}=o.useContext(N.E_),he=Ce("card",f),Ze=i()(`${he}-grid`,x,{[`${he}-grid-hoverable`]:_});return o.createElement("div",Object.assign({},R,{className:Ze}))},$=n(6731),w=n(14747),d=n(91945),m=n(45503);const s=a=>{const{antCls:f,componentCls:x,headerHeight:_,cardPaddingBase:R,tabsMarginBottom:Ce}=a;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:_,marginBottom:-1,padding:`0 ${(0,$.bf)(R)}`,color:a.colorTextHeading,fontWeight:a.fontWeightStrong,fontSize:a.headerFontSize,background:a.headerBg,borderBottom:`${(0,$.bf)(a.lineWidth)} ${a.lineType} ${a.colorBorderSecondary}`,borderRadius:`${(0,$.bf)(a.borderRadiusLG)} ${(0,$.bf)(a.borderRadiusLG)} 0 0`},(0,w.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},w.vS),{[` + > ${x}-typography, + > ${x}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${f}-tabs-top`]:{clear:"both",marginBottom:Ce,color:a.colorText,fontWeight:"normal",fontSize:a.fontSize,"&-bar":{borderBottom:`${(0,$.bf)(a.lineWidth)} ${a.lineType} ${a.colorBorderSecondary}`}}})},y=a=>{const{cardPaddingBase:f,colorBorderSecondary:x,cardShadow:_,lineWidth:R}=a;return{width:"33.33%",padding:f,border:0,borderRadius:0,boxShadow:` + ${(0,$.bf)(R)} 0 0 0 ${x}, + 0 ${(0,$.bf)(R)} 0 0 ${x}, + ${(0,$.bf)(R)} ${(0,$.bf)(R)} 0 0 ${x}, + ${(0,$.bf)(R)} 0 0 0 ${x} inset, + 0 ${(0,$.bf)(R)} 0 0 ${x} inset; + `,transition:`all ${a.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:_}}},O=a=>{const{componentCls:f,iconCls:x,actionsLiMargin:_,cardActionsIconSize:R,colorBorderSecondary:Ce,actionsBg:he}=a;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:he,borderTop:`${(0,$.bf)(a.lineWidth)} ${a.lineType} ${Ce}`,display:"flex",borderRadius:`0 0 ${(0,$.bf)(a.borderRadiusLG)} ${(0,$.bf)(a.borderRadiusLG)}`},(0,w.dF)()),{"& > li":{margin:_,color:a.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:a.calc(a.cardActionsIconSize).mul(2).equal(),fontSize:a.fontSize,lineHeight:a.lineHeight,cursor:"pointer","&:hover":{color:a.colorPrimary,transition:`color ${a.motionDurationMid}`},[`a:not(${f}-btn), > ${x}`]:{display:"inline-block",width:"100%",color:a.colorTextDescription,lineHeight:(0,$.bf)(a.fontHeight),transition:`color ${a.motionDurationMid}`,"&:hover":{color:a.colorPrimary}},[`> ${x}`]:{fontSize:R,lineHeight:(0,$.bf)(a.calc(R).mul(a.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,$.bf)(a.lineWidth)} ${a.lineType} ${Ce}`}}})},C=a=>Object.assign(Object.assign({margin:`${(0,$.bf)(a.calc(a.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,w.dF)()),{"&-avatar":{paddingInlineEnd:a.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:a.marginXS}},"&-title":Object.assign({color:a.colorTextHeading,fontWeight:a.fontWeightStrong,fontSize:a.fontSizeLG},w.vS),"&-description":{color:a.colorTextDescription}}),S=a=>{const{componentCls:f,cardPaddingBase:x,colorFillAlter:_}=a;return{[`${f}-head`]:{padding:`0 ${(0,$.bf)(x)}`,background:_,"&-title":{fontSize:a.fontSize}},[`${f}-body`]:{padding:`${(0,$.bf)(a.padding)} ${(0,$.bf)(x)}`}}},z=a=>{const{componentCls:f}=a;return{overflow:"hidden",[`${f}-body`]:{userSelect:"none"}}},ae=a=>{const{antCls:f,componentCls:x,cardShadow:_,cardHeadPadding:R,colorBorderSecondary:Ce,boxShadowTertiary:he,cardPaddingBase:Ze,extraColor:Ie}=a;return{[x]:Object.assign(Object.assign({},(0,w.Wf)(a)),{position:"relative",background:a.colorBgContainer,borderRadius:a.borderRadiusLG,[`&:not(${x}-bordered)`]:{boxShadow:he},[`${x}-head`]:s(a),[`${x}-extra`]:{marginInlineStart:"auto",color:Ie,fontWeight:"normal",fontSize:a.fontSize},[`${x}-body`]:Object.assign({padding:Ze,borderRadius:` 0 0 ${(0,$.bf)(a.borderRadiusLG)} ${(0,$.bf)(a.borderRadiusLG)}`},(0,w.dF)()),[`${x}-grid`]:y(a),[`${x}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${f}-image-mask`]:{borderRadius:`${(0,$.bf)(a.borderRadiusLG)} ${(0,$.bf)(a.borderRadiusLG)} 0 0`}},[`${x}-actions`]:O(a),[`${x}-meta`]:C(a)}),[`${x}-bordered`]:{border:`${(0,$.bf)(a.lineWidth)} ${a.lineType} ${Ce}`,[`${x}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${x}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${a.motionDurationMid}, border-color ${a.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:_}},[`${x}-contain-grid`]:{borderRadius:`${(0,$.bf)(a.borderRadiusLG)} ${(0,$.bf)(a.borderRadiusLG)} 0 0 `,[`${x}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${x}-loading) ${x}-body`]:{marginBlockStart:a.calc(a.lineWidth).mul(-1).equal(),marginInlineStart:a.calc(a.lineWidth).mul(-1).equal(),padding:0}},[`${x}-contain-tabs`]:{[`> ${x}-head`]:{minHeight:0,[`${x}-head-title, ${x}-extra`]:{paddingTop:R}}},[`${x}-type-inner`]:S(a),[`${x}-loading`]:z(a),[`${x}-rtl`]:{direction:"rtl"}}},b=a=>{const{componentCls:f,cardPaddingSM:x,headerHeightSM:_,headerFontSizeSM:R}=a;return{[`${f}-small`]:{[`> ${f}-head`]:{minHeight:_,padding:`0 ${(0,$.bf)(x)}`,fontSize:R,[`> ${f}-head-wrapper`]:{[`> ${f}-extra`]:{fontSize:a.fontSize}}},[`> ${f}-body`]:{padding:x}},[`${f}-small${f}-contain-tabs`]:{[`> ${f}-head`]:{[`${f}-head-title, ${f}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},E=a=>({headerBg:"transparent",headerFontSize:a.fontSizeLG,headerFontSizeSM:a.fontSize,headerHeight:a.fontSizeLG*a.lineHeightLG+a.padding*2,headerHeightSM:a.fontSize*a.lineHeight+a.paddingXS*2,actionsBg:a.colorBgContainer,actionsLiMargin:`${a.paddingSM}px 0`,tabsMarginBottom:-a.padding-a.lineWidth,extraColor:a.colorText});var l=(0,d.I$)("Card",a=>{const f=(0,m.TS)(a,{cardShadow:a.boxShadowCard,cardHeadPadding:a.padding,cardPaddingBase:a.paddingLG,cardActionsIconSize:a.fontSize,cardPaddingSM:12});return[ae(f),b(f)]},E),v=function(a,f){var x={};for(var _ in a)Object.prototype.hasOwnProperty.call(a,_)&&f.indexOf(_)<0&&(x[_]=a[_]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,_=Object.getOwnPropertySymbols(a);R<_.length;R++)f.indexOf(_[R])<0&&Object.prototype.propertyIsEnumerable.call(a,_[R])&&(x[_[R]]=a[_[R]]);return x};const h=a=>{const{actionClasses:f,actions:x=[],actionStyle:_}=a;return o.createElement("ul",{className:f,style:_},x.map((R,Ce)=>{const he=`action-${Ce}`;return o.createElement("li",{style:{width:`${100/x.length}%`},key:he},o.createElement("span",null,R))}))};var V=o.forwardRef((a,f)=>{const{prefixCls:x,className:_,rootClassName:R,style:Ce,extra:he,headStyle:Ze={},bodyStyle:Ie={},title:De,loading:He,bordered:Ye=!0,size:Le,type:Fe,cover:st,actions:at,tabList:Qe,children:Ge,activeTabKey:Je,defaultActiveTabKey:mt,tabBarExtraContent:vt,hoverable:dt,tabProps:pt={},classNames:Xe,styles:qe}=a,ut=v(a,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:yt,direction:ft,card:je}=o.useContext(N.E_),ht=Se=>{var pe;(pe=a.onTabChange)===null||pe===void 0||pe.call(a,Se)},ze=Se=>{var pe;return i()((pe=je==null?void 0:je.classNames)===null||pe===void 0?void 0:pe[Se],Xe==null?void 0:Xe[Se])},Ae=Se=>{var pe;return Object.assign(Object.assign({},(pe=je==null?void 0:je.styles)===null||pe===void 0?void 0:pe[Se]),qe==null?void 0:qe[Se])},bt=o.useMemo(()=>{let Se=!1;return o.Children.forEach(Ge,pe=>{pe&&pe.type&&pe.type===Z&&(Se=!0)}),Se},[Ge]),ve=yt("card",x),[Ct,St,xt]=l(ve),Ot=o.createElement(Q.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},Ge),ke=Je!==void 0,Pt=Object.assign(Object.assign({},pt),{[ke?"activeKey":"defaultActiveKey"]:ke?Je:mt,tabBarExtraContent:vt});let gt;const Ke=(0,M.Z)(Le),wt=!Ke||Ke==="default"?"large":Ke,ot=Qe?o.createElement(J.Z,Object.assign({size:wt},Pt,{className:`${ve}-head-tabs`,onChange:ht,items:Qe.map(Se=>{var{tab:pe}=Se,it=v(Se,["tab"]);return Object.assign({label:pe},it)})})):null;if(De||he||ot){const Se=i()(`${ve}-head`,ze("header")),pe=i()(`${ve}-head-title`,ze("title")),it=i()(`${ve}-extra`,ze("extra")),et=Object.assign(Object.assign({},Ze),Ae("header"));gt=o.createElement("div",{className:Se,style:et},o.createElement("div",{className:`${ve}-head-wrapper`},De&&o.createElement("div",{className:pe,style:Ae("title")},De),he&&o.createElement("div",{className:it,style:Ae("extra")},he)),ot)}const jt=i()(`${ve}-cover`,ze("cover")),Tt=st?o.createElement("div",{className:jt,style:Ae("cover")},st):null,$t=i()(`${ve}-body`,ze("body")),It=Object.assign(Object.assign({},Ie),Ae("body")),Zt=o.createElement("div",{className:$t,style:It},He?Ot:Ge),_t=i()(`${ve}-actions`,ze("actions")),Et=at&&at.length?o.createElement(h,{actionClasses:_t,actionStyle:Ae("actions"),actions:at}):null,Rt=(0,P.Z)(ut,["onTabChange"]),Nt=i()(ve,je==null?void 0:je.className,{[`${ve}-loading`]:He,[`${ve}-bordered`]:Ye,[`${ve}-hoverable`]:dt,[`${ve}-contain-grid`]:bt,[`${ve}-contain-tabs`]:Qe&&Qe.length,[`${ve}-${Ke}`]:Ke,[`${ve}-type-${Fe}`]:!!Fe,[`${ve}-rtl`]:ft==="rtl"},_,R,St,xt),Mt=Object.assign(Object.assign({},je==null?void 0:je.style),Ce);return Ct(o.createElement("div",Object.assign({ref:f},Rt,{className:Nt,style:Mt}),gt,Tt,Zt,Et))}),ne=function(a,f){var x={};for(var _ in a)Object.prototype.hasOwnProperty.call(a,_)&&f.indexOf(_)<0&&(x[_]=a[_]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,_=Object.getOwnPropertySymbols(a);R<_.length;R++)f.indexOf(_[R])<0&&Object.prototype.propertyIsEnumerable.call(a,_[R])&&(x[_[R]]=a[_[R]]);return x},se=a=>{const{prefixCls:f,className:x,avatar:_,title:R,description:Ce}=a,he=ne(a,["prefixCls","className","avatar","title","description"]),{getPrefixCls:Ze}=o.useContext(N.E_),Ie=Ze("card",f),De=i()(`${Ie}-meta`,x),He=_?o.createElement("div",{className:`${Ie}-meta-avatar`},_):null,Ye=R?o.createElement("div",{className:`${Ie}-meta-title`},R):null,Le=Ce?o.createElement("div",{className:`${Ie}-meta-description`},Ce):null,Fe=Ye||Le?o.createElement("div",{className:`${Ie}-meta-detail`},Ye,Le):null;return o.createElement("div",Object.assign({},he,{className:De}),He,Fe)};const Be=V;Be.Grid=Z,Be.Meta=se;var nt=Be},19158:function(I,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=n;function n(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},32191:function(I,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=n;function n(o,T){if(!o)return!1;if(o.contains)return o.contains(T);for(var i=T;i;){if(i===o)return!0;i=i.parentNode}return!1}},93399:function(I,p,n){"use strict";var o=n(64836).default;Object.defineProperty(p,"__esModule",{value:!0}),p.clearContainerCache=y,p.injectCSS=w,p.removeCSS=m,p.updateCSS=O;var T=o(n(42122)),i=o(n(19158)),P=o(n(32191)),N="data-rc-order",M="data-rc-priority",Q="rc-util-key",J=new Map;function g(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=C.mark;return S?S.startsWith("data-")?S:"data-".concat(S):Q}function K(C){if(C.attachTo)return C.attachTo;var S=document.querySelector("head");return S||document.body}function Z(C){return C==="queue"?"prependQueue":C?"prepend":"append"}function $(C){return Array.from((J.get(C)||C).children).filter(function(S){return S.tagName==="STYLE"})}function w(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,i.default)())return null;var z=S.csp,ae=S.prepend,b=S.priority,E=b===void 0?0:b,l=Z(ae),v=l==="prependQueue",h=document.createElement("style");h.setAttribute(N,l),v&&E&&h.setAttribute(M,"".concat(E)),z!=null&&z.nonce&&(h.nonce=z==null?void 0:z.nonce),h.innerHTML=C;var j=K(S),V=j.firstChild;if(ae){if(v){var ne=(S.styles||$(j)).filter(function(we){if(!["prepend","prependQueue"].includes(we.getAttribute(N)))return!1;var se=Number(we.getAttribute(M)||0);return E>=se});if(ne.length)return j.insertBefore(h,ne[ne.length-1].nextSibling),h}j.insertBefore(h,V)}else j.appendChild(h);return h}function d(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=K(S);return(S.styles||$(z)).find(function(ae){return ae.getAttribute(g(S))===C})}function m(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=d(C,S);if(z){var ae=K(S);ae.removeChild(z)}}function s(C,S){var z=J.get(C);if(!z||!(0,P.default)(document,z)){var ae=w("",S),b=ae.parentNode;J.set(C,b),C.removeChild(ae)}}function y(){J.clear()}function O(C,S){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ae=K(z),b=$(ae),E=(0,T.default)((0,T.default)({},z),{},{styles:b});s(ae,E);var l=d(S,E);if(l){var v,h;if((v=E.csp)!==null&&v!==void 0&&v.nonce&&l.nonce!==((h=E.csp)===null||h===void 0?void 0:h.nonce)){var j;l.nonce=(j=E.csp)===null||j===void 0?void 0:j.nonce}return l.innerHTML!==C&&(l.innerHTML=C),l}var V=w(C,E);return V.setAttribute(g(E),S),V}},63298:function(I,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getShadowRoot=T,p.inShadow=o;function n(i){var P;return i==null||(P=i.getRootNode)===null||P===void 0?void 0:P.call(i)}function o(i){return n(i)instanceof ShadowRoot}function T(i){return o(i)?n(i):null}},45520:function(I,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.call=M,p.default=void 0,p.note=P,p.noteOnce=J,p.preMessage=void 0,p.resetWarned=N,p.warning=i,p.warningOnce=Q;var n={},o=[],T=p.preMessage=function(Z){o.push(Z)};function i(K,Z){if(!1)var $}function P(K,Z){if(!1)var $}function N(){n={}}function M(K,Z,$){!Z&&!n[$]&&(K(!1,$),n[$]=!0)}function Q(K,Z){M(i,K,Z)}function J(K,Z){M(P,K,Z)}Q.preMessage=T,Q.resetWarned=N,Q.noteOnce=J;var g=p.default=Q},38416:function(I,p,n){var o=n(64062);function T(i,P,N){return P=o(P),P in i?Object.defineProperty(i,P,{value:N,enumerable:!0,configurable:!0,writable:!0}):i[P]=N,i}I.exports=T,I.exports.__esModule=!0,I.exports.default=I.exports},64836:function(I){function p(n){return n&&n.__esModule?n:{default:n}}I.exports=p,I.exports.__esModule=!0,I.exports.default=I.exports},42122:function(I,p,n){var o=n(38416);function T(P,N){var M=Object.keys(P);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(P);N&&(Q=Q.filter(function(J){return Object.getOwnPropertyDescriptor(P,J).enumerable})),M.push.apply(M,Q)}return M}function i(P){for(var N=1;NU in W?Fe(W,U,{enumerable:!0,configurable:!0,writable:!0,value:F}):W[U]=F,G=(W,U)=>{for(var F in U||(U={}))Ae.call(U,F)&&Ee(W,F,U[F]);if(me)for(var F of me(U))De.call(U,F)&&Ee(W,F,U[F]);return W},Se=(W,U)=>Me(W,Ne(U));var we=(W,U)=>{var F={};for(var I in W)Ae.call(W,I)&&U.indexOf(I)<0&&(F[I]=W[I]);if(W!=null&&me)for(var I of me(W))U.indexOf(I)<0&&De.call(W,I)&&(F[I]=W[I]);return F};(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[428],{50139:function(W,U,F){var I=F(67294),Z=F(61688);function Q(oe,Y){return oe===Y&&(oe!==0||1/oe===1/Y)||oe!==oe&&Y!==Y}var se=typeof Object.is=="function"?Object.is:Q,V=Z.useSyncExternalStore,te=I.useRef,re=I.useEffect,ne=I.useMemo,le=I.useDebugValue;U.useSyncExternalStoreWithSelector=function(oe,Y,ie,z,D){var N=te(null);if(N.current===null){var L={hasValue:!1,value:null};N.current=L}else L=N.current;N=ne(function(){function b(f){if(!O){if(O=!0,y=f,f=z(f),D!==void 0&&L.hasValue){var k=L.value;if(D(k,f))return m=k}return m=f}if(k=m,se(y,f))return k;var P=z(f);return D!==void 0&&D(k,P)?k:(y=f,m=P)}var O=!1,y,m,v=ie===void 0?null:ie;return[function(){return b(Y())},v===null?void 0:function(){return b(v())}]},[Y,ie,z,D]);var q=V(oe,N[0],N[1]);return re(function(){L.hasValue=!0,L.value=q},[q]),le(q),q}},52798:function(W,U,F){W.exports=F(50139)},64529:function(W,U,F){F.d(U,{Ue:function(){return ie}});const I=D=>{let N;const L=new Set,q=(k,P)=>{const R=typeof k=="function"?k(N):k;if(!Object.is(R,N)){const T=N;N=(P!=null?P:typeof R!="object"||R===null)?R:Object.assign({},N,R),L.forEach(A=>A(N,T))}},b=()=>N,v={setState:q,getState:b,getInitialState:()=>f,subscribe:k=>(L.add(k),()=>L.delete(k)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),L.clear()}},f=N=D(q,b,v);return v},Z=D=>D?I(D):I;var Q=D=>(console.warn("[DEPRECATED] Default export is deprecated. Instead use import { createStore } from 'zustand/vanilla'."),Z(D)),se=F(67294),V=F(52798);const{useDebugValue:te}=se,{useSyncExternalStoreWithSelector:re}=V;let ne=!1;const le=D=>D;function oe(D,N=le,L){L&&!ne&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),ne=!0);const q=re(D.subscribe,D.getState,D.getServerState||D.getInitialState,N,L);return te(q),q}const Y=D=>{typeof D!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const N=typeof D=="function"?Z(D):D,L=(q,b)=>oe(N,q,b);return Object.assign(L,N),L},ie=D=>D?Y(D):Y;var z=D=>(console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),ie(D))},782:function(W,U,F){F.d(U,{mW:function(){return re},tJ:function(){return q}});const I=(b,O)=>(y,m,v)=>(v.dispatch=f=>(y(k=>b(k,f),!1,f),f),v.dispatchFromDevtools=!0,G({dispatch:(...f)=>v.dispatch(...f)},O)),Z=null,Q=new Map,se=b=>{const O=Q.get(b);return O?Object.fromEntries(Object.entries(O.stores).map(([y,m])=>[y,m.getState()])):{}},V=(b,O,y)=>{if(b===void 0)return{type:"untracked",connection:O.connect(y)};const m=Q.get(y.name);if(m)return G({type:"tracked",store:b},m);const v={connection:O.connect(y),stores:{}};return Q.set(y.name,v),G({type:"tracked",store:b},v)},re=(b,O={})=>(y,m,v)=>{const x=O,{enabled:f,anonymousActionType:k,store:P}=x,R=we(x,["enabled","anonymousActionType","store"]);let T;try{T=(f!=null?f:!0)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(j){}if(!T)return f&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),b(y,m,v);const w=V(P,T,R),{connection:A}=w,H=we(w,["connection"]);let X=!0;v.setState=(j,g,E)=>{const ee=y(j,g);if(!X)return ee;const ve=E===void 0?{type:k||"anonymous"}:typeof E=="string"?{type:E}:E;return P===void 0?(A==null||A.send(ve,m()),ee):(A==null||A.send(Se(G({},ve),{type:`${P}/${ve.type}`}),Se(G({},se(R.name)),{[P]:v.getState()})),ee)};const J=(...j)=>{const g=X;X=!1,y(...j),X=g},C=b(v.setState,m,v);if(H.type==="untracked"?A==null||A.init(C):(H.stores[H.store]=v,A==null||A.init(Object.fromEntries(Object.entries(H.stores).map(([j,g])=>[j,j===H.store?C:g.getState()])))),v.dispatchFromDevtools&&typeof v.dispatch=="function"){let j=!1;const g=v.dispatch;v.dispatch=(...E)=>{E[0].type==="__setState"&&!j&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),j=!0),g(...E)}}return A.subscribe(j=>{var g;switch(j.type){case"ACTION":if(typeof j.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return ne(j.payload,E=>{if(E.type==="__setState"){if(P===void 0){J(E.state);return}Object.keys(E.state).length!==1&&console.error(` - [zustand devtools middleware] Unsupported __setState action format. - When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), - and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const ee=E.state[P];if(ee==null)return;JSON.stringify(v.getState())!==JSON.stringify(ee)&&J(ee);return}v.dispatchFromDevtools&&typeof v.dispatch=="function"&&v.dispatch(E)});case"DISPATCH":switch(j.payload.type){case"RESET":return J(C),P===void 0?A==null?void 0:A.init(v.getState()):A==null?void 0:A.init(se(R.name));case"COMMIT":if(P===void 0){A==null||A.init(v.getState());return}return A==null?void 0:A.init(se(R.name));case"ROLLBACK":return ne(j.state,E=>{if(P===void 0){J(E),A==null||A.init(v.getState());return}J(E[P]),A==null||A.init(se(R.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return ne(j.state,E=>{if(P===void 0){J(E);return}JSON.stringify(v.getState())!==JSON.stringify(E[P])&&J(E[P])});case"IMPORT_STATE":{const{nextLiftedState:E}=j.payload,ee=(g=E.computedStates.slice(-1)[0])==null?void 0:g.state;if(!ee)return;J(P===void 0?ee:ee[P]),A==null||A.send(null,E);return}case"PAUSE_RECORDING":return X=!X}return}}),C},ne=(b,O)=>{let y;try{y=JSON.parse(b)}catch(m){console.error("[zustand devtools middleware] Could not parse the received json",m)}y!==void 0&&O(y)},le=b=>(O,y,m)=>{const v=m.subscribe;return m.subscribe=(k,P,R)=>{let T=k;if(P){const A=(R==null?void 0:R.equalityFn)||Object.is;let H=k(m.getState());T=X=>{const J=k(X);if(!A(H,J)){const C=H;P(H=J,C)}},R!=null&&R.fireImmediately&&P(H,H)}return v(T)},b(O,y,m)},oe=null,Y=(b,O)=>(...y)=>Object.assign({},b,O(...y));function ie(b,O){let y;try{y=b()}catch(v){return}return{getItem:v=>{var f;const k=R=>R===null?null:JSON.parse(R,O==null?void 0:O.reviver),P=(f=y.getItem(v))!=null?f:null;return P instanceof Promise?P.then(k):k(P)},setItem:(v,f)=>y.setItem(v,JSON.stringify(f,O==null?void 0:O.replacer)),removeItem:v=>y.removeItem(v)}}const z=b=>O=>{try{const y=b(O);return y instanceof Promise?y:{then(m){return z(m)(y)},catch(m){return this}}}catch(y){return{then(m){return this},catch(m){return z(m)(y)}}}},D=(b,O)=>(y,m,v)=>{let f=G({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:w=>w,version:0,merge:(w,j)=>G(G({},j),w)},O),k=!1;const P=new Set,R=new Set;let T;try{T=f.getStorage()}catch(w){}if(!T)return b((...w)=>{console.warn(`[zustand persist middleware] Unable to update item '${f.name}', the given storage is currently unavailable.`),y(...w)},m,v);const A=z(f.serialize),H=()=>{const w=f.partialize(G({},m()));let j;const g=A({state:w,version:f.version}).then(E=>T.setItem(f.name,E)).catch(E=>{j=E});if(j)throw j;return g},X=v.setState;v.setState=(w,j)=>{X(w,j),H()};const J=b((...w)=>{y(...w),H()},m,v);let C;const x=()=>{var w;if(!T)return;k=!1,P.forEach(g=>g(m()));const j=((w=f.onRehydrateStorage)==null?void 0:w.call(f,m()))||void 0;return z(T.getItem.bind(T))(f.name).then(g=>{if(g)return f.deserialize(g)}).then(g=>{if(g)if(typeof g.version=="number"&&g.version!==f.version){if(f.migrate)return f.migrate(g.state,g.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return g.state}).then(g=>{var E;return C=f.merge(g,(E=m())!=null?E:J),y(C,!0),H()}).then(()=>{j==null||j(C,void 0),k=!0,R.forEach(g=>g(C))}).catch(g=>{j==null||j(void 0,g)})};return v.persist={setOptions:w=>{f=G(G({},f),w),w.getStorage&&(T=w.getStorage())},clearStorage:()=>{T==null||T.removeItem(f.name)},getOptions:()=>f,rehydrate:()=>x(),hasHydrated:()=>k,onHydrate:w=>(P.add(w),()=>{P.delete(w)}),onFinishHydration:w=>(R.add(w),()=>{R.delete(w)})},x(),C||J},N=(b,O)=>(y,m,v)=>{let f=G({storage:ie(()=>localStorage),partialize:x=>x,version:0,merge:(x,w)=>G(G({},w),x)},O),k=!1;const P=new Set,R=new Set;let T=f.storage;if(!T)return b((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${f.name}', the given storage is currently unavailable.`),y(...x)},m,v);const A=()=>{const x=f.partialize(G({},m()));return T.setItem(f.name,{state:x,version:f.version})},H=v.setState;v.setState=(x,w)=>{H(x,w),A()};const X=b((...x)=>{y(...x),A()},m,v);v.getInitialState=()=>X;let J;const C=()=>{var x,w;if(!T)return;k=!1,P.forEach(g=>{var E;return g((E=m())!=null?E:X)});const j=((w=f.onRehydrateStorage)==null?void 0:w.call(f,(x=m())!=null?x:X))||void 0;return z(T.getItem.bind(T))(f.name).then(g=>{if(g)if(typeof g.version=="number"&&g.version!==f.version){if(f.migrate)return f.migrate(g.state,g.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return g.state}).then(g=>{var E;return J=f.merge(g,(E=m())!=null?E:X),y(J,!0),A()}).then(()=>{j==null||j(J,void 0),J=m(),k=!0,R.forEach(g=>g(J))}).catch(g=>{j==null||j(void 0,g)})};return v.persist={setOptions:x=>{f=G(G({},f),x),x.storage&&(T=x.storage)},clearStorage:()=>{T==null||T.removeItem(f.name)},getOptions:()=>f,rehydrate:()=>C(),hasHydrated:()=>k,onHydrate:x=>(P.add(x),()=>{P.delete(x)}),onFinishHydration:x=>(R.add(x),()=>{R.delete(x)})},f.skipHydration||C(),J||X},q=(b,O)=>"getStorage"in O||"serialize"in O||"deserialize"in O?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),D(b,O)):N(b,O)},1151:function(W,U,F){F.d(U,{n:function(){return Ce}});function I(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:Y(e)?2:ie(e)?3:0}function re(e,t){return te(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ne(e,t){return te(e)===2?e.get(t):e[t]}function le(e,t,o){var r=te(e);r===2?e.set(t,o):r===3?(e.delete(t),e.add(o)):e[t]=o}function oe(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Y(e){return ke&&e instanceof Map}function ie(e){return xe&&e instanceof Set}function z(e){return e.o||e.t}function D(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=je(e);delete t[S];for(var o=fe(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=L),Object.freeze(e),t&&V(e,function(o,r){return N(r,!0)},!0)),e}function L(){I(2)}function q(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function b(e){var t=be[e];return t||I(18,e),t}function O(e,t){be[e]||(be[e]=t)}function y(){return pe}function m(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function v(e){f(e),e.p.forEach(P),e.p=null}function f(e){e===pe&&(pe=e.l)}function k(e){return pe={p:[],l:pe,h:e,m:!0,_:0}}function P(e){var t=e[S];t.i===0||t.i===1?t.j():t.g=!0}function R(e,t){t._=t.p.length;var o=t.p[0],r=e!==void 0&&e!==o;return t.h.O||b("ES5").S(t,e,r),r?(o[S].P&&(v(t),I(4)),Q(e)&&(e=T(t,e),t.l||H(t,e)),t.u&&b("Patches").M(o[S],e,t.u,t.s)):e=T(t,o,[]),v(t),t.u&&t.v(t.u,t.s),e!==_e?e:void 0}function T(e,t,o){if(q(t))return t;var r=t[S];if(!r)return V(t,function(d,c){return A(e,r,t,d,c,o)},!0),t;if(r.A!==e)return t;if(!r.P)return H(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var s=r.i===4||r.i===5?r.o=D(r.k):r.o;V(r.i===3?new Set(s):s,function(d,c){return A(e,r,s,d,c,o)}),H(e,s,!1),o&&e.u&&b("Patches").R(r,o,e.u,e.s)}return r.o}function A(e,t,o,r,s,d){if(Z(s)){var c=T(e,s,d&&t&&t.i!==3&&!re(t.D,r)?d.concat(r):void 0);if(le(o,r,c),!Z(c))return;e.m=!1}if(Q(s)&&!q(s)){if(!e.h.F&&e._<1)return;T(e,s),t&&t.A.l||H(e,s)}}function H(e,t,o){o===void 0&&(o=!1),e.h.F&&e.m&&N(t,o)}function X(e,t){var o=e[S];return(o?z(o):e)[t]}function J(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var r=Object.getOwnPropertyDescriptor(o,t);if(r)return r;o=Object.getPrototypeOf(o)}}function C(e){e.P||(e.P=!0,e.l&&C(e.l))}function x(e){e.o||(e.o=D(e.t))}function w(e,t,o){var r=Y(t)?b("MapSet").N(t,o):ie(t)?b("MapSet").T(t,o):e.O?function(s,d){var c=Array.isArray(s),u={i:c?1:0,A:d?d.A:y(),P:!1,I:!1,D:{},l:d,t:s,k:null,o:null,j:null,C:!1},a=u,n=de;c&&(a=[u],n=ye);var i=Proxy.revocable(a,n),l=i.revoke,h=i.proxy;return u.k=h,u.j=l,h}(t,o):b("ES5").J(t,o);return(o?o.A:y()).p.push(r),r}function j(e){return Z(e)||I(22,e),function t(o){if(!Q(o))return o;var r,s=o[S],d=te(o);if(s){if(!s.P&&(s.i<4||!b("ES5").K(s)))return s.t;s.I=!0,r=g(o,d),s.I=!1}else r=g(o,d);return V(r,function(c,u){s&&ne(s.t,c)===u||le(r,c,t(u))}),d===3?new Set(r):r}(e)}function g(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return D(e)}function E(){function e(c,u){var a=d[c];return a?a.enumerable=u:d[c]=a={configurable:!0,enumerable:u,get:function(){var n=this[S];return de.get(n,c)},set:function(n){var i=this[S];de.set(i,c,n)}},a}function t(c){for(var u=c.length-1;u>=0;u--){var a=c[u][S];if(!a.P)switch(a.i){case 5:r(a)&&C(a);break;case 4:o(a)&&C(a)}}}function o(c){for(var u=c.t,a=c.k,n=fe(a),i=n.length-1;i>=0;i--){var l=n[i];if(l!==S){var h=u[l];if(h===void 0&&!re(u,l))return!0;var p=a[l],_=p&&p[S];if(_?_.t!==h:!oe(p,h))return!0}}var M=!!u[S];return n.length!==fe(u).length+(M?0:1)}function r(c){var u=c.k;if(u.length!==c.t.length)return!0;var a=Object.getOwnPropertyDescriptor(u,u.length-1);return!(!a||a.get)}function s(c){c.g&&I(3,JSON.stringify(z(c)))}var d={};O("ES5",{J:function(c,u){var a=Array.isArray(c),n=function(l,h){if(l){for(var p=Array(h.length),_=0;_1?M-1:0),K=1;K1?n-1:0),l=1;l=0;s--){var d=r[s];if(d.path.length===0&&d.op==="replace"){o=d.value;break}}var c=b("Patches").$;return Z(o)?c(o,r):this.produce(o,function(u){return c(u,r.slice(s+1))})},e}(),ae=new Re,ze=ae.produce,Ke=ae.produceWithPatches.bind(ae),$e=ae.setAutoFreeze.bind(ae),Le=ae.setUseProxies.bind(ae),Xe=ae.applyPatches.bind(ae),qe=ae.createDraft.bind(ae),Be=ae.finishDraft.bind(ae),Ge=null;const Ce=e=>(t,o,r)=>(r.setState=(s,d,...c)=>{const u=typeof s=="function"?ze(s):s;return t(u,d,...c)},e(r.setState,o,r))}}]); diff --git a/starter/src/main/resources/templates/admin/430.abb706f2.async.js b/starter/src/main/resources/templates/admin/430.abb706f2.async.js deleted file mode 100644 index 86f89d2a21..0000000000 --- a/starter/src/main/resources/templates/admin/430.abb706f2.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[430],{10178:function(k,M,t){t.d(M,{D:function(){return b}});var e=t(74165),v=t(15861),f=t(67294),B=t(48171);function b(D,g){var S=(0,B.J)(D),y=(0,f.useRef)(),C=(0,f.useCallback)(function(){y.current&&(clearTimeout(y.current),y.current=null)},[]),c=(0,f.useCallback)((0,v.Z)((0,e.Z)().mark(function n(){var a,r,s,o=arguments;return(0,e.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:for(a=o.length,r=new Array(a),s=0;sv?typeof v=="function"?v():v:null},7134:function(k,M,t){t.d(M,{C:function(){return pe}});var e=t(67294),v=t(93967),f=t.n(v),B=t(9220),b=t(42550),D=t(74443),g=t(53124),S=t(98675),y=t(25378),c=e.createContext({}),n=t(87107),a=t(14747),r=t(91945),s=t(45503);const o=l=>{const{antCls:u,componentCls:m,iconCls:i,avatarBg:h,avatarColor:Q,containerSize:N,containerSizeLG:R,containerSizeSM:U,textFontSize:$,textFontSizeLG:w,textFontSizeSM:re,borderRadius:W,borderRadiusLG:z,borderRadiusSM:V,lineWidth:Y,lineType:q}=l,H=(X,K,ee)=>({width:X,height:X,borderRadius:"50%",[`&${m}-square`]:{borderRadius:ee},[`&${m}-icon`]:{fontSize:K,[`> ${i}`]:{margin:0}}});return{[m]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,a.Wf)(l)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:Q,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:h,border:`${(0,n.bf)(Y)} ${q} transparent`,["&-image"]:{background:"transparent"},[`${u}-image-img`]:{display:"block"}}),H(N,$,W)),{["&-lg"]:Object.assign({},H(R,w,z)),["&-sm"]:Object.assign({},H(U,re,V)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},d=l=>{const{componentCls:u,groupBorderColor:m,groupOverlapping:i,groupSpace:h}=l;return{[`${u}-group`]:{display:"inline-flex",[`${u}`]:{borderColor:m},["> *:not(:first-child)"]:{marginInlineStart:i}},[`${u}-group-popover`]:{[`${u} + ${u}`]:{marginInlineStart:h}}}},p=l=>{const{controlHeight:u,controlHeightLG:m,controlHeightSM:i,fontSize:h,fontSizeLG:Q,fontSizeXL:N,fontSizeHeading3:R,marginXS:U,marginXXS:$,colorBorderBg:w}=l;return{containerSize:u,containerSizeLG:m,containerSizeSM:i,textFontSize:Math.round((Q+N)/2),textFontSizeLG:R,textFontSizeSM:h,groupSpace:$,groupOverlapping:-U,groupBorderColor:w}};var _=(0,r.I$)("Avatar",l=>{const{colorTextLightSolid:u,colorTextPlaceholder:m}=l,i=(0,s.TS)(l,{avatarBg:m,avatarColor:u});return[o(i),d(i)]},p),x=t(35792),F=function(l,u){var m={};for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&u.indexOf(i)<0&&(m[i]=l[i]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,i=Object.getOwnPropertySymbols(l);h{const[m,i]=e.useState(1),[h,Q]=e.useState(!1),[N,R]=e.useState(!0),U=e.useRef(null),$=e.useRef(null),w=(0,b.sQ)(u,U),{getPrefixCls:re,avatar:W}=e.useContext(g.E_),z=e.useContext(c),V=()=>{if(!$.current||!U.current)return;const O=$.current.offsetWidth,P=U.current.offsetWidth;if(O!==0&&P!==0){const{gap:Z=4}=l;Z*2{Q(!0)},[]),e.useEffect(()=>{R(!0),i(1)},[l.src]),e.useEffect(V,[l.gap]);const Y=()=>{const{onError:O}=l;(O==null?void 0:O())!==!1&&R(!1)},{prefixCls:q,shape:H,size:X,src:K,srcSet:ee,icon:A,className:oe,rootClassName:te,alt:ae,draggable:Ee,children:ue,crossOrigin:Ce}=l,ie=F(l,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),I=(0,S.Z)(O=>{var P,Z;return(Z=(P=X!=null?X:z==null?void 0:z.size)!==null&&P!==void 0?P:O)!==null&&Z!==void 0?Z:"default"}),Oe=Object.keys(typeof I=="object"?I||{}:{}).some(O=>["xs","sm","md","lg","xl","xxl"].includes(O)),ve=(0,y.Z)(Oe),Pe=e.useMemo(()=>{if(typeof I!="object")return{};const O=D.c4.find(Z=>ve[Z]),P=I[O];return P?{width:P,height:P,fontSize:P&&(A||ue)?P/2:18}:{}},[ve,I]),L=re("avatar",q),fe=(0,x.Z)(L),[he,ye,Se]=_(L,fe),_e=f()({[`${L}-lg`]:I==="large",[`${L}-sm`]:I==="small"}),ge=e.isValidElement(K),xe=H||(z==null?void 0:z.shape)||"circle",Me=f()(L,_e,W==null?void 0:W.className,`${L}-${xe}`,{[`${L}-image`]:ge||K&&N,[`${L}-icon`]:!!A},Se,fe,oe,te,ye),De=typeof I=="number"?{width:I,height:I,fontSize:A?I/2:18}:{};let ne;if(typeof K=="string"&&N)ne=e.createElement("img",{src:K,draggable:Ee,srcSet:ee,onError:Y,alt:ae,crossOrigin:Ce});else if(ge)ne=K;else if(A)ne=A;else if(h||m!==1){const O=`scale(${m})`,P={msTransform:O,WebkitTransform:O,transform:O};ne=e.createElement(B.Z,{onResize:V},e.createElement("span",{className:`${L}-string`,ref:$,style:Object.assign({},P)},ue))}else ne=e.createElement("span",{className:`${L}-string`,style:{opacity:0},ref:$},ue);return delete ie.onError,delete ie.gap,he(e.createElement("span",Object.assign({},ie,{style:Object.assign(Object.assign(Object.assign(Object.assign({},De),Pe),W==null?void 0:W.style),ie.style),className:Me,ref:w}),ne))};var j=e.forwardRef(E),G=t(50344),T=t(55241),ce=t(96159);const se=l=>{const{size:u,shape:m}=e.useContext(c),i=e.useMemo(()=>({size:l.size||u,shape:l.shape||m}),[l.size,l.shape,u,m]);return e.createElement(c.Provider,{value:i},l.children)};var de=l=>{const{getPrefixCls:u,direction:m}=e.useContext(g.E_),{prefixCls:i,className:h,rootClassName:Q,style:N,maxCount:R,maxStyle:U,size:$,shape:w,maxPopoverPlacement:re="top",maxPopoverTrigger:W="hover",children:z}=l,V=u("avatar",i),Y=`${V}-group`,q=(0,x.Z)(V),[H,X,K]=_(V,q),ee=f()(Y,{[`${Y}-rtl`]:m==="rtl"},K,q,h,Q,X),A=(0,G.Z)(z).map((te,ae)=>(0,ce.Tm)(te,{key:`avatar-key-${ae}`})),oe=A.length;if(R&&R!a&&!r?null:e.createElement(e.Fragment,null,a&&e.createElement("div",{className:`${n}-title`},(0,b.Z)(a)),e.createElement("div",{className:`${n}-inner-content`},(0,b.Z)(r))),C=n=>{const{hashId:a,prefixCls:r,className:s,style:o,placement:d="top",title:p,content:_,children:x}=n;return e.createElement("div",{className:f()(a,r,`${r}-pure`,`${r}-placement-${d}`,s),style:o},e.createElement("div",{className:`${r}-arrow`}),e.createElement(B.G,Object.assign({},n,{className:a,prefixCls:r}),x||y(r,p,_)))},c=n=>{const{prefixCls:a,className:r}=n,s=S(n,["prefixCls","className"]),{getPrefixCls:o}=e.useContext(D.E_),d=o("popover",a),[p,_,x]=(0,g.Z)(d);return p(e.createElement(C,Object.assign({},s,{prefixCls:d,hashId:_,className:f()(r,x)})))};M.ZP=c},55241:function(k,M,t){var e=t(67294),v=t(93967),f=t.n(v),B=t(81643),b=t(33603),D=t(53124),g=t(83062),S=t(66330),y=t(20136),C=function(a,r){var s={};for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&r.indexOf(o)<0&&(s[o]=a[o]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,o=Object.getOwnPropertySymbols(a);d{let{title:r,content:s,prefixCls:o}=a;return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:`${o}-title`},(0,B.Z)(r)),e.createElement("div",{className:`${o}-inner-content`},(0,B.Z)(s)))},n=e.forwardRef((a,r)=>{const{prefixCls:s,title:o,content:d,overlayClassName:p,placement:_="top",trigger:x="hover",mouseEnterDelay:F=.1,mouseLeaveDelay:E=.1,overlayStyle:J={}}=a,j=C(a,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:G}=e.useContext(D.E_),T=G("popover",s),[ce,se,me]=(0,y.Z)(T),de=G(),le=f()(p,se,me);return ce(e.createElement(g.Z,Object.assign({placement:_,trigger:x,mouseEnterDelay:F,mouseLeaveDelay:E,overlayStyle:J},j,{prefixCls:T,overlayClassName:le,ref:r,overlay:o||d?e.createElement(c,{prefixCls:T,title:o,content:d}):null,transitionName:(0,b.m)(de,"zoom-big",j.transitionName),"data-popover-inject":!0})))});n._InternalPanelDoNotUseOrYouWillBeFired=S.ZP,M.Z=n},20136:function(k,M,t){var e=t(14747),v=t(50438),f=t(97414),B=t(8796),b=t(91945),D=t(45503),g=t(79511);const S=c=>{const{componentCls:n,popoverColor:a,titleMinWidth:r,fontWeightStrong:s,innerPadding:o,boxShadowSecondary:d,colorTextHeading:p,borderRadiusLG:_,zIndexPopup:x,titleMarginBottom:F,colorBgElevated:E,popoverBg:J,titleBorderBottom:j,innerContentPadding:G,titlePadding:T}=c;return[{[n]:Object.assign(Object.assign({},(0,e.Wf)(c)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:x,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":E,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:J,backgroundClip:"padding-box",borderRadius:_,boxShadow:d,padding:o},[`${n}-title`]:{minWidth:r,marginBottom:F,color:p,fontWeight:s,borderBottom:j,padding:T},[`${n}-inner-content`]:{color:a,padding:G}})},(0,f.ZP)(c,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:c.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},y=c=>{const{componentCls:n}=c;return{[n]:B.i.map(a=>{const r=c[`${a}6`];return{[`&${n}-${a}`]:{"--antd-arrow-background-color":r,[`${n}-inner`]:{backgroundColor:r},[`${n}-arrow`]:{background:"transparent"}}}})}},C=c=>{const{lineWidth:n,controlHeight:a,fontHeight:r,padding:s,wireframe:o,zIndexPopupBase:d,borderRadiusLG:p,marginXS:_,lineType:x,colorSplit:F,paddingSM:E}=c,J=a-r,j=J/2,G=J/2-n,T=s;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:d+30},(0,g.w)(c)),(0,f.wZ)({contentRadius:p,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:_,titlePadding:o?`${j}px ${T}px ${G}px`:0,titleBorderBottom:o?`${n}px ${x} ${F}`:"none",innerContentPadding:o?`${E}px ${T}px`:0})};M.Z=(0,b.I$)("Popover",c=>{const{colorBgElevated:n,colorText:a}=c,r=(0,D.TS)(c,{popoverBg:n,popoverColor:a});return[S(r),y(r),(0,v._y)(r,"zoom-big")]},C,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})}}]); diff --git a/starter/src/main/resources/templates/admin/45.697f2fe7.async.js b/starter/src/main/resources/templates/admin/45.697f2fe7.async.js new file mode 100644 index 0000000000..4786622afa --- /dev/null +++ b/starter/src/main/resources/templates/admin/45.697f2fe7.async.js @@ -0,0 +1,16 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[45],{38780:function(it,ue){const i=function(){const v=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let n=1;n{const _=k[W];_!==void 0&&(v[W]=_)})}return v};ue.Z=i},85576:function(it,ue,i){i.d(ue,{Z:function(){return ae}});var v=i(56080),n=i(38657),k=i(56745),W=i(67294),_=i(93967),Ke=i.n(_),We=i(31058),ye=i(8745),Ve=i(53124),Xe=i(32409),Pe=i(4941),Fe=i(71194),Oe=i(35792),Ee=function(f,u){var ee={};for(var z in f)Object.prototype.hasOwnProperty.call(f,z)&&u.indexOf(z)<0&&(ee[z]=f[z]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,z=Object.getOwnPropertySymbols(f);C{const{prefixCls:u,className:ee,closeIcon:z,closable:C,type:re,title:Je,children:ze,footer:Ge}=f,te=Ee(f,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:Ie}=W.useContext(Ve.E_),le=Ie(),V=u||Ie("modal"),A=(0,Oe.Z)(le),[Qe,Ye,qe]=(0,Fe.ZP)(V,A),de=`${V}-confirm`;let me={};return re?me={closable:C!=null?C:!1,title:"",footer:"",children:W.createElement(Xe.O,Object.assign({},f,{prefixCls:V,confirmPrefixCls:de,rootPrefixCls:le,content:ze}))}:me={closable:C!=null?C:!0,title:Je,footer:Ge!==null&&W.createElement(Pe.$,Object.assign({},f)),children:ze},Qe(W.createElement(We.s,Object.assign({prefixCls:V,className:Ke()(Ye,`${V}-pure-panel`,re&&de,re&&`${de}-${re}`,ee,qe,A)},te,{closeIcon:(0,Pe.b)(V,z),closable:C},me)))};var Ue=(0,ye.i)(Ne),T=i(94423);function D(f){return(0,v.ZP)((0,v.uW)(f))}const N=k.Z;N.useModal=T.Z,N.info=function(u){return(0,v.ZP)((0,v.cw)(u))},N.success=function(u){return(0,v.ZP)((0,v.vq)(u))},N.error=function(u){return(0,v.ZP)((0,v.AQ)(u))},N.warning=D,N.warn=D,N.confirm=function(u){return(0,v.ZP)((0,v.Au)(u))},N.destroyAll=function(){for(;n.Z.length;){const u=n.Z.pop();u&&u()}},N.config=v.ai,N._InternalPanelDoNotUseOrYouWillBeFired=Ue;var ae=N},72252:function(it,ue,i){i.d(ue,{Z:function(){return Yt}});var v=i(87462),n=i(67294),k={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},W=k,_=i(93771),Ke=function(t,d){return n.createElement(_.Z,(0,v.Z)({},t,{ref:d,icon:W}))},We=n.forwardRef(Ke),ye=We,Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Xe=Ve,Pe=function(t,d){return n.createElement(_.Z,(0,v.Z)({},t,{ref:d,icon:Xe}))},Fe=n.forwardRef(Pe),Oe=Fe,Ee=i(62946),Ne=i(62994),Ue=i(93967),T=i.n(Ue),D=i(4942),N=i(1413),ae=i(97685),f=i(21770),u=i(15105),ee=i(64217),z=i(80334),C=i(81626),re=["10","20","50","100"],Je=function(t){var d=t.pageSizeOptions,s=d===void 0?re:d,r=t.locale,B=t.changeSize,X=t.pageSize,R=t.goButton,x=t.quickGo,w=t.rootPrefixCls,M=t.selectComponentClass,L=t.selectPrefixCls,K=t.disabled,m=t.buildOptionText,U=n.useState(""),y=(0,ae.Z)(U,2),b=y[0],c=y[1],Z=function(){return!b||Number.isNaN(b)?void 0:Number(b)},ge=typeof m=="function"?m:function($){return"".concat($," ").concat(r.items_per_page)},oe=function(g){B==null||B(Number(g))},ve=function(g){c(g.target.value)},ne=function(g){R||b===""||(c(""),!(g.relatedTarget&&(g.relatedTarget.className.indexOf("".concat(w,"-item-link"))>=0||g.relatedTarget.className.indexOf("".concat(w,"-item"))>=0))&&(x==null||x(Z())))},I=function(g){b!==""&&(g.keyCode===u.Z.ENTER||g.type==="click")&&(c(""),x==null||x(Z()))},ce=function(){return s.some(function(g){return g.toString()===X.toString()})?s:s.concat([X.toString()]).sort(function(g,se){var Q=Number.isNaN(Number(g))?0:Number(g),Y=Number.isNaN(Number(se))?0:Number(se);return Q-Y})},P="".concat(w,"-options");if(!B&&!x)return null;var J=null,G=null,ie=null;if(B&&M){var j=ce().map(function($,g){return n.createElement(M.Option,{key:g,value:$.toString()},ge($))});J=n.createElement(M,{disabled:K,prefixCls:L,showSearch:!1,className:"".concat(P,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(X||s[0]).toString(),onChange:oe,getPopupContainer:function(g){return g.parentNode},"aria-label":r.page_size,defaultOpen:!1},j)}return x&&(R&&(ie=typeof R=="boolean"?n.createElement("button",{type:"button",onClick:I,onKeyUp:I,disabled:K,className:"".concat(P,"-quick-jumper-button")},r.jump_to_confirm):n.createElement("span",{onClick:I,onKeyUp:I},R)),G=n.createElement("div",{className:"".concat(P,"-quick-jumper")},r.jump_to,n.createElement("input",{disabled:K,type:"text",value:b,onChange:ve,onKeyUp:I,onBlur:ne,"aria-label":r.page}),r.page,ie)),n.createElement("li",{className:P},J,G)},ze=Je,Ge=function(t){var d,s=t.rootPrefixCls,r=t.page,B=t.active,X=t.className,R=t.showTitle,x=t.onClick,w=t.onKeyPress,M=t.itemRender,L="".concat(s,"-item"),K=T()(L,"".concat(L,"-").concat(r),(d={},(0,D.Z)(d,"".concat(L,"-active"),B),(0,D.Z)(d,"".concat(L,"-disabled"),!r),d),X),m=function(){x(r)},U=function(c){w(c,x,r)},y=M(r,"page",n.createElement("a",{rel:"nofollow"},r));return y?n.createElement("li",{title:R?String(r):null,className:K,onClick:m,onKeyDown:U,tabIndex:0},y):null},te=Ge,Ie=function(t,d,s){return s};function le(){}function V(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function A(e,t,d){var s=typeof e=="undefined"?t:e;return Math.floor((d-1)/s)+1}var Qe=function(t){var d,s=t.prefixCls,r=s===void 0?"rc-pagination":s,B=t.selectPrefixCls,X=B===void 0?"rc-select":B,R=t.className,x=t.selectComponentClass,w=t.current,M=t.defaultCurrent,L=M===void 0?1:M,K=t.total,m=K===void 0?0:K,U=t.pageSize,y=t.defaultPageSize,b=y===void 0?10:y,c=t.onChange,Z=c===void 0?le:c,ge=t.hideOnSinglePage,oe=t.showPrevNextJumpers,ve=oe===void 0?!0:oe,ne=t.showQuickJumper,I=t.showLessItems,ce=t.showTitle,P=ce===void 0?!0:ce,J=t.onShowSizeChange,G=J===void 0?le:J,ie=t.locale,j=ie===void 0?C.Z:ie,$=t.style,g=t.totalBoundaryShowSizeChanger,se=g===void 0?50:g,Q=t.disabled,Y=t.simple,mt=t.showTotal,ke=t.showSizeChanger,qt=t.pageSizeOptions,gt=t.itemRender,fe=gt===void 0?Ie:gt,vt=t.jumpPrevIcon,ft=t.jumpNextIcon,kt=t.prevIcon,_t=t.nextIcon,en=n.useRef(null),tn=(0,f.Z)(10,{value:U,defaultValue:b}),pt=(0,ae.Z)(tn,2),E=pt[0],nn=pt[1],an=(0,f.Z)(1,{value:w,defaultValue:L,postState:function(o){return Math.max(1,Math.min(o,A(void 0,E,m)))}}),ht=(0,ae.Z)(an,2),l=ht[0],bt=ht[1],rn=n.useState(l),St=(0,ae.Z)(rn,2),pe=St[0],Me=St[1];(0,n.useEffect)(function(){Me(l)},[l]);var En=Z!==le,Nn="current"in t,Ct=Math.max(1,l-(I?3:5)),$t=Math.min(A(void 0,E,m),l+(I?3:5));function Ze(a,o){var p=a||n.createElement("button",{type:"button","aria-label":o,className:"".concat(r,"-item-link")});return typeof a=="function"&&(p=n.createElement(a,(0,N.Z)({},t))),p}function xt(a){var o=a.target.value,p=A(void 0,E,m),q;return o===""?q=o:Number.isNaN(Number(o))?q=pe:o>=p?q=p:q=Number(o),q}function ln(a){return V(a)&&a!==l&&V(m)&&m>0}var on=m>E?ne:!1;function cn(a){(a.keyCode===u.Z.UP||a.keyCode===u.Z.DOWN)&&a.preventDefault()}function yt(a){var o=xt(a);switch(o!==pe&&Me(o),a.keyCode){case u.Z.ENTER:H(o);break;case u.Z.UP:H(o-1);break;case u.Z.DOWN:H(o+1);break;default:break}}function sn(a){H(xt(a))}function un(a){var o=A(a,E,m),p=l>o&&o!==0?o:l;nn(a),Me(p),G==null||G(l,a),bt(p),Z==null||Z(p,a)}function H(a){if(ln(a)&&!Q){var o=A(void 0,E,m),p=a;return a>o?p=o:a<1&&(p=1),p!==pe&&Me(p),bt(p),Z==null||Z(p,E),p}return l}var Te=l>1,De=lse;function Pt(){Te&&H(l-1)}function Ot(){De&&H(l+1)}function Et(){H(Ct)}function Nt(){H($t)}function he(a,o){if(a.key==="Enter"||a.charCode===u.Z.ENTER||a.keyCode===u.Z.ENTER){for(var p=arguments.length,q=new Array(p>2?p-2:0),Le=2;Lem?m:l*E])),It=null,S=A(void 0,E,m);if(ge&&m<=E)return null;var O=[],be={rootPrefixCls:r,onClick:H,onKeyPress:he,showTitle:P,itemRender:fe,page:-1},Cn=l-1>0?l-1:0,$n=l+1=F*2&&l!==1+2&&(O[0]=n.cloneElement(O[0],{className:T()("".concat(r,"-item-after-jump-prev"),O[0].props.className)}),O.unshift(zt)),S-l>=F*2&&l!==S-2){var Zt=O[O.length-1];O[O.length-1]=n.cloneElement(Zt,{className:T()("".concat(r,"-item-before-jump-next"),Zt.props.className)}),O.push(It)}_e!==1&&O.unshift(n.createElement(te,(0,v.Z)({},be,{key:1,page:1}))),et!==S&&O.push(n.createElement(te,(0,v.Z)({},be,{key:S,page:S})))}var Re=pn(Cn);if(Re){var tt=!Te||!S;Re=n.createElement("li",{title:P?j.prev_page:null,onClick:Pt,tabIndex:tt?null:0,onKeyDown:mn,className:T()("".concat(r,"-prev"),(0,D.Z)({},"".concat(r,"-disabled"),tt)),"aria-disabled":tt},Re)}var we=hn($n);if(we){var xe,nt;Y?(xe=!De,nt=Te?0:null):(xe=!De||!S,nt=xe?null:0),we=n.createElement("li",{title:P?j.next_page:null,onClick:Ot,tabIndex:nt,onKeyDown:gn,className:T()("".concat(r,"-next"),(0,D.Z)({},"".concat(r,"-disabled"),xe)),"aria-disabled":xe},we)}var Pn=T()(r,R,(d={},(0,D.Z)(d,"".concat(r,"-simple"),Y),(0,D.Z)(d,"".concat(r,"-disabled"),Q),d));return n.createElement("ul",(0,v.Z)({className:Pn,style:$,ref:en},bn),Sn,Re,Y?jt:O,we,n.createElement(ze,{locale:j,rootPrefixCls:r,disabled:Q,selectComponentClass:x,selectPrefixCls:X,changeSize:dn?un:null,pageSize:E,pageSizeOptions:qt,quickGo:on?H:null,goButton:Se}))},Ye=Qe,qe=i(62906),de=i(53124),me=i(98675),Tt=i(25378),Dt=i(10110),je=i(83863);const at=e=>n.createElement(je.Z,Object.assign({},e,{showSearch:!0,size:"small"})),rt=e=>n.createElement(je.Z,Object.assign({},e,{showSearch:!0,size:"middle"}));at.Option=je.Z.Option,rt.Option=je.Z.Option;var h=i(6731),lt=i(47673),ot=i(20353),Be=i(14747),Ht=i(45503),ct=i(91945),st=i(93900);const At=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Rt=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:(0,h.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,h.bf)(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,h.bf)(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,h.bf)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,h.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:e.miniOptionsSizeChangerTop},["&-quick-jumper"]:{height:e.itemSizeSM,lineHeight:(0,h.bf)(e.itemSizeSM),input:Object.assign(Object.assign({},(0,lt.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},wt=e=>{const{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.itemSizeSM,lineHeight:(0,h.bf)(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:(0,h.bf)(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${(0,h.bf)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${(0,h.bf)(e.inputOutlineOffset)} 0 ${(0,h.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Lt=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${(0,h.bf)(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,h.bf)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:(0,h.bf)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,lt.ik)(e)),(0,st.$U)(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},(0,st.Xy)(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Kt=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,h.bf)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${(0,h.bf)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,h.bf)(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Wt=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:(0,h.bf)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Kt(e)),Lt(e)),wt(e)),Rt(e)),At(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Vt=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,Be.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,Be.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,Be.oN)(e))}}}},ut=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},(0,ot.T)(e)),dt=e=>(0,Ht.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ot.e)(e));var Xt=(0,ct.I$)("Pagination",e=>{const t=dt(e);return[Wt(t),Vt(t)]},ut),Ft=i(29691);const Ut=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};var Jt=(0,ct.bk)(["Pagination","bordered"],e=>{const t=dt(e);return[Ut(t)]},ut),Gt=function(e,t){var d={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(d[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,selectPrefixCls:d,className:s,rootClassName:r,style:B,size:X,locale:R,selectComponentClass:x,responsive:w,showSizeChanger:M}=e,L=Gt(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:K}=(0,Tt.Z)(w),[,m]=(0,Ft.ZP)(),{getPrefixCls:U,direction:y,pagination:b={}}=n.useContext(de.E_),c=U("pagination",t),[Z,ge,oe]=Xt(c),ve=M!=null?M:b.showSizeChanger,ne=n.useMemo(()=>{const $=n.createElement("span",{className:`${c}-item-ellipsis`},"\u2022\u2022\u2022"),g=n.createElement("button",{className:`${c}-item-link`,type:"button",tabIndex:-1},y==="rtl"?n.createElement(Ne.Z,null):n.createElement(Ee.Z,null)),se=n.createElement("button",{className:`${c}-item-link`,type:"button",tabIndex:-1},y==="rtl"?n.createElement(Ee.Z,null):n.createElement(Ne.Z,null)),Q=n.createElement("a",{className:`${c}-item-link`},n.createElement("div",{className:`${c}-item-container`},y==="rtl"?n.createElement(Oe,{className:`${c}-item-link-icon`}):n.createElement(ye,{className:`${c}-item-link-icon`}),$)),Y=n.createElement("a",{className:`${c}-item-link`},n.createElement("div",{className:`${c}-item-container`},y==="rtl"?n.createElement(ye,{className:`${c}-item-link-icon`}):n.createElement(Oe,{className:`${c}-item-link-icon`}),$));return{prevIcon:g,nextIcon:se,jumpPrevIcon:Q,jumpNextIcon:Y}},[y,c]),[I]=(0,Dt.Z)("Pagination",qe.Z),ce=Object.assign(Object.assign({},I),R),P=(0,me.Z)(X),J=P==="small"||!!(K&&!P&&w),G=U("select",d),ie=T()({[`${c}-mini`]:J,[`${c}-rtl`]:y==="rtl",[`${c}-bordered`]:m.wireframe},b==null?void 0:b.className,s,r,ge,oe),j=Object.assign(Object.assign({},b==null?void 0:b.style),B);return Z(n.createElement(n.Fragment,null,m.wireframe&&n.createElement(Jt,{prefixCls:c}),n.createElement(Ye,Object.assign({},ne,L,{style:j,prefixCls:c,selectPrefixCls:G,className:ie,selectComponentClass:x||(J?at:rt),locale:ce,showSizeChanger:ve}))))},Yt=Qt}}]); diff --git a/starter/src/main/resources/templates/admin/554.f97291aa.async.js b/starter/src/main/resources/templates/admin/554.f97291aa.async.js deleted file mode 100644 index 0e5f53e720..0000000000 --- a/starter/src/main/resources/templates/admin/554.f97291aa.async.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict";var Br=Object.defineProperty,Wr=Object.defineProperties;var Xr=Object.getOwnPropertyDescriptors;var Un=Object.getOwnPropertySymbols;var Ir=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable;var gr=Math.pow,$r=(se,J,g)=>J in se?Br(se,J,{enumerable:!0,configurable:!0,writable:!0,value:g}):se[J]=g,B=(se,J)=>{for(var g in J||(J={}))Ir.call(J,g)&&$r(se,g,J[g]);if(Un)for(var g of Un(J))Mr.call(J,g)&&$r(se,g,J[g]);return se},be=(se,J)=>Wr(se,Xr(J));var zn=(se,J)=>{var g={};for(var r in se)Ir.call(se,r)&&J.indexOf(r)<0&&(g[r]=se[r]);if(se!=null&&Un)for(var r of Un(se))J.indexOf(r)<0&&Mr.call(se,r)&&(g[r]=se[r]);return g};var Tr=(se,J,g)=>new Promise((r,W)=>{var y=H=>{try{V(g.next(H))}catch(ve){W(ve)}},pe=H=>{try{V(g.throw(H))}catch(ve){W(ve)}},V=H=>H.done?r(H.value):Promise.resolve(H.value).then(y,pe);V((g=g.apply(se,J)).next())});(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[554],{11475:function(se,J,g){g.d(J,{Z:function(){return Se}});var r=g(1413),W=g(67294),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},pe=y,V=g(91146),H=function(q,we){return W.createElement(V.Z,(0,r.Z)((0,r.Z)({},q),{},{ref:we,icon:pe}))},ve=W.forwardRef(H),Se=ve},88484:function(se,J,g){g.d(J,{Z:function(){return Se}});var r=g(1413),W=g(67294),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},pe=y,V=g(91146),H=function(q,we){return W.createElement(V.Z,(0,r.Z)((0,r.Z)({},q),{},{ref:we,icon:pe}))},ve=W.forwardRef(H),Se=ve},31199:function(se,J,g){var r=g(1413),W=g(91),y=g(67294),pe=g(21614),V=g(85893),H=["fieldProps","min","proFieldProps","max"],ve=function(q,we){var re=q.fieldProps,Ae=q.min,ee=q.proFieldProps,ge=q.max,Ce=(0,W.Z)(q,H);return(0,V.jsx)(pe.Z,(0,r.Z)({valueType:"digit",fieldProps:(0,r.Z)({min:Ae,max:ge},re),ref:we,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:ee},Ce))},Se=y.forwardRef(ve);J.Z=Se},64317:function(se,J,g){var r=g(1413),W=g(91),y=g(22270),pe=g(67294),V=g(66758),H=g(21614),ve=g(85893),Se=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],k=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],q=function(Ce,Ye){var he=Ce.fieldProps,oe=Ce.children,K=Ce.params,De=Ce.proFieldProps,Re=Ce.mode,Ue=Ce.valueEnum,Ve=Ce.request,Ge=Ce.showSearch,Fe=Ce.options,I=(0,W.Z)(Ce,Se),U=(0,pe.useContext)(V.Z);return(0,ve.jsx)(H.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,y.h)(Ue),request:Ve,params:K,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:Fe,mode:Re,showSearch:Ge,getPopupContainer:U.getPopupContainer},he),ref:Ye,proFieldProps:De},I),{},{children:oe}))},we=pe.forwardRef(function(ge,Ce){var Ye=ge.fieldProps,he=ge.children,oe=ge.params,K=ge.proFieldProps,De=ge.mode,Re=ge.valueEnum,Ue=ge.request,Ve=ge.options,Ge=(0,W.Z)(ge,k),Fe=(0,r.Z)({options:Ve,mode:De||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},Ye),I=(0,pe.useContext)(V.Z);return(0,ve.jsx)(H.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,y.h)(Re),request:Ue,params:oe,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({getPopupContainer:I.getPopupContainer},Fe),ref:Ce,proFieldProps:K},Ge),{},{children:he}))}),re=pe.forwardRef(q),Ae=we,ee=re;ee.SearchSelect=Ae,ee.displayName="ProFormComponent",J.Z=ee},5966:function(se,J,g){var r=g(97685),W=g(1413),y=g(91),pe=g(21770),V=g(8232),H=g(55241),ve=g(97435),Se=g(67294),k=g(21614),q=g(85893),we=["fieldProps","proFieldProps"],re=["fieldProps","proFieldProps"],Ae="text",ee=function(oe){var K=oe.fieldProps,De=oe.proFieldProps,Re=(0,y.Z)(oe,we);return(0,q.jsx)(k.Z,(0,W.Z)({valueType:Ae,fieldProps:K,filedConfig:{valueType:Ae},proFieldProps:De},Re))},ge=function(oe){var K=(0,pe.Z)(oe.open||!1,{value:oe.open,onChange:oe.onOpenChange}),De=(0,r.Z)(K,2),Re=De[0],Ue=De[1];return(0,q.jsx)(V.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(Ge){var Fe,I=Ge.getFieldValue(oe.name||[]);return(0,q.jsx)(H.Z,(0,W.Z)((0,W.Z)({getPopupContainer:function(A){return A&&A.parentNode?A.parentNode:A},onOpenChange:Ue,content:(0,q.jsxs)("div",{style:{padding:"4px 0"},children:[(Fe=oe.statusRender)===null||Fe===void 0?void 0:Fe.call(oe,I),oe.strengthText?(0,q.jsx)("div",{style:{marginTop:10},children:(0,q.jsx)("span",{children:oe.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},oe.popoverProps),{},{open:Re,children:oe.children}))}})},Ce=function(oe){var K=oe.fieldProps,De=oe.proFieldProps,Re=(0,y.Z)(oe,re),Ue=(0,Se.useState)(!1),Ve=(0,r.Z)(Ue,2),Ge=Ve[0],Fe=Ve[1];return K!=null&&K.statusRender&&Re.name?(0,q.jsx)(ge,{name:Re.name,statusRender:K==null?void 0:K.statusRender,popoverProps:K==null?void 0:K.popoverProps,strengthText:K==null?void 0:K.strengthText,open:Ge,onOpenChange:Fe,children:(0,q.jsx)("div",{children:(0,q.jsx)(k.Z,(0,W.Z)({valueType:"password",fieldProps:(0,W.Z)((0,W.Z)({},(0,ve.Z)(K,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(U){var A;K==null||(A=K.onBlur)===null||A===void 0||A.call(K,U),Fe(!1)},onClick:function(U){var A;K==null||(A=K.onClick)===null||A===void 0||A.call(K,U),Fe(!0)}}),proFieldProps:De,filedConfig:{valueType:Ae}},Re))})}):(0,q.jsx)(k.Z,(0,W.Z)({valueType:"password",fieldProps:K,proFieldProps:De,filedConfig:{valueType:Ae}},Re))},Ye=ee;Ye.Password=Ce,Ye.displayName="ProFormComponent",J.Z=Ye},90672:function(se,J,g){var r=g(1413),W=g(91),y=g(67294),pe=g(21614),V=g(85893),H=["fieldProps","proFieldProps"],ve=function(k,q){var we=k.fieldProps,re=k.proFieldProps,Ae=(0,W.Z)(k,H);return(0,V.jsx)(pe.Z,(0,r.Z)({ref:q,valueType:"textarea",fieldProps:we,proFieldProps:re},Ae))};J.Z=y.forwardRef(ve)},60887:function(se,J,g){g.d(J,{LB:function(){return h},O1:function(){return O},Zj:function(){return ye}});var r=g(67294),W=g(73935),y=g(24285);const pe={display:"none"};function V(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:pe},n)}function H(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const s={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return r.createElement("div",{id:t,style:s,role:"status","aria-live":o,"aria-atomic":!0},n)}function ve(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)(o=>{o!=null&&t(o)},[]),announcement:e}}const Se=(0,r.createContext)(null);function k(e){const t=(0,r.useContext)(Se);(0,r.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function q(){const[e]=(0,r.useState)(()=>new Set),t=(0,r.useCallback)(o=>(e.add(o),()=>e.delete(o)),[e]);return[(0,r.useCallback)(o=>{let{type:s,event:a}=o;e.forEach(f=>{var v;return(v=f[s])==null?void 0:v.call(f,a)})},[e]),t]}const we={draggable:` - To pick up a draggable item, press the space bar. - While dragging, use the arrow keys to move the item. - Press space again to drop the item in its new position, or press escape to cancel. - `},re={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Ae(e){let{announcements:t=re,container:n,hiddenTextDescribedById:o,screenReaderInstructions:s=we}=e;const{announce:a,announcement:f}=ve(),v=(0,y.Ld)("DndLiveRegion"),[b,E]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{E(!0)},[]),k((0,r.useMemo)(()=>({onDragStart(m){let{active:D}=m;a(t.onDragStart({active:D}))},onDragMove(m){let{active:D,over:R}=m;t.onDragMove&&a(t.onDragMove({active:D,over:R}))},onDragOver(m){let{active:D,over:R}=m;a(t.onDragOver({active:D,over:R}))},onDragEnd(m){let{active:D,over:R}=m;a(t.onDragEnd({active:D,over:R}))},onDragCancel(m){let{active:D,over:R}=m;a(t.onDragCancel({active:D,over:R}))}}),[a,t])),!b)return null;const x=r.createElement(r.Fragment,null,r.createElement(V,{id:o,value:s.draggable}),r.createElement(H,{id:v,announcement:f}));return n?(0,W.createPortal)(x,n):x}var ee;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(ee||(ee={}));function ge(){}function Ce(e,t){return useMemo(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function Ye(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(o=>o!=null),[...t])}const he=Object.freeze({x:0,y:0});function oe(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function K(e,t){const n=getEventCoordinates(e);if(!n)return"0 0";const o={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return o.x+"% "+o.y+"%"}function De(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function Re(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function Ue(e){let{left:t,top:n,height:o,width:s}=e;return[{x:t,y:n},{x:t+s,y:n},{x:t,y:n+o},{x:t+s,y:n+o}]}function Ve(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function Ge(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Fe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const s=Ge(t,t.left,t.top),a=[];for(const f of o){const{id:v}=f,b=n.get(v);if(b){const E=oe(Ge(b),s);a.push({id:v,data:{droppableContainer:f,value:E}})}}return a.sort(De)},I=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const s=Ue(t),a=[];for(const f of o){const{id:v}=f,b=n.get(v);if(b){const E=Ue(b),x=s.reduce((D,R,F)=>D+oe(E[F],R),0),m=Number((x/4).toFixed(4));a.push({id:v,data:{droppableContainer:f,value:m}})}}return a.sort(De)};function U(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),s=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),f=s-o,v=a-n;if(o{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const s=[];for(const a of o){const{id:f}=a,v=n.get(f);if(v){const b=U(v,t);b>0&&s.push({id:f,data:{droppableContainer:a,value:b}})}}return s.sort(Re)};function d(e,t){const{top:n,left:o,bottom:s,right:a}=t;return n<=e.y&&e.y<=s&&o<=e.x&&e.x<=a}const S=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:o}=e;if(!o)return[];const s=[];for(const a of t){const{id:f}=a,v=n.get(f);if(v&&d(o,v)){const E=Ue(v).reduce((m,D)=>m+oe(o,D),0),x=Number((E/4).toFixed(4));s.push({id:f,data:{droppableContainer:a,value:x}})}}return s.sort(De)};function T(e,t,n){return be(B({},e),{scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1})}function me(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:he}function le(e){return function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;abe(B({},f),{top:f.top+e*v.y,bottom:f.bottom+e*v.y,left:f.left+e*v.x,right:f.right+e*v.x}),B({},n))}}const ht=le(1);function it(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Ot(e,t,n){const o=it(t);if(!o)return e;const{scaleX:s,scaleY:a,x:f,y:v}=o,b=e.left-f-(1-s)*parseFloat(n),E=e.top-v-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),x=s?e.width/s:e.width,m=a?e.height/a:e.height;return{width:x,height:m,top:E,right:b+x,bottom:E+m,left:b}}const dt={ignoreTransform:!1};function Ie(e,t){t===void 0&&(t=dt);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:E,transformOrigin:x}=(0,y.Jj)(e).getComputedStyle(e);E&&(n=Ot(n,E,x))}const{top:o,left:s,width:a,height:f,bottom:v,right:b}=n;return{top:o,left:s,width:a,height:f,bottom:v,right:b}}function mt(e){return Ie(e,{ignoreTransform:!0})}function Kt(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Qe(e,t){return t===void 0&&(t=(0,y.Jj)(e).getComputedStyle(e)),t.position==="fixed"}function Vt(e,t){t===void 0&&(t=(0,y.Jj)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(s=>{const a=t[s];return typeof a=="string"?n.test(a):!1})}function Pt(e,t){const n=[];function o(s){if(t!=null&&n.length>=t||!s)return n;if((0,y.qk)(s)&&s.scrollingElement!=null&&!n.includes(s.scrollingElement))return n.push(s.scrollingElement),n;if(!(0,y.Re)(s)||(0,y.vZ)(s)||n.includes(s))return n;const a=(0,y.Jj)(e).getComputedStyle(s);return s!==e&&Vt(s,a)&&n.push(s),Qe(s,a)?n:o(s.parentNode)}return e?o(e):n}function Nt(e){const[t]=Pt(e,1);return t!=null?t:null}function Ee(e){return!y.Nq||!e?null:(0,y.FJ)(e)?e:(0,y.UG)(e)?(0,y.qk)(e)||e===(0,y.r3)(e).scrollingElement?window:(0,y.Re)(e)?e:null:null}function Gt(e){return(0,y.FJ)(e)?e.scrollX:e.scrollLeft}function Et(e){return(0,y.FJ)(e)?e.scrollY:e.scrollTop}function pn(e){return{x:Gt(e),y:Et(e)}}var $e;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})($e||($e={}));function vn(e){return!y.Nq||!e?!1:e===document.scrollingElement}function Jt(e){const t={x:0,y:0},n=vn(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},s=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,f=e.scrollTop>=o.y,v=e.scrollLeft>=o.x;return{isTop:s,isLeft:a,isBottom:f,isRight:v,maxScroll:o,minScroll:t}}const gn={x:.2,y:.2};function hr(e,t,n,o,s){let{top:a,left:f,right:v,bottom:b}=n;o===void 0&&(o=10),s===void 0&&(s=gn);const{isTop:E,isBottom:x,isLeft:m,isRight:D}=Jt(e),R={x:0,y:0},F={x:0,y:0},P={height:t.height*s.y,width:t.width*s.x};return!E&&a<=t.top+P.height?(R.y=$e.Backward,F.y=o*Math.abs((t.top+P.height-a)/P.height)):!x&&b>=t.bottom-P.height&&(R.y=$e.Forward,F.y=o*Math.abs((t.bottom-P.height-b)/P.height)),!D&&v>=t.right-P.width?(R.x=$e.Forward,F.x=o*Math.abs((t.right-P.width-v)/P.width)):!m&&f<=t.left+P.width&&(R.x=$e.Backward,F.x=o*Math.abs((t.left+P.width-f)/P.width)),{direction:R,speed:F}}function Bn(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:f}=window;return{top:0,left:0,right:a,bottom:f,width:a,height:f}}const{top:t,left:n,right:o,bottom:s}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:s,width:e.clientWidth,height:e.clientHeight}}function Yt(e){return e.reduce((t,n)=>(0,y.IH)(t,pn(n)),he)}function Wn(e){return e.reduce((t,n)=>t+Gt(n),0)}function Xn(e){return e.reduce((t,n)=>t+Et(n),0)}function Hn(e,t){if(t===void 0&&(t=Ie),!e)return;const{top:n,left:o,bottom:s,right:a}=t(e);Nt(e)&&(s<=0||a<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Kn=[["x",["left","right"],Wn],["y",["top","bottom"],Xn]];class Qt{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=Pt(n),s=Yt(o);this.rect=B({},t),this.width=t.width,this.height=t.height;for(const[a,f,v]of Kn)for(const b of f)Object.defineProperty(this,b,{get:()=>{const E=v(o),x=s[a]-E;return this.rect[b]+x},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class $t{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var s;(s=this.target)==null||s.addEventListener(t,n,o),this.listeners.push([t,n,o])}}function Vn(e){const{EventTarget:t}=(0,y.Jj)(e);return e instanceof t?e:(0,y.r3)(e)}function kt(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(gr(n,2)+gr(o,2))>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t?o>t.y:!1}var ke;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ke||(ke={}));function xt(e){e.preventDefault()}function Gn(e){e.stopPropagation()}var ce;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(ce||(ce={}));const hn={start:[ce.Space,ce.Enter],cancel:[ce.Esc],end:[ce.Space,ce.Enter]},mn=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ce.Right:return be(B({},n),{x:n.x+25});case ce.Left:return be(B({},n),{x:n.x-25});case ce.Down:return be(B({},n),{y:n.y+25});case ce.Up:return be(B({},n),{y:n.y-25})}};class bn{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new $t((0,y.r3)(n)),this.windowListeners=new $t((0,y.Jj)(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ke.Resize,this.handleCancel),this.windowListeners.add(ke.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ke.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&Hn(o),n(he)}handleKeyDown(t){if((0,y.vd)(t)){const{active:n,context:o,options:s}=this.props,{keyboardCodes:a=hn,coordinateGetter:f=mn,scrollBehavior:v="smooth"}=s,{code:b}=t;if(a.end.includes(b)){this.handleEnd(t);return}if(a.cancel.includes(b)){this.handleCancel(t);return}const{collisionRect:E}=o.current,x=E?{x:E.left,y:E.top}:he;this.referenceCoordinates||(this.referenceCoordinates=x);const m=f(t,{active:n,context:o.current,currentCoordinates:x});if(m){const D=(0,y.$X)(m,x),R={x:0,y:0},{scrollableAncestors:F}=o.current;for(const P of F){const N=t.code,{isTop:X,isRight:L,isLeft:z,isBottom:ue,maxScroll:j,minScroll:de}=Jt(P),te=Bn(P),ne={x:Math.min(N===ce.Right?te.right-te.width/2:te.right,Math.max(N===ce.Right?te.left:te.left+te.width/2,m.x)),y:Math.min(N===ce.Down?te.bottom-te.height/2:te.bottom,Math.max(N===ce.Down?te.top:te.top+te.height/2,m.y))},xe=N===ce.Right&&!L||N===ce.Left&&!z,je=N===ce.Down&&!ue||N===ce.Up&&!X;if(xe&&ne.x!==m.x){const Pe=P.scrollLeft+D.x,rt=N===ce.Right&&Pe<=j.x||N===ce.Left&&Pe>=de.x;if(rt&&!D.y){P.scrollTo({left:Pe,behavior:v});return}rt?R.x=P.scrollLeft-Pe:R.x=N===ce.Right?P.scrollLeft-j.x:P.scrollLeft-de.x,R.x&&P.scrollBy({left:-R.x,behavior:v});break}else if(je&&ne.y!==m.y){const Pe=P.scrollTop+D.y,rt=N===ce.Down&&Pe<=j.y||N===ce.Up&&Pe>=de.y;if(rt&&!D.x){P.scrollTo({top:Pe,behavior:v});return}rt?R.y=P.scrollTop-Pe:R.y=N===ce.Down?P.scrollTop-j.y:P.scrollTop-de.y,R.y&&P.scrollBy({top:-R.y,behavior:v});break}}this.handleMove(t,(0,y.IH)((0,y.$X)(m,this.referenceCoordinates),R))}}}handleMove(t,n){const{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}bn.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=hn,onActivation:s}=t,{active:a}=n;const{code:f}=e.nativeEvent;if(o.start.includes(f)){const v=a.activatorNode.current;return v&&e.target!==v?!1:(e.preventDefault(),s==null||s({event:e.nativeEvent}),!0)}return!1}}];function yn(e){return!!(e&&"distance"in e)}function wn(e){return!!(e&&"delay"in e)}class qt{constructor(t,n,o){var s;o===void 0&&(o=Vn(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:a}=t,{target:f}=a;this.props=t,this.events=n,this.document=(0,y.r3)(f),this.documentListeners=new $t(this.document),this.listeners=new $t(o),this.windowListeners=new $t((0,y.Jj)(f)),this.initialCoordinates=(s=(0,y.DC)(a))!=null?s:he,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(ke.Resize,this.handleCancel),this.windowListeners.add(ke.DragStart,xt),this.windowListeners.add(ke.VisibilityChange,this.handleCancel),this.windowListeners.add(ke.ContextMenu,xt),this.documentListeners.add(ke.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(wn(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(yn(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ke.Click,Gn,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ke.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:s,props:a}=this,{onMove:f,options:{activationConstraint:v}}=a;if(!s)return;const b=(n=(0,y.DC)(t))!=null?n:he,E=(0,y.$X)(s,b);if(!o&&v){if(yn(v)){if(v.tolerance!=null&&kt(E,v.tolerance))return this.handleCancel();if(kt(E,v.distance))return this.handleStart()}return wn(v)&&kt(E,v.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),f(b)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===ce.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Jn={move:{name:"pointermove"},end:{name:"pointerup"}};class Cn extends qt{constructor(t){const{event:n}=t,o=(0,y.r3)(n.target);super(t,Jn,o)}}Cn.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!n.isPrimary||n.button!==0?!1:(o==null||o({event:n}),!0)}}];const Yn={move:{name:"mousemove"},end:{name:"mouseup"}};var _t;(function(e){e[e.RightClick=2]="RightClick"})(_t||(_t={}));class Qn extends qt{constructor(t){super(t,Yn,(0,y.r3)(t.event.target))}}Qn.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button===_t.RightClick?!1:(o==null||o({event:n}),!0)}}];const en={move:{name:"touchmove"},end:{name:"touchend"}};class tn extends qt{constructor(t){super(t,en)}static setup(){return window.addEventListener(en.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(en.move.name,t)};function t(){}}}tn.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:s}=n;return s.length>1?!1:(o==null||o({event:n}),!0)}}];var It;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(It||(It={}));var jt;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(jt||(jt={}));function En(e){let{acceleration:t,activator:n=It.Pointer,canScroll:o,draggingRect:s,enabled:a,interval:f=5,order:v=jt.TreeOrder,pointerCoordinates:b,scrollableAncestors:E,scrollableAncestorRects:x,delta:m,threshold:D}=e;const R=Zt({delta:m,disabled:!a}),[F,P]=(0,y.Yz)(),N=(0,r.useRef)({x:0,y:0}),X=(0,r.useRef)({x:0,y:0}),L=(0,r.useMemo)(()=>{switch(n){case It.Pointer:return b?{top:b.y,bottom:b.y,left:b.x,right:b.x}:null;case It.DraggableRect:return s}},[n,s,b]),z=(0,r.useRef)(null),ue=(0,r.useCallback)(()=>{const de=z.current;if(!de)return;const te=N.current.x*X.current.x,ne=N.current.y*X.current.y;de.scrollBy(te,ne)},[]),j=(0,r.useMemo)(()=>v===jt.TreeOrder?[...E].reverse():E,[v,E]);(0,r.useEffect)(()=>{if(!a||!E.length||!L){P();return}for(const de of j){if((o==null?void 0:o(de))===!1)continue;const te=E.indexOf(de),ne=x[te];if(!ne)continue;const{direction:xe,speed:je}=hr(de,ne,L,t,D);for(const Pe of["x","y"])R[Pe][xe[Pe]]||(je[Pe]=0,xe[Pe]=0);if(je.x>0||je.y>0){P(),z.current=de,F(ue,f),N.current=je,X.current=xe;return}}N.current={x:0,y:0},X.current={x:0,y:0},P()},[t,ue,o,P,a,f,JSON.stringify(L),JSON.stringify(R),F,E,j,x,JSON.stringify(D)])}const xn={x:{[$e.Backward]:!1,[$e.Forward]:!1},y:{[$e.Backward]:!1,[$e.Forward]:!1}};function Zt(e){let{delta:t,disabled:n}=e;const o=(0,y.D9)(t);return(0,y.Gj)(s=>{if(n||!o||!s)return xn;const a={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[$e.Backward]:s.x[$e.Backward]||a.x===-1,[$e.Forward]:s.x[$e.Forward]||a.x===1},y:{[$e.Backward]:s.y[$e.Backward]||a.y===-1,[$e.Forward]:s.y[$e.Forward]||a.y===1}}},[n,t,o])}function Ut(e,t){const n=t!==null?e.get(t):void 0,o=n?n.node.current:null;return(0,y.Gj)(s=>{var a;return t===null?null:(a=o!=null?o:s)!=null?a:null},[o,t])}function nn(e,t){return(0,r.useMemo)(()=>e.reduce((n,o)=>{const{sensor:s}=o,a=s.activators.map(f=>({eventName:f.eventName,handler:t(f.handler,o)}));return[...n,...a]},[]),[e,t])}var Mt;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Mt||(Mt={}));var rn;(function(e){e.Optimized="optimized"})(rn||(rn={}));const on=new Map;function kn(e,t){let{dragging:n,dependencies:o,config:s}=t;const[a,f]=(0,r.useState)(null),{frequency:v,measure:b,strategy:E}=s,x=(0,r.useRef)(e),m=N(),D=(0,y.Ey)(m),R=(0,r.useCallback)(function(X){X===void 0&&(X=[]),!D.current&&f(L=>L===null?X:L.concat(X.filter(z=>!L.includes(z))))},[D]),F=(0,r.useRef)(null),P=(0,y.Gj)(X=>{if(m&&!n)return on;if(!X||X===on||x.current!==e||a!=null){const L=new Map;for(let z of e){if(!z)continue;if(a&&a.length>0&&!a.includes(z.id)&&z.rect.current){L.set(z.id,z.rect.current);continue}const ue=z.node.current,j=ue?new Qt(b(ue),ue):null;z.rect.current=j,j&&L.set(z.id,j)}return L}return X},[e,a,n,m,b]);return(0,r.useEffect)(()=>{x.current=e},[e]),(0,r.useEffect)(()=>{m||R()},[n,m]),(0,r.useEffect)(()=>{a&&a.length>0&&f(null)},[JSON.stringify(a)]),(0,r.useEffect)(()=>{m||typeof v!="number"||F.current!==null||(F.current=setTimeout(()=>{R(),F.current=null},v))},[v,m,R,...o]),{droppableRects:P,measureDroppableContainers:R,measuringScheduled:a!=null};function N(){switch(E){case Mt.Always:return!1;case Mt.BeforeDragging:return n;default:return!n}}}function at(e,t){return(0,y.Gj)(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function qn(e,t){return at(e,t)}function _n(e){let{callback:t,disabled:n}=e;const o=(0,y.zX)(t),s=(0,r.useMemo)(()=>{if(n||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:a}=window;return new a(o)},[o,n]);return(0,r.useEffect)(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function zt(e){let{callback:t,disabled:n}=e;const o=(0,y.zX)(t),s=(0,r.useMemo)(()=>{if(n||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:a}=window;return new a(o)},[n]);return(0,r.useEffect)(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function er(e){return new Qt(Ie(e),e)}function Sn(e,t,n){t===void 0&&(t=er);const[o,s]=(0,r.useReducer)(v,null),a=_n({callback(b){if(e)for(const E of b){const{type:x,target:m}=E;if(x==="childList"&&m instanceof HTMLElement&&m.contains(e)){s();break}}}}),f=zt({callback:s});return(0,y.LI)(()=>{s(),e?(f==null||f.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(f==null||f.disconnect(),a==null||a.disconnect())},[e]),o;function v(b){if(!e)return null;if(e.isConnected===!1){var E;return(E=b!=null?b:n)!=null?E:null}const x=t(e);return JSON.stringify(b)===JSON.stringify(x)?b:x}}function tr(e){const t=at(e);return me(e,t)}const Dn=[];function nr(e){const t=(0,r.useRef)(e),n=(0,y.Gj)(o=>e?o&&o!==Dn&&e&&t.current&&e.parentNode===t.current.parentNode?o:Pt(e):Dn,[e]);return(0,r.useEffect)(()=>{t.current=e},[e]),n}function rr(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),s=(0,r.useCallback)(a=>{const f=Ee(a.target);f&&n(v=>v?(v.set(f,pn(f)),new Map(v)):null)},[]);return(0,r.useEffect)(()=>{const a=o.current;if(e!==a){f(a);const v=e.map(b=>{const E=Ee(b);return E?(E.addEventListener("scroll",s,{passive:!0}),[E,pn(E)]):null}).filter(b=>b!=null);n(v.length?new Map(v):null),o.current=e}return()=>{f(e),f(a)};function f(v){v.forEach(b=>{const E=Ee(b);E==null||E.removeEventListener("scroll",s)})}},[s,e]),(0,r.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((a,f)=>(0,y.IH)(a,f),he):Yt(e):he,[e,t])}function Rn(e,t){t===void 0&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{n.current=null},t),(0,r.useEffect)(()=>{const o=e!==he;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?(0,y.$X)(e,n.current):he}function or(e){(0,r.useEffect)(()=>{if(!y.Nq)return;const t=e.map(n=>{let{sensor:o}=n;return o.setup==null?void 0:o.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function ir(e,t){return(0,r.useMemo)(()=>e.reduce((n,o)=>{let{eventName:s,handler:a}=o;return n[s]=f=>{a(f,t)},n},{}),[e,t])}function On(e){return(0,r.useMemo)(()=>e?Kt(e):null,[e])}const Pn=[];function ar(e,t){t===void 0&&(t=Ie);const[n]=e,o=On(n?(0,y.Jj)(n):null),[s,a]=(0,r.useReducer)(v,Pn),f=zt({callback:a});return e.length>0&&s===Pn&&a(),(0,y.LI)(()=>{e.length?e.forEach(b=>f==null?void 0:f.observe(b)):(f==null||f.disconnect(),a())},[e]),s;function v(){return e.length?e.map(b=>vn(b)?o:new Qt(t(b),b)):Pn}}function $n(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,y.Re)(t)?t:e}function mr(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),s=(0,r.useCallback)(E=>{for(const{target:x}of E)if((0,y.Re)(x)){o(m=>{const D=t(x);return m?be(B({},m),{width:D.width,height:D.height}):D});break}},[t]),a=zt({callback:s}),f=(0,r.useCallback)(E=>{const x=$n(E);a==null||a.disconnect(),x&&(a==null||a.observe(x)),o(x?t(x):null)},[t,a]),[v,b]=(0,y.wm)(f);return(0,r.useMemo)(()=>({nodeRef:v,rect:n,setRef:b}),[n,v,b])}const sr=[{sensor:Cn,options:{}},{sensor:bn,options:{}}],lr={current:{}},ft={draggable:{measure:mt},droppable:{measure:mt,strategy:Mt.WhileDragging,frequency:rn.Optimized},dragOverlay:{measure:Ie}};class Tt extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}}const br={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Tt,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ge},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ft,measureDroppableContainers:ge,windowRect:null,measuringScheduled:!1},an={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ge,draggableNodes:new Map,over:null,measureDroppableContainers:ge},Lt=(0,r.createContext)(an),cr=(0,r.createContext)(br);function ur(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Tt}}}function sn(e,t){switch(t.type){case ee.DragStart:return be(B({},e),{draggable:be(B({},e.draggable),{initialCoordinates:t.initialCoordinates,active:t.active})});case ee.DragMove:return e.draggable.active?be(B({},e),{draggable:be(B({},e.draggable),{translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}})}):e;case ee.DragEnd:case ee.DragCancel:return be(B({},e),{draggable:be(B({},e.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case ee.RegisterDroppable:{const{element:n}=t,{id:o}=n,s=new Tt(e.droppable.containers);return s.set(o,n),be(B({},e),{droppable:be(B({},e.droppable),{containers:s})})}case ee.SetDroppableDisabled:{const{id:n,key:o,disabled:s}=t,a=e.droppable.containers.get(n);if(!a||o!==a.key)return e;const f=new Tt(e.droppable.containers);return f.set(n,be(B({},a),{disabled:s})),be(B({},e),{droppable:be(B({},e.droppable),{containers:f})})}case ee.UnregisterDroppable:{const{id:n,key:o}=t,s=e.droppable.containers.get(n);if(!s||o!==s.key)return e;const a=new Tt(e.droppable.containers);return a.delete(n),be(B({},e),{droppable:be(B({},e.droppable),{containers:a})})}default:return e}}function dr(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:s}=(0,r.useContext)(Lt),a=(0,y.D9)(o),f=(0,y.D9)(n==null?void 0:n.id);return(0,r.useEffect)(()=>{if(!t&&!o&&a&&f!=null){if(!(0,y.vd)(a)||document.activeElement===a.target)return;const v=s.get(f);if(!v)return;const{activatorNode:b,node:E}=v;if(!b.current&&!E.current)return;requestAnimationFrame(()=>{for(const x of[b.current,E.current]){if(!x)continue;const m=(0,y.so)(x);if(m){m.focus();break}}})}},[o,t,s,f,a]),null}function i(e,t){let s=t,{transform:n}=s,o=zn(s,["transform"]);return e!=null&&e.length?e.reduce((a,f)=>f(B({transform:a},o)),n):n}function l(e){return(0,r.useMemo)(()=>({draggable:B(B({},ft.draggable),e==null?void 0:e.draggable),droppable:B(B({},ft.droppable),e==null?void 0:e.droppable),dragOverlay:B(B({},ft.dragOverlay),e==null?void 0:e.dragOverlay)}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function c(e){let{activeNode:t,measure:n,initialRect:o,config:s=!0}=e;const a=(0,r.useRef)(!1),{x:f,y:v}=typeof s=="boolean"?{x:s,y:s}:s;(0,y.LI)(()=>{if(!f&&!v||!t){a.current=!1;return}if(a.current||!o)return;const E=t==null?void 0:t.node.current;if(!E||E.isConnected===!1)return;const x=n(E),m=me(x,o);if(f||(m.x=0),v||(m.y=0),a.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){const D=Nt(E);D&&D.scrollBy({top:m.y,left:m.x})}},[t,f,v,o,n])}const p=(0,r.createContext)(be(B({},he),{scaleX:1,scaleY:1}));var w;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(w||(w={}));const h=(0,r.memo)(function(t){var n,o,s,a;let Or=t,{id:f,accessibility:v,autoScroll:b=!0,children:E,sensors:x=sr,collisionDetection:m=A,measuring:D,modifiers:R}=Or,F=zn(Or,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const P=(0,r.useReducer)(sn,void 0,ur),[N,X]=P,[L,z]=q(),[ue,j]=(0,r.useState)(w.Uninitialized),de=ue===w.Initialized,{draggable:{active:te,nodes:ne,translate:xe},droppable:{containers:je}}=N,Pe=te?ne.get(te):null,rt=(0,r.useRef)({initial:null,translated:null}),st=(0,r.useMemo)(()=>{var Xe;return te!=null?{id:te,data:(Xe=Pe==null?void 0:Pe.data)!=null?Xe:lr,rect:rt}:null},[te,Pe]),pt=(0,r.useRef)(null),[In,Mn]=(0,r.useState)(null),[lt,Tn]=(0,r.useState)(null),yt=(0,y.Ey)(F,Object.values(F)),At=(0,y.Ld)("DndDescribedBy",f),Ln=(0,r.useMemo)(()=>je.getEnabled(),[je]),wt=l(D),{droppableRects:Ct,measureDroppableContainers:Z,measuringScheduled:ae}=kn(Ln,{dragging:de,dependencies:[xe.x,xe.y],config:wt.droppable}),_=Ut(ne,te),Q=(0,r.useMemo)(()=>lt?(0,y.DC)(lt):null,[lt]),fe=zr(),Ze=qn(_,wt.draggable.measure);c({activeNode:te?ne.get(te):null,config:fe.layoutShiftCompensation,initialRect:Ze,measure:wt.draggable.measure});const Le=Sn(_,wt.draggable.measure,Ze),vt=Sn(_?_.parentElement:null),Je=(0,r.useRef)({activatorEvent:null,active:null,activeNode:_,collisionRect:null,collisions:null,droppableRects:Ct,draggableNodes:ne,draggingNode:null,draggingNodeRect:null,droppableContainers:je,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),fr=je.getNodeFor((n=Je.current.over)==null?void 0:n.id),Ft=mr({measure:wt.dragOverlay.measure}),An=(o=Ft.nodeRef.current)!=null?o:_,Bt=de?(s=Ft.rect)!=null?s:Le:null,yr=!!(Ft.nodeRef.current&&Ft.rect),wr=tr(yr?null:Le),pr=On(An?(0,y.Jj)(An):null),St=nr(de?fr!=null?fr:_:null),Fn=ar(St),Nn=i(R,{transform:{x:xe.x-wr.x,y:xe.y-wr.y,scaleX:1,scaleY:1},activatorEvent:lt,active:st,activeNodeRect:Le,containerNodeRect:vt,draggingNodeRect:Bt,over:Je.current.over,overlayNodeRect:Ft.rect,scrollableAncestors:St,scrollableAncestorRects:Fn,windowRect:pr}),Cr=Q?(0,y.IH)(Q,xe):null,Er=rr(St),Lr=Rn(Er),Ar=Rn(Er,[Le]),Wt=(0,y.IH)(Nn,Lr),Xt=Bt?ht(Bt,Nn):null,ln=st&&Xt?m({active:st,collisionRect:Xt,droppableRects:Ct,droppableContainers:Ln,pointerCoordinates:Cr}):null,xr=Ve(ln,"id"),[Dt,Sr]=(0,r.useState)(null),Fr=yr?Nn:(0,y.IH)(Nn,Ar),Nr=T(Fr,(a=Dt==null?void 0:Dt.rect)!=null?a:null,Le),Dr=(0,r.useCallback)((Xe,et)=>{let{sensor:tt,options:Rt}=et;if(pt.current==null)return;const ot=ne.get(pt.current);if(!ot)return;const ct=Xe.nativeEvent,gt=new tt({active:pt.current,activeNode:ot,event:ct,options:Rt,context:Je,onStart(ut){const cn=pt.current;if(cn==null)return;const un=ne.get(cn);if(!un)return;const{onDragStart:jn}=yt.current,Zn={active:{id:cn,data:un.data,rect:rt}};(0,W.unstable_batchedUpdates)(()=>{jn==null||jn(Zn),j(w.Initializing),X({type:ee.DragStart,initialCoordinates:ut,active:cn}),L({type:"onDragStart",event:Zn})})},onMove(ut){X({type:ee.DragMove,coordinates:ut})},onEnd:Ht(ee.DragEnd),onCancel:Ht(ee.DragCancel)});(0,W.unstable_batchedUpdates)(()=>{Mn(gt),Tn(Xe.nativeEvent)});function Ht(ut){return function(){return Tr(this,null,function*(){const{active:un,collisions:jn,over:Zn,scrollAdjustedTranslate:Pr}=Je.current;let dn=null;if(un&&Pr){const{cancelDrop:fn}=yt.current;dn={activatorEvent:ct,active:un,collisions:jn,delta:Pr,over:Zn},ut===ee.DragEnd&&typeof fn=="function"&&(yield Promise.resolve(fn(dn)))&&(ut=ee.DragCancel)}pt.current=null,(0,W.unstable_batchedUpdates)(()=>{X({type:ut}),j(w.Uninitialized),Sr(null),Mn(null),Tn(null);const fn=ut===ee.DragEnd?"onDragEnd":"onDragCancel";if(dn){const vr=yt.current[fn];vr==null||vr(dn),L({type:fn,event:dn})}})})}}},[ne]),jr=(0,r.useCallback)((Xe,et)=>(tt,Rt)=>{const ot=tt.nativeEvent,ct=ne.get(Rt);if(pt.current!==null||!ct||ot.dndKit||ot.defaultPrevented)return;const gt={active:ct};Xe(tt,et.options,gt)===!0&&(ot.dndKit={capturedBy:et.sensor},pt.current=Rt,Dr(tt,et))},[ne,Dr]),Rr=nn(x,jr);or(x),(0,y.LI)(()=>{Le&&ue===w.Initializing&&j(w.Initialized)},[Le,ue]),(0,r.useEffect)(()=>{const{onDragMove:Xe}=yt.current,{active:et,activatorEvent:tt,collisions:Rt,over:ot}=Je.current;if(!et||!tt)return;const ct={active:et,activatorEvent:tt,collisions:Rt,delta:{x:Wt.x,y:Wt.y},over:ot};(0,W.unstable_batchedUpdates)(()=>{Xe==null||Xe(ct),L({type:"onDragMove",event:ct})})},[Wt.x,Wt.y]),(0,r.useEffect)(()=>{const{active:Xe,activatorEvent:et,collisions:tt,droppableContainers:Rt,scrollAdjustedTranslate:ot}=Je.current;if(!Xe||pt.current==null||!et||!ot)return;const{onDragOver:ct}=yt.current,gt=Rt.get(xr),Ht=gt&>.rect.current?{id:gt.id,rect:gt.rect.current,data:gt.data,disabled:gt.disabled}:null,ut={active:Xe,activatorEvent:et,collisions:tt,delta:{x:ot.x,y:ot.y},over:Ht};(0,W.unstable_batchedUpdates)(()=>{Sr(Ht),ct==null||ct(ut),L({type:"onDragOver",event:ut})})},[xr]),(0,y.LI)(()=>{Je.current={activatorEvent:lt,active:st,activeNode:_,collisionRect:Xt,collisions:ln,droppableRects:Ct,draggableNodes:ne,draggingNode:An,draggingNodeRect:Bt,droppableContainers:je,over:Dt,scrollableAncestors:St,scrollAdjustedTranslate:Wt},rt.current={initial:Bt,translated:Xt}},[st,_,ln,Xt,ne,An,Bt,Ct,je,Dt,St,Wt]),En(be(B({},fe),{delta:xe,draggingRect:Xt,pointerCoordinates:Cr,scrollableAncestors:St,scrollableAncestorRects:Fn}));const Zr=(0,r.useMemo)(()=>({active:st,activeNode:_,activeNodeRect:Le,activatorEvent:lt,collisions:ln,containerNodeRect:vt,dragOverlay:Ft,draggableNodes:ne,droppableContainers:je,droppableRects:Ct,over:Dt,measureDroppableContainers:Z,scrollableAncestors:St,scrollableAncestorRects:Fn,measuringConfiguration:wt,measuringScheduled:ae,windowRect:pr}),[st,_,Le,lt,ln,vt,Ft,ne,je,Ct,Dt,Z,St,Fn,wt,ae,pr]),Ur=(0,r.useMemo)(()=>({activatorEvent:lt,activators:Rr,active:st,activeNodeRect:Le,ariaDescribedById:{draggable:At},dispatch:X,draggableNodes:ne,over:Dt,measureDroppableContainers:Z}),[lt,Rr,st,Le,X,At,ne,Dt,Z]);return r.createElement(Se.Provider,{value:z},r.createElement(Lt.Provider,{value:Ur},r.createElement(cr.Provider,{value:Zr},r.createElement(p.Provider,{value:Nr},E)),r.createElement(dr,{disabled:(v==null?void 0:v.restoreFocus)===!1})),r.createElement(Ae,be(B({},v),{hiddenTextDescribedById:At})));function zr(){const Xe=(In==null?void 0:In.autoScrollEnabled)===!1,et=typeof b=="object"?b.enabled===!1:b===!1,tt=de&&!Xe&&!et;return typeof b=="object"?be(B({},b),{enabled:tt}):{enabled:tt}}}),C=(0,r.createContext)(null),u="button",$="Droppable";function O(e){let{id:t,data:n,disabled:o=!1,attributes:s}=e;const a=(0,y.Ld)($),{activators:f,activatorEvent:v,active:b,activeNodeRect:E,ariaDescribedById:x,draggableNodes:m,over:D}=(0,r.useContext)(Lt),{role:R=u,roleDescription:F="draggable",tabIndex:P=0}=s!=null?s:{},N=(b==null?void 0:b.id)===t,X=(0,r.useContext)(N?p:C),[L,z]=(0,y.wm)(),[ue,j]=(0,y.wm)(),de=ir(f,t),te=(0,y.Ey)(n);(0,y.LI)(()=>(m.set(t,{id:t,key:a,node:L,activatorNode:ue,data:te}),()=>{const xe=m.get(t);xe&&xe.key===a&&m.delete(t)}),[m,t]);const ne=(0,r.useMemo)(()=>({role:R,tabIndex:P,"aria-disabled":o,"aria-pressed":N&&R===u?!0:void 0,"aria-roledescription":F,"aria-describedby":x.draggable}),[o,R,P,N,F,x.draggable]);return{active:b,activatorEvent:v,activeNodeRect:E,attributes:ne,isDragging:N,listeners:o?void 0:de,node:L,over:D,setNodeRef:z,setActivatorNodeRef:j,transform:X}}function M(){return useContext(cr)}const Y="Droppable",ie={timeout:25};function ye(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:s}=e;const a=(0,y.Ld)(Y),{active:f,dispatch:v,over:b,measureDroppableContainers:E}=(0,r.useContext)(Lt),x=(0,r.useRef)({disabled:n}),m=(0,r.useRef)(!1),D=(0,r.useRef)(null),R=(0,r.useRef)(null),{disabled:F,updateMeasurementsFor:P,timeout:N}=B(B({},ie),s),X=(0,y.Ey)(P!=null?P:o),L=(0,r.useCallback)(()=>{if(!m.current){m.current=!0;return}R.current!=null&&clearTimeout(R.current),R.current=setTimeout(()=>{E(Array.isArray(X.current)?X.current:[X.current]),R.current=null},N)},[N]),z=zt({callback:L,disabled:F||!f}),ue=(0,r.useCallback)((ne,xe)=>{z&&(xe&&(z.unobserve(xe),m.current=!1),ne&&z.observe(ne))},[z]),[j,de]=(0,y.wm)(ue),te=(0,y.Ey)(t);return(0,r.useEffect)(()=>{!z||!j.current||(z.disconnect(),m.current=!1,z.observe(j.current))},[j,z]),(0,y.LI)(()=>(v({type:ee.RegisterDroppable,element:{id:o,key:a,disabled:n,node:j,rect:D,data:te}}),()=>v({type:ee.UnregisterDroppable,key:a,id:o})),[o]),(0,r.useEffect)(()=>{n!==x.current.disabled&&(v({type:ee.SetDroppableDisabled,id:o,key:a,disabled:n}),x.current.disabled=n)},[o,a,n,v]),{active:f,rect:D,isOver:(b==null?void 0:b.id)===o,node:j,over:b,setNodeRef:de}}function ze(e){let{animation:t,children:n}=e;const[o,s]=useState(null),[a,f]=useState(null),v=usePrevious(n);return!n&&!o&&v&&s(v),useIsomorphicLayoutEffect(()=>{if(!a)return;const b=o==null?void 0:o.key,E=o==null?void 0:o.props.id;if(b==null||E==null){s(null);return}Promise.resolve(t(E,a)).then(()=>{s(null)})},[t,o,a]),React.createElement(React.Fragment,null,n,o?cloneElement(o,{ref:f}):null)}const He={x:0,y:0,scaleX:1,scaleY:1};function qe(e){let{children:t}=e;return React.createElement(Lt.Provider,{value:an},React.createElement(p.Provider,{value:He},t))}const Me={position:"fixed",touchAction:"none"},Be=e=>isKeyboardEvent(e)?"transform 250ms ease":void 0,We=null,Ne={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:y.ux.Transform.toString(t)},{transform:y.ux.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:o}=t;const s={},{styles:a,className:f}=e;if(a!=null&&a.active)for(const[v,b]of Object.entries(a.active))b!==void 0&&(s[v]=n.node.style.getPropertyValue(v),n.node.style.setProperty(v,b));if(a!=null&&a.dragOverlay)for(const[v,b]of Object.entries(a.dragOverlay))b!==void 0&&o.node.style.setProperty(v,b);return f!=null&&f.active&&n.node.classList.add(f.active),f!=null&&f.dragOverlay&&o.node.classList.add(f.dragOverlay),function(){for(const[b,E]of Object.entries(s))n.node.style.setProperty(b,E);f!=null&&f.active&&n.node.classList.remove(f.active)}})({styles:{active:{opacity:"0"}}})};function Oe(e){let{config:t,draggableNodes:n,droppableContainers:o,measuringConfiguration:s}=e;return useEvent((a,f)=>{if(t===null)return;const v=n.get(a);if(!v)return;const b=v.node.current;if(!b)return;const E=$n(f);if(!E)return;const{transform:x}=getWindow(f).getComputedStyle(f),m=it(x);if(!m)return;const D=typeof t=="function"?t:nt(t);return Hn(b,s.draggable.measure),D({active:{id:a,data:v.data,node:b,rect:s.draggable.measure(b)},draggableNodes:n,dragOverlay:{node:f,rect:s.dragOverlay.measure(E)},droppableContainers:o,measuringConfiguration:s,transform:m})})}function nt(e){const{duration:t,easing:n,sideEffects:o,keyframes:s}=B(B({},Ne),e);return a=>{let L=a,{active:f,dragOverlay:v,transform:b}=L,E=zn(L,["active","dragOverlay","transform"]);if(!t)return;const x={x:v.rect.left-f.rect.left,y:v.rect.top-f.rect.top},m={scaleX:b.scaleX!==1?f.rect.width*b.scaleX/v.rect.width:1,scaleY:b.scaleY!==1?f.rect.height*b.scaleY/v.rect.height:1},D=B({x:b.x-x.x,y:b.y-x.y},m),R=s(be(B({},E),{active:f,dragOverlay:v,transform:{initial:b,final:D}})),[F]=R,P=R[R.length-1];if(JSON.stringify(F)===JSON.stringify(P))return;const N=o==null?void 0:o(B({active:f,dragOverlay:v},E)),X=v.node.animate(R,{duration:t,easing:n,fill:"forwards"});return new Promise(z=>{X.onfinish=()=>{N==null||N(),z()}})}}let _e=0;function Ke(e){return useMemo(()=>{if(e!=null)return _e++,_e},[e])}const bt=null},24285:function(se,J,g){g.d(J,{$X:function(){return Re},D9:function(){return Ye},DC:function(){return Fe},Ey:function(){return ee},FJ:function(){return pe},Gj:function(){return ge},IH:function(){return De},Jj:function(){return H},LI:function(){return we},Ld:function(){return oe},Nq:function(){return y},Re:function(){return Se},UG:function(){return V},Yz:function(){return Ae},qk:function(){return ve},r3:function(){return q},so:function(){return A},ux:function(){return I},vZ:function(){return k},vd:function(){return Ve},wm:function(){return Ce},zX:function(){return re}});var r=g(67294);function W(){for(var d=arguments.length,S=new Array(d),T=0;Tme=>{S.forEach(le=>le(me))},S)}const y=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function pe(d){const S=Object.prototype.toString.call(d);return S==="[object Window]"||S==="[object global]"}function V(d){return"nodeType"in d}function H(d){var S,T;return d?pe(d)?d:V(d)&&(S=(T=d.ownerDocument)==null?void 0:T.defaultView)!=null?S:window:window}function ve(d){const{Document:S}=H(d);return d instanceof S}function Se(d){return pe(d)?!1:d instanceof H(d).HTMLElement}function k(d){return d instanceof H(d).SVGElement}function q(d){return d?pe(d)?d.document:V(d)?ve(d)?d:Se(d)||k(d)?d.ownerDocument:document:document:document}const we=y?r.useLayoutEffect:r.useEffect;function re(d){const S=(0,r.useRef)(d);return we(()=>{S.current=d}),(0,r.useCallback)(function(){for(var T=arguments.length,me=new Array(T),le=0;le{d.current=setInterval(me,le)},[]),T=(0,r.useCallback)(()=>{d.current!==null&&(clearInterval(d.current),d.current=null)},[]);return[S,T]}function ee(d,S){S===void 0&&(S=[d]);const T=(0,r.useRef)(d);return we(()=>{T.current!==d&&(T.current=d)},S),T}function ge(d,S){const T=(0,r.useRef)();return(0,r.useMemo)(()=>{const me=d(T.current);return T.current=me,me},[...S])}function Ce(d){const S=re(d),T=(0,r.useRef)(null),me=(0,r.useCallback)(le=>{le!==T.current&&(S==null||S(le,T.current)),T.current=le},[]);return[T,me]}function Ye(d){const S=(0,r.useRef)();return(0,r.useEffect)(()=>{S.current=d},[d]),S.current}let he={};function oe(d,S){return(0,r.useMemo)(()=>{if(S)return S;const T=he[d]==null?0:he[d]+1;return he[d]=T,d+"-"+T},[d,S])}function K(d){return function(S){for(var T=arguments.length,me=new Array(T>1?T-1:0),le=1;le{const Ot=Object.entries(it);for(const[dt,Ie]of Ot){const mt=ht[dt];mt!=null&&(ht[dt]=mt+d*Ie)}return ht},B({},S))}}const De=K(1),Re=K(-1);function Ue(d){return"clientX"in d&&"clientY"in d}function Ve(d){if(!d)return!1;const{KeyboardEvent:S}=H(d.target);return S&&d instanceof S}function Ge(d){if(!d)return!1;const{TouchEvent:S}=H(d.target);return S&&d instanceof S}function Fe(d){if(Ge(d)){if(d.touches&&d.touches.length){const{clientX:S,clientY:T}=d.touches[0];return{x:S,y:T}}else if(d.changedTouches&&d.changedTouches.length){const{clientX:S,clientY:T}=d.changedTouches[0];return{x:S,y:T}}}return Ue(d)?{x:d.clientX,y:d.clientY}:null}const I=Object.freeze({Translate:{toString(d){if(!d)return;const{x:S,y:T}=d;return"translate3d("+(S?Math.round(S):0)+"px, "+(T?Math.round(T):0)+"px, 0)"}},Scale:{toString(d){if(!d)return;const{scaleX:S,scaleY:T}=d;return"scaleX("+S+") scaleY("+T+")"}},Transform:{toString(d){if(d)return[I.Translate.toString(d),I.Scale.toString(d)].join(" ")}},Transition:{toString(d){let{property:S,duration:T,easing:me}=d;return S+" "+T+"ms "+me}}}),U="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function A(d){return d.matches(U)?d:d.querySelector(U)}},86250:function(se,J,g){g.d(J,{Z:function(){return Fe}});var r=g(67294),W=g(93967),y=g.n(W),pe=g(98423),V=g(98065),H=g(53124),ve=g(91945),Se=g(45503);const k=["wrap","nowrap","wrap-reverse"],q=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],we=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],re=(I,U)=>{const A={};return k.forEach(d=>{A[`${I}-wrap-${d}`]=U.wrap===d}),A},Ae=(I,U)=>{const A={};return we.forEach(d=>{A[`${I}-align-${d}`]=U.align===d}),A[`${I}-align-stretch`]=!U.align&&!!U.vertical,A},ee=(I,U)=>{const A={};return q.forEach(d=>{A[`${I}-justify-${d}`]=U.justify===d}),A};function ge(I,U){return y()(Object.assign(Object.assign(Object.assign({},re(I,U)),Ae(I,U)),ee(I,U)))}var Ce=ge;const Ye=I=>{const{componentCls:U}=I;return{[U]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},he=I=>{const{componentCls:U}=I;return{[U]:{"&-gap-small":{gap:I.flexGapSM},"&-gap-middle":{gap:I.flexGap},"&-gap-large":{gap:I.flexGapLG}}}},oe=I=>{const{componentCls:U}=I,A={};return k.forEach(d=>{A[`${U}-wrap-${d}`]={flexWrap:d}}),A},K=I=>{const{componentCls:U}=I,A={};return we.forEach(d=>{A[`${U}-align-${d}`]={alignItems:d}}),A},De=I=>{const{componentCls:U}=I,A={};return q.forEach(d=>{A[`${U}-justify-${d}`]={justifyContent:d}}),A},Re=()=>({});var Ue=(0,ve.I$)("Flex",I=>{const{paddingXS:U,padding:A,paddingLG:d}=I,S=(0,Se.TS)(I,{flexGapSM:U,flexGap:A,flexGapLG:d});return[Ye(S),he(S),oe(S),K(S),De(S)]},Re,{resetStyle:!1}),Ve=function(I,U){var A={};for(var d in I)Object.prototype.hasOwnProperty.call(I,d)&&U.indexOf(d)<0&&(A[d]=I[d]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,d=Object.getOwnPropertySymbols(I);S{const{prefixCls:A,rootClassName:d,className:S,style:T,flex:me,gap:le,children:ht,vertical:it=!1,component:Ot="div"}=I,dt=Ve(I,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:Ie,direction:mt,getPrefixCls:Kt}=r.useContext(H.E_),Qe=Kt("flex",A),[Vt,Pt,Nt]=Ue(Qe),Ee=it!=null?it:Ie==null?void 0:Ie.vertical,Gt=y()(S,d,Ie==null?void 0:Ie.className,Qe,Pt,Nt,Ce(Qe,I),{[`${Qe}-rtl`]:mt==="rtl",[`${Qe}-gap-${le}`]:(0,V.n)(le),[`${Qe}-vertical`]:Ee}),Et=Object.assign(Object.assign({},Ie==null?void 0:Ie.style),T);return me&&(Et.flex=me),le&&!(0,V.n)(le)&&(Et.gap=le),Vt(r.createElement(Ot,Object.assign({ref:U,className:Gt,style:Et},(0,pe.Z)(dt,["justify","wrap","align"])),ht))})},66476:function(se,J,g){g.d(J,{Z:function(){return dr}});var r=g(67294),W=g(74902),y=g(73935),pe=g(93967),V=g.n(pe),H=g(87462),ve=g(15671),Se=g(43144),k=g(97326),q=g(32531),we=g(29388),re=g(4942),Ae=g(1413),ee=g(91),ge=g(74165),Ce=g(71002),Ye=g(15861),he=g(64217),oe=g(80334),K=function(i,l){if(i&&l){var c=Array.isArray(l)?l:l.split(","),p=i.name||"",w=i.type||"",h=w.replace(/\/.*$/,"");return c.some(function(C){var u=C.trim();if(/^\*(\/\*)?$/.test(C))return!0;if(u.charAt(0)==="."){var $=p.toLowerCase(),O=u.toLowerCase(),M=[O];return(O===".jpg"||O===".jpeg")&&(M=[".jpg",".jpeg"]),M.some(function(Y){return $.endsWith(Y)})}return/\/\*$/.test(u)?h===u.replace(/\/.*$/,""):w===u?!0:/^\w+$/.test(u)?((0,oe.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(u,"'.Skip for check.")),!0):!1})}return!0};function De(i,l){var c="cannot ".concat(i.method," ").concat(i.action," ").concat(l.status,"'"),p=new Error(c);return p.status=l.status,p.method=i.method,p.url=i.action,p}function Re(i){var l=i.responseText||i.response;if(!l)return l;try{return JSON.parse(l)}catch(c){return l}}function Ue(i){var l=new XMLHttpRequest;i.onProgress&&l.upload&&(l.upload.onprogress=function(h){h.total>0&&(h.percent=h.loaded/h.total*100),i.onProgress(h)});var c=new FormData;i.data&&Object.keys(i.data).forEach(function(w){var h=i.data[w];if(Array.isArray(h)){h.forEach(function(C){c.append("".concat(w,"[]"),C)});return}c.append(w,h)}),i.file instanceof Blob?c.append(i.filename,i.file,i.file.name):c.append(i.filename,i.file),l.onerror=function(h){i.onError(h)},l.onload=function(){return l.status<200||l.status>=300?i.onError(De(i,l),Re(l)):i.onSuccess(Re(l),l)},l.open(i.method,i.action,!0),i.withCredentials&&"withCredentials"in l&&(l.withCredentials=!0);var p=i.headers||{};return p["X-Requested-With"]!==null&&l.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(p).forEach(function(w){p[w]!==null&&l.setRequestHeader(w,p[w])}),l.send(c),{abort:function(){l.abort()}}}function Ve(i,l){var c=i.createReader(),p=[];function w(){c.readEntries(function(h){var C=Array.prototype.slice.apply(h);p=p.concat(C);var u=!C.length;u?l(p):w()})}w()}var Ge=function(l,c,p){var w=function h(C,u){C&&(C.path=u||"",C.isFile?C.file(function($){p($)&&(C.fullPath&&!$.webkitRelativePath&&(Object.defineProperties($,{webkitRelativePath:{writable:!0}}),$.webkitRelativePath=C.fullPath.replace(/^\//,""),Object.defineProperties($,{webkitRelativePath:{writable:!1}})),c([$]))}):C.isDirectory&&Ve(C,function($){$.forEach(function(O){h(O,"".concat(u).concat(C.name,"/"))})}))};l.forEach(function(h){w(h.webkitGetAsEntry())})},Fe=Ge,I=+new Date,U=0;function A(){return"rc-upload-".concat(I,"-").concat(++U)}var d=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],S=function(i){(0,q.Z)(c,i);var l=(0,we.Z)(c);function c(){var p;(0,ve.Z)(this,c);for(var w=arguments.length,h=new Array(w),C=0;C{const{componentCls:l,iconCls:c}=i;return{[`${l}-wrapper`]:{[`${l}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:i.colorFillAlter,border:`${(0,Ee.bf)(i.lineWidth)} dashed ${i.colorBorder}`,borderRadius:i.borderRadiusLG,cursor:"pointer",transition:`border-color ${i.motionDurationSlow}`,[l]:{padding:i.padding},[`${l}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:i.borderRadiusLG,"&:focus-visible":{outline:`${(0,Ee.bf)(i.lineWidthFocus)} solid ${i.colorPrimaryBorder}`}},[`${l}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` - &:not(${l}-disabled):hover, - &-hover:not(${l}-disabled) - `]:{borderColor:i.colorPrimaryHover},[`p${l}-drag-icon`]:{marginBottom:i.margin,[c]:{color:i.colorPrimary,fontSize:i.uploadThumbnailSize}},[`p${l}-text`]:{margin:`0 0 ${(0,Ee.bf)(i.marginXXS)}`,color:i.colorTextHeading,fontSize:i.fontSizeLG},[`p${l}-hint`]:{color:i.colorTextDescription,fontSize:i.fontSize},[`&${l}-disabled`]:{[`p${l}-drag-icon ${c}, - p${l}-text, - p${l}-hint - `]:{color:i.colorTextDisabled}}}}}},$e=i=>{const{componentCls:l,antCls:c,iconCls:p,fontSize:w,lineHeight:h,calc:C}=i,u=`${l}-list-item`,$=`${u}-actions`,O=`${u}-action`,M=i.fontHeightSM;return{[`${l}-wrapper`]:{[`${l}-list`]:Object.assign(Object.assign({},(0,Qe.dF)()),{lineHeight:i.lineHeight,[u]:{position:"relative",height:C(i.lineHeight).mul(w).equal(),marginTop:i.marginXS,fontSize:w,display:"flex",alignItems:"center",transition:`background-color ${i.motionDurationSlow}`,"&:hover":{backgroundColor:i.controlItemBgHover},[`${u}-name`]:Object.assign(Object.assign({},Qe.vS),{padding:`0 ${(0,Ee.bf)(i.paddingXS)}`,lineHeight:h,flex:"auto",transition:`all ${i.motionDurationSlow}`}),[$]:{whiteSpace:"nowrap",[O]:{opacity:0},[p]:{color:i.actionsColor,transition:`all ${i.motionDurationSlow}`},[` - ${O}:focus-visible, - &.picture ${O} - `]:{opacity:1},[`${O}${c}-btn`]:{height:M,border:0,lineHeight:1}},[`${l}-icon ${p}`]:{color:i.colorTextDescription,fontSize:w},[`${u}-progress`]:{position:"absolute",bottom:i.calc(i.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:C(w).add(i.paddingXS).equal(),fontSize:w,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${u}:hover ${O}`]:{opacity:1},[`${u}-error`]:{color:i.colorError,[`${u}-name, ${l}-icon ${p}`]:{color:i.colorError},[$]:{[`${p}, ${p}:hover`]:{color:i.colorError},[O]:{opacity:1}}},[`${l}-list-item-container`]:{transition:`opacity ${i.motionDurationSlow}, height ${i.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},vn=g(16932);const Jt=new Ee.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),gn=new Ee.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Bn=i=>{const{componentCls:l}=i,c=`${l}-animate-inline`;return[{[`${l}-wrapper`]:{[`${c}-appear, ${c}-enter, ${c}-leave`]:{animationDuration:i.motionDurationSlow,animationTimingFunction:i.motionEaseInOutCirc,animationFillMode:"forwards"},[`${c}-appear, ${c}-enter`]:{animationName:Jt},[`${c}-leave`]:{animationName:gn}}},{[`${l}-wrapper`]:(0,vn.J$)(i)},Jt,gn]},Yt=g(78589);const Wn=i=>{const{componentCls:l,iconCls:c,uploadThumbnailSize:p,uploadProgressOffset:w,calc:h}=i,C=`${l}-list`,u=`${C}-item`;return{[`${l}-wrapper`]:{[` - ${C}${C}-picture, - ${C}${C}-picture-card, - ${C}${C}-picture-circle - `]:{[u]:{position:"relative",height:h(p).add(h(i.lineWidth).mul(2)).add(h(i.paddingXS).mul(2)).equal(),padding:i.paddingXS,border:`${(0,Ee.bf)(i.lineWidth)} ${i.lineType} ${i.colorBorder}`,borderRadius:i.borderRadiusLG,"&:hover":{background:"transparent"},[`${u}-thumbnail`]:Object.assign(Object.assign({},Qe.vS),{width:p,height:p,lineHeight:(0,Ee.bf)(h(p).add(i.paddingSM).equal()),textAlign:"center",flex:"none",[c]:{fontSize:i.fontSizeHeading2,color:i.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${u}-progress`]:{bottom:w,width:`calc(100% - ${(0,Ee.bf)(h(i.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:h(p).add(i.paddingXS).equal()}},[`${u}-error`]:{borderColor:i.colorError,[`${u}-thumbnail ${c}`]:{[`svg path[fill='${Yt.iN[0]}']`]:{fill:i.colorErrorBg},[`svg path[fill='${Yt.iN.primary}']`]:{fill:i.colorError}}},[`${u}-uploading`]:{borderStyle:"dashed",[`${u}-name`]:{marginBottom:w}}},[`${C}${C}-picture-circle ${u}`]:{[`&, &::before, ${u}-thumbnail`]:{borderRadius:"50%"}}}}},Xn=i=>{const{componentCls:l,iconCls:c,fontSizeLG:p,colorTextLightSolid:w,calc:h}=i,C=`${l}-list`,u=`${C}-item`,$=i.uploadPicCardSize;return{[` - ${l}-wrapper${l}-picture-card-wrapper, - ${l}-wrapper${l}-picture-circle-wrapper - `]:Object.assign(Object.assign({},(0,Qe.dF)()),{display:"inline-block",width:"100%",[`${l}${l}-select`]:{width:$,height:$,marginInlineEnd:i.marginXS,marginBottom:i.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:i.colorFillAlter,border:`${(0,Ee.bf)(i.lineWidth)} dashed ${i.colorBorder}`,borderRadius:i.borderRadiusLG,cursor:"pointer",transition:`border-color ${i.motionDurationSlow}`,[`> ${l}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${l}-disabled):hover`]:{borderColor:i.colorPrimary}},[`${C}${C}-picture-card, ${C}${C}-picture-circle`]:{[`${C}-item-container`]:{display:"inline-block",width:$,height:$,marginBlock:`0 ${(0,Ee.bf)(i.marginXS)}`,marginInline:`0 ${(0,Ee.bf)(i.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[u]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Ee.bf)(h(i.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Ee.bf)(h(i.paddingXS).mul(2).equal())})`,backgroundColor:i.colorBgMask,opacity:0,transition:`all ${i.motionDurationSlow}`,content:'" "'}},[`${u}:hover`]:{[`&::before, ${u}-actions`]:{opacity:1}},[`${u}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${i.motionDurationSlow}`,[` - ${c}-eye, - ${c}-download, - ${c}-delete - `]:{zIndex:10,width:p,margin:`0 ${(0,Ee.bf)(i.marginXXS)}`,fontSize:p,cursor:"pointer",transition:`all ${i.motionDurationSlow}`,color:w,"&:hover":{color:w},svg:{verticalAlign:"baseline"}}},[`${u}-thumbnail, ${u}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${u}-name`]:{display:"none",textAlign:"center"},[`${u}-file + ${u}-name`]:{position:"absolute",bottom:i.margin,display:"block",width:`calc(100% - ${(0,Ee.bf)(h(i.paddingXS).mul(2).equal())})`},[`${u}-uploading`]:{[`&${u}`]:{backgroundColor:i.colorFillAlter},[`&::before, ${c}-eye, ${c}-download, ${c}-delete`]:{display:"none"}},[`${u}-progress`]:{bottom:i.marginXL,width:`calc(100% - ${(0,Ee.bf)(h(i.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${l}-wrapper${l}-picture-circle-wrapper`]:{[`${l}${l}-select`]:{borderRadius:"50%"}}}};var Kn=i=>{const{componentCls:l}=i;return{[`${l}-rtl`]:{direction:"rtl"}}};const Qt=i=>{const{componentCls:l,colorTextDisabled:c}=i;return{[`${l}-wrapper`]:Object.assign(Object.assign({},(0,Qe.Wf)(i)),{[l]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${l}-select`]:{display:"inline-block"},[`${l}-disabled`]:{color:c,cursor:"not-allowed"}})}},$t=i=>({actionsColor:i.colorTextDescription});var Vn=(0,Pt.I$)("Upload",i=>{const{fontSizeHeading3:l,fontHeight:c,lineWidth:p,controlHeightLG:w,calc:h}=i,C=(0,Nt.TS)(i,{uploadThumbnailSize:h(l).mul(2).equal(),uploadProgressOffset:h(h(c).div(2)).add(p).equal(),uploadPicCardSize:h(w).mul(2.55).equal()});return[Qt(C),Et(C),Wn(C),Xn(C),$e(C),Bn(C),Kn(C),(0,Vt.Z)(C)]},$t),kt={icon:function(l,c){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:c}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:l}}]}},name:"file",theme:"twotone"},ke=kt,xt=g(93771),Gn=function(l,c){return r.createElement(xt.Z,(0,H.Z)({},l,{ref:c,icon:ke}))},ce=r.forwardRef(Gn),hn=ce,mn=g(19267),bn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},yn=bn,wn=function(l,c){return r.createElement(xt.Z,(0,H.Z)({},l,{ref:c,icon:yn}))},qt=r.forwardRef(wn),Jn=qt,Cn={icon:function(l,c){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:l}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:c}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:c}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:c}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:l}}]}},name:"picture",theme:"twotone"},Yn=Cn,_t=function(l,c){return r.createElement(xt.Z,(0,H.Z)({},l,{ref:c,icon:Yn}))},Qn=r.forwardRef(_t),en=Qn,tn=g(82225),It=g(57838),jt=g(33603),En=g(96159),xn=g(14726);function Zt(i){return Object.assign(Object.assign({},i),{lastModified:i.lastModified,lastModifiedDate:i.lastModifiedDate,name:i.name,size:i.size,type:i.type,uid:i.uid,percent:0,originFileObj:i})}function Ut(i,l){const c=(0,W.Z)(l),p=c.findIndex(w=>{let{uid:h}=w;return h===i.uid});return p===-1?c.push(i):c[p]=i,c}function nn(i,l){const c=i.uid!==void 0?"uid":"name";return l.filter(p=>p[c]===i[c])[0]}function Mt(i,l){const c=i.uid!==void 0?"uid":"name",p=l.filter(w=>w[c]!==i[c]);return p.length===l.length?null:p}const rn=function(){const l=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),p=l[l.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(p)||[""])[0]},on=i=>i.indexOf("image/")===0,kn=i=>{if(i.type&&!i.thumbUrl)return on(i.type);const l=i.thumbUrl||i.url||"",c=rn(l);return/^data:image\//.test(l)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(c)?!0:!(/^data:/.test(l)||c)},at=200;function qn(i){return new Promise(l=>{if(!i.type||!on(i.type)){l("");return}const c=document.createElement("canvas");c.width=at,c.height=at,c.style.cssText=`position: fixed; left: 0; top: 0; width: ${at}px; height: ${at}px; z-index: 9999; display: none;`,document.body.appendChild(c);const p=c.getContext("2d"),w=new Image;if(w.onload=()=>{const{width:h,height:C}=w;let u=at,$=at,O=0,M=0;h>C?($=C*(at/h),M=-($-u)/2):(u=h*(at/C),O=-(u-$)/2),p.drawImage(w,O,M,u,$);const Y=c.toDataURL();document.body.removeChild(c),window.URL.revokeObjectURL(w.src),l(Y)},w.crossOrigin="anonymous",i.type.startsWith("image/svg+xml")){const h=new FileReader;h.onload=()=>{h.result&&typeof h.result=="string"&&(w.src=h.result)},h.readAsDataURL(i)}else if(i.type.startsWith("image/gif")){const h=new FileReader;h.onload=()=>{h.result&&l(h.result)},h.readAsDataURL(i)}else w.src=window.URL.createObjectURL(i)})}var _n=g(47046),zt=function(l,c){return r.createElement(xt.Z,(0,H.Z)({},l,{ref:c,icon:_n.Z}))},er=r.forwardRef(zt),Sn=er,tr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Dn=tr,nr=function(l,c){return r.createElement(xt.Z,(0,H.Z)({},l,{ref:c,icon:Dn}))},rr=r.forwardRef(nr),Rn=rr,or=g(1208),ir=g(38703),On=g(83062),ar=r.forwardRef((i,l)=>{let{prefixCls:c,className:p,style:w,locale:h,listType:C,file:u,items:$,progress:O,iconRender:M,actionIconRender:Y,itemRender:ie,isImgUrl:ye,showPreviewIcon:ze,showRemoveIcon:He,showDownloadIcon:qe,previewIcon:Me,removeIcon:Be,downloadIcon:We,onPreview:Te,onDownload:G,onClose:Ne}=i;var Oe,nt;const{status:_e}=u,[Ke,bt]=r.useState(_e);r.useEffect(()=>{_e!=="removed"&&bt(_e)},[_e]);const[e,t]=r.useState(!1);r.useEffect(()=>{const L=setTimeout(()=>{t(!0)},300);return()=>{clearTimeout(L)}},[]);const n=M(u);let o=r.createElement("div",{className:`${c}-icon`},n);if(C==="picture"||C==="picture-card"||C==="picture-circle")if(Ke==="uploading"||!u.thumbUrl&&!u.url){const L=V()(`${c}-list-item-thumbnail`,{[`${c}-list-item-file`]:Ke!=="uploading"});o=r.createElement("div",{className:L},n)}else{const L=ye!=null&&ye(u)?r.createElement("img",{src:u.thumbUrl||u.url,alt:u.name,className:`${c}-list-item-image`,crossOrigin:u.crossOrigin}):n,z=V()(`${c}-list-item-thumbnail`,{[`${c}-list-item-file`]:ye&&!ye(u)});o=r.createElement("a",{className:z,onClick:ue=>Te(u,ue),href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},L)}const s=V()(`${c}-list-item`,`${c}-list-item-${Ke}`),a=typeof u.linkProps=="string"?JSON.parse(u.linkProps):u.linkProps,f=He?Y((typeof Be=="function"?Be(u):Be)||r.createElement(Sn,null),()=>Ne(u),c,h.removeFile,!0):null,v=qe&&Ke==="done"?Y((typeof We=="function"?We(u):We)||r.createElement(Rn,null),()=>G(u),c,h.downloadFile):null,b=C!=="picture-card"&&C!=="picture-circle"&&r.createElement("span",{key:"download-delete",className:V()(`${c}-list-item-actions`,{picture:C==="picture"})},v,f),E=V()(`${c}-list-item-name`),x=u.url?[r.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:E,title:u.name},a,{href:u.url,onClick:L=>Te(u,L)}),u.name),b]:[r.createElement("span",{key:"view",className:E,onClick:L=>Te(u,L),title:u.name},u.name),b],m=ze&&(u.url||u.thumbUrl)?r.createElement("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:L=>Te(u,L),title:h.previewFile},typeof Me=="function"?Me(u):Me||r.createElement(or.Z,null)):null,D=(C==="picture-card"||C==="picture-circle")&&Ke!=="uploading"&&r.createElement("span",{className:`${c}-list-item-actions`},m,Ke==="done"&&v,f),{getPrefixCls:R}=r.useContext(dt.E_),F=R(),P=r.createElement("div",{className:s},o,x,D,e&&r.createElement(tn.ZP,{motionName:`${F}-fade`,visible:Ke==="uploading",motionDeadline:2e3},L=>{let{className:z}=L;const ue="percent"in u?r.createElement(ir.Z,Object.assign({},O,{type:"line",percent:u.percent,"aria-label":u["aria-label"],"aria-labelledby":u["aria-labelledby"]})):null;return r.createElement("div",{className:V()(`${c}-list-item-progress`,z)},ue)})),N=u.response&&typeof u.response=="string"?u.response:((Oe=u.error)===null||Oe===void 0?void 0:Oe.statusText)||((nt=u.error)===null||nt===void 0?void 0:nt.message)||h.uploadError,X=Ke==="error"?r.createElement(On.Z,{title:N,getPopupContainer:L=>L.parentNode},P):P;return r.createElement("div",{className:V()(`${c}-list-item-container`,p),style:w,ref:l},ie?ie(X,u,$,{download:G.bind(null,u),preview:Te.bind(null,u),remove:Ne.bind(null,u)}):X)});const $n=(i,l)=>{const{listType:c="text",previewFile:p=qn,onPreview:w,onDownload:h,onRemove:C,locale:u,iconRender:$,isImageUrl:O=kn,prefixCls:M,items:Y=[],showPreviewIcon:ie=!0,showRemoveIcon:ye=!0,showDownloadIcon:ze=!1,removeIcon:He,previewIcon:qe,downloadIcon:Me,progress:Be={size:[-1,2],showInfo:!1},appendAction:We,appendActionVisible:Te=!0,itemRender:G,disabled:Ne}=i,Oe=(0,It.Z)(),[nt,_e]=r.useState(!1);r.useEffect(()=>{c!=="picture"&&c!=="picture-card"&&c!=="picture-circle"||(Y||[]).forEach(m=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(m.originFileObj instanceof File||m.originFileObj instanceof Blob)||m.thumbUrl!==void 0||(m.thumbUrl="",p&&p(m.originFileObj).then(D=>{m.thumbUrl=D||"",Oe()}))})},[c,Y,p]),r.useEffect(()=>{_e(!0)},[]);const Ke=(m,D)=>{if(w)return D==null||D.preventDefault(),w(m)},bt=m=>{typeof h=="function"?h(m):m.url&&window.open(m.url)},e=m=>{C==null||C(m)},t=m=>{if($)return $(m,c);const D=m.status==="uploading",R=O&&O(m)?r.createElement(en,null):r.createElement(hn,null);let F=D?r.createElement(mn.Z,null):r.createElement(Jn,null);return c==="picture"?F=D?r.createElement(mn.Z,null):R:(c==="picture-card"||c==="picture-circle")&&(F=D?u.uploading:R),F},n=(m,D,R,F,P)=>{const N={type:"text",size:"small",title:F,onClick:X=>{var L,z;D(),r.isValidElement(m)&&((z=(L=m.props).onClick)===null||z===void 0||z.call(L,X))},className:`${R}-list-item-action`};if(P&&(N.disabled=Ne),r.isValidElement(m)){const X=(0,En.Tm)(m,Object.assign(Object.assign({},m.props),{onClick:()=>{}}));return r.createElement(xn.ZP,Object.assign({},N,{icon:X}))}return r.createElement(xn.ZP,Object.assign({},N),r.createElement("span",null,m))};r.useImperativeHandle(l,()=>({handlePreview:Ke,handleDownload:bt}));const{getPrefixCls:o}=r.useContext(dt.E_),s=o("upload",M),a=o(),f=V()(`${s}-list`,`${s}-list-${c}`),v=(0,W.Z)(Y.map(m=>({key:m.uid,file:m})));let E={motionDeadline:2e3,motionName:`${s}-${c==="picture-card"||c==="picture-circle"?"animate-inline":"animate"}`,keys:v,motionAppear:nt};const x=r.useMemo(()=>{const m=Object.assign({},(0,jt.Z)(a));return delete m.onAppearEnd,delete m.onEnterEnd,delete m.onLeaveEnd,m},[a]);return c!=="picture-card"&&c!=="picture-circle"&&(E=Object.assign(Object.assign({},x),E)),r.createElement("div",{className:f},r.createElement(tn.V4,Object.assign({},E,{component:!1}),m=>{let{key:D,file:R,className:F,style:P}=m;return r.createElement(ar,{key:D,locale:u,prefixCls:s,className:F,style:P,file:R,items:Y,progress:Be,listType:c,isImgUrl:O,showPreviewIcon:ie,showRemoveIcon:ye,showDownloadIcon:ze,removeIcon:He,previewIcon:qe,downloadIcon:Me,iconRender:t,actionIconRender:n,itemRender:G,onPreview:Ke,onDownload:bt,onClose:e})}),We&&r.createElement(tn.ZP,Object.assign({},E,{visible:Te,forceRender:!0}),m=>{let{className:D,style:R}=m;return(0,En.Tm)(We,F=>({className:V()(F.className,D),style:Object.assign(Object.assign(Object.assign({},R),{pointerEvents:D?"none":void 0}),F.style)}))}))};var sr=r.forwardRef($n),lr=function(i,l,c,p){function w(h){return h instanceof c?h:new c(function(C){C(h)})}return new(c||(c=Promise))(function(h,C){function u(M){try{O(p.next(M))}catch(Y){C(Y)}}function $(M){try{O(p.throw(M))}catch(Y){C(Y)}}function O(M){M.done?h(M.value):w(M.value).then(u,$)}O((p=p.apply(i,l||[])).next())})};const ft=`__LIST_IGNORE_${Date.now()}__`,Tt=(i,l)=>{const{fileList:c,defaultFileList:p,onRemove:w,showUploadList:h=!0,listType:C="text",onPreview:u,onDownload:$,onChange:O,onDrop:M,previewFile:Y,disabled:ie,locale:ye,iconRender:ze,isImageUrl:He,progress:qe,prefixCls:Me,className:Be,type:We="select",children:Te,style:G,itemRender:Ne,maxCount:Oe,data:nt={},multiple:_e=!1,hasControlInside:Ke=!0,action:bt="",accept:e="",supportServerRender:t=!0,rootClassName:n}=i,o=r.useContext(Ie.Z),s=ie!=null?ie:o,[a,f]=(0,Ot.Z)(p||[],{value:c,postState:Z=>Z!=null?Z:[]}),[v,b]=r.useState("drop"),E=r.useRef(null);r.useMemo(()=>{const Z=Date.now();(c||[]).forEach((ae,_)=>{!ae.uid&&!Object.isFrozen(ae)&&(ae.uid=`__AUTO__${Z}_${_}__`)})},[c]);const x=(Z,ae,_)=>{let Q=(0,W.Z)(ae),fe=!1;Oe===1?Q=Q.slice(-1):Oe&&(fe=Q.length>Oe,Q=Q.slice(0,Oe)),(0,y.flushSync)(()=>{f(Q)});const Ze={file:Z,fileList:Q};_&&(Ze.event=_),(!fe||Q.some(Le=>Le.uid===Z.uid))&&(0,y.flushSync)(()=>{O==null||O(Ze)})},m=(Z,ae)=>lr(void 0,void 0,void 0,function*(){const{beforeUpload:_,transformFile:Q}=i;let fe=Z;if(_){const Ze=yield _(Z,ae);if(Ze===!1)return!1;if(delete Z[ft],Ze===ft)return Object.defineProperty(Z,ft,{value:!0,configurable:!0}),!1;typeof Ze=="object"&&Ze&&(fe=Ze)}return Q&&(fe=yield Q(fe)),fe}),D=Z=>{const ae=Z.filter(fe=>!fe.file[ft]);if(!ae.length)return;const _=ae.map(fe=>Zt(fe.file));let Q=(0,W.Z)(a);_.forEach(fe=>{Q=Ut(fe,Q)}),_.forEach((fe,Ze)=>{let Le=fe;if(ae[Ze].parsedFile)fe.status="uploading";else{const{originFileObj:vt}=fe;let Je;try{Je=new File([vt],vt.name,{type:vt.type})}catch(fr){Je=new Blob([vt],{type:vt.type}),Je.name=vt.name,Je.lastModifiedDate=new Date,Je.lastModified=new Date().getTime()}Je.uid=fe.uid,Le=Je}x(Le,Q)})},R=(Z,ae,_)=>{try{typeof Z=="string"&&(Z=JSON.parse(Z))}catch(Ze){}if(!nn(ae,a))return;const Q=Zt(ae);Q.status="done",Q.percent=100,Q.response=Z,Q.xhr=_;const fe=Ut(Q,a);x(Q,fe)},F=(Z,ae)=>{if(!nn(ae,a))return;const _=Zt(ae);_.status="uploading",_.percent=Z.percent;const Q=Ut(_,a);x(_,Q,Z)},P=(Z,ae,_)=>{if(!nn(_,a))return;const Q=Zt(_);Q.error=Z,Q.response=ae,Q.status="error";const fe=Ut(Q,a);x(Q,fe)},N=Z=>{let ae;Promise.resolve(typeof w=="function"?w(Z):w).then(_=>{var Q;if(_===!1)return;const fe=Mt(Z,a);fe&&(ae=Object.assign(Object.assign({},Z),{status:"removed"}),a==null||a.forEach(Ze=>{const Le=ae.uid!==void 0?"uid":"name";Ze[Le]===ae[Le]&&!Object.isFrozen(Ze)&&(Ze.status="removed")}),(Q=E.current)===null||Q===void 0||Q.abort(ae),x(ae,fe))})},X=Z=>{b(Z.type),Z.type==="drop"&&(M==null||M(Z))};r.useImperativeHandle(l,()=>({onBatchStart:D,onSuccess:R,onProgress:F,onError:P,fileList:a,upload:E.current}));const{getPrefixCls:L,direction:z,upload:ue}=r.useContext(dt.E_),j=L("upload",Me),de=Object.assign(Object.assign({onBatchStart:D,onError:P,onProgress:F,onSuccess:R},i),{data:nt,multiple:_e,action:bt,accept:e,supportServerRender:t,prefixCls:j,disabled:s,beforeUpload:m,onChange:void 0,hasControlInside:Ke});delete de.className,delete de.style,(!Te||s)&&delete de.id;const te=`${j}-wrapper`,[ne,xe,je]=Vn(j,te),[Pe]=(0,mt.Z)("Upload",Kt.Z.Upload),{showRemoveIcon:rt,showPreviewIcon:st,showDownloadIcon:pt,removeIcon:In,previewIcon:Mn,downloadIcon:lt}=typeof h=="boolean"?{}:h,Tn=typeof rt=="undefined"?!s:!!rt,yt=(Z,ae)=>h?r.createElement(sr,{prefixCls:j,listType:C,items:a,previewFile:Y,onPreview:u,onDownload:$,onRemove:N,showRemoveIcon:Tn,showPreviewIcon:st,showDownloadIcon:pt,removeIcon:In,previewIcon:Mn,downloadIcon:lt,iconRender:ze,locale:Object.assign(Object.assign({},Pe),ye),isImageUrl:He,progress:qe,appendAction:Z,appendActionVisible:ae,itemRender:Ne,disabled:s}):Z,At=V()(te,Be,n,xe,je,ue==null?void 0:ue.className,{[`${j}-rtl`]:z==="rtl",[`${j}-picture-card-wrapper`]:C==="picture-card",[`${j}-picture-circle-wrapper`]:C==="picture-circle"}),Ln=Object.assign(Object.assign({},ue==null?void 0:ue.style),G);if(We==="drag"){const Z=V()(xe,j,`${j}-drag`,{[`${j}-drag-uploading`]:a.some(ae=>ae.status==="uploading"),[`${j}-drag-hover`]:v==="dragover",[`${j}-disabled`]:s,[`${j}-rtl`]:z==="rtl"});return ne(r.createElement("span",{className:At},r.createElement("div",{className:Z,style:Ln,onDrop:X,onDragOver:X,onDragLeave:X},r.createElement(it,Object.assign({},de,{ref:E,className:`${j}-btn`}),r.createElement("div",{className:`${j}-drag-container`},Te))),yt()))}const wt=V()(j,`${j}-select`,{[`${j}-disabled`]:s}),Ct=r.createElement("div",{className:wt,style:Te?void 0:{display:"none"}},r.createElement(it,Object.assign({},de,{ref:E})));return ne(C==="picture-card"||C==="picture-circle"?r.createElement("span",{className:At},yt(Ct,!!Te)):r.createElement("span",{className:At},Ct,yt()))};var an=r.forwardRef(Tt),Lt=function(i,l){var c={};for(var p in i)Object.prototype.hasOwnProperty.call(i,p)&&l.indexOf(p)<0&&(c[p]=i[p]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,p=Object.getOwnPropertySymbols(i);w{var{style:c,height:p,hasControlInside:w=!1}=i,h=Lt(i,["style","height","hasControlInside"]);return r.createElement(an,Object.assign({ref:l,hasControlInside:w},h,{type:"drag",style:Object.assign(Object.assign({},c),{height:p})}))});const sn=an;sn.Dragger=ur,sn.LIST_IGNORE=ft;var dr=sn}}]); diff --git a/starter/src/main/resources/templates/admin/559.7c2145e8.async.js b/starter/src/main/resources/templates/admin/559.f35bf79f.async.js similarity index 63% rename from starter/src/main/resources/templates/admin/559.7c2145e8.async.js rename to starter/src/main/resources/templates/admin/559.f35bf79f.async.js index 5b6f6374f4..342deb6ecd 100644 --- a/starter/src/main/resources/templates/admin/559.7c2145e8.async.js +++ b/starter/src/main/resources/templates/admin/559.f35bf79f.async.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[559],{99559:function(je,D,C){C.d(D,{Z:function(){return Se}});var G=C(93967),m=C.n(G),i=C(67294),v=C(53124),P=C(98423),j=e=>{const{prefixCls:t,className:s,style:n,size:a,shape:r}=e,c=m()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),l=m()({[`${t}-circle`]:r==="circle",[`${t}-square`]:r==="square",[`${t}-round`]:r==="round"}),o=i.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return i.createElement("span",{className:m()(t,c,l,s),style:Object.assign(Object.assign({},o),n)})},T=C(87107),Z=C(91945),W=C(45503);const X=new T.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),x=e=>({height:e,lineHeight:(0,T.bf)(e)}),f=e=>Object.assign({width:e},x(e)),J=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:X,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),I=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},x(e)),K=e=>{const{skeletonAvatarCls:t,gradientFromColor:s,controlHeight:n,controlHeightLG:a,controlHeightSM:r}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:s},f(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},f(a)),[`${t}${t}-sm`]:Object.assign({},f(r))}},Q=e=>{const{controlHeight:t,borderRadiusSM:s,skeletonInputCls:n,controlHeightLG:a,controlHeightSM:r,gradientFromColor:c,calc:l}=e;return{[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:s},I(t,l)),[`${n}-lg`]:Object.assign({},I(a,l)),[`${n}-sm`]:Object.assign({},I(r,l))}},L=e=>Object.assign({width:e},x(e)),U=e=>{const{skeletonImageCls:t,imageSizeBase:s,gradientFromColor:n,borderRadiusSM:a,calc:r}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:n,borderRadius:a},L(r(s).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},L(s)),{maxWidth:r(s).mul(4).equal(),maxHeight:r(s).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},z=(e,t,s)=>{const{skeletonButtonCls:n}=e;return{[`${s}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${s}${n}-round`]:{borderRadius:t}}},B=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},x(e)),Y=e=>{const{borderRadiusSM:t,skeletonButtonCls:s,controlHeight:n,controlHeightLG:a,controlHeightSM:r,gradientFromColor:c,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${s}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:l(n).mul(2).equal(),minWidth:l(n).mul(2).equal()},B(n,l))},z(e,n,s)),{[`${s}-lg`]:Object.assign({},B(a,l))}),z(e,a,`${s}-lg`)),{[`${s}-sm`]:Object.assign({},B(r,l))}),z(e,r,`${s}-sm`))},_=e=>{const{componentCls:t,skeletonAvatarCls:s,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:r,skeletonInputCls:c,skeletonImageCls:l,controlHeight:o,controlHeightLG:d,controlHeightSM:u,gradientFromColor:g,padding:$,marginSM:p,borderRadius:b,titleHeight:h,blockRadius:E,paragraphLiHeight:A,controlHeightXS:R,paragraphMarginTop:O}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:$,verticalAlign:"top",[`${s}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},f(o)),[`${s}-circle`]:{borderRadius:"50%"},[`${s}-lg`]:Object.assign({},f(d)),[`${s}-sm`]:Object.assign({},f(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${n}`]:{width:"100%",height:h,background:g,borderRadius:E,[`+ ${a}`]:{marginBlockStart:u}},[`${a}`]:{padding:0,"> li":{width:"100%",height:A,listStyle:"none",background:g,borderRadius:E,"+ li":{marginBlockStart:R}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[`${n}`]:{marginBlockStart:p,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Y(e)),K(e)),Q(e)),U(e)),[`${t}${t}-block`]:{width:"100%",[`${r}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[` +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[559],{99559:function(je,D,C){C.d(D,{Z:function(){return Se}});var G=C(93967),m=C.n(G),i=C(67294),v=C(53124),P=C(98423),j=e=>{const{prefixCls:t,className:s,style:n,size:a,shape:r}=e,c=m()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),l=m()({[`${t}-circle`]:r==="circle",[`${t}-square`]:r==="square",[`${t}-round`]:r==="round"}),o=i.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return i.createElement("span",{className:m()(t,c,l,s),style:Object.assign(Object.assign({},o),n)})},T=C(6731),Z=C(91945),W=C(45503);const X=new T.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),x=e=>({height:e,lineHeight:(0,T.bf)(e)}),f=e=>Object.assign({width:e},x(e)),J=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:X,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),I=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},x(e)),K=e=>{const{skeletonAvatarCls:t,gradientFromColor:s,controlHeight:n,controlHeightLG:a,controlHeightSM:r}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:s},f(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},f(a)),[`${t}${t}-sm`]:Object.assign({},f(r))}},Q=e=>{const{controlHeight:t,borderRadiusSM:s,skeletonInputCls:n,controlHeightLG:a,controlHeightSM:r,gradientFromColor:c,calc:l}=e;return{[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:s},I(t,l)),[`${n}-lg`]:Object.assign({},I(a,l)),[`${n}-sm`]:Object.assign({},I(r,l))}},L=e=>Object.assign({width:e},x(e)),U=e=>{const{skeletonImageCls:t,imageSizeBase:s,gradientFromColor:n,borderRadiusSM:a,calc:r}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:n,borderRadius:a},L(r(s).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},L(s)),{maxWidth:r(s).mul(4).equal(),maxHeight:r(s).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},z=(e,t,s)=>{const{skeletonButtonCls:n}=e;return{[`${s}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${s}${n}-round`]:{borderRadius:t}}},B=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},x(e)),Y=e=>{const{borderRadiusSM:t,skeletonButtonCls:s,controlHeight:n,controlHeightLG:a,controlHeightSM:r,gradientFromColor:c,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${s}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:l(n).mul(2).equal(),minWidth:l(n).mul(2).equal()},B(n,l))},z(e,n,s)),{[`${s}-lg`]:Object.assign({},B(a,l))}),z(e,a,`${s}-lg`)),{[`${s}-sm`]:Object.assign({},B(r,l))}),z(e,r,`${s}-sm`))},_=e=>{const{componentCls:t,skeletonAvatarCls:s,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:r,skeletonInputCls:c,skeletonImageCls:l,controlHeight:o,controlHeightLG:d,controlHeightSM:u,gradientFromColor:g,padding:$,marginSM:p,borderRadius:b,titleHeight:h,blockRadius:E,paragraphLiHeight:A,controlHeightXS:R,paragraphMarginTop:O}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:$,verticalAlign:"top",[`${s}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},f(o)),[`${s}-circle`]:{borderRadius:"50%"},[`${s}-lg`]:Object.assign({},f(d)),[`${s}-sm`]:Object.assign({},f(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${n}`]:{width:"100%",height:h,background:g,borderRadius:E,[`+ ${a}`]:{marginBlockStart:u}},[`${a}`]:{padding:0,"> li":{width:"100%",height:A,listStyle:"none",background:g,borderRadius:E,"+ li":{marginBlockStart:R}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[`${n}`]:{marginBlockStart:p,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Y(e)),K(e)),Q(e)),U(e)),[`${t}${t}-block`]:{width:"100%",[`${r}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[` ${n}, ${a} > li, ${s}, diff --git a/starter/src/main/resources/templates/admin/652.2816c860.async.js b/starter/src/main/resources/templates/admin/652.2816c860.async.js new file mode 100644 index 0000000000..d0db3af329 --- /dev/null +++ b/starter/src/main/resources/templates/admin/652.2816c860.async.js @@ -0,0 +1,27 @@ +(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[652],{7574:function(ye,pe,p){"use strict";p.d(pe,{f:function(){return xo}});var l=p(4942),ce=p(74165),ee=p(15861),ie=p(91),$=p(97685),s=p(1413),Q=p(10915),ae=p(21770),m=p(67294);function le(a){var e=typeof window=="undefined",t=(0,m.useState)(function(){return e?!1:window.matchMedia(a).matches}),n=(0,$.Z)(t,2),r=n[0],i=n[1];return(0,m.useLayoutEffect)(function(){if(!e){var o=window.matchMedia(a),c=function(v){return i(v.matches)};return o.addListener(c),function(){return o.removeListener(c)}}},[a]),r}var ve={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},be=function(){var e=void 0;if(typeof window=="undefined")return e;var t=Object.keys(ve).find(function(n){var r=ve[n].matchMedia;return!!window.matchMedia(r).matches});return e=t,e},z=function(){var e=le(ve.md.matchMedia),t=le(ve.lg.matchMedia),n=le(ve.xxl.matchMedia),r=le(ve.xl.matchMedia),i=le(ve.sm.matchMedia),o=le(ve.xs.matchMedia),c=(0,m.useState)(be()),d=(0,$.Z)(c,2),v=d[0],f=d[1];return(0,m.useEffect)(function(){if(n){f("xxl");return}if(r){f("xl");return}if(t){f("lg");return}if(e){f("md");return}if(i){f("sm");return}if(o){f("xs");return}f("md")},[e,t,n,r,i,o]),v},V=p(12044);function h(a,e){var t=typeof a.pageName=="string"?a.title:e;(0,m.useEffect)(function(){(0,V.j)()&&t&&(document.title=t)},[a.title,t])}var Z=p(1977),b=p(73177);function P(a){if((0,Z.n)((0,b.b)(),"5.6.0")<0)return a;var e={colorGroupTitle:"groupTitleColor",radiusItem:"itemBorderRadius",radiusSubMenuItem:"subMenuItemBorderRadius",colorItemText:"itemColor",colorItemTextHover:"itemHoverColor",colorItemTextHoverHorizontal:"horizontalItemHoverColor",colorItemTextSelected:"itemSelectedColor",colorItemTextSelectedHorizontal:"horizontalItemSelectedColor",colorItemTextDisabled:"itemDisabledColor",colorDangerItemText:"dangerItemColor",colorDangerItemTextHover:"dangerItemHoverColor",colorDangerItemTextSelected:"dangerItemSelectedColor",colorDangerItemBgActive:"dangerItemActiveBg",colorDangerItemBgSelected:"dangerItemSelectedBg",colorItemBg:"itemBg",colorItemBgHover:"itemHoverBg",colorSubItemBg:"subMenuItemBg",colorItemBgActive:"itemActiveBg",colorItemBgSelected:"itemSelectedBg",colorItemBgSelectedHorizontal:"horizontalItemSelectedBg",colorActiveBarWidth:"activeBarWidth",colorActiveBarHeight:"activeBarHeight",colorActiveBarBorderSize:"activeBarBorderWidth"},t=(0,s.Z)({},a);return Object.keys(e).forEach(function(n){t[n]!==void 0&&(t[e[n]]=t[n],delete t[n])}),t}var te=p(90743);function O(a,e){return e>>>a|e<<32-a}function j(a,e,t){return a&e^~a&t}function _(a,e,t){return a&e^a&t^e&t}function X(a){return O(2,a)^O(13,a)^O(22,a)}function J(a){return O(6,a)^O(11,a)^O(25,a)}function K(a){return O(7,a)^O(18,a)^a>>>3}function U(a){return O(17,a)^O(19,a)^a>>>10}function me(a,e){return a[e&15]+=U(a[e+14&15])+a[e+9&15]+K(a[e+1&15])}var de=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W,re,A,Se="0123456789abcdef";function je(a,e){var t=(a&65535)+(e&65535),n=(a>>16)+(e>>16)+(t>>16);return n<<16|t&65535}function Oe(){W=new Array(8),re=new Array(2),A=new Array(64),re[0]=re[1]=0,W[0]=1779033703,W[1]=3144134277,W[2]=1013904242,W[3]=2773480762,W[4]=1359893119,W[5]=2600822924,W[6]=528734635,W[7]=1541459225}function Re(){var a,e,t,n,r,i,o,c,d,v,f=new Array(16);a=W[0],e=W[1],t=W[2],n=W[3],r=W[4],i=W[5],o=W[6],c=W[7];for(var C=0;C<16;C++)f[C]=A[(C<<2)+3]|A[(C<<2)+2]<<8|A[(C<<2)+1]<<16|A[C<<2]<<24;for(var x=0;x<64;x++)d=c+J(r)+j(r,i,o)+de[x],x<16?d+=f[x]:d+=me(f,x),v=X(a)+_(a,e,t),c=o,o=i,i=r,r=je(n,d),n=t,t=e,e=a,a=je(d,v);W[0]+=a,W[1]+=e,W[2]+=t,W[3]+=n,W[4]+=r,W[5]+=i,W[6]+=o,W[7]+=c}function $e(a,e){var t,n,r=0;n=re[0]>>3&63;var i=e&63;for((re[0]+=e<<3)>29,t=0;t+63>3&63;if(A[a++]=128,a<=56)for(var e=a;e<56;e++)A[e]=0;else{for(var t=a;t<64;t++)A[t]=0;Re();for(var n=0;n<56;n++)A[n]=0}A[56]=re[1]>>>24&255,A[57]=re[1]>>>16&255,A[58]=re[1]>>>8&255,A[59]=re[1]&255,A[60]=re[0]>>>24&255,A[61]=re[0]>>>16&255,A[62]=re[0]>>>8&255,A[63]=re[0]&255,Re()}function ze(){for(var a=0,e=new Array(32),t=0;t<8;t++)e[a++]=W[t]>>>24&255,e[a++]=W[t]>>>16&255,e[a++]=W[t]>>>8&255,e[a++]=W[t]&255;return e}function Ge(){for(var a=new String,e=0;e<8;e++)for(var t=28;t>=0;t-=4)a+=Se.charAt(W[e]>>>t&15);return a}function ft(a){return Oe(),$e(a,a.length),De(),Ge()}var Rt=ft;function tt(a){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tt(a)}var Dn=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function On(a,e){return Wn(a)||zn(a,e)||wt(a,e)||$n()}function $n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zn(a,e){var t=a==null?null:typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(t!=null){var n=[],r=!0,i=!1,o,c;try{for(t=t.call(a);!(r=(o=t.next()).done)&&(n.push(o.value),!(e&&n.length===e));r=!0);}catch(d){i=!0,c=d}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw c}}return n}}function Wn(a){if(Array.isArray(a))return a}function Fn(a,e){var t=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!t){if(Array.isArray(a)||(t=wt(a))||e&&a&&typeof a.length=="number"){t&&(a=t);var n=0,r=function(){};return{s:r,n:function(){return n>=a.length?{done:!0}:{done:!1,value:a[n++]}},e:function(v){throw v},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,c;return{s:function(){t=t.call(a)},n:function(){var v=t.next();return i=v.done,v},e:function(v){o=!0,c=v},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw c}}}}function Kn(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function Kt(a,e){for(var t=0;ta.length)&&(e=a.length);for(var t=0,n=new Array(e);t=0)&&Object.prototype.propertyIsEnumerable.call(a,n)&&(t[n]=a[n])}return t}function ta(a,e){if(a==null)return{};var t={},n=Object.keys(a),r,i;for(i=0;i=0)&&(t[r]=a[r]);return t}function Vt(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function he(a){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return e.endsWith("/*")?e.replace("/*","/"):(e||t).startsWith("/")||Pt(e)?e:"/".concat(t,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},oa=function(e,t){var n=e.menu,r=n===void 0?{}:n,i=e.indexRoute,o=e.path,c=o===void 0?"":o,d=e.children||[],v=r.name,f=v===void 0?e.name:v,C=r.icon,x=C===void 0?e.icon:C,S=r.hideChildren,L=S===void 0?e.hideChildren:S,w=r.flatMenu,I=w===void 0?e.flatMenu:w,F=i&&Object.keys(i).join(",")!=="redirect"?[he({path:c,menu:r},i)].concat(d||[]):d,E=he({},e);if(f&&(E.name=f),x&&(E.icon=x),F&&F.length){if(L)return delete E.children,E;var D=jt(he(he({},t),{},{data:F}),e);if(I)return D;delete E[Be]}return E},Ve=function(e){return Array.isArray(e)&&e.length>0};function jt(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},t=a.data,n=a.formatMessage,r=a.parentName,i=a.locale;return!t||!Array.isArray(t)?[]:t.filter(function(o){return o?Ve(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var c,d;return!(o==null||(c=o.menu)===null||c===void 0)&&c.name||o!=null&&o.flatMenu||!(o==null||(d=o.menu)===null||d===void 0)&&d.flatMenu?!0:o.menu!==!1}).map(function(o){var c=he(he({},o),{},{path:o.path||o.originPath});return!c.children&&c[Be]&&(c.children=c[Be],delete c[Be]),c.unaccessible&&delete c.name,c.path==="*"&&(c.path="."),c.path==="/*"&&(c.path="."),!c.path&&c.originPath&&(c.path=c.originPath),c}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},c=o.children||o[Be]||[],d=kt(o.path,e?e.path:"/"),v=o.name,f=ra(o,r||"menu"),C=f!==!1&&i!==!1&&n&&f?n({id:f,defaultMessage:v}):v,x=e.pro_layout_parentKeys,S=x===void 0?[]:x,L=e.children,w=e.icon,I=e.flatMenu,F=e.indexRoute,E=e.routes,D=ea(e,Dn),T=new Set([].concat(Gt(S),Gt(o.parentKeys||[])));e.key&&T.add(e.key);var N=he(he(he({},D),{},{menu:void 0},o),{},{path:d,locale:f,key:o.key||aa(he(he({},o),{},{path:d})),pro_layout_parentKeys:Array.from(T).filter(function(R){return R&&R!=="/"})});if(C?N.name=C:delete N.name,N.menu===void 0&&delete N.menu,Ve(c)){var y=jt(he(he({},a),{},{data:c,parentName:f||""}),N);Ve(y)&&(N.children=y)}return oa(N,a)}).flat(1)}var ia=function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(t){return t&&(t.name||Ve(t.children))&&!t.hideInMenu&&!t.redirect}).map(function(t){var n=he({},t),r=n.children||t[Be]||[];if(delete n[Be],Ve(r)&&!n.hideChildrenInMenu&&r.some(function(o){return o&&!!o.name})){var i=a(r);if(i.length)return he(he({},n),{},{children:i})}return he({},t)}).filter(function(t){return t})},la=function(a){Gn(t,a);var e=Vn(t);function t(){return Kn(this,t),e.apply(this,arguments)}return Un(t,[{key:"get",value:function(r){var i;try{var o=Fn(this.entries()),c;try{for(o.s();!(c=o.n()).done;){var d=On(c.value,2),v=d[0],f=d[1],C=rt(v);if(!Pt(v)&&(0,te.Bo)(C,[]).test(r)){i=f;break}}}catch(x){o.e(x)}finally{o.f()}}catch(x){i=void 0}return i}}]),t}(Tt(Map)),ua=function(e){var t=new la,n=function r(i,o){i.forEach(function(c){var d=c.children||c[Be]||[];Ve(d)&&r(d,c);var v=kt(c.path,o?o.path:"/");t.set(rt(v),c)})};return n(e),t},ca=function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(t){var n=t.children||t[Be];if(Ve(n)){var r=a(n);if(r.length)return he({},t)}var i=he({},t);return delete i[Be],delete i.children,i}).filter(function(t){return t})},da=function(e,t,n,r){var i=jt({data:e,formatMessage:n,locale:t}),o=r?ca(i):ia(i),c=ua(i);return{breadcrumb:c,menuData:o}},sa=da;function Xt(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function ot(a){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],t={};return e.forEach(function(n){var r=ot({},n);if(!(!r||!r.key)){!r.children&&r[Be]&&(r.children=r[Be],delete r[Be]);var i=r.children||[];t[rt(r.path||r.key||"/")]=ot({},r),t[r.key||r.path||"/"]=ot({},r),i&&(t=ot(ot({},t),a(i)))}}),t},ma=fa,pa=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e.filter(function(r){if(r==="/"&&t==="/")return!0;if(r!=="/"&&r!=="/*"&&r&&!Pt(r)){var i=rt(r);try{if(n&&(0,te.Bo)("".concat(i)).test(t)||(0,te.Bo)("".concat(i),[]).test(t)||(0,te.Bo)("".concat(i,"/(.*)")).test(t))return!0}catch(o){}}return!1}).sort(function(r,i){return r===t?10:i===t?-10:r.substr(1).split("/").length-i.substr(1).split("/").length})},ha=function(e,t,n,r){var i=ma(t),o=Object.keys(i),c=pa(o,e||"/",r);return!c||c.length<1?[]:(n||(c=[c[c.length-1]]),c.map(function(d){var v=i[d]||{pro_layout_parentKeys:"",key:""},f=new Map,C=(v.pro_layout_parentKeys||[]).map(function(x){return f.has(x)?null:(f.set(x,!0),i[x])}).filter(function(x){return x});return v.key&&C.push(v),C}).flat(1))},ga=ha,He=p(28459),ke=p(21612),ya=p(93967),q=p.n(ya),Yt=p(97435),xa=p(80334),Qt=p(81758),Ca=p(78164),u=p(85893),ba=function(e){var t=(0,m.useContext)(Q.L_),n=t.hashId,r=e.style,i=e.prefixCls,o=e.children,c=e.hasPageContainer,d=c===void 0?0:c,v=q()("".concat(i,"-content"),n,(0,l.Z)((0,l.Z)({},"".concat(i,"-has-header"),e.hasHeader),"".concat(i,"-content-has-page-container"),d>0)),f=e.ErrorBoundary||Ca.S;return e.ErrorBoundary===!1?(0,u.jsx)(ke.Z.Content,{className:v,style:r,children:o}):(0,u.jsx)(f,{children:(0,u.jsx)(ke.Z.Content,{className:v,style:r,children:o})})},Sa=function(){return(0,u.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[(0,u.jsxs)("defs",{children:[(0,u.jsxs)("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[(0,u.jsx)("stop",{stopColor:"#4285EB",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),(0,u.jsxs)("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[(0,u.jsx)("stop",{stopColor:"#29CDFF",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),(0,u.jsx)("stop",{stopColor:"#0A60FF",offset:"100%"})]}),(0,u.jsxs)("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[(0,u.jsx)("stop",{stopColor:"#FA816E",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),(0,u.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]}),(0,u.jsxs)("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[(0,u.jsx)("stop",{stopColor:"#FA8E7D",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),(0,u.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),(0,u.jsx)("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:(0,u.jsx)("g",{transform:"translate(-20.000000, -20.000000)",children:(0,u.jsx)("g",{transform:"translate(20.000000, 20.000000)",children:(0,u.jsxs)("g",{children:[(0,u.jsxs)("g",{fillRule:"nonzero",children:[(0,u.jsxs)("g",{children:[(0,u.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),(0,u.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),(0,u.jsx)("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),(0,u.jsx)("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},Ma=p(87909),Jt=function a(e){return(e||[]).reduce(function(t,n){if(n.key&&t.push(n.key),n.children||n.routes){var r=t.concat(a(n.children||n.routes)||[]);return r}return t},[])},qt={techBlue:"#1677FF",daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function _o(a){return a&&qt[a]?qt[a]:a||""}function pt(a){return a.map(function(e){var t=e.children||[],n=(0,s.Z)({},e);if(!n.children&&n.routes&&(n.children=n.routes),!n.name||n.hideInMenu)return null;if(n&&n!==null&&n!==void 0&&n.children){if(!n.hideChildrenInMenu&&t.some(function(r){return r&&r.name&&!r.hideInMenu}))return(0,s.Z)((0,s.Z)({},e),{},{children:pt(t)});delete n.children}return delete n.routes,n}).filter(function(e){return e})}var ht=p(87462),Za={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},Ia=Za,Ra=p(65555),Ta=function(e,t){return m.createElement(Ra.Z,(0,ht.Z)({},e,{ref:t,icon:Ia}))},wa=m.forwardRef(Ta),Ba=wa,Pa=p(55241),ja=function(){return(0,u.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},La=function a(e){var t=e.appList,n=e.baseClassName,r=e.hashId,i=e.itemClick;return(0,u.jsx)("div",{className:"".concat(n,"-content ").concat(r).trim(),children:(0,u.jsx)("ul",{className:"".concat(n,"-content-list ").concat(r).trim(),children:t==null?void 0:t.map(function(o,c){var d;return o!=null&&(d=o.children)!==null&&d!==void 0&&d.length?(0,u.jsxs)("div",{className:"".concat(n,"-content-list-item-group ").concat(r).trim(),children:[(0,u.jsx)("div",{className:"".concat(n,"-content-list-item-group-title ").concat(r).trim(),children:o.title}),(0,u.jsx)(a,{hashId:r,itemClick:i,appList:o==null?void 0:o.children,baseClassName:n})]},c):(0,u.jsx)("li",{className:"".concat(n,"-content-list-item ").concat(r).trim(),onClick:function(f){f.stopPropagation(),i==null||i(o)},children:(0,u.jsxs)("a",{href:i?void 0:o.url,target:o.target,rel:"noreferrer",children:[Et(o.icon),(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{children:o.title}),o.desc?(0,u.jsx)("span",{children:o.desc}):null]})]})},c)})})})},Lt=function(e){if(!e||!e.startsWith("http"))return!1;try{var t=new URL(e);return!!t}catch(n){return!1}},Ea=function(e,t){if(e&&typeof e=="string"&&Lt(e))return(0,u.jsx)("img",{src:e,alt:"logo"});if(typeof e=="function")return e();if(e&&typeof e=="string")return(0,u.jsx)("div",{id:"avatarLogo",children:e});if(!e&&t&&typeof t=="string"){var n=t.substring(0,1);return(0,u.jsx)("div",{id:"avatarLogo",children:n})}return e},Na=function a(e){var t=e.appList,n=e.baseClassName,r=e.hashId,i=e.itemClick;return(0,u.jsx)("div",{className:"".concat(n,"-content ").concat(r).trim(),children:(0,u.jsx)("ul",{className:"".concat(n,"-content-list ").concat(r).trim(),children:t==null?void 0:t.map(function(o,c){var d;return o!=null&&(d=o.children)!==null&&d!==void 0&&d.length?(0,u.jsxs)("div",{className:"".concat(n,"-content-list-item-group ").concat(r).trim(),children:[(0,u.jsx)("div",{className:"".concat(n,"-content-list-item-group-title ").concat(r).trim(),children:o.title}),(0,u.jsx)(a,{hashId:r,itemClick:i,appList:o==null?void 0:o.children,baseClassName:n})]},c):(0,u.jsx)("li",{className:"".concat(n,"-content-list-item ").concat(r).trim(),onClick:function(f){f.stopPropagation(),i==null||i(o)},children:(0,u.jsxs)("a",{href:i?"javascript:;":o.url,target:o.target,rel:"noreferrer",children:[Ea(o.icon,o.title),(0,u.jsx)("div",{children:(0,u.jsx)("div",{children:o.title})})]})},c)})})})},Te=p(98082),Ha=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},"* div":Te.Wf===null||Te.Wf===void 0?void 0:(0,Te.Wf)(e),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},_a=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:e.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:e.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},Aa=function(e){var t,n,r,i,o;return(0,l.Z)({},e.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(t=e.layout)===null||t===void 0?void 0:t.colorTextAppListIcon,borderRadius:e.borderRadius,"&:hover":{color:(n=e.layout)===null||n===void 0?void 0:n.colorTextAppListIconHover,backgroundColor:(r=e.layout)===null||r===void 0?void 0:r.colorBgAppListIconHover},"&-active":{color:(i=e.layout)===null||i===void 0?void 0:i.colorTextAppListIconHover,backgroundColor:(o=e.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":(0,l.Z)({},"".concat(e.antCls,"-popover-arrow"),{display:"none"}),"&-simple":_a(e),"&-default":Ha(e)})};function Da(a){return(0,Te.Xj)("AppsLogoComponents",function(e){var t=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(a)});return[Aa(t)]})}var Et=function(e){return typeof e=="string"?(0,u.jsx)("img",{width:"auto",height:22,src:e,alt:"logo"}):typeof e=="function"?e():e},Nt=function(e){var t,n=e.appList,r=e.appListRender,i=e.prefixCls,o=i===void 0?"ant-pro":i,c=e.onItemClick,d=m.useRef(null),v=m.useRef(null),f="".concat(o,"-layout-apps"),C=Da(f),x=C.wrapSSR,S=C.hashId,L=(0,m.useState)(!1),w=(0,$.Z)(L,2),I=w[0],F=w[1],E=function(R){c==null||c(R,v)},D=(0,m.useMemo)(function(){var y=n==null?void 0:n.some(function(R){return!(R!=null&&R.desc)});return y?(0,u.jsx)(Na,{hashId:S,appList:n,itemClick:c?E:void 0,baseClassName:"".concat(f,"-simple")}):(0,u.jsx)(La,{hashId:S,appList:n,itemClick:c?E:void 0,baseClassName:"".concat(f,"-default")})},[n,f,S]);if(!(e!=null&&(t=e.appList)!==null&&t!==void 0&&t.length))return null;var T=r?r(e==null?void 0:e.appList,D):D,N=(0,b.X)(void 0,function(y){return F(y)});return x((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{ref:d,onClick:function(R){R.stopPropagation(),R.preventDefault()}}),(0,u.jsx)(Pa.Z,(0,s.Z)((0,s.Z)({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},N),{},{overlayClassName:"".concat(f,"-popover ").concat(S).trim(),content:T,getPopupContainer:function(){return d.current||document.body},children:(0,u.jsx)("span",{ref:v,onClick:function(R){R.stopPropagation()},className:q()("".concat(f,"-icon"),S,(0,l.Z)({},"".concat(f,"-icon-active"),I)),children:(0,u.jsx)(ja,{})})}))]}))},en=p(7134),Oa=p(42075),tn=p(68508);function $a(){return(0,u.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var za=function(e){var t,n,r;return(0,l.Z)({},e.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorTextCollapsedButton,backgroundColor:(n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(r=e.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function Wa(a){return(0,Te.Xj)("SiderMenuCollapsedIcon",function(e){var t=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(a)});return[za(t)]})}var Fa=["isMobile","collapsed"],Ka=function(e){var t=e.isMobile,n=e.collapsed,r=(0,ie.Z)(e,Fa),i=Wa(e.className),o=i.wrapSSR,c=i.hashId;return t&&n?null:o((0,u.jsx)("div",(0,s.Z)((0,s.Z)({},r),{},{className:q()(e.className,c,(0,l.Z)((0,l.Z)({},"".concat(e.className,"-collapsed"),n),"".concat(e.className,"-is-mobile"),t)),children:(0,u.jsx)($a,{})})))},gt=p(74902),Ua=p(43144),Ga=p(15671),Va=p(42550),ka=p(2446),yt=p(14004),Xa=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],nn=m.forwardRef(function(a,e){var t=a.className,n=a.component,r=a.viewBox,i=a.spin,o=a.rotate,c=a.tabIndex,d=a.onClick,v=a.children,f=(0,ie.Z)(a,Xa),C=m.useRef(),x=(0,Va.x1)(C,e);(0,yt.Kp)(!!(n||v),"Should have `component` prop or `children`."),(0,yt.C3)(C);var S=m.useContext(ka.Z),L=S.prefixCls,w=L===void 0?"anticon":L,I=S.rootClassName,F=q()(I,w,t),E=q()((0,l.Z)({},"".concat(w,"-spin"),!!i)),D=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,T=(0,s.Z)((0,s.Z)({},yt.vD),{},{className:E,style:D,viewBox:r});r||delete T.viewBox;var N=function(){return n?m.createElement(n,T,v):v?((0,yt.Kp)(!!r||m.Children.count(v)===1&&m.isValidElement(v)&&m.Children.only(v).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),m.createElement("svg",(0,ht.Z)({},T,{viewBox:r}),v)):null},y=c;return y===void 0&&d&&(y=-1),m.createElement("span",(0,ht.Z)({role:"img"},f,{ref:x,tabIndex:y,onClick:d,className:F}),N())});nn.displayName="AntdIcon";var Ya=nn,Qa=["type","children"],an=new Set;function Ja(a){return!!(typeof a=="string"&&a.length&&!an.has(a))}function xt(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=a[e];if(Ja(t)){var n=document.createElement("script");n.setAttribute("src",t),n.setAttribute("data-namespace",t),a.length>e+1&&(n.onload=function(){xt(a,e+1)},n.onerror=function(){xt(a,e+1)}),an.add(t),document.body.appendChild(n)}}function rn(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=a.scriptUrl,t=a.extraCommonProps,n=t===void 0?{}:t;e&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(e)?xt(e.reverse()):xt([e]));var r=m.forwardRef(function(i,o){var c=i.type,d=i.children,v=(0,ie.Z)(i,Qa),f=null;return i.type&&(f=m.createElement("use",{xlinkHref:"#".concat(c)})),d&&(f=d),m.createElement(Ya,(0,ht.Z)({},n,v,{ref:o}),f)});return r.displayName="Iconfont",r}function qa(a){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(a)}var er=p(83062),tr=p(99559),on={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},nr=function(e,t){var n,r,i=t.includes("horizontal")?(n=e.layout)===null||n===void 0?void 0:n.header:(r=e.layout)===null||r===void 0?void 0:r.sider;return(0,s.Z)((0,s.Z)((0,l.Z)({},"".concat(e.componentCls),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({background:"transparent",color:i==null?void 0:i.colorTextMenu,border:"none"},"".concat(e.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(e.componentCls,"-submenu-has-icon"),(0,l.Z)({},"> ".concat(e.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(e.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(e.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(e.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(e.antCls,`-menu-item, + `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,`-menu-item, + `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu > ").concat(e.antCls,`-menu-submenu-title, + `).concat(e.antCls,"-menu-submenu > ").concat(e.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,`-menu-submenu-title, + `).concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,"-menu-submenu-title"),{backgroundColor:i==null?void 0:i.colorBgMenuItemSelected,borderRadius:e.borderRadiusLG}),"".concat(e.componentCls,"-group"),(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({display:"flex",flexDirection:"row",alignItems:"center",gap:e.marginXS},"".concat(e.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",(0,l.Z)((0,l.Z)({minWidth:40,height:40},"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(e.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(e.componentCls,"-group-item-title"),{gap:e.marginXS,height:18,overflow:"hidden"}),"&".concat(e.componentCls,"-item-collapsed-show-title"),(0,l.Z)({lineHeight:"16px",gap:0},"&".concat(e.componentCls,"-item-title-collapsed"),(0,l.Z)((0,l.Z)({display:"flex"},"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(e.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{fontSize:12,color:e.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:e.colorTextSecondary,fontSize:12,lineHeight:20})),t.includes("horizontal")?{}:(0,l.Z)({},"".concat(e.antCls,"-menu-submenu").concat(e.antCls,"-menu-submenu-popup"),(0,l.Z)({},"".concat(e.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function ar(a,e){return(0,Te.Xj)("ProLayoutBaseMenu"+e,function(t){var n=(0,s.Z)((0,s.Z)({},t),{},{componentCls:".".concat(a)});return[nr(n,e||"inline")]})}var ln=function(e){var t=(0,m.useState)(e.collapsed),n=(0,$.Z)(t,2),r=n[0],i=n[1],o=(0,m.useState)(!1),c=(0,$.Z)(o,2),d=c[0],v=c[1];return(0,m.useEffect)(function(){v(!1),setTimeout(function(){i(e.collapsed)},400)},[e.collapsed]),e.disable?e.children:(0,u.jsx)(er.Z,{title:e.title,open:r&&e.collapsed?d:!1,placement:"right",onOpenChange:v,children:e.children})},un=rn({scriptUrl:on.iconfontUrl}),cn=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",n=arguments.length>2?arguments[2]:void 0;if(typeof e=="string"&&e!==""){if(Lt(e)||qa(e))return(0,u.jsx)("img",{width:16,src:e,alt:"icon",className:n},e);if(e.startsWith(t))return(0,u.jsx)(un,{type:e})}return e},dn=function(e){if(e&&typeof e=="string"){var t=e.substring(0,1).toUpperCase();return t}return null},rr=(0,Ua.Z)(function a(e){var t=this;(0,Ga.Z)(this,a),(0,l.Z)(this,"props",void 0),(0,l.Z)(this,"getNavMenuItems",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return n.map(function(o){return t.getSubMenuOrItem(o,r,i)}).filter(function(o){return o}).flat(1)}),(0,l.Z)(this,"getSubMenuOrItem",function(n,r,i){var o=t.props,c=o.subMenuItemRender,d=o.baseClassName,v=o.prefixCls,f=o.collapsed,C=o.menu,x=o.iconPrefixes,S=o.layout,L=(C==null?void 0:C.type)==="group"&&S!=="top",w=t.props.token,I=t.getIntlName(n),F=(n==null?void 0:n.children)||(n==null?void 0:n.routes),E=L&&r===0?"group":void 0;if(Array.isArray(F)&&F.length>0){var D,T,N,y,R,k=r===0||L&&r===1,H=cn(n.icon,x,"".concat(d,"-icon ").concat((D=t.props)===null||D===void 0?void 0:D.hashId)),B=f&&k?dn(I):null,ne=(0,u.jsxs)("div",{className:q()("".concat(d,"-item-title"),(T=t.props)===null||T===void 0?void 0:T.hashId,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(d,"-item-title-collapsed"),f),"".concat(d,"-item-title-collapsed-level-").concat(i),f),"".concat(d,"-group-item-title"),E==="group"),"".concat(d,"-item-collapsed-show-title"),(C==null?void 0:C.collapsedShowTitle)&&f)),children:[E==="group"&&f?null:k&&H?(0,u.jsx)("span",{className:"".concat(d,"-item-icon ").concat((N=t.props)===null||N===void 0?void 0:N.hashId).trim(),children:H}):B,(0,u.jsx)("span",{className:q()("".concat(d,"-item-text"),(y=t.props)===null||y===void 0?void 0:y.hashId,(0,l.Z)({},"".concat(d,"-item-text-has-icon"),E!=="group"&&k&&(H||B))),children:I})]}),se=c?c((0,s.Z)((0,s.Z)({},n),{},{isUrl:!1}),ne,t.props):ne;if(L&&r===0&&t.props.collapsed&&!C.collapsedShowGroupTitle)return t.getNavMenuItems(F,r+1,r);var g=t.getNavMenuItems(F,r+1,L&&r===0&&t.props.collapsed?r:r+1);return[{type:E,key:n.key||n.path,label:se,onClick:L?void 0:n.onTitleClick,children:g,className:q()((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(d,"-group"),E==="group"),"".concat(d,"-submenu"),E!=="group"),"".concat(d,"-submenu-has-icon"),E!=="group"&&k&&H))},L&&r===0?{type:"divider",prefixCls:v,className:"".concat(d,"-divider"),key:(n.key||n.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:t.props.collapsed?"4px":"6px 16px",marginBlockStart:t.props.collapsed?4:8,borderColor:w==null||(R=w.layout)===null||R===void 0||(R=R.sider)===null||R===void 0?void 0:R.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(d,"-menu-item"),disabled:n.disabled,key:n.key||n.path,onClick:n.onTitleClick,label:t.getMenuItemPath(n,r,i)}}),(0,l.Z)(this,"getIntlName",function(n){var r=n.name,i=n.locale,o=t.props,c=o.menu,d=o.formatMessage;return i&&(c==null?void 0:c.locale)!==!1?d==null?void 0:d({id:i,defaultMessage:r}):r}),(0,l.Z)(this,"getMenuItemPath",function(n,r,i){var o,c,d,v,f=t.conversionPath(n.path||"/"),C=t.props,x=C.location,S=x===void 0?{pathname:"/"}:x,L=C.isMobile,w=C.onCollapse,I=C.menuItemRender,F=C.iconPrefixes,E=t.getIntlName(n),D=t.props,T=D.baseClassName,N=D.menu,y=D.collapsed,R=(N==null?void 0:N.type)==="group",k=r===0||R&&r===1,H=k?cn(n.icon,F,"".concat(T,"-icon ").concat((o=t.props)===null||o===void 0?void 0:o.hashId)):null,B=y&&k?dn(E):null,ne=(0,u.jsxs)("div",{className:q()("".concat(T,"-item-title"),(c=t.props)===null||c===void 0?void 0:c.hashId,(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(T,"-item-title-collapsed"),y),"".concat(T,"-item-title-collapsed-level-").concat(i),y),"".concat(T,"-item-collapsed-show-title"),(N==null?void 0:N.collapsedShowTitle)&&y)),children:[(0,u.jsx)("span",{className:"".concat(T,"-item-icon ").concat((d=t.props)===null||d===void 0?void 0:d.hashId).trim(),style:{display:B===null&&!H?"none":""},children:H||(0,u.jsx)("span",{className:"anticon",children:B})}),(0,u.jsx)("span",{className:q()("".concat(T,"-item-text"),(v=t.props)===null||v===void 0?void 0:v.hashId,(0,l.Z)({},"".concat(T,"-item-text-has-icon"),k&&(H||B))),children:E})]},f),se=Lt(f);if(se){var g,fe,M;ne=(0,u.jsxs)("span",{onClick:function(){var ge,ue;(ge=window)===null||ge===void 0||(ue=ge.open)===null||ue===void 0||ue.call(ge,f,"_blank")},className:q()("".concat(T,"-item-title"),(g=t.props)===null||g===void 0?void 0:g.hashId,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(T,"-item-title-collapsed"),y),"".concat(T,"-item-title-collapsed-level-").concat(i),y),"".concat(T,"-item-link"),!0),"".concat(T,"-item-collapsed-show-title"),(N==null?void 0:N.collapsedShowTitle)&&y)),children:[(0,u.jsx)("span",{className:"".concat(T,"-item-icon ").concat((fe=t.props)===null||fe===void 0?void 0:fe.hashId).trim(),style:{display:B===null&&!H?"none":""},children:H||(0,u.jsx)("span",{className:"anticon",children:B})}),(0,u.jsx)("span",{className:q()("".concat(T,"-item-text"),(M=t.props)===null||M===void 0?void 0:M.hashId,(0,l.Z)({},"".concat(T,"-item-text-has-icon"),k&&(H||B))),children:E})]},f)}if(I){var Y=(0,s.Z)((0,s.Z)({},n),{},{isUrl:se,itemPath:f,isMobile:L,replace:f===S.pathname,onClick:function(){return w&&w(!0)},children:void 0});return r===0?(0,u.jsx)(ln,{collapsed:y,title:E,disable:n.disabledTooltip,children:I(Y,ne,t.props)}):I(Y,ne,t.props)}return r===0?(0,u.jsx)(ln,{collapsed:y,title:E,disable:n.disabledTooltip,children:ne}):ne}),(0,l.Z)(this,"conversionPath",function(n){return n&&n.indexOf("http")===0?n:"/".concat(n||"").replace(/\/+/g,"/")}),this.props=e}),or=function(e,t){var n=t.layout,r=t.collapsed,i={};return e&&!r&&["side","mix"].includes(n||"mix")&&(i={openKeys:e}),i},sn=function(e){var t=e.mode,n=e.className,r=e.handleOpenChange,i=e.style,o=e.menuData,c=e.prefixCls,d=e.menu,v=e.matchMenuKeys,f=e.iconfontUrl,C=e.selectedKeys,x=e.onSelect,S=e.menuRenderType,L=e.openKeys,w=(0,m.useContext)(Q.L_),I=w.dark,F=w.token,E="".concat(c,"-base-menu-").concat(t),D=(0,m.useRef)([]),T=(0,ae.Z)(d==null?void 0:d.defaultOpenAll),N=(0,$.Z)(T,2),y=N[0],R=N[1],k=(0,ae.Z)(function(){return d!=null&&d.defaultOpenAll?Jt(o)||[]:L===!1?!1:[]},{value:L===!1?void 0:L,onChange:r}),H=(0,$.Z)(k,2),B=H[0],ne=H[1],se=(0,ae.Z)([],{value:C,onChange:x?function(Ce){x&&Ce&&x(Ce)}:void 0}),g=(0,$.Z)(se,2),fe=g[0],M=g[1];(0,m.useEffect)(function(){d!=null&&d.defaultOpenAll||L===!1||v&&(ne(v),M(v))},[v.join("-")]),(0,m.useEffect)(function(){f&&(un=rn({scriptUrl:f}))},[f]),(0,m.useEffect)(function(){if(v.join("-")!==(fe||[]).join("-")&&M(v),!y&&L!==!1&&v.join("-")!==(B||[]).join("-")){var Ce=v;(d==null?void 0:d.autoClose)===!1&&(Ce=Array.from(new Set([].concat((0,gt.Z)(v),(0,gt.Z)(B||[]))))),ne(Ce)}else d!=null&&d.ignoreFlatMenu&&y?ne(Jt(o)):R(!1)},[v.join("-")]);var Y=(0,m.useMemo)(function(){return or(B,e)},[B&&B.join(","),e.layout,e.collapsed]),oe=ar(E,t),ge=oe.wrapSSR,ue=oe.hashId,Me=(0,m.useMemo)(function(){return new rr((0,s.Z)((0,s.Z)({},e),{},{token:F,menuRenderType:S,baseClassName:E,hashId:ue}))},[e,F,S,E,ue]);if(d!=null&&d.loading)return(0,u.jsx)("div",{style:t!=null&&t.includes("inline")?{padding:24}:{marginBlockStart:16},children:(0,u.jsx)(tr.Z,{active:!0,title:!1,paragraph:{rows:t!=null&&t.includes("inline")?6:1}})});e.openKeys===!1&&!e.handleOpenChange&&(D.current=v);var xe=e.postMenuData?e.postMenuData(o):o;return xe&&(xe==null?void 0:xe.length)<1?null:ge((0,m.createElement)(tn.Z,(0,s.Z)((0,s.Z)({},Y),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:t,inlineIndent:16,defaultOpenKeys:D.current,theme:I?"dark":"light",selectedKeys:fe,style:(0,s.Z)({backgroundColor:"transparent",border:"none"},i),className:q()(n,ue,E,(0,l.Z)((0,l.Z)({},"".concat(E,"-horizontal"),t==="horizontal"),"".concat(E,"-collapsed"),e.collapsed)),items:Me.getNavMenuItems(xe,0,0),onOpenChange:function(Le){e.collapsed||ne(Le)}},e.menuProps)))};function ir(a,e){var t=e.stylish,n=e.proLayoutCollapsedWidth;return(0,Te.Xj)("ProLayoutSiderMenuStylish",function(r){var i=(0,s.Z)((0,s.Z)({},r),{},{componentCls:".".concat(a),proLayoutCollapsedWidth:n});return t?[(0,l.Z)({},"div".concat(r.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),t==null?void 0:t(i)))]:[]})}var lr=["title","render"],ur=m.memo(function(a){return(0,u.jsx)(u.Fragment,{children:a.children})}),cr=ke.Z.Sider,vn=ke.Z._InternalSiderContext,dr=vn===void 0?{Provider:ur}:vn,Ht=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",n=e.logo,r=e.title,i=e.layout,o=e[t];if(o===!1)return null;var c=Et(n),d=(0,u.jsx)("h1",{children:r!=null?r:"Ant Design Pro"});return o?o(c,e.collapsed?null:d,e):e.isMobile?null:i==="mix"&&t==="menuHeaderRender"?!1:e.collapsed?(0,u.jsx)("a",{children:c},"title"):(0,u.jsxs)("a",{children:[c,d]},"title")},fn=function(e){var t,n=e.collapsed,r=e.originCollapsed,i=e.fixSiderbar,o=e.menuFooterRender,c=e.onCollapse,d=e.theme,v=e.siderWidth,f=e.isMobile,C=e.onMenuHeaderClick,x=e.breakpoint,S=x===void 0?"lg":x,L=e.style,w=e.layout,I=e.menuExtraRender,F=I===void 0?!1:I,E=e.links,D=e.menuContentRender,T=e.collapsedButtonRender,N=e.prefixCls,y=e.avatarProps,R=e.rightContentRender,k=e.actionsRender,H=e.onOpenChange,B=e.stylish,ne=e.logoStyle,se=(0,m.useContext)(Q.L_),g=se.hashId,fe=(0,m.useMemo)(function(){return!(f||w==="mix")},[f,w]),M="".concat(N,"-sider"),Y=64,oe=ir("".concat(M,".").concat(M,"-stylish"),{stylish:B,proLayoutCollapsedWidth:Y}),ge=q()("".concat(M),g,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(M,"-fixed"),i),"".concat(M,"-fixed-mix"),w==="mix"&&!f&&i),"".concat(M,"-collapsed"),e.collapsed),"".concat(M,"-layout-").concat(w),w&&!f),"".concat(M,"-light"),d!=="dark"),"".concat(M,"-mix"),w==="mix"&&!f),"".concat(M,"-stylish"),!!B)),ue=Ht(e),Me=F&&F(e),xe=(0,m.useMemo)(function(){return D!==!1&&(0,m.createElement)(sn,(0,s.Z)((0,s.Z)({},e),{},{key:"base-menu",mode:n&&!f?"vertical":"inline",handleOpenChange:H,style:{width:"100%"},className:"".concat(M,"-menu ").concat(g).trim()}))},[M,g,D,H,e]),Ce=(E||[]).map(function(Ze,Ne){return{className:"".concat(M,"-link"),label:Ze,key:Ne}}),Le=(0,m.useMemo)(function(){return D?D(e,xe):xe},[D,xe,e]),we=(0,m.useMemo)(function(){if(!y)return null;var Ze=y.title,Ne=y.render,Ee=(0,ie.Z)(y,lr),St=(0,u.jsxs)("div",{className:"".concat(M,"-actions-avatar"),children:[Ee!=null&&Ee.src||Ee!=null&&Ee.srcSet||Ee.icon||Ee.children?(0,u.jsx)(en.C,(0,s.Z)({size:28},Ee)):null,y.title&&!n&&(0,u.jsx)("span",{children:Ze})]});return Ne?Ne(y,St,e):St},[y,M,n]),Pe=(0,m.useMemo)(function(){return k?(0,u.jsx)(Oa.Z,{align:"center",size:4,direction:n?"vertical":"horizontal",className:q()(["".concat(M,"-actions-list"),n&&"".concat(M,"-actions-list-collapsed"),g]),children:k==null?void 0:k(e).map(function(Ze,Ne){return(0,u.jsx)("div",{className:"".concat(M,"-actions-list-item ").concat(g).trim(),children:Ze},Ne)})}):null},[k,M,n]),_e=(0,m.useMemo)(function(){return(0,u.jsx)(Nt,{onItemClick:e.itemClick,appList:e.appList,prefixCls:e.prefixCls})},[e.appList,e.prefixCls]),We=(0,m.useMemo)(function(){if(T===!1)return null;var Ze=(0,u.jsx)(Ka,{isMobile:f,collapsed:r,className:"".concat(M,"-collapsed-button"),onClick:function(){c==null||c(!r)}});return T?T(n,Ze):Ze},[T,f,r,M,n,c]),Fe=(0,m.useMemo)(function(){return!we&&!Pe?null:(0,u.jsxs)("div",{className:q()("".concat(M,"-actions"),g,n&&"".concat(M,"-actions-collapsed")),children:[we,Pe]})},[Pe,we,M,n,g]),Ke=(0,m.useMemo)(function(){var Ze;return e!=null&&(Ze=e.menu)!==null&&Ze!==void 0&&Ze.hideMenuWhenCollapsed&&n?"".concat(M,"-hide-menu-collapsed"):null},[M,n,e==null||(t=e.menu)===null||t===void 0?void 0:t.hideMenuWhenCollapsed]),it=o&&(o==null?void 0:o(e)),bt=(0,u.jsxs)(u.Fragment,{children:[ue&&(0,u.jsxs)("div",{className:q()([q()("".concat(M,"-logo"),g,(0,l.Z)({},"".concat(M,"-logo-collapsed"),n))]),onClick:fe?C:void 0,id:"logo",style:ne,children:[ue,_e]}),Me&&(0,u.jsx)("div",{className:q()(["".concat(M,"-extra"),!ue&&"".concat(M,"-extra-no-logo"),g]),children:Me}),(0,u.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Le}),(0,u.jsxs)(dr.Provider,{value:{},children:[E?(0,u.jsx)("div",{className:"".concat(M,"-links ").concat(g).trim(),children:(0,u.jsx)(tn.Z,{inlineIndent:16,className:"".concat(M,"-link-menu ").concat(g).trim(),selectedKeys:[],openKeys:[],theme:d,mode:"inline",items:Ce})}):null,fe&&(0,u.jsxs)(u.Fragment,{children:[Fe,!Pe&&R?(0,u.jsx)("div",{className:q()("".concat(M,"-actions"),g,(0,l.Z)({},"".concat(M,"-actions-collapsed"),n)),children:R==null?void 0:R(e)}):null]}),it&&(0,u.jsx)("div",{className:q()(["".concat(M,"-footer"),g,(0,l.Z)({},"".concat(M,"-footer-collapsed"),n)]),children:it})]})]});return oe.wrapSSR((0,u.jsxs)(u.Fragment,{children:[i&&!f&&!Ke&&(0,u.jsx)("div",{style:(0,s.Z)({width:n?Y:v,overflow:"hidden",flex:"0 0 ".concat(n?Y:v,"px"),maxWidth:n?Y:v,minWidth:n?Y:v,transition:"all 0.2s ease 0s"},L)}),(0,u.jsxs)(cr,{collapsible:!0,trigger:null,collapsed:n,breakpoint:S===!1?void 0:S,onCollapse:function(Ne){f||c==null||c(Ne)},collapsedWidth:Y,style:L,theme:d,width:v,className:q()(ge,g,Ke),children:[Ke?(0,u.jsx)("div",{className:"".concat(M,"-hide-when-collapsed ").concat(g).trim(),style:{height:"100%",width:"100%",opacity:Ke?0:1},children:bt}):bt,We]})]}))},sr=p(10178),vr=p(9220),fr=function(e){var t,n,r,i,o;return(0,l.Z)({},e.componentCls,{"&-header-actions":{display:"flex",height:"100%","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:e.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,"&:hover":{backgroundColor:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:e.padding,paddingInlineEnd:e.padding,cursor:"pointer",color:(r=e.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorTextRightActionsItem,"> div":{height:"44px",color:(i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:e.borderRadius,"&:hover":{backgroundColor:(o=e.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgRightActionsItemHover}}}}})};function mr(a){return(0,Te.Xj)("ProLayoutRightContent",function(e){var t=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(a)});return[fr(t)]})}var pr=["rightContentRender","avatarProps","actionsRender","headerContentRender"],hr=["title","render"],mn=function(e){var t=e.rightContentRender,n=e.avatarProps,r=e.actionsRender,i=e.headerContentRender,o=(0,ie.Z)(e,pr),c=(0,m.useContext)(He.ZP.ConfigContext),d=c.getPrefixCls,v="".concat(d(),"-pro-global-header"),f=mr(v),C=f.wrapSSR,x=f.hashId,S=(0,m.useState)("auto"),L=(0,$.Z)(S,2),w=L[0],I=L[1],F=(0,m.useMemo)(function(){if(!n)return null;var N=n.title,y=n.render,R=(0,ie.Z)(n,hr),k=[R!=null&&R.src||R!=null&&R.srcSet||R.icon||R.children?(0,m.createElement)(en.C,(0,s.Z)((0,s.Z)({},R),{},{size:28,key:"avatar"})):null,N?(0,u.jsx)("span",{style:{marginInlineStart:8},children:N},"name"):void 0];return y?y(n,(0,u.jsx)("div",{children:k}),o):(0,u.jsx)("div",{children:k})},[n]),E=r||F?function(N){var y=r&&(r==null?void 0:r(N));return!y&&!F?null:(Array.isArray(y)||(y=[y]),C((0,u.jsxs)("div",{className:"".concat(v,"-header-actions ").concat(x).trim(),children:[y.filter(Boolean).map(function(R,k){var H=!1;if(m.isValidElement(R)){var B;H=!!(R!=null&&(B=R.props)!==null&&B!==void 0&&B["aria-hidden"])}return(0,u.jsx)("div",{className:q()("".concat(v,"-header-actions-item ").concat(x),(0,l.Z)({},"".concat(v,"-header-actions-hover"),!H)),children:R},k)}),F&&(0,u.jsx)("span",{className:"".concat(v,"-header-actions-avatar ").concat(x).trim(),children:F})]})))}:void 0,D=(0,sr.D)(function(){var N=(0,ee.Z)((0,ce.Z)().mark(function y(R){return(0,ce.Z)().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:I(R);case 1:case"end":return H.stop()}},y)}));return function(y){return N.apply(this,arguments)}}(),160),T=E||t;return(0,u.jsx)("div",{className:"".concat(v,"-right-content ").concat(x).trim(),style:{minWidth:w,height:"100%"},children:(0,u.jsx)("div",{style:{height:"100%"},children:(0,u.jsx)(vr.Z,{onResize:function(y){var R=y.width;D.run(R)},children:T?(0,u.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:T((0,s.Z)((0,s.Z)({},o),{},{rightContentSize:w}))}):null})})})},gr=function(e){var t,n;return(0,l.Z)({},e.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":(0,l.Z)({display:"flex",alignItems:"center"},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56)-12,40),"px")}})};function yr(a){return(0,Te.Xj)("ProLayoutTopNavHeader",function(e){var t=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(a)});return[gr(t)]})}var pn=function(e){var t,n,r,i,o,c,d,v=(0,m.useRef)(null),f=e.onMenuHeaderClick,C=e.contentWidth,x=e.rightContentRender,S=e.className,L=e.style,w=e.headerContentRender,I=e.layout,F=e.actionsRender,E=(0,m.useContext)(He.ZP.ConfigContext),D=E.getPrefixCls,T=(0,m.useContext)(Q.L_),N=T.dark,y="".concat(e.prefixCls||D("pro"),"-top-nav-header"),R=yr(y),k=R.wrapSSR,H=R.hashId,B=void 0;e.menuHeaderRender!==void 0?B="menuHeaderRender":(I==="mix"||I==="top")&&(B="headerTitleRender");var ne=Ht((0,s.Z)((0,s.Z)({},e),{},{collapsed:!1}),B),se=(0,m.useContext)(Q.L_),g=se.token,fe=(0,m.useMemo)(function(){var M,Y,oe,ge,ue,Me,xe,Ce,Le,we,Pe,_e,We,Fe=(0,u.jsx)(He.ZP,{theme:{hashed:(0,Q.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:(0,s.Z)({},P({colorItemBg:((M=g.layout)===null||M===void 0||(M=M.header)===null||M===void 0?void 0:M.colorBgHeader)||"transparent",colorSubItemBg:((Y=g.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorBgHeader)||"transparent",radiusItem:g.borderRadius,colorItemBgSelected:((oe=g.layout)===null||oe===void 0||(oe=oe.header)===null||oe===void 0?void 0:oe.colorBgMenuItemSelected)||(g==null?void 0:g.colorBgTextHover),itemHoverBg:((ge=g.layout)===null||ge===void 0||(ge=ge.header)===null||ge===void 0?void 0:ge.colorBgMenuItemHover)||(g==null?void 0:g.colorBgTextHover),colorItemBgSelectedHorizontal:((ue=g.layout)===null||ue===void 0||(ue=ue.header)===null||ue===void 0?void 0:ue.colorBgMenuItemSelected)||(g==null?void 0:g.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((Me=g.layout)===null||Me===void 0||(Me=Me.header)===null||Me===void 0?void 0:Me.colorTextMenu)||(g==null?void 0:g.colorTextSecondary),colorItemTextHoverHorizontal:((xe=g.layout)===null||xe===void 0||(xe=xe.header)===null||xe===void 0?void 0:xe.colorTextMenuActive)||(g==null?void 0:g.colorText),colorItemTextSelectedHorizontal:((Ce=g.layout)===null||Ce===void 0||(Ce=Ce.header)===null||Ce===void 0?void 0:Ce.colorTextMenuSelected)||(g==null?void 0:g.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((Le=g.layout)===null||Le===void 0||(Le=Le.header)===null||Le===void 0?void 0:Le.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((we=g.layout)===null||we===void 0||(we=we.header)===null||we===void 0?void 0:we.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((Pe=g.layout)===null||Pe===void 0||(Pe=Pe.header)===null||Pe===void 0?void 0:Pe.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:g==null?void 0:g.colorBgElevated,subMenuItemBg:g==null?void 0:g.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:g==null?void 0:g.colorBgElevated}))},token:{colorBgElevated:((_e=g.layout)===null||_e===void 0||(_e=_e.header)===null||_e===void 0?void 0:_e.colorBgHeader)||"transparent"}},children:(0,u.jsx)(sn,(0,s.Z)((0,s.Z)((0,s.Z)({theme:N?"dark":"light"},e),{},{className:"".concat(y,"-base-menu ").concat(H).trim()},e.menuProps),{},{style:(0,s.Z)({width:"100%"},(We=e.menuProps)===null||We===void 0?void 0:We.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return w?w(e,Fe):Fe},[(t=g.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgHeader,(n=g.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgMenuItemSelected,(r=g.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemHover,(i=g.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenu,(o=g.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenuActive,(c=g.layout)===null||c===void 0||(c=c.header)===null||c===void 0?void 0:c.colorTextMenuSelected,(d=g.layout)===null||d===void 0||(d=d.header)===null||d===void 0?void 0:d.colorBgMenuElevated,g.borderRadius,g==null?void 0:g.colorBgTextHover,g==null?void 0:g.colorTextSecondary,g==null?void 0:g.colorText,g==null?void 0:g.colorTextBase,g.colorBgElevated,N,e,y,H,w]);return k((0,u.jsx)("div",{className:q()(y,H,S,(0,l.Z)({},"".concat(y,"-light"),!0)),style:L,children:(0,u.jsxs)("div",{ref:v,className:q()("".concat(y,"-main"),H,(0,l.Z)({},"".concat(y,"-wide"),C==="Fixed"&&I==="top")),children:[ne&&(0,u.jsxs)("div",{className:q()("".concat(y,"-main-left ").concat(H)),onClick:f,children:[(0,u.jsx)(Nt,(0,s.Z)({},e)),(0,u.jsx)("div",{className:"".concat(y,"-logo ").concat(H).trim(),id:"logo",children:ne},"logo")]}),(0,u.jsx)("div",{style:{flex:1},className:"".concat(y,"-menu ").concat(H).trim(),children:fe}),(x||F||e.avatarProps)&&(0,u.jsx)(mn,(0,s.Z)((0,s.Z)({rightContentRender:x},e),{},{prefixCls:y}))]})}))},xr=function(e){var t,n,r;return(0,l.Z)({},e.componentCls,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((r=e.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle)||e.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function Cr(a){return(0,Te.Xj)("ProLayoutGlobalHeader",function(e){var t=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(a)});return[xr(t)]})}var br=function(e,t){return e===!1?null:e?e(t,null):t},Sr=function(e){var t=e.isMobile,n=e.logo,r=e.collapsed,i=e.onCollapse,o=e.rightContentRender,c=e.menuHeaderRender,d=e.onMenuHeaderClick,v=e.className,f=e.style,C=e.layout,x=e.children,S=e.splitMenus,L=e.menuData,w=e.prefixCls,I=(0,m.useContext)(He.ZP.ConfigContext),F=I.getPrefixCls,E=I.direction,D="".concat(w||F("pro"),"-global-header"),T=Cr(D),N=T.wrapSSR,y=T.hashId,R=q()(v,D,y);if(C==="mix"&&!t&&S){var k=(L||[]).map(function(se){return(0,s.Z)((0,s.Z)({},se),{},{children:void 0,routes:void 0})}),H=pt(k);return(0,u.jsx)(pn,(0,s.Z)((0,s.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:H}))}var B=q()("".concat(D,"-logo"),y,(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(D,"-logo-rtl"),E==="rtl"),"".concat(D,"-logo-mix"),C==="mix"),"".concat(D,"-logo-mobile"),t)),ne=(0,u.jsx)("span",{className:B,children:(0,u.jsx)("a",{children:Et(n)})},"logo");return N((0,u.jsxs)("div",{className:R,style:(0,s.Z)({},f),children:[t&&(0,u.jsx)("span",{className:"".concat(D,"-collapsed-button ").concat(y).trim(),onClick:function(){i==null||i(!r)},children:(0,u.jsx)(Ba,{})}),t&&br(c,ne),C==="mix"&&!t&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Nt,(0,s.Z)({},e)),(0,u.jsx)("div",{className:B,onClick:d,children:Ht((0,s.Z)((0,s.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})]}),(0,u.jsx)("div",{style:{flex:1},children:x}),(o||e.actionsRender||e.avatarProps)&&(0,u.jsx)(mn,(0,s.Z)({rightContentRender:o},e))]}))},Mr=function(e){var t,n,r,i;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(e.antCls,"-layout-header").concat(e.componentCls),{height:((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56,lineHeight:"".concat(((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(e.colorSplit),backgroundColor:((r=e.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function Zr(a){return(0,Te.Xj)("ProLayoutHeader",function(e){var t=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(a)});return[Mr(t)]})}function Ir(a,e){var t=e.stylish,n=e.proLayoutCollapsedWidth;return(0,Te.Xj)("ProLayoutHeaderStylish",function(r){var i=(0,s.Z)((0,s.Z)({},r),{},{componentCls:".".concat(a),proLayoutCollapsedWidth:n});return t?[(0,l.Z)({},"div".concat(r.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),t==null?void 0:t(i)))]:[]})}var hn=ke.Z.Header,Rr=function(e){var t,n,r,i=e.isMobile,o=e.fixedHeader,c=e.className,d=e.style,v=e.collapsed,f=e.prefixCls,C=e.onCollapse,x=e.layout,S=e.headerRender,L=e.headerContentRender,w=(0,m.useContext)(Q.L_),I=w.token,F=(0,m.useContext)(He.ZP.ConfigContext),E=(0,m.useState)(!1),D=(0,$.Z)(E,2),T=D[0],N=D[1],y=o||x==="mix",R=(0,m.useCallback)(function(){var M=x==="top",Y=pt(e.menuData||[]),oe=(0,u.jsx)(Sr,(0,s.Z)((0,s.Z)({onCollapse:C},e),{},{menuData:Y,children:L&&L(e,null)}));return M&&!i&&(oe=(0,u.jsx)(pn,(0,s.Z)((0,s.Z)({mode:"horizontal",onCollapse:C},e),{},{menuData:Y}))),S&&typeof S=="function"?S(e,oe):oe},[L,S,i,x,C,e]);(0,m.useEffect)(function(){var M,Y=(F==null||(M=F.getTargetContainer)===null||M===void 0?void 0:M.call(F))||document.body,oe=function(){var ue,Me=Y.scrollTop;return Me>(((ue=I.layout)===null||ue===void 0||(ue=ue.header)===null||ue===void 0?void 0:ue.heightLayoutHeader)||56)&&!T?(N(!0),!0):(T&&N(!1),!1)};if(y&&typeof window!="undefined")return Y.addEventListener("scroll",oe,{passive:!0}),function(){Y.removeEventListener("scroll",oe)}},[(t=I.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader,y,T]);var k=x==="top",H="".concat(f,"-layout-header"),B=Zr(H),ne=B.wrapSSR,se=B.hashId,g=Ir("".concat(H,".").concat(H,"-stylish"),{proLayoutCollapsedWidth:64,stylish:e.stylish}),fe=q()(c,se,H,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(H,"-fixed-header"),y),"".concat(H,"-fixed-header-scroll"),T),"".concat(H,"-mix"),x==="mix"),"".concat(H,"-fixed-header-action"),!v),"".concat(H,"-top-menu"),k),"".concat(H,"-header"),!0),"".concat(H,"-stylish"),!!e.stylish));return x==="side"&&!i?null:g.wrapSSR(ne((0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(He.ZP,{theme:{hashed:(0,Q.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[y&&(0,u.jsx)(hn,{style:(0,s.Z)({height:((n=I.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((r=I.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},d)}),(0,u.jsx)(hn,{className:fe,style:d,children:R()})]})})))},Tr=p(83832),wr=p(85265),Br=p(6731),gn=new Br.E4("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),Pr=function(e){var t,n,r,i,o,c,d,v,f,C,x,S;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-layout-sider").concat(e.componentCls),{background:((t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorMenuBackground)||"transparent"}),e.componentCls,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(e.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.paddingInlineLayoutMenu,paddingBlock:(r=e.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(e.colorSplit),marginInlineEnd:-1}),"".concat(e.antCls,"-menu"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{fontSize:e.fontSizeSM,paddingBottom:4}),"".concat(e.antCls,"-menu-item:hover"),{color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(o=e.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((c=e.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(d=e.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuTitle,animationName:gn,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":(0,l.Z)({flexDirection:"column-reverse",margin:0,padding:12},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(v=e.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(f=e.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:e.borderRadius,"&:hover":{background:e.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:e.marginXS,borderRadius:e.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:e.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(e.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(C=e.layout)===null||C===void 0||(C=C.sider)===null||C===void 0?void 0:C.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:e.fontSize,animationName:gn,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(e.componentCls).concat(e.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((x=e.layout)===null||x===void 0||(x=x.header)===null||x===void 0?void 0:x.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((S=e.layout)===null||S===void 0||(S=S.header)===null||S===void 0?void 0:S.heightLayoutHeader)||56,"px")}}))};function jr(a,e){var t=e.proLayoutCollapsedWidth;return(0,Te.Xj)("ProLayoutSiderMenu",function(n){var r=(0,s.Z)((0,s.Z)({},n),{},{componentCls:".".concat(a),proLayoutCollapsedWidth:t});return[Pr(r)]})}var yn=function(e){var t,n=e.isMobile,r=e.siderWidth,i=e.collapsed,o=e.onCollapse,c=e.style,d=e.className,v=e.hide,f=e.prefixCls,C=(0,m.useContext)(Q.L_),x=C.token;(0,m.useEffect)(function(){n===!0&&(o==null||o(!0))},[n]);var S=(0,Yt.Z)(e,["className","style"]),L=m.useContext(He.ZP.ConfigContext),w=L.direction,I=jr("".concat(f,"-sider"),{proLayoutCollapsedWidth:64}),F=I.wrapSSR,E=I.hashId,D=q()("".concat(f,"-sider"),d,E);if(v)return null;var T=(0,b.X)(!i,function(){return o==null?void 0:o(!0)});return F(n?(0,u.jsx)(wr.Z,(0,s.Z)((0,s.Z)({placement:w==="rtl"?"right":"left",className:q()("".concat(f,"-drawer-sider"),d)},T),{},{style:(0,s.Z)({padding:0,height:"100vh"},c),onClose:function(){o==null||o(!0)},maskClosable:!0,closable:!1,width:r,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(t=x.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorMenuBackground}},children:(0,u.jsx)(fn,(0,s.Z)((0,s.Z)({},S),{},{isMobile:!0,className:D,collapsed:n?!1:i,splitMenus:!1,originCollapsed:i}))})):(0,u.jsx)(fn,(0,s.Z)((0,s.Z)({className:D,originCollapsed:i},S),{},{style:c})))},xn=p(76509),Lr=p(16254),_t=p.n(Lr),Er=function(e,t,n){if(n){var r=(0,gt.Z)(n.keys()).find(function(o){return _t()(o).test(e)});if(r)return n.get(r)}if(t){var i=Object.keys(t).find(function(o){return _t()(o).test(e)});if(i)return t[i]}return{path:""}},At=function(e,t){var n=e.pathname,r=n===void 0?"/":n,i=e.breadcrumb,o=e.breadcrumbMap,c=e.formatMessage,d=e.title,v=e.menu,f=v===void 0?{locale:!1}:v,C=t?"":d||"",x=Er(r,i,o);if(!x)return{title:C,id:"",pageName:C};var S=x.name;return f.locale!==!1&&x.locale&&c&&(S=c({id:x.locale||"",defaultMessage:x.name})),S?t||!d?{title:S,id:x.locale||"",pageName:S}:{title:"".concat(S," - ").concat(d),id:x.locale||"",pageName:S}:{title:C,id:x.locale||"",pageName:C}},Ao=function(e,t){return At(e,t).title},Nr={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success\uFF0Cplease replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},Hr=(0,s.Z)({},Nr),_r={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalit\xE0 di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello \xE8 visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},Ar=(0,s.Z)({},_r),Dr={"app.setting.pagestyle":"\uC2A4\uD0C0\uC77C \uC124\uC815","app.setting.pagestyle.dark":"\uB2E4\uD06C \uBAA8\uB4DC","app.setting.pagestyle.light":"\uB77C\uC774\uD2B8 \uBAA8\uB4DC","app.setting.content-width":"\uCEE8\uD150\uCE20 \uB108\uBE44","app.setting.content-width.fixed":"\uACE0\uC815","app.setting.content-width.fluid":"\uD750\uB984","app.setting.themecolor":"\uD14C\uB9C8 \uC0C9\uC0C1","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"\uB124\uBE44\uAC8C\uC774\uC158 \uBAA8\uB4DC","app.setting.regionalsettings":"\uC601\uC5ED\uBCC4 \uC124\uC815","app.setting.regionalsettings.header":"\uD5E4\uB354","app.setting.regionalsettings.menu":"\uBA54\uB274","app.setting.regionalsettings.footer":"\uBC14\uB2E5\uAE00","app.setting.regionalsettings.menuHeader":"\uBA54\uB274 \uD5E4\uB354","app.setting.sidemenu":"\uBA54\uB274 \uC0AC\uC774\uB4DC \uBC30\uCE58","app.setting.topmenu":"\uBA54\uB274 \uC0C1\uB2E8 \uBC30\uCE58","app.setting.mixmenu":"\uD63C\uD569\uD615 \uBC30\uCE58","app.setting.splitMenus":"\uBA54\uB274 \uBD84\uB9AC","app.setting.fixedheader":"\uD5E4\uB354 \uACE0\uC815","app.setting.fixedsidebar":"\uC0AC\uC774\uB4DC\uBC14 \uACE0\uC815","app.setting.fixedsidebar.hint":"'\uBA54\uB274 \uC0AC\uC774\uB4DC \uBC30\uCE58'\uB97C \uC120\uD0DD\uD588\uC744 \uB54C \uB3D9\uC791\uD568","app.setting.hideheader":"\uC2A4\uD06C\uB864 \uC911 \uD5E4\uB354 \uAC10\uCD94\uAE30","app.setting.hideheader.hint":"'\uD5E4\uB354 \uAC10\uCD94\uAE30 \uC635\uC158'\uC744 \uC120\uD0DD\uD588\uC744 \uB54C \uB3D9\uC791\uD568","app.setting.othersettings":"\uB2E4\uB978 \uC124\uC815","app.setting.weakmode":"\uACE0\uB300\uBE44 \uBAA8\uB4DC","app.setting.copy":"\uC124\uC815\uAC12 \uBCF5\uC0AC","app.setting.loading":"\uD14C\uB9C8 \uB85C\uB529 \uC911","app.setting.copyinfo":"\uBCF5\uC0AC \uC131\uACF5. src/models/settings.js\uC5D0 \uC788\uB294 defaultSettings\uB97C \uAD50\uCCB4\uD574 \uC8FC\uC138\uC694.","app.setting.production.hint":"\uC124\uC815 \uD310\uB12C\uC740 \uAC1C\uBC1C \uD658\uACBD\uC5D0\uC11C\uB9CC \uBCF4\uC5EC\uC9D1\uB2C8\uB2E4. \uC9C1\uC811 \uC218\uB3D9\uC73C\uB85C \uBCC0\uACBD\uBC14\uB78D\uB2C8\uB2E4."},Or=(0,s.Z)({},Dr),$r={"app.setting.pagestyle":"\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E","app.setting.pagestyle.dark":"\u6697\u8272\u83DC\u5355\u98CE\u683C","app.setting.pagestyle.light":"\u4EAE\u8272\u83DC\u5355\u98CE\u683C","app.setting.pagestyle.realdark":"\u6697\u8272\u98CE\u683C(\u5B9E\u9A8C\u529F\u80FD)","app.setting.content-width":"\u5185\u5BB9\u533A\u57DF\u5BBD\u5EA6","app.setting.content-width.fixed":"\u5B9A\u5BBD","app.setting.content-width.fluid":"\u6D41\u5F0F","app.setting.themecolor":"\u4E3B\u9898\u8272","app.setting.themecolor.dust":"\u8584\u66AE","app.setting.themecolor.volcano":"\u706B\u5C71","app.setting.themecolor.sunset":"\u65E5\u66AE","app.setting.themecolor.cyan":"\u660E\u9752","app.setting.themecolor.green":"\u6781\u5149\u7EFF","app.setting.themecolor.techBlue":"\u79D1\u6280\u84DD\uFF08\u9ED8\u8BA4\uFF09","app.setting.themecolor.daybreak":"\u62C2\u6653","app.setting.themecolor.geekblue":"\u6781\u5BA2\u84DD","app.setting.themecolor.purple":"\u9171\u7D2B","app.setting.navigationmode":"\u5BFC\u822A\u6A21\u5F0F","app.setting.sidermenutype":"\u4FA7\u8FB9\u83DC\u5355\u7C7B\u578B","app.setting.sidermenutype-sub":"\u7ECF\u5178\u6A21\u5F0F","app.setting.sidermenutype-group":"\u5206\u7EC4\u6A21\u5F0F","app.setting.regionalsettings":"\u5185\u5BB9\u533A\u57DF","app.setting.regionalsettings.header":"\u9876\u680F","app.setting.regionalsettings.menu":"\u83DC\u5355","app.setting.regionalsettings.footer":"\u9875\u811A","app.setting.regionalsettings.menuHeader":"\u83DC\u5355\u5934","app.setting.sidemenu":"\u4FA7\u8FB9\u83DC\u5355\u5E03\u5C40","app.setting.topmenu":"\u9876\u90E8\u83DC\u5355\u5E03\u5C40","app.setting.mixmenu":"\u6DF7\u5408\u83DC\u5355\u5E03\u5C40","app.setting.splitMenus":"\u81EA\u52A8\u5206\u5272\u83DC\u5355","app.setting.fixedheader":"\u56FA\u5B9A Header","app.setting.fixedsidebar":"\u56FA\u5B9A\u4FA7\u8FB9\u83DC\u5355","app.setting.fixedsidebar.hint":"\u4FA7\u8FB9\u83DC\u5355\u5E03\u5C40\u65F6\u53EF\u914D\u7F6E","app.setting.hideheader":"\u4E0B\u6ED1\u65F6\u9690\u85CF Header","app.setting.hideheader.hint":"\u56FA\u5B9A Header \u65F6\u53EF\u914D\u7F6E","app.setting.othersettings":"\u5176\u4ED6\u8BBE\u7F6E","app.setting.weakmode":"\u8272\u5F31\u6A21\u5F0F","app.setting.copy":"\u62F7\u8D1D\u8BBE\u7F6E","app.setting.loading":"\u6B63\u5728\u52A0\u8F7D\u4E3B\u9898","app.setting.copyinfo":"\u62F7\u8D1D\u6210\u529F\uFF0C\u8BF7\u5230 src/defaultSettings.js \u4E2D\u66FF\u6362\u9ED8\u8BA4\u914D\u7F6E","app.setting.production.hint":"\u914D\u7F6E\u680F\u53EA\u5728\u5F00\u53D1\u73AF\u5883\u7528\u4E8E\u9884\u89C8\uFF0C\u751F\u4EA7\u73AF\u5883\u4E0D\u4F1A\u5C55\u73B0\uFF0C\u8BF7\u62F7\u8D1D\u540E\u624B\u52A8\u4FEE\u6539\u914D\u7F6E\u6587\u4EF6"},zr=(0,s.Z)({},$r),Wr={"app.setting.pagestyle":"\u6574\u9AD4\u98A8\u683C\u8A2D\u7F6E","app.setting.pagestyle.dark":"\u6697\u8272\u83DC\u55AE\u98A8\u683C","app.setting.pagestyle.realdark":"\u6697\u8272\u98A8\u683C(\u5B9E\u9A8C\u529F\u80FD)","app.setting.pagestyle.light":"\u4EAE\u8272\u83DC\u55AE\u98A8\u683C","app.setting.content-width":"\u5167\u5BB9\u5340\u57DF\u5BEC\u5EA6","app.setting.content-width.fixed":"\u5B9A\u5BEC","app.setting.content-width.fluid":"\u6D41\u5F0F","app.setting.themecolor":"\u4E3B\u984C\u8272","app.setting.themecolor.dust":"\u8584\u66AE","app.setting.themecolor.volcano":"\u706B\u5C71","app.setting.themecolor.sunset":"\u65E5\u66AE","app.setting.themecolor.cyan":"\u660E\u9752","app.setting.themecolor.green":"\u6975\u5149\u7DA0","app.setting.themecolor.techBlue":"\u79D1\u6280\u84DD\uFF08\u9ED8\u8A8D\uFF09","app.setting.themecolor.daybreak":"\u62C2\u66C9\u85CD","app.setting.themecolor.geekblue":"\u6975\u5BA2\u85CD","app.setting.themecolor.purple":"\u91AC\u7D2B","app.setting.navigationmode":"\u5C0E\u822A\u6A21\u5F0F","app.setting.sidemenu":"\u5074\u908A\u83DC\u55AE\u5E03\u5C40","app.setting.topmenu":"\u9802\u90E8\u83DC\u55AE\u5E03\u5C40","app.setting.mixmenu":"\u6DF7\u5408\u83DC\u55AE\u5E03\u5C40","app.setting.splitMenus":"\u81EA\u52A8\u5206\u5272\u83DC\u5355","app.setting.fixedheader":"\u56FA\u5B9A Header","app.setting.fixedsidebar":"\u56FA\u5B9A\u5074\u908A\u83DC\u55AE","app.setting.fixedsidebar.hint":"\u5074\u908A\u83DC\u55AE\u5E03\u5C40\u6642\u53EF\u914D\u7F6E","app.setting.hideheader":"\u4E0B\u6ED1\u6642\u96B1\u85CF Header","app.setting.hideheader.hint":"\u56FA\u5B9A Header \u6642\u53EF\u914D\u7F6E","app.setting.othersettings":"\u5176\u4ED6\u8A2D\u7F6E","app.setting.weakmode":"\u8272\u5F31\u6A21\u5F0F","app.setting.copy":"\u62F7\u8C9D\u8A2D\u7F6E","app.setting.loading":"\u6B63\u5728\u52A0\u8F09\u4E3B\u984C","app.setting.copyinfo":"\u62F7\u8C9D\u6210\u529F\uFF0C\u8ACB\u5230 src/defaultSettings.js \u4E2D\u66FF\u63DB\u9ED8\u8A8D\u914D\u7F6E","app.setting.production.hint":"\u914D\u7F6E\u6B04\u53EA\u5728\u958B\u767C\u74B0\u5883\u7528\u65BC\u9810\u89BD\uFF0C\u751F\u7522\u74B0\u5883\u4E0D\u6703\u5C55\u73FE\uFF0C\u8ACB\u62F7\u8C9D\u5F8C\u624B\u52D5\u4FEE\u6539\u914D\u7F6E\u6587\u4EF6"},Fr=(0,s.Z)({},Wr),Cn={"zh-CN":zr,"zh-TW":Fr,"en-US":Hr,"it-IT":Ar,"ko-KR":Or},Kr=function(){if(!(0,V.j)())return"zh-CN";var e=window.localStorage.getItem("umi_locale");return e||window.g_locale||navigator.language},Ur=function(){var e=Kr();return Cn[e]||Cn["zh-CN"]},Ct=p(67159),Xe=p(34155),Gr=function(){var e;return typeof Xe=="undefined"?Ct.Z:((e=Xe)===null||Xe===void 0||(Xe={NODE_ENV:"production",PUBLIC_PATH:"/admin/"})===null||Xe===void 0?void 0:Xe.ANTD_VERSION)||Ct.Z},Vr=function(e){var t,n,r,i,o,c,d,v,f,C,x,S,L,w,I,F,E,D,T,N,y,R,k,H,B,ne,se,g,fe,M,Y,oe;return(t=Gr())!==null&&t!==void 0&&t.startsWith("5")?{}:(0,l.Z)((0,l.Z)((0,l.Z)({},e.componentCls,(0,l.Z)((0,l.Z)({width:"100%",height:"100%"},"".concat(e.proComponentsCls,"-base-menu"),(y={color:(n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextMenu},(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)(y,"".concat(e.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(r=e.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu}),"& ".concat(e.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(e.antCls,"-menu-submenu-expand-icon, ").concat(e.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(e.antCls,"-menu"),(0,l.Z)((0,l.Z)({color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu},"".concat(e.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(e.antCls,"-menu-inline"),(0,l.Z)({},"".concat(e.antCls,"-menu-selected::after,").concat(e.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(e.antCls,"-menu-sub ").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(e.antCls,`-menu-item:active, + `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(e.antCls,"-menu-light"),(0,l.Z)({},"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,`-menu-submenu-active, + `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(o=e.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(c=e.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenuActive}))),"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:(d=e.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected,borderRadius:e.borderRadius}),"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(v=e.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenuActive,borderRadius:e.borderRadius,backgroundColor:"".concat((f=e.layout)===null||f===void 0||(f=f.header)===null||f===void 0?void 0:f.colorBgMenuItemHover," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(C=e.layout)===null||C===void 0||(C=C.sider)===null||C===void 0?void 0:C.colorTextMenuActive}))),"".concat(e.antCls,"-menu-item-selected"),{color:(x=e.layout)===null||x===void 0||(x=x.sider)===null||x===void 0?void 0:x.colorTextMenuSelected}),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)(y,"".concat(e.antCls,"-menu-submenu-selected"),{color:(S=e.layout)===null||S===void 0||(S=S.sider)===null||S===void 0?void 0:S.colorTextMenuSelected}),"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-inline) ").concat(e.antCls,"-menu-submenu-open"),{color:(L=e.layout)===null||L===void 0||(L=L.sider)===null||L===void 0?void 0:L.colorTextMenuSelected}),"&".concat(e.antCls,"-menu-vertical"),(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-selected"),{borderRadius:e.borderRadius,color:(w=e.layout)===null||w===void 0||(w=w.sider)===null||w===void 0?void 0:w.colorTextMenuSelected})),"".concat(e.antCls,"-menu-submenu:hover > ").concat(e.antCls,"-menu-submenu-title > ").concat(e.antCls,"-menu-submenu-arrow"),{color:(I=e.layout)===null||I===void 0||(I=I.sider)===null||I===void 0?void 0:I.colorTextMenuActive}),"&".concat(e.antCls,"-menu-horizontal"),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-submenu:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(F=e.layout)===null||F===void 0||(F=F.header)===null||F===void 0?void 0:F.colorTextMenuActive,backgroundColor:"".concat((E=e.layout)===null||E===void 0||(E=E.header)===null||E===void 0?void 0:E.colorBgMenuItemHover," !important")}),"".concat(e.antCls,`-menu-item-open, + `).concat(e.antCls,`-menu-submenu-open, + `).concat(e.antCls,`-menu-item-selected, + `).concat(e.antCls,"-menu-submenu-selected"),(0,l.Z)({backgroundColor:(D=e.layout)===null||D===void 0||(D=D.header)===null||D===void 0?void 0:D.colorBgMenuItemSelected,borderRadius:e.borderRadius,transition:"none",color:"".concat((T=e.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorTextMenuSelected," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:"".concat((N=e.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorTextMenuSelected," !important")})),"> ".concat(e.antCls,"-menu-item, > ").concat(e.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(e.antCls,"-menu-item::after, > ").concat(e.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(e.proComponentsCls,"-top-nav-header-base-menu"),(0,l.Z)((0,l.Z)({},"&".concat(e.antCls,"-menu"),(0,l.Z)({color:(R=e.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorTextMenu},"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(e.antCls,"-menu-light"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,`-menu-submenu-active, + `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(k=e.layout)===null||k===void 0||(k=k.header)===null||k===void 0?void 0:k.colorTextMenuActive,borderRadius:e.borderRadius,transition:"none",backgroundColor:(H=e.layout)===null||H===void 0||(H=H.header)===null||H===void 0?void 0:H.colorBgMenuItemSelected},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(B=e.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorTextMenuActive})),"".concat(e.antCls,"-menu-item-selected"),{color:(ne=e.layout)===null||ne===void 0||(ne=ne.header)===null||ne===void 0?void 0:ne.colorTextMenuSelected,borderRadius:e.borderRadius,backgroundColor:(se=e.layout)===null||se===void 0||(se=se.header)===null||se===void 0?void 0:se.colorBgMenuItemSelected})))),"".concat(e.antCls,"-menu-sub").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(e.antCls,"-menu-submenu-popup"),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(e.antCls,"-menu"),(0,l.Z)({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(e.antCls,`-menu-item:active, + `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(e.antCls,"-menu-item-selected"),{color:(g=e.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuSelected}),"".concat(e.antCls,"-menu-submenu-selected"),{color:(fe=e.layout)===null||fe===void 0||(fe=fe.sider)===null||fe===void 0?void 0:fe.colorTextMenuSelected}),"".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:e.borderRadius,color:(M=e.layout)===null||M===void 0||(M=M.sider)===null||M===void 0?void 0:M.colorTextMenuSelected}),"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(Y=e.layout)===null||Y===void 0||(Y=Y.sider)===null||Y===void 0?void 0:Y.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(oe=e.layout)===null||oe===void 0||(oe=oe.sider)===null||oe===void 0?void 0:oe.colorTextMenuActive}))))},kr=function(e){var t,n,r,i;return(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-layout"),{backgroundColor:"transparent !important"}),e.componentCls,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"& ".concat(e.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(e.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((t=e.layout)===null||t===void 0||(t=t.pageContainer)===null||t===void 0?void 0:t.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(n=e.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.paddingBlockPageContainerContent,paddingInline:(r=e.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(e.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(e.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(i=e.layout)===null||i===void 0?void 0:i.bgLayout}))};function Xr(a){return(0,Te.Xj)("ProLayout",function(e){var t=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(a)});return[kr(t),Vr(t)]})}function Yr(a){if(!a||a==="/")return["/"];var e=a.split("/").filter(function(t){return t});return e.map(function(t,n){return"/".concat(e.slice(0,n+1).join("/"))})}var Ye=p(34155),Qr=function(){var e;return typeof Ye=="undefined"?Ct.Z:((e=Ye)===null||Ye===void 0||(Ye={NODE_ENV:"production",PUBLIC_PATH:"/admin/"})===null||Ye===void 0?void 0:Ye.ANTD_VERSION)||Ct.Z},Jr=function(e,t,n){var r=e,i=r.breadcrumbName,o=r.title,c=r.path,d=n.findIndex(function(v){return v.linkPath===e.path})===n.length-1;return d?(0,u.jsx)("span",{children:o||i}):(0,u.jsx)("span",{onClick:c?function(){return location.href=c}:void 0,children:o||i})},qr=function(e,t){var n=t.formatMessage,r=t.menu;return e.locale&&n&&(r==null?void 0:r.locale)!==!1?n({id:e.locale,defaultMessage:e.name}):e.name},eo=function(e,t){var n=e.get(t);if(!n){var r=Array.from(e.keys())||[],i=r.find(function(o){return _t()(o.replace("?","")).test(t)});i&&(n=e.get(i))}return n||{path:""}},to=function(e){var t=e.location,n=e.breadcrumbMap;return{location:t,breadcrumbMap:n}},no=function(e,t,n){var r=Yr(e==null?void 0:e.pathname),i=r.map(function(o){var c=eo(t,o),d=qr(c,n),v=c.hideInBreadcrumb;return d&&!v?{linkPath:o,breadcrumbName:d,title:d,component:c.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(o){return o&&o.linkPath});return i},ao=function(e){var t=to(e),n=t.location,r=t.breadcrumbMap;return n&&n.pathname&&r?no(n,r,e):[]},ro=function(e,t){var n=e.breadcrumbRender,r=e.itemRender,i=t.breadcrumbProps||{},o=i.minLength,c=o===void 0?2:o,d=ao(e),v=function(x){for(var S=r||Jr,L=arguments.length,w=new Array(L>1?L-1:0),I=1;I-1?{items:f,itemRender:v}:{routes:f,itemRender:v}};function oo(a){return(0,gt.Z)(a).reduce(function(e,t){var n=(0,$.Z)(t,2),r=n[0],i=n[1];return e[r]=i,e},{})}var io=function a(e,t,n,r){var i=sa(e,(t==null?void 0:t.locale)||!1,n,!0),o=i.menuData,c=i.breadcrumb;return r?a(r(o),t,n,void 0):{breadcrumb:oo(c),breadcrumbMap:c,menuData:o}},lo=p(71002),uo=p(51812),co=function(e){var t=(0,m.useState)({}),n=(0,$.Z)(t,2),r=n[0],i=n[1];return(0,m.useEffect)(function(){i((0,uo.Y)({layout:(0,lo.Z)(e.layout)!=="object"?e.layout:void 0,navTheme:e.navTheme,menuRender:e.menuRender,footerRender:e.footerRender,menuHeaderRender:e.menuHeaderRender,headerRender:e.headerRender,fixSiderbar:e.fixSiderbar}))},[e.layout,e.navTheme,e.menuRender,e.footerRender,e.menuHeaderRender,e.headerRender,e.fixSiderbar]),r},so=["id","defaultMessage"],vo=["fixSiderbar","navTheme","layout"],bn=0,fo=function(e,t){var n;return e.headerRender===!1||e.pure?null:(0,u.jsx)(Rr,(0,s.Z)((0,s.Z)({matchMenuKeys:t},e),{},{stylish:(n=e.stylish)===null||n===void 0?void 0:n.header}))},mo=function(e){return e.footerRender===!1||e.pure?null:e.footerRender?e.footerRender((0,s.Z)({},e),(0,u.jsx)(Ma.q,{})):null},po=function(e,t){var n,r=e.layout,i=e.isMobile,o=e.selectedKeys,c=e.openKeys,d=e.splitMenus,v=e.suppressSiderWhenMenuEmpty,f=e.menuRender;if(e.menuRender===!1||e.pure)return null;var C=e.menuData;if(d&&(c!==!1||r==="mix")&&!i){var x=o||t,S=(0,$.Z)(x,1),L=S[0];if(L){var w;C=((w=e.menuData)===null||w===void 0||(w=w.find(function(D){return D.key===L}))===null||w===void 0?void 0:w.children)||[]}else C=[]}var I=pt(C||[]);if(I&&(I==null?void 0:I.length)<1&&(d||v))return null;if(r==="top"&&!i){var F;return(0,u.jsx)(yn,(0,s.Z)((0,s.Z)({matchMenuKeys:t},e),{},{hide:!0,stylish:(F=e.stylish)===null||F===void 0?void 0:F.sider}))}var E=(0,u.jsx)(yn,(0,s.Z)((0,s.Z)({matchMenuKeys:t},e),{},{menuData:I,stylish:(n=e.stylish)===null||n===void 0?void 0:n.sider}));return f?f(e,E):E},ho=function(e,t){var n=t.pageTitleRender,r=At(e);if(n===!1)return{title:t.title||"",id:"",pageName:""};if(n){var i=n(e,r.title,r);if(typeof i=="string")return At((0,s.Z)((0,s.Z)({},r),{},{title:i}));(0,xa.ZP)(typeof i=="string","pro-layout: renderPageTitle return value should be a string")}return r},go=function(e,t,n){return e?t?64:n:0},yo=function(e){var t,n,r,i,o,c,d,v,f,C,x,S,L,w,I=e||{},F=I.children,E=I.onCollapse,D=I.location,T=D===void 0?{pathname:"/"}:D,N=I.contentStyle,y=I.route,R=I.defaultCollapsed,k=I.style,H=I.siderWidth,B=I.menu,ne=I.siderMenuType,se=I.isChildrenLayout,g=I.menuDataRender,fe=I.actionRef,M=I.bgLayoutImgList,Y=I.formatMessage,oe=I.loading,ge=(0,m.useMemo)(function(){return H||(e.layout==="mix"?215:256)},[e.layout,H]),ue=(0,m.useContext)(He.ZP.ConfigContext),Me=(t=e.prefixCls)!==null&&t!==void 0?t:ue.getPrefixCls("pro"),xe=(0,ae.Z)(!1,{value:B==null?void 0:B.loading,onChange:B==null?void 0:B.onLoadingChange}),Ce=(0,$.Z)(xe,2),Le=Ce[0],we=Ce[1],Pe=(0,m.useState)(function(){return bn+=1,"pro-layout-".concat(bn)}),_e=(0,$.Z)(Pe,1),We=_e[0],Fe=(0,m.useCallback)(function(Ie){var Ue=Ie.id,It=Ie.defaultMessage,st=(0,ie.Z)(Ie,so);if(Y)return Y((0,s.Z)({id:Ue,defaultMessage:It},st));var vt=Ur();return vt[Ue]?vt[Ue]:It},[Y]),Ke=(0,Qt.ZP)([We,B==null?void 0:B.params],function(){var Ie=(0,ee.Z)((0,ce.Z)().mark(function Ue(It){var st,vt,_n,An;return(0,ce.Z)().wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return vt=(0,$.Z)(It,2),_n=vt[1],we(!0),et.next=4,B==null||(st=B.request)===null||st===void 0?void 0:st.call(B,_n||{},(y==null?void 0:y.children)||(y==null?void 0:y.routes)||[]);case 4:return An=et.sent,we(!1),et.abrupt("return",An);case 7:case"end":return et.stop()}},Ue)}));return function(Ue){return Ie.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),it=Ke.data,bt=Ke.mutate,Ze=Ke.isLoading;(0,m.useEffect)(function(){we(Ze)},[Ze]);var Ne=(0,Qt.kY)(),Ee=Ne.cache;(0,m.useEffect)(function(){return function(){Ee instanceof Map&&Ee.delete(We)}},[]);var St=(0,m.useMemo)(function(){return io(it||(y==null?void 0:y.children)||(y==null?void 0:y.routes)||[],B,Fe,g)},[Fe,B,g,it,y==null?void 0:y.children,y==null?void 0:y.routes]),Dt=St||{},Co=Dt.breadcrumb,Sn=Dt.breadcrumbMap,Mn=Dt.menuData,lt=Mn===void 0?[]:Mn;fe&&B!==null&&B!==void 0&&B.request&&(fe.current={reload:function(){bt()}});var ut=(0,m.useMemo)(function(){return ga(T.pathname||"/",lt||[],!0)},[T.pathname,lt]),Ot=(0,m.useMemo)(function(){return Array.from(new Set(ut.map(function(Ie){return Ie.key||Ie.path||""})))},[ut]),Zn=ut[ut.length-1]||{},In=co(Zn),Mt=(0,s.Z)((0,s.Z)({},e),In),bo=Mt.fixSiderbar,Do=Mt.navTheme,ct=Mt.layout,So=(0,ie.Z)(Mt,vo),Qe=z(),Je=(0,m.useMemo)(function(){return(Qe==="sm"||Qe==="xs")&&!e.disableMobile},[Qe,e.disableMobile]),Mo=ct!=="top"&&!Je,Zo=(0,ae.Z)(function(){return R!==void 0?R:!!(Je||Qe==="md")},{value:e.collapsed,onChange:E}),Rn=(0,$.Z)(Zo,2),dt=Rn[0],Tn=Rn[1],qe=(0,Yt.Z)((0,s.Z)((0,s.Z)((0,s.Z)({prefixCls:Me},e),{},{siderWidth:ge},In),{},{formatMessage:Fe,breadcrumb:Co,menu:(0,s.Z)((0,s.Z)({},B),{},{type:ne||(B==null?void 0:B.type),loading:Le}),layout:ct}),["className","style","breadcrumbRender"]),$t=ho((0,s.Z)((0,s.Z)({pathname:T.pathname},qe),{},{breadcrumbMap:Sn}),e),Io=ro((0,s.Z)((0,s.Z)({},qe),{},{breadcrumbRender:e.breadcrumbRender,breadcrumbMap:Sn}),e),Zt=po((0,s.Z)((0,s.Z)({},qe),{},{menuData:lt,onCollapse:Tn,isMobile:Je,collapsed:dt}),Ot),zt=fo((0,s.Z)((0,s.Z)({},qe),{},{children:null,hasSiderMenu:!!Zt,menuData:lt,isMobile:Je,collapsed:dt,onCollapse:Tn}),Ot),wn=mo((0,s.Z)({isMobile:Je,collapsed:dt},qe)),Ro=(0,m.useContext)(xn.X),To=Ro.isChildrenLayout,Wt=se!==void 0?se:To,Ae="".concat(Me,"-layout"),Bn=Xr(Ae),wo=Bn.wrapSSR,Ft=Bn.hashId,Bo=q()(e.className,Ft,"ant-design-pro",Ae,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"screen-".concat(Qe),Qe),"".concat(Ae,"-top-menu"),ct==="top"),"".concat(Ae,"-is-children"),Wt),"".concat(Ae,"-fix-siderbar"),bo),"".concat(Ae,"-").concat(ct),ct)),Po=go(!!Mo,dt,ge),Pn={position:"relative"};(Wt||N&&N.minHeight)&&(Pn.minHeight=0),(0,m.useEffect)(function(){var Ie;(Ie=e.onPageChange)===null||Ie===void 0||Ie.call(e,e.location)},[T.pathname,(n=T.pathname)===null||n===void 0?void 0:n.search]);var jo=(0,m.useState)(!1),jn=(0,$.Z)(jo,2),Ln=jn[0],Lo=jn[1],Eo=(0,m.useState)(0),En=(0,$.Z)(Eo,2),Nn=En[0],No=En[1];h($t,e.title||!1);var Ho=(0,m.useContext)(Q.L_),G=Ho.token,Hn=(0,m.useMemo)(function(){return M&&M.length>0?M==null?void 0:M.map(function(Ie,Ue){return(0,u.jsx)("img",{src:Ie.src,style:(0,s.Z)({position:"absolute"},Ie)},Ue)}):null},[M]);return wo((0,u.jsx)(xn.X.Provider,{value:(0,s.Z)((0,s.Z)({},qe),{},{breadcrumb:Io,menuData:lt,isMobile:Je,collapsed:dt,hasPageContainer:Nn,setHasPageContainer:No,isChildrenLayout:!0,title:$t.pageName,hasSiderMenu:!!Zt,hasHeader:!!zt,siderWidth:Po,hasFooter:!!wn,hasFooterToolbar:Ln,setHasFooterToolbar:Lo,pageTitleInfo:$t,matchMenus:ut,matchMenuKeys:Ot,currentMenu:Zn}),children:e.pure?(0,u.jsx)(u.Fragment,{children:F}):(0,u.jsxs)("div",{className:Bo,children:[Hn||(r=G.layout)!==null&&r!==void 0&&r.bgLayout?(0,u.jsx)("div",{className:q()("".concat(Ae,"-bg-list"),Ft),children:Hn}):null,(0,u.jsxs)(ke.Z,{style:(0,s.Z)({minHeight:"100%",flexDirection:Zt?"row":void 0},k),children:[(0,u.jsx)(He.ZP,{theme:{hashed:(0,Q.nu)(),token:{controlHeightLG:((i=G.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.menuHeight)||(G==null?void 0:G.controlHeightLG)},components:{Menu:P({colorItemBg:((o=G.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorMenuBackground)||"transparent",colorSubItemBg:((c=G.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorMenuBackground)||"transparent",radiusItem:G.borderRadius,colorItemBgSelected:((d=G.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected)||(G==null?void 0:G.colorBgTextHover),colorItemBgHover:((v=G.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorBgMenuItemHover)||(G==null?void 0:G.colorBgTextHover),colorItemBgActive:((f=G.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemActive)||(G==null?void 0:G.colorBgTextActive),colorItemBgSelectedHorizontal:((C=G.layout)===null||C===void 0||(C=C.sider)===null||C===void 0?void 0:C.colorBgMenuItemSelected)||(G==null?void 0:G.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((x=G.layout)===null||x===void 0||(x=x.sider)===null||x===void 0?void 0:x.colorTextMenu)||(G==null?void 0:G.colorTextSecondary),colorItemTextHover:((S=G.layout)===null||S===void 0||(S=S.sider)===null||S===void 0?void 0:S.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((L=G.layout)===null||L===void 0||(L=L.sider)===null||L===void 0?void 0:L.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:G==null?void 0:G.colorBgElevated,subMenuItemBg:G==null?void 0:G.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:G==null?void 0:G.colorBgElevated})}},children:Zt}),(0,u.jsxs)("div",{style:Pn,className:"".concat(Ae,"-container ").concat(Ft).trim(),children:[zt,(0,u.jsx)(ba,(0,s.Z)((0,s.Z)({hasPageContainer:Nn,isChildrenLayout:Wt},So),{},{hasHeader:!!zt,prefixCls:Ae,style:N,children:oe?(0,u.jsx)(Tr.S,{}):F})),wn,Ln&&(0,u.jsx)("div",{className:"".concat(Ae,"-has-footer"),style:{height:64,marginBlockStart:(w=G.layout)===null||w===void 0||(w=w.pageContainer)===null||w===void 0?void 0:w.paddingBlockPageContainerContent}})]})]})]})}))},xo=function(e){var t=e.colorPrimary,n=e.navTheme!==void 0?{dark:e.navTheme==="realDark"}:{};return(0,u.jsx)(He.ZP,{theme:t?{token:{colorPrimary:t}}:void 0,children:(0,u.jsx)(Q._Y,(0,s.Z)((0,s.Z)({autoClearCache:!0},n),{},{token:e.token,prefixCls:e.prefixCls,children:(0,u.jsx)(yo,(0,s.Z)((0,s.Z)({logo:(0,u.jsx)(Sa,{})},on),{},{location:(0,V.j)()?window.location:void 0},e))}))})}},83832:function(ye,pe,p){"use strict";p.d(pe,{S:function(){return Q}});var l=p(1413),ce=p(91),ee=p(75081),ie=p(67294),$=p(85893),s=["isLoading","pastDelay","timedOut","error","retry"],Q=function(m){var le=m.isLoading,ve=m.pastDelay,be=m.timedOut,z=m.error,V=m.retry,h=(0,ce.Z)(m,s);return(0,$.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,$.jsx)(ee.Z,(0,l.Z)({size:"large"},h))})}},76509:function(ye,pe,p){"use strict";p.d(pe,{X:function(){return ce}});var l=p(67294),ce=(0,l.createContext)({})},90743:function(ye,pe){var p;function l(h){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},l(h)}p={value:!0},pe.Bo=p=p=p=p=p=p=void 0;function ce(h){for(var Z=[],b=0;b=48&&j<=57||j>=65&&j<=90||j>=97&&j<=122||j===95){te+=h[O++];continue}break}if(!te)throw new TypeError("Missing parameter name at "+b);Z.push({type:"NAME",index:b,value:te}),b=O;continue}if(P==="("){var _=1,X="",O=b+1;if(h[O]==="?")throw new TypeError('Pattern cannot start with "?" at '+O);for(;O-1:Re===void 0;te||(de+="(?:"+me+"(?="+U+"))?"),$e||(de+="(?="+me+"|"+U+")")}return new RegExp(de,m(b))}p=z;function V(h,Z,b){return h instanceof RegExp?le(h,Z):Array.isArray(h)?ve(h,Z,b):be(h,Z,b)}pe.Bo=V},16254:function(ye){ye.exports=be,ye.exports.parse=ce,ye.exports.compile=ee,ye.exports.tokensToFunction=ie,ye.exports.tokensToRegExp=ve;var pe="/",p="./",l=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function ce(z,V){for(var h=[],Z=0,b=0,P="",te=V&&V.delimiter||pe,O=V&&V.delimiters||p,j=!1,_;(_=l.exec(z))!==null;){var X=_[0],J=_[1],K=_.index;if(P+=z.slice(b,K),b=K+X.length,J){P+=J[1],j=!0;continue}var U="",me=z[b],de=_[2],W=_[3],re=_[4],A=_[5];if(!j&&P.length){var Se=P.length-1;O.indexOf(P[Se])>-1&&(U=P[Se],P=P.slice(0,Se))}P&&(h.push(P),P="",j=!1);var je=U!==""&&me!==void 0&&me!==U,Oe=A==="+"||A==="*",Re=A==="?"||A==="*",$e=U||te,De=W||re;h.push({name:de||Z++,prefix:U,delimiter:$e,optional:Re,repeat:Oe,partial:je,pattern:De?s(De):"[^"+$($e)+"]+?"})}return(P||b-1;else{var U=K.repeat?"(?:"+K.pattern+")(?:"+$(K.delimiter)+"(?:"+K.pattern+"))*":K.pattern;V&&V.push(K),K.optional?K.partial?_+=$(K.prefix)+"("+U+")?":_+="(?:"+$(K.prefix)+"("+U+"))?":_+=$(K.prefix)+"("+U+")"}}return P?(Z||(_+="(?:"+te+")?"),_+=j==="$"?"$":"(?="+j+")"):(Z||(_+="(?:"+te+"(?="+j+"))?"),X||(_+="(?="+te+"|"+j+")")),new RegExp(_,Q(h))}function be(z,V,h){return z instanceof RegExp?ae(z,V):Array.isArray(z)?m(z,V,h):le(z,V,h)}},73177:function(ye,pe,p){"use strict";p.d(pe,{X:function(){return s},b:function(){return $}});var l=p(67159),ce=p(51812),ee=p(1977),ie=p(34155),$=function(){var ae;return typeof ie=="undefined"?l.Z:((ae=ie)===null||ie===void 0||(ie={NODE_ENV:"production",PUBLIC_PATH:"/admin/"})===null||ie===void 0?void 0:ie.ANTD_VERSION)||l.Z},s=function(ae,m){var le=(0,ee.n)($(),"4.23.0")>-1?{open:ae,onOpenChange:m}:{visible:ae,onVisibleChange:m};return(0,ce.Y)(le)}},10178:function(ye,pe,p){"use strict";p.d(pe,{D:function(){return $}});var l=p(74165),ce=p(15861),ee=p(67294),ie=p(48171);function $(s,Q){var ae=(0,ie.J)(s),m=(0,ee.useRef)(),le=(0,ee.useCallback)(function(){m.current&&(clearTimeout(m.current),m.current=null)},[]),ve=(0,ee.useCallback)((0,ce.Z)((0,l.Z)().mark(function be(){var z,V,h,Z=arguments;return(0,l.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:for(z=Z.length,V=new Array(z),h=0;h=ee.length?{done:!0}:{done:!1,value:ee[s++]}},e:function(be){throw be},f:Q}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ae=!0,m=!1,le;return{s:function(){$=$.call(ee)},n:function(){var be=$.next();return ae=be.done,be},e:function(be){m=!0,le=be},f:function(){try{!ae&&$.return!=null&&$.return()}finally{if(m)throw le}}}}ye.exports=ce,ye.exports.__esModule=!0,ye.exports.default=ye.exports}}]); diff --git a/starter/src/main/resources/templates/admin/676.5adaf018.async.js b/starter/src/main/resources/templates/admin/676.5adaf018.async.js new file mode 100644 index 0000000000..6f59e96526 --- /dev/null +++ b/starter/src/main/resources/templates/admin/676.5adaf018.async.js @@ -0,0 +1,21 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[676],{94737:function(We,fe){var c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};fe.Z=c},5966:function(We,fe,c){var s=c(97685),j=c(1413),me=c(91),Ie=c(21770),L=c(8232),Q=c(55241),ye=c(97435),Se=c(67294),E=c(64791),W=c(85893),$e=["fieldProps","proFieldProps"],O=["fieldProps","proFieldProps"],ce="text",He=function(S){var b=S.fieldProps,oe=S.proFieldProps,k=(0,me.Z)(S,$e);return(0,W.jsx)(E.Z,(0,j.Z)({valueType:ce,fieldProps:b,filedConfig:{valueType:ce},proFieldProps:oe},k))},Ne=function(S){var b=(0,Ie.Z)(S.open||!1,{value:S.open,onChange:S.onOpenChange}),oe=(0,s.Z)(b,2),k=oe[0],Fe=oe[1];return(0,W.jsx)(L.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(Ze){var ae,Re=Ze.getFieldValue(S.name||[]);return(0,W.jsx)(Q.Z,(0,j.Z)((0,j.Z)({getPopupContainer:function(U){return U&&U.parentNode?U.parentNode:U},onOpenChange:Fe,content:(0,W.jsxs)("div",{style:{padding:"4px 0"},children:[(ae=S.statusRender)===null||ae===void 0?void 0:ae.call(S,Re),S.strengthText?(0,W.jsx)("div",{style:{marginTop:10},children:(0,W.jsx)("span",{children:S.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},S.popoverProps),{},{open:k,children:S.children}))}})},Ve=function(S){var b=S.fieldProps,oe=S.proFieldProps,k=(0,me.Z)(S,O),Fe=(0,Se.useState)(!1),xe=(0,s.Z)(Fe,2),Ze=xe[0],ae=xe[1];return b!=null&&b.statusRender&&k.name?(0,W.jsx)(Ne,{name:k.name,statusRender:b==null?void 0:b.statusRender,popoverProps:b==null?void 0:b.popoverProps,strengthText:b==null?void 0:b.strengthText,open:Ze,onOpenChange:ae,children:(0,W.jsx)("div",{children:(0,W.jsx)(E.Z,(0,j.Z)({valueType:"password",fieldProps:(0,j.Z)((0,j.Z)({},(0,ye.Z)(b,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(we){var U;b==null||(U=b.onBlur)===null||U===void 0||U.call(b,we),ae(!1)},onClick:function(we){var U;b==null||(U=b.onClick)===null||U===void 0||U.call(b,we),ae(!0)}}),proFieldProps:oe,filedConfig:{valueType:ce}},k))})}):(0,W.jsx)(E.Z,(0,j.Z)({valueType:"password",fieldProps:b,proFieldProps:oe,filedConfig:{valueType:ce}},k))},De=He;De.Password=Ve,De.displayName="ProFormComponent",fe.Z=De},90672:function(We,fe,c){var s=c(1413),j=c(91),me=c(67294),Ie=c(64791),L=c(85893),Q=["fieldProps","proFieldProps"],ye=function(E,W){var $e=E.fieldProps,O=E.proFieldProps,ce=(0,j.Z)(E,Q);return(0,L.jsx)(Ie.Z,(0,s.Z)({ref:W,valueType:"textarea",fieldProps:$e,proFieldProps:O},ce))};fe.Z=me.forwardRef(ye)},66476:function(We,fe,c){c.d(fe,{Z:function(){return wn}});var s=c(67294),j=c(74902),me=c(73935),Ie=c(93967),L=c.n(Ie),Q=c(87462),ye=c(15671),Se=c(43144),E=c(97326),W=c(32531),$e=c(29388),O=c(4942),ce=c(1413),He=c(91),Ne=c(74165),Ve=c(71002),De=c(15861),Ae=c(64217),S=c(80334),b=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),o=e.name||"",l=e.type||"",a=l.replace(/\/.*$/,"");return n.some(function(i){var r=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(r.charAt(0)==="."){var u=o.toLowerCase(),d=r.toLowerCase(),p=[d];return(d===".jpg"||d===".jpeg")&&(p=[".jpg",".jpeg"]),p.some(function(g){return u.endsWith(g)})}return/\/\*$/.test(r)?a===r.replace(/\/.*$/,""):l===r?!0:/^\w+$/.test(r)?((0,S.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(r,"'.Skip for check.")),!0):!1})}return!0};function oe(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}function k(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function Fe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(l){var a=e.data[l];if(Array.isArray(a)){a.forEach(function(i){n.append("".concat(l,"[]"),i)});return}n.append(l,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(oe(e,t),k(t)):e.onSuccess(k(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var o=e.headers||{};return o["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(function(l){o[l]!==null&&t.setRequestHeader(l,o[l])}),t.send(n),{abort:function(){t.abort()}}}function xe(e,t){var n=e.createReader(),o=[];function l(){n.readEntries(function(a){var i=Array.prototype.slice.apply(a);o=o.concat(i);var r=!i.length;r?t(o):l()})}l()}var Ze=function(t,n,o){var l=function a(i,r){i&&(i.path=r||"",i.isFile?i.file(function(u){o(u)&&(i.fullPath&&!u.webkitRelativePath&&(Object.defineProperties(u,{webkitRelativePath:{writable:!0}}),u.webkitRelativePath=i.fullPath.replace(/^\//,""),Object.defineProperties(u,{webkitRelativePath:{writable:!1}})),n([u]))}):i.isDirectory&&xe(i,function(u){u.forEach(function(d){a(d,"".concat(r).concat(i.name,"/"))})}))};t.forEach(function(a){l(a.webkitGetAsEntry())})},ae=Ze,Re=+new Date,we=0;function U(){return"rc-upload-".concat(Re,"-").concat(++we)}var ft=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],mt=function(e){(0,W.Z)(n,e);var t=(0,$e.Z)(n);function n(){var o;(0,ye.Z)(this,n);for(var l=arguments.length,a=new Array(l),i=0;i{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${(0,M.bf)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${(0,M.bf)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + &:not(${t}-disabled):hover, + &-hover:not(${t}-disabled) + `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${(0,M.bf)(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, + p${t}-text, + p${t}-hint + `]:{color:e.colorTextDisabled}}}}}},Ot=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:l,lineHeight:a,calc:i}=e,r=`${t}-list-item`,u=`${r}-actions`,d=`${r}-action`,p=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,Te.dF)()),{lineHeight:e.lineHeight,[r]:{position:"relative",height:i(e.lineHeight).mul(l).equal(),marginTop:e.marginXS,fontSize:l,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${r}-name`]:Object.assign(Object.assign({},Te.vS),{padding:`0 ${(0,M.bf)(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[u]:{whiteSpace:"nowrap",[d]:{opacity:0},[o]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + ${d}:focus-visible, + &.picture ${d} + `]:{opacity:1},[`${d}${n}-btn`]:{height:p,border:0,lineHeight:1}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:l},[`${r}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(l).add(e.paddingXS).equal(),fontSize:l,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${r}:hover ${d}`]:{opacity:1},[`${r}-error`]:{color:e.colorError,[`${r}-name, ${t}-icon ${o}`]:{color:e.colorError},[u]:{[`${o}, ${o}:hover`]:{color:e.colorError},[d]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},It=c(16932);const tt=new M.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),nt=new M.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var St=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:tt},[`${n}-leave`]:{animationName:nt}}},{[`${t}-wrapper`]:(0,It.J$)(e)},tt,nt]},rt=c(78589);const Dt=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:l,calc:a}=e,i=`${t}-list`,r=`${i}-item`;return{[`${t}-wrapper`]:{[` + ${i}${i}-picture, + ${i}${i}-picture-card, + ${i}${i}-picture-circle + `]:{[r]:{position:"relative",height:a(o).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,M.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${r}-thumbnail`]:Object.assign(Object.assign({},Te.vS),{width:o,height:o,lineHeight:(0,M.bf)(a(o).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${r}-progress`]:{bottom:l,width:`calc(100% - ${(0,M.bf)(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(o).add(e.paddingXS).equal()}},[`${r}-error`]:{borderColor:e.colorError,[`${r}-thumbnail ${n}`]:{[`svg path[fill='${rt.iN[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${rt.iN.primary}']`]:{fill:e.colorError}}},[`${r}-uploading`]:{borderStyle:"dashed",[`${r}-name`]:{marginBottom:l}}},[`${i}${i}-picture-circle ${r}`]:{[`&, &::before, ${r}-thumbnail`]:{borderRadius:"50%"}}}}},Ft=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:l,calc:a}=e,i=`${t}-list`,r=`${i}-item`,u=e.uploadPicCardSize;return{[` + ${t}-wrapper${t}-picture-card-wrapper, + ${t}-wrapper${t}-picture-circle-wrapper + `]:Object.assign(Object.assign({},(0,Te.dF)()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:u,height:u,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,M.bf)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{[`${i}-item-container`]:{display:"inline-block",width:u,height:u,marginBlock:`0 ${(0,M.bf)(e.marginXS)}`,marginInline:`0 ${(0,M.bf)(e.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[r]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,M.bf)(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,M.bf)(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${r}:hover`]:{[`&::before, ${r}-actions`]:{opacity:1}},[`${r}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + ${n}-eye, + ${n}-download, + ${n}-delete + `]:{zIndex:10,width:o,margin:`0 ${(0,M.bf)(e.marginXXS)}`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:l,"&:hover":{color:l},svg:{verticalAlign:"baseline"}}},[`${r}-thumbnail, ${r}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${r}-name`]:{display:"none",textAlign:"center"},[`${r}-file + ${r}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,M.bf)(a(e.paddingXS).mul(2).equal())})`},[`${r}-uploading`]:{[`&${r}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${r}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,M.bf)(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var xt=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};const Zt=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,Te.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Rt=e=>({actionsColor:e.colorTextDescription});var Tt=(0,Ct.I$)("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:o,controlHeightLG:l,calc:a}=e,i=(0,Pt.TS)(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(o).equal(),uploadPicCardSize:a(l).mul(2.55).equal()});return[Zt(i),Et(i),Dt(i),Ft(i),Ot(i),St(i),xt(i),(0,wt.Z)(i)]},Rt),jt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},Lt=jt,je=c(93771),Mt=function(t,n){return s.createElement(je.Z,(0,Q.Z)({},t,{ref:n,icon:Lt}))},Ut=s.forwardRef(Mt),Nt=Ut,ot=c(19267),At={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},zt=At,Bt=function(t,n){return s.createElement(je.Z,(0,Q.Z)({},t,{ref:n,icon:zt}))},Wt=s.forwardRef(Bt),Ht=Wt,Vt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},Xt=Vt,Kt=function(t,n){return s.createElement(je.Z,(0,Q.Z)({},t,{ref:n,icon:Xt}))},Gt=s.forwardRef(Kt),Jt=Gt,Ge=c(82225),Yt=c(57838),Qt=c(33603),at=c(96159),it=c(14726);function ze(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Be(e,t){const n=(0,j.Z)(t),o=n.findIndex(l=>{let{uid:a}=l;return a===e.uid});return o===-1?n.push(e):n[o]=e,n}function Je(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(o=>o[n]===e[n])[0]}function qt(e,t){const n=e.uid!==void 0?"uid":"name",o=t.filter(l=>l[n]!==e[n]);return o.length===t.length?null:o}const kt=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),o=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},lt=e=>e.indexOf("image/")===0,_t=e=>{if(e.type&&!e.thumbUrl)return lt(e.type);const t=e.thumbUrl||e.url||"",n=kt(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},de=200;function en(e){return new Promise(t=>{if(!e.type||!lt(e.type)){t("");return}const n=document.createElement("canvas");n.width=de,n.height=de,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${de}px; height: ${de}px; z-index: 9999; display: none;`,document.body.appendChild(n);const o=n.getContext("2d"),l=new Image;if(l.onload=()=>{const{width:a,height:i}=l;let r=de,u=de,d=0,p=0;a>i?(u=i*(de/a),p=-(u-r)/2):(r=a*(de/i),d=-(r-u)/2),o.drawImage(l,d,p,r,u);const g=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(l.src),t(g)},l.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(l.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else l.src=window.URL.createObjectURL(e)})}var tn=c(47046),nn=function(t,n){return s.createElement(je.Z,(0,Q.Z)({},t,{ref:n,icon:tn.Z}))},rn=s.forwardRef(nn),on=rn,an={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ln=an,sn=function(t,n){return s.createElement(je.Z,(0,Q.Z)({},t,{ref:n,icon:ln}))},cn=s.forwardRef(sn),dn=cn,un=c(1208),pn=c(38703),fn=c(83062),mn=s.forwardRef((e,t)=>{let{prefixCls:n,className:o,style:l,locale:a,listType:i,file:r,items:u,progress:d,iconRender:p,actionIconRender:g,itemRender:y,isImgUrl:C,showPreviewIcon:N,showRemoveIcon:K,showDownloadIcon:G,previewIcon:Z,removeIcon:A,downloadIcon:z,onPreview:R,onDownload:m,onClose:B}=e;var D,_;const{status:ee}=r,[H,ue]=s.useState(ee);s.useEffect(()=>{ee!=="removed"&&ue(ee)},[ee]);const[ve,Ce]=s.useState(!1);s.useEffect(()=>{const F=setTimeout(()=>{Ce(!0)},300);return()=>{clearTimeout(F)}},[]);const ie=p(r);let pe=s.createElement("div",{className:`${n}-icon`},ie);if(i==="picture"||i==="picture-card"||i==="picture-circle")if(H==="uploading"||!r.thumbUrl&&!r.url){const F=L()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:H!=="uploading"});pe=s.createElement("div",{className:F},ie)}else{const F=C!=null&&C(r)?s.createElement("img",{src:r.thumbUrl||r.url,alt:r.name,className:`${n}-list-item-image`,crossOrigin:r.crossOrigin}):ie,ne=L()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:C&&!C(r)});pe=s.createElement("a",{className:ne,onClick:re=>R(r,re),href:r.url||r.thumbUrl,target:"_blank",rel:"noopener noreferrer"},F)}const J=L()(`${n}-list-item`,`${n}-list-item-${H}`),x=typeof r.linkProps=="string"?JSON.parse(r.linkProps):r.linkProps,Pe=K?g((typeof A=="function"?A(r):A)||s.createElement(on,null),()=>B(r),n,a.removeFile,!0):null,Ee=G&&H==="done"?g((typeof z=="function"?z(r):z)||s.createElement(dn,null),()=>m(r),n,a.downloadFile):null,Me=i!=="picture-card"&&i!=="picture-circle"&&s.createElement("span",{key:"download-delete",className:L()(`${n}-list-item-actions`,{picture:i==="picture"})},Ee,Pe),q=L()(`${n}-list-item-name`),le=r.url?[s.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:q,title:r.name},x,{href:r.url,onClick:F=>R(r,F)}),r.name),Me]:[s.createElement("span",{key:"view",className:q,onClick:F=>R(r,F),title:r.name},r.name),Me],f=N&&(r.url||r.thumbUrl)?s.createElement("a",{href:r.url||r.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:F=>R(r,F),title:a.previewFile},typeof Z=="function"?Z(r):Z||s.createElement(un.Z,null)):null,I=(i==="picture-card"||i==="picture-circle")&&H!=="uploading"&&s.createElement("span",{className:`${n}-list-item-actions`},f,H==="done"&&Ee,Pe),{getPrefixCls:Y}=s.useContext(Ke.E_),V=Y(),se=s.createElement("div",{className:J},pe,le,I,ve&&s.createElement(Ge.ZP,{motionName:`${V}-fade`,visible:H==="uploading",motionDeadline:2e3},F=>{let{className:ne}=F;const re="percent"in r?s.createElement(pn.Z,Object.assign({},d,{type:"line",percent:r.percent,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]})):null;return s.createElement("div",{className:L()(`${n}-list-item-progress`,ne)},re)})),ge=r.response&&typeof r.response=="string"?r.response:((D=r.error)===null||D===void 0?void 0:D.statusText)||((_=r.error)===null||_===void 0?void 0:_.message)||a.uploadError,te=H==="error"?s.createElement(fn.Z,{title:ge,getPopupContainer:F=>F.parentNode},se):se;return s.createElement("div",{className:L()(`${n}-list-item-container`,o),style:l,ref:t},y?y(te,r,u,{download:m.bind(null,r),preview:R.bind(null,r),remove:B.bind(null,r)}):te)});const vn=(e,t)=>{const{listType:n="text",previewFile:o=en,onPreview:l,onDownload:a,onRemove:i,locale:r,iconRender:u,isImageUrl:d=_t,prefixCls:p,items:g=[],showPreviewIcon:y=!0,showRemoveIcon:C=!0,showDownloadIcon:N=!1,removeIcon:K,previewIcon:G,downloadIcon:Z,progress:A={size:[-1,2],showInfo:!1},appendAction:z,appendActionVisible:R=!0,itemRender:m,disabled:B}=e,D=(0,Yt.Z)(),[_,ee]=s.useState(!1);s.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(g||[]).forEach(f=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(f.originFileObj instanceof File||f.originFileObj instanceof Blob)||f.thumbUrl!==void 0||(f.thumbUrl="",o&&o(f.originFileObj).then(I=>{f.thumbUrl=I||"",D()}))})},[n,g,o]),s.useEffect(()=>{ee(!0)},[]);const H=(f,I)=>{if(l)return I==null||I.preventDefault(),l(f)},ue=f=>{typeof a=="function"?a(f):f.url&&window.open(f.url)},ve=f=>{i==null||i(f)},Ce=f=>{if(u)return u(f,n);const I=f.status==="uploading",Y=d&&d(f)?s.createElement(Jt,null):s.createElement(Nt,null);let V=I?s.createElement(ot.Z,null):s.createElement(Ht,null);return n==="picture"?V=I?s.createElement(ot.Z,null):Y:(n==="picture-card"||n==="picture-circle")&&(V=I?r.uploading:Y),V},ie=(f,I,Y,V,se)=>{const ge={type:"text",size:"small",title:V,onClick:te=>{var F,ne;I(),s.isValidElement(f)&&((ne=(F=f.props).onClick)===null||ne===void 0||ne.call(F,te))},className:`${Y}-list-item-action`};if(se&&(ge.disabled=B),s.isValidElement(f)){const te=(0,at.Tm)(f,Object.assign(Object.assign({},f.props),{onClick:()=>{}}));return s.createElement(it.ZP,Object.assign({},ge,{icon:te}))}return s.createElement(it.ZP,Object.assign({},ge),s.createElement("span",null,f))};s.useImperativeHandle(t,()=>({handlePreview:H,handleDownload:ue}));const{getPrefixCls:pe}=s.useContext(Ke.E_),J=pe("upload",p),x=pe(),Pe=L()(`${J}-list`,`${J}-list-${n}`),Ee=(0,j.Z)(g.map(f=>({key:f.uid,file:f})));let q={motionDeadline:2e3,motionName:`${J}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:Ee,motionAppear:_};const le=s.useMemo(()=>{const f=Object.assign({},(0,Qt.Z)(x));return delete f.onAppearEnd,delete f.onEnterEnd,delete f.onLeaveEnd,f},[x]);return n!=="picture-card"&&n!=="picture-circle"&&(q=Object.assign(Object.assign({},le),q)),s.createElement("div",{className:Pe},s.createElement(Ge.V4,Object.assign({},q,{component:!1}),f=>{let{key:I,file:Y,className:V,style:se}=f;return s.createElement(mn,{key:I,locale:r,prefixCls:J,className:V,style:se,file:Y,items:g,progress:A,listType:n,isImgUrl:d,showPreviewIcon:y,showRemoveIcon:C,showDownloadIcon:N,removeIcon:K,previewIcon:G,downloadIcon:Z,iconRender:Ce,actionIconRender:ie,itemRender:m,onPreview:H,onDownload:ue,onClose:ve})}),z&&s.createElement(Ge.ZP,Object.assign({},q,{visible:R,forceRender:!0}),f=>{let{className:I,style:Y}=f;return(0,at.Tm)(z,V=>({className:L()(V.className,I),style:Object.assign(Object.assign(Object.assign({},Y),{pointerEvents:I?"none":void 0}),V.style)}))}))};var gn=s.forwardRef(vn),hn=function(e,t,n,o){function l(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function r(p){try{d(o.next(p))}catch(g){i(g)}}function u(p){try{d(o.throw(p))}catch(g){i(g)}}function d(p){p.done?a(p.value):l(p.value).then(r,u)}d((o=o.apply(e,t||[])).next())})};const Le=`__LIST_IGNORE_${Date.now()}__`,bn=(e,t)=>{const{fileList:n,defaultFileList:o,onRemove:l,showUploadList:a=!0,listType:i="text",onPreview:r,onDownload:u,onChange:d,onDrop:p,previewFile:g,disabled:y,locale:C,iconRender:N,isImageUrl:K,progress:G,prefixCls:Z,className:A,type:z="select",children:R,style:m,itemRender:B,maxCount:D,data:_={},multiple:ee=!1,hasControlInside:H=!0,action:ue="",accept:ve="",supportServerRender:Ce=!0,rootClassName:ie}=e,pe=s.useContext(bt.Z),J=y!=null?y:pe,[x,Pe]=(0,ht.Z)(o||[],{value:n,postState:v=>v!=null?v:[]}),[Ee,Me]=s.useState("drop"),q=s.useRef(null);s.useMemo(()=>{const v=Date.now();(n||[]).forEach(($,P)=>{!$.uid&&!Object.isFrozen($)&&($.uid=`__AUTO__${v}_${P}__`)})},[n]);const le=(v,$,P)=>{let h=(0,j.Z)($),w=!1;D===1?h=h.slice(-1):D&&(w=h.length>D,h=h.slice(0,D)),(0,me.flushSync)(()=>{Pe(h)});const X={file:v,fileList:h};P&&(X.event=P),(!w||h.some(he=>he.uid===v.uid))&&(0,me.flushSync)(()=>{d==null||d(X)})},f=(v,$)=>hn(void 0,void 0,void 0,function*(){const{beforeUpload:P,transformFile:h}=e;let w=v;if(P){const X=yield P(v,$);if(X===!1)return!1;if(delete v[Le],X===Le)return Object.defineProperty(v,Le,{value:!0,configurable:!0}),!1;typeof X=="object"&&X&&(w=X)}return h&&(w=yield h(w)),w}),I=v=>{const $=v.filter(w=>!w.file[Le]);if(!$.length)return;const P=$.map(w=>ze(w.file));let h=(0,j.Z)(x);P.forEach(w=>{h=Be(w,h)}),P.forEach((w,X)=>{let he=w;if($[X].parsedFile)w.status="uploading";else{const{originFileObj:Oe}=w;let be;try{be=new File([Oe],Oe.name,{type:Oe.type})}catch(zn){be=new Blob([Oe],{type:Oe.type}),be.name=Oe.name,be.lastModifiedDate=new Date,be.lastModified=new Date().getTime()}be.uid=w.uid,he=be}le(he,h)})},Y=(v,$,P)=>{try{typeof v=="string"&&(v=JSON.parse(v))}catch(X){}if(!Je($,x))return;const h=ze($);h.status="done",h.percent=100,h.response=v,h.xhr=P;const w=Be(h,x);le(h,w)},V=(v,$)=>{if(!Je($,x))return;const P=ze($);P.status="uploading",P.percent=v.percent;const h=Be(P,x);le(P,h,v)},se=(v,$,P)=>{if(!Je(P,x))return;const h=ze(P);h.error=v,h.response=$,h.status="error";const w=Be(h,x);le(h,w)},ge=v=>{let $;Promise.resolve(typeof l=="function"?l(v):l).then(P=>{var h;if(P===!1)return;const w=qt(v,x);w&&($=Object.assign(Object.assign({},v),{status:"removed"}),x==null||x.forEach(X=>{const he=$.uid!==void 0?"uid":"name";X[he]===$[he]&&!Object.isFrozen(X)&&(X.status="removed")}),(h=q.current)===null||h===void 0||h.abort($),le($,w))})},te=v=>{Me(v.type),v.type==="drop"&&(p==null||p(v))};s.useImperativeHandle(t,()=>({onBatchStart:I,onSuccess:Y,onProgress:V,onError:se,fileList:x,upload:q.current}));const{getPrefixCls:F,direction:ne,upload:re}=s.useContext(Ke.E_),T=F("upload",Z),Ue=Object.assign(Object.assign({onBatchStart:I,onError:se,onProgress:V,onSuccess:Y},e),{data:_,multiple:ee,action:ue,accept:ve,supportServerRender:Ce,prefixCls:T,disabled:J,beforeUpload:f,onChange:void 0,hasControlInside:H});delete Ue.className,delete Ue.style,(!R||J)&&delete Ue.id;const ct=`${T}-wrapper`,[Qe,dt,Cn]=Tt(T,ct),[Pn]=(0,yt.Z)("Upload",$t.Z.Upload),{showRemoveIcon:ut,showPreviewIcon:En,showDownloadIcon:On,removeIcon:In,previewIcon:Sn,downloadIcon:Dn}=typeof a=="boolean"?{}:a,Fn=typeof ut=="undefined"?!J:!!ut,qe=(v,$)=>a?s.createElement(gn,{prefixCls:T,listType:i,items:x,previewFile:g,onPreview:r,onDownload:u,onRemove:ge,showRemoveIcon:Fn,showPreviewIcon:En,showDownloadIcon:On,removeIcon:In,previewIcon:Sn,downloadIcon:Dn,iconRender:N,locale:Object.assign(Object.assign({},Pn),C),isImageUrl:K,progress:G,appendAction:v,appendActionVisible:$,itemRender:B,disabled:J}):v,ke=L()(ct,A,ie,dt,Cn,re==null?void 0:re.className,{[`${T}-rtl`]:ne==="rtl",[`${T}-picture-card-wrapper`]:i==="picture-card",[`${T}-picture-circle-wrapper`]:i==="picture-circle"}),xn=Object.assign(Object.assign({},re==null?void 0:re.style),m);if(z==="drag"){const v=L()(dt,T,`${T}-drag`,{[`${T}-drag-uploading`]:x.some($=>$.status==="uploading"),[`${T}-drag-hover`]:Ee==="dragover",[`${T}-disabled`]:J,[`${T}-rtl`]:ne==="rtl"});return Qe(s.createElement("span",{className:ke},s.createElement("div",{className:v,style:xn,onDrop:te,onDragOver:te,onDragLeave:te},s.createElement(et,Object.assign({},Ue,{ref:q,className:`${T}-btn`}),s.createElement("div",{className:`${T}-drag-container`},R))),qe()))}const Zn=L()(T,`${T}-select`,{[`${T}-disabled`]:J}),pt=s.createElement("div",{className:Zn,style:R?void 0:{display:"none"}},s.createElement(et,Object.assign({},Ue,{ref:q})));return Qe(i==="picture-card"||i==="picture-circle"?s.createElement("span",{className:ke},qe(pt,!!R)):s.createElement("span",{className:ke},pt,qe()))};var st=s.forwardRef(bn),yn=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l{var{style:n,height:o,hasControlInside:l=!1}=e,a=yn(e,["style","height","hasControlInside"]);return s.createElement(st,Object.assign({ref:t,hasControlInside:l},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:o})}))});const Ye=st;Ye.Dragger=$n,Ye.LIST_IGNORE=Le;var wn=Ye}}]); diff --git a/starter/src/main/resources/templates/admin/69.dac29bc7.async.js b/starter/src/main/resources/templates/admin/69.dac29bc7.async.js new file mode 100644 index 0000000000..276994a7a0 --- /dev/null +++ b/starter/src/main/resources/templates/admin/69.dac29bc7.async.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[69],{78045:function(me,ne,n){n.d(ne,{ZP:function(){return ye}});var i=n(67294),_=n(93967),L=n.n(_),ae=n(21770),ie=n(64217),G=n(53124),le=n(98675);const F=i.createContext(null),M=F.Provider;var de=F;const X=i.createContext(null),h=X.Provider;var se=n(50132),Q=n(42550),T=n(45353),ce=n(17415),ue=n(98866),be=n(65223),$=n(6731),w=n(14747),fe=n(91945),J=n(45503);const Y=o=>{const{componentCls:r,antCls:a}=o,t=`${r}-group`;return{[t]:Object.assign(Object.assign({},(0,w.Wf)(o)),{display:"inline-block",fontSize:0,[`&${t}-rtl`]:{direction:"rtl"},[`${a}-badge ${a}-badge-count`]:{zIndex:1},[`> ${a}-badge:not(:first-child) > ${a}-button-wrapper`]:{borderInlineStart:"none"}})}},ge=o=>{const{componentCls:r,wrapperMarginInlineEnd:a,colorPrimary:t,radioSize:e,motionDurationSlow:c,motionDurationMid:C,motionEaseInOutCirc:m,colorBgContainer:u,colorBorder:k,lineWidth:S,colorBgContainerDisabled:E,colorTextDisabled:O,paddingXS:P,dotColorDisabled:B,lineType:I,radioColor:b,radioBgColor:y,calc:g}=o,R=`${r}-inner`,x=4,p=g(e).sub(g(x).mul(2)),d=g(1).mul(e).equal();return{[`${r}-wrapper`]:Object.assign(Object.assign({},(0,w.Wf)(o)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:a,cursor:"pointer",[`&${r}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:o.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${r}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,$.bf)(S)} ${I} ${t}`,borderRadius:"50%",visibility:"hidden",content:'""'},[r]:Object.assign(Object.assign({},(0,w.Wf)(o)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${r}-wrapper:hover &, + &:hover ${R}`]:{borderColor:t},[`${r}-input:focus-visible + ${R}`]:Object.assign({},(0,w.oN)(o)),[`${r}:hover::after, ${r}-wrapper:hover &::after`]:{visibility:"visible"},[`${r}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:d,height:d,marginBlockStart:g(1).mul(e).div(-2).equal(),marginInlineStart:g(1).mul(e).div(-2).equal(),backgroundColor:b,borderBlockStart:0,borderInlineStart:0,borderRadius:d,transform:"scale(0)",opacity:0,transition:`all ${c} ${m}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:d,height:d,backgroundColor:u,borderColor:k,borderStyle:"solid",borderWidth:S,borderRadius:"50%",transition:`all ${C}`},[`${r}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${r}-checked`]:{[R]:{borderColor:t,backgroundColor:y,"&::after":{transform:`scale(${o.calc(o.dotSize).div(e).equal()})`,opacity:1,transition:`all ${c} ${m}`}}},[`${r}-disabled`]:{cursor:"not-allowed",[R]:{backgroundColor:E,borderColor:k,cursor:"not-allowed","&::after":{backgroundColor:B}},[`${r}-input`]:{cursor:"not-allowed"},[`${r}-disabled + span`]:{color:O,cursor:"not-allowed"},[`&${r}-checked`]:{[R]:{"&::after":{transform:`scale(${g(p).div(e).equal({unit:!1})})`}}}},[`span${r} + *`]:{paddingInlineStart:P,paddingInlineEnd:P}})}},K=o=>{const{buttonColor:r,controlHeight:a,componentCls:t,lineWidth:e,lineType:c,colorBorder:C,motionDurationSlow:m,motionDurationMid:u,buttonPaddingInline:k,fontSize:S,buttonBg:E,fontSizeLG:O,controlHeightLG:P,controlHeightSM:B,paddingXS:I,borderRadius:b,borderRadiusSM:y,borderRadiusLG:g,buttonCheckedBg:R,buttonSolidCheckedColor:x,colorTextDisabled:p,colorBgContainerDisabled:d,buttonCheckedBgDisabled:W,buttonCheckedColorDisabled:U,colorPrimary:D,colorPrimaryHover:N,colorPrimaryActive:s,buttonSolidCheckedBg:A,buttonSolidCheckedHoverBg:H,buttonSolidCheckedActiveBg:l,calc:f}=o;return{[`${t}-button-wrapper`]:{position:"relative",display:"inline-block",height:a,margin:0,paddingInline:k,paddingBlock:0,color:r,fontSize:S,lineHeight:(0,$.bf)(f(a).sub(f(e).mul(2)).equal()),background:E,border:`${(0,$.bf)(e)} ${c} ${C}`,borderBlockStartWidth:f(e).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:e,cursor:"pointer",transition:[`color ${u}`,`background ${u}`,`box-shadow ${u}`].join(","),a:{color:r},[`> ${t}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:f(e).mul(-1).equal(),insetInlineStart:f(e).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:e,paddingInline:0,backgroundColor:C,transition:`background-color ${m}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,$.bf)(e)} ${c} ${C}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${t}-group-large &`]:{height:P,fontSize:O,lineHeight:(0,$.bf)(f(P).sub(f(e).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},[`${t}-group-small &`]:{height:B,paddingInline:f(I).sub(e).equal(),paddingBlock:0,lineHeight:(0,$.bf)(f(B).sub(f(e).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:D},"&:has(:focus-visible)":Object.assign({},(0,w.oN)(o)),[`${t}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${t}-button-wrapper-disabled)`]:{zIndex:1,color:D,background:R,borderColor:D,"&::before":{backgroundColor:D},"&:first-child":{borderColor:D},"&:hover":{color:N,borderColor:N,"&::before":{backgroundColor:N}},"&:active":{color:s,borderColor:s,"&::before":{backgroundColor:s}}},[`${t}-group-solid &-checked:not(${t}-button-wrapper-disabled)`]:{color:x,background:A,borderColor:A,"&:hover":{color:x,background:H,borderColor:H},"&:active":{color:x,background:l,borderColor:l}},"&-disabled":{color:p,backgroundColor:d,borderColor:C,cursor:"not-allowed","&:first-child, &:hover":{color:p,backgroundColor:d,borderColor:C}},[`&-disabled${t}-button-wrapper-checked`]:{color:U,backgroundColor:W,borderColor:C,boxShadow:"none"}}}},he=o=>{const{wireframe:r,padding:a,marginXS:t,lineWidth:e,fontSizeLG:c,colorText:C,colorBgContainer:m,colorTextDisabled:u,controlItemBgActiveDisabled:k,colorTextLightSolid:S,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:P,colorWhite:B}=o,I=4,b=c,y=r?b-I*2:b-(I+e)*2;return{radioSize:b,dotSize:y,dotColorDisabled:u,buttonSolidCheckedColor:S,buttonSolidCheckedBg:E,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:P,buttonBg:m,buttonCheckedBg:m,buttonColor:C,buttonCheckedBgDisabled:k,buttonCheckedColorDisabled:u,buttonPaddingInline:a-e,wrapperMarginInlineEnd:t,radioColor:r?E:B,radioBgColor:r?m:E}};var z=(0,fe.I$)("Radio",o=>{const{controlOutline:r,controlOutlineWidth:a}=o,t=`0 0 0 ${(0,$.bf)(a)} ${r}`,e=t,c=(0,J.TS)(o,{radioFocusShadow:t,radioButtonFocusShadow:e});return[Y(c),ge(c),K(c)]},he,{unitless:{radioSize:!0,dotSize:!0}}),q=n(35792),ee=function(o,r){var a={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&r.indexOf(t)<0&&(a[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,t=Object.getOwnPropertySymbols(o);e{var a,t;const e=i.useContext(de),c=i.useContext(X),{getPrefixCls:C,direction:m,radio:u}=i.useContext(G.E_),k=i.useRef(null),S=(0,Q.sQ)(r,k),{isFormItemInput:E}=i.useContext(be.aM),O=l=>{var f,V;(f=o.onChange)===null||f===void 0||f.call(o,l),(V=e==null?void 0:e.onChange)===null||V===void 0||V.call(e,l)},{prefixCls:P,className:B,rootClassName:I,children:b,style:y,title:g}=o,R=ee(o,["prefixCls","className","rootClassName","children","style","title"]),x=C("radio",P),p=((e==null?void 0:e.optionType)||c)==="button",d=p?`${x}-button`:x,W=(0,q.Z)(x),[U,D,N]=z(x,W),s=Object.assign({},R),A=i.useContext(ue.Z);e&&(s.name=e.name,s.onChange=O,s.checked=o.value===e.value,s.disabled=(a=s.disabled)!==null&&a!==void 0?a:e.disabled),s.disabled=(t=s.disabled)!==null&&t!==void 0?t:A;const H=L()(`${d}-wrapper`,{[`${d}-wrapper-checked`]:s.checked,[`${d}-wrapper-disabled`]:s.disabled,[`${d}-wrapper-rtl`]:m==="rtl",[`${d}-wrapper-in-form-item`]:E},u==null?void 0:u.className,B,I,D,N,W);return U(i.createElement(T.Z,{component:"Radio",disabled:s.disabled},i.createElement("label",{className:H,style:Object.assign(Object.assign({},u==null?void 0:u.style),y),onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave,title:g},i.createElement(se.Z,Object.assign({},s,{className:L()(s.className,!p&&ce.A),type:"radio",prefixCls:d,ref:S})),b!==void 0?i.createElement("span",null,b):null)))};var Z=i.forwardRef(oe);const Ce=i.forwardRef((o,r)=>{const{getPrefixCls:a,direction:t}=i.useContext(G.E_),[e,c]=(0,ae.Z)(o.defaultValue,{value:o.value}),C=l=>{const f=e,V=l.target.value;"value"in o||c(V);const{onChange:pe}=o;pe&&V!==f&&pe(l)},{prefixCls:m,className:u,rootClassName:k,options:S,buttonStyle:E="outline",disabled:O,children:P,size:B,style:I,id:b,onMouseEnter:y,onMouseLeave:g,onFocus:R,onBlur:x}=o,p=a("radio",m),d=`${p}-group`,W=(0,q.Z)(p),[U,D,N]=z(p,W);let s=P;S&&S.length>0&&(s=S.map(l=>typeof l=="string"||typeof l=="number"?i.createElement(Z,{key:l.toString(),prefixCls:p,disabled:O,value:l,checked:e===l},l):i.createElement(Z,{key:`radio-group-value-options-${l.value}`,prefixCls:p,disabled:l.disabled||O,value:l.value,checked:e===l.value,title:l.title,style:l.style,id:l.id,required:l.required},l.label)));const A=(0,le.Z)(B),H=L()(d,`${d}-${E}`,{[`${d}-${A}`]:A,[`${d}-rtl`]:t==="rtl"},u,k,D,N,W);return U(i.createElement("div",Object.assign({},(0,ie.Z)(o,{aria:!0,data:!0}),{className:H,style:I,onMouseEnter:y,onMouseLeave:g,onFocus:R,onBlur:x,id:b,ref:r}),i.createElement(M,{value:{onChange:C,value:e,disabled:o.disabled,name:o.name,optionType:o.optionType}},s)))});var te=i.memo(Ce),v=function(o,r){var a={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&r.indexOf(t)<0&&(a[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,t=Object.getOwnPropertySymbols(o);e{const{getPrefixCls:a}=i.useContext(G.E_),{prefixCls:t}=o,e=v(o,["prefixCls"]),c=a("radio",t);return i.createElement(h,{value:"button"},i.createElement(Z,Object.assign({prefixCls:c},e,{type:"radio",ref:r})))};var Se=i.forwardRef(j);const re=Z;re.Button=Se,re.Group=te,re.__ANT_RADIO=!0;var ye=re},50132:function(me,ne,n){var i=n(87462),_=n(1413),L=n(4942),ae=n(97685),ie=n(91),G=n(93967),le=n.n(G),F=n(21770),M=n(67294),de=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],X=(0,M.forwardRef)(function(h,se){var Q=h.prefixCls,T=Q===void 0?"rc-checkbox":Q,ce=h.className,ue=h.style,be=h.checked,$=h.disabled,w=h.defaultChecked,fe=w===void 0?!1:w,J=h.type,Y=J===void 0?"checkbox":J,ge=h.title,K=h.onChange,he=(0,ie.Z)(h,de),z=(0,M.useRef)(null),q=(0,F.Z)(fe,{value:be}),ee=(0,ae.Z)(q,2),oe=ee[0],ve=ee[1];(0,M.useImperativeHandle)(se,function(){return{focus:function(v){var j;(j=z.current)===null||j===void 0||j.focus(v)},blur:function(){var v;(v=z.current)===null||v===void 0||v.blur()},input:z.current}});var Z=le()(T,ce,(0,L.Z)((0,L.Z)({},"".concat(T,"-checked"),oe),"".concat(T,"-disabled"),$)),Ce=function(v){$||("checked"in h||ve(v.target.checked),K==null||K({target:(0,_.Z)((0,_.Z)({},h),{},{type:Y,checked:v.target.checked}),stopPropagation:function(){v.stopPropagation()},preventDefault:function(){v.preventDefault()},nativeEvent:v.nativeEvent}))};return M.createElement("span",{className:Z,title:ge,style:ue},M.createElement("input",(0,i.Z)({},he,{className:"".concat(T,"-input"),ref:z,onChange:Ce,disabled:$,checked:!!oe,type:Y})),M.createElement("span",{className:"".concat(T,"-inner")}))});ne.Z=X}}]); diff --git a/starter/src/main/resources/templates/admin/736.70a48031.async.js b/starter/src/main/resources/templates/admin/736.70a48031.async.js new file mode 100644 index 0000000000..340d7e779c --- /dev/null +++ b/starter/src/main/resources/templates/admin/736.70a48031.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[736],{64789:function(vt,U,i){i.d(U,{Z:function(){return X}});var P=i(1413),G=i(67294),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},n=I,F=i(89099),H=function(W,V){return G.createElement(F.Z,(0,P.Z)((0,P.Z)({},W),{},{ref:V,icon:n}))},M=G.forwardRef(H),X=M},77636:function(vt,U,i){i.d(U,{Z:function(){return at}});var P=i(1413),G=i(91),I=i(87462),n=i(67294),F=i(94737),H=i(46976),M=function(g,Y){return n.createElement(H.Z,(0,I.Z)({},g,{ref:Y,icon:F.Z}))},X=n.forwardRef(M),D=X,W=i(66476),V=i(14726),nt=i(9105),it=i(90789),R=i(85893),J=["fieldProps","action","accept","listType","title","max","icon","buttonProps","disabled","proFieldProps"],rt=function(g,Y){var m,y=g.fieldProps,lt=g.action,st=g.accept,A=g.listType,l=g.title,c=l===void 0?"\u5355\u51FB\u4E0A\u4F20":l,d=g.max,s=g.icon,v=s===void 0?(0,R.jsx)(D,{}):s,ot=g.buttonProps,Q=g.disabled,B=g.proFieldProps,e=(0,G.Z)(g,J),t=(0,n.useMemo)(function(){var $;return($=e.fileList)!==null&&$!==void 0?$:e.value},[e.fileList,e.value]),a=(0,n.useContext)(nt.A),r=(B==null?void 0:B.mode)||a.mode||"edit",o=(d===void 0||!t||(t==null?void 0:t.length){const d={};return D.forEach(s=>{d[`${l}-wrap-${s}`]=c.wrap===s}),d},it=(l,c)=>{const d={};return V.forEach(s=>{d[`${l}-align-${s}`]=c.align===s}),d[`${l}-align-stretch`]=!c.align&&!!c.vertical,d},R=(l,c)=>{const d={};return W.forEach(s=>{d[`${l}-justify-${s}`]=c.justify===s}),d};function J(l,c){return I()(Object.assign(Object.assign(Object.assign({},nt(l,c)),it(l,c)),R(l,c)))}var rt=J;const k=l=>{const{componentCls:c}=l;return{[c]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},at=l=>{const{componentCls:c}=l;return{[c]:{"&-gap-small":{gap:l.flexGapSM},"&-gap-middle":{gap:l.flexGap},"&-gap-large":{gap:l.flexGapLG}}}},q=l=>{const{componentCls:c}=l,d={};return D.forEach(s=>{d[`${c}-wrap-${s}`]={flexWrap:s}}),d},g=l=>{const{componentCls:c}=l,d={};return V.forEach(s=>{d[`${c}-align-${s}`]={alignItems:s}}),d},Y=l=>{const{componentCls:c}=l,d={};return W.forEach(s=>{d[`${c}-justify-${s}`]={justifyContent:s}}),d},m=()=>({});var y=(0,M.I$)("Flex",l=>{const{paddingXS:c,padding:d,paddingLG:s}=l,v=(0,X.TS)(l,{flexGapSM:c,flexGap:d,flexGapLG:s});return[k(v),at(v),q(v),g(v),Y(v)]},m,{resetStyle:!1}),lt=function(l,c){var d={};for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&c.indexOf(s)<0&&(d[s]=l[s]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,s=Object.getOwnPropertySymbols(l);v{const{prefixCls:d,rootClassName:s,className:v,style:ot,flex:Q,gap:B,children:e,vertical:t=!1,component:a="div"}=l,r=lt(l,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:o,direction:f,getPrefixCls:$}=P.useContext(H.E_),p=$("flex",d),[h,O,j]=y(p),w=t!=null?t:o==null?void 0:o.vertical,x=I()(v,s,o==null?void 0:o.className,p,O,j,rt(p,l),{[`${p}-rtl`]:f==="rtl",[`${p}-gap-${B}`]:(0,F.n)(B),[`${p}-vertical`]:w}),z=Object.assign(Object.assign({},o==null?void 0:o.style),ot);return Q&&(z.flex=Q),B&&!(0,F.n)(B)&&(z.gap=B),h(P.createElement(a,Object.assign({ref:c,className:x,style:z},(0,n.Z)(r,["justify","wrap","align"])),e))})},2487:function(vt,U,i){i.d(U,{Z:function(){return B}});var P=i(74902),G=i(93967),I=i.n(G),n=i(67294),F=i(38780),H=i(74443),M=i(53124),X=i(88258),D=i(92820),W=i(25378),V=i(72252),nt=i(75081),it=i(96159),R=i(21584);const J=n.createContext({}),rt=J.Consumer;var k=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:a,avatar:r,title:o,description:f}=e,$=k(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:p}=(0,n.useContext)(M.E_),h=p("list",t),O=I()(`${h}-item-meta`,a),j=n.createElement("div",{className:`${h}-item-meta-content`},o&&n.createElement("h4",{className:`${h}-item-meta-title`},o),f&&n.createElement("div",{className:`${h}-item-meta-description`},f));return n.createElement("div",Object.assign({},$,{className:O}),r&&n.createElement("div",{className:`${h}-item-meta-avatar`},r),(o||f)&&j)},q=(e,t)=>{var{prefixCls:a,children:r,actions:o,extra:f,className:$,colStyle:p}=e,h=k(e,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:O,itemLayout:j}=(0,n.useContext)(J),{getPrefixCls:w}=(0,n.useContext)(M.E_),x=()=>{let N;return n.Children.forEach(r,T=>{typeof T=="string"&&(N=!0)}),N&&n.Children.count(r)>1},z=()=>j==="vertical"?!!f:!x(),C=w("list",a),Z=o&&o.length>0&&n.createElement("ul",{className:`${C}-item-action`,key:"actions"},o.map((N,T)=>n.createElement("li",{key:`${C}-item-action-${T}`},N,T!==o.length-1&&n.createElement("em",{className:`${C}-item-action-split`})))),K=O?"div":"li",_=n.createElement(K,Object.assign({},h,O?{}:{ref:t},{className:I()(`${C}-item`,{[`${C}-item-no-flex`]:!z()},$)}),j==="vertical"&&f?[n.createElement("div",{className:`${C}-item-main`,key:"content"},r,Z),n.createElement("div",{className:`${C}-item-extra`,key:"extra"},f)]:[r,Z,(0,it.Tm)(f,{key:"extra"})]);return O?n.createElement(R.Z,{ref:t,flex:1,style:p},_):_},g=(0,n.forwardRef)(q);g.Meta=at;var Y=g,m=i(6731),y=i(14747),lt=i(91945),st=i(45503);const A=e=>{const{listBorderedCls:t,componentCls:a,paddingLG:r,margin:o,itemPaddingSM:f,itemPaddingLG:$,marginLG:p,borderRadiusLG:h}=e;return{[`${t}`]:{border:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:h,[`${a}-header,${a}-footer,${a}-item`]:{paddingInline:r},[`${a}-pagination`]:{margin:`${(0,m.bf)(o)} ${(0,m.bf)(p)}`}},[`${t}${a}-sm`]:{[`${a}-item,${a}-header,${a}-footer`]:{padding:f}},[`${t}${a}-lg`]:{[`${a}-item,${a}-header,${a}-footer`]:{padding:$}}}},l=e=>{const{componentCls:t,screenSM:a,screenMD:r,marginLG:o,marginSM:f,margin:$}=e;return{[`@media screen and (max-width:${r}px)`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${a}px)`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:f}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${(0,m.bf)($)}`}}}}}},c=e=>{const{componentCls:t,antCls:a,controlHeight:r,minHeight:o,paddingSM:f,marginLG:$,padding:p,itemPadding:h,colorPrimary:O,itemPaddingSM:j,itemPaddingLG:w,paddingXS:x,margin:z,colorText:C,colorTextDescription:Z,motionDurationSlow:K,lineWidth:_,headerBg:N,footerBg:T,emptyTextPadding:ct,metaMarginBottom:$t,avatarMarginRight:dt,titleMarginBottom:ht,descriptionFontSize:xt}=e,mt={};return["start","center","end"].forEach(gt=>{mt[`&-align-${gt}`]={textAlign:gt}}),{[`${t}`]:Object.assign(Object.assign({},(0,y.Wf)(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:N},[`${t}-footer`]:{background:T},[`${t}-header, ${t}-footer`]:{paddingBlock:f},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:$},mt),{[`${a}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:h,color:C,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:dt},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:C},[`${t}-item-meta-title`]:{margin:`0 0 ${(0,m.bf)(e.marginXXS)} 0`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:C,transition:`all ${K}`,["&:hover"]:{color:O}}},[`${t}-item-meta-description`]:{color:Z,fontSize:xt,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none",["& > li"]:{position:"relative",display:"inline-block",padding:`0 ${(0,m.bf)(x)}`,color:Z,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:_,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${(0,m.bf)(p)} 0`,color:Z,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:ct,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${a}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:z,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:$},[`${t}-item-meta`]:{marginBlockEnd:$t,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:ht,color:C,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:p,marginInlineStart:"auto","> li":{padding:`0 ${(0,m.bf)(p)}`,["&:first-child"]:{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,["&:last-child"]:{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${a}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:w},[`${t}-sm ${t}-item`]:{padding:j},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},d=e=>({contentWidth:220,itemPadding:`${(0,m.bf)(e.paddingContentVertical)} 0`,itemPaddingSM:`${(0,m.bf)(e.paddingContentVerticalSM)} ${(0,m.bf)(e.paddingContentHorizontal)}`,itemPaddingLG:`${(0,m.bf)(e.paddingContentVerticalLG)} ${(0,m.bf)(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize});var s=(0,lt.I$)("List",e=>{const t=(0,st.TS)(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[c(t),A(t),l(t)]},d),v=i(98675),ot=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o(b,L)=>{var Pt;xt(b),gt(L),a&&a[u]&&((Pt=a==null?void 0:a[u])===null||Pt===void 0||Pt.call(a,b,L))},Lt=Et("onChange"),Mt=Et("onShowSizeChange"),Zt=(u,b)=>{if(!T)return null;let L;return typeof N=="function"?L=N(u):N?L=u[N]:L=u.key,L||(L=`list-item-${b}`),n.createElement(n.Fragment,{key:L},T(u,b))},Tt=()=>!!(w||a||K),S=It("list",r),[Gt,Ft,Ht]=s(S);let et=_;typeof et=="boolean"&&(et={spinning:et});const St=et&&et.spinning,Wt=(0,v.Z)(C);let ft="";switch(Wt){case"large":ft="lg";break;case"small":ft="sm";break;default:break}const Vt=I()(S,{[`${S}-vertical`]:j==="vertical",[`${S}-${ft}`]:ft,[`${S}-split`]:f,[`${S}-bordered`]:o,[`${S}-loading`]:St,[`${S}-grid`]:!!x,[`${S}-something-after-last-item`]:Tt(),[`${S}-rtl`]:Bt==="rtl"},tt==null?void 0:tt.className,$,p,Ft,Ht),E=(0,F.Z)(Nt,{total:z.length,current:ht,pageSize:mt},a||{}),Ot=Math.ceil(E.total/E.pageSize);E.current>Ot&&(E.current=Ot);const jt=a?n.createElement("div",{className:I()(`${S}-pagination`,`${S}-pagination-align-${(t=E==null?void 0:E.align)!==null&&t!==void 0?t:"end"}`)},n.createElement(V.Z,Object.assign({},E,{onChange:Lt,onShowSizeChange:Mt}))):null;let Ct=(0,P.Z)(z);a&&z.length>(E.current-1)*E.pageSize&&(Ct=(0,P.Z)(z).splice((E.current-1)*E.pageSize,E.pageSize));const Rt=Object.keys(x||{}).some(u=>["xs","sm","md","lg","xl","xxl"].includes(u)),zt=(0,W.Z)(Rt),pt=n.useMemo(()=>{for(let u=0;u{if(!x)return;const u=pt&&x[pt]?x[pt]:x.column;if(u)return{width:`${100/u}%`,maxWidth:`${100/u}%`}},[x==null?void 0:x.column,pt]);let bt=St&&n.createElement("div",{style:{minHeight:53}});if(Ct.length>0){const u=Ct.map((b,L)=>Zt(b,L));bt=x?n.createElement(D.Z,{gutter:x.gutter},n.Children.map(u,b=>n.createElement("div",{key:b==null?void 0:b.key,style:At},b))):n.createElement("ul",{className:`${S}-items`},u)}else!O&&!St&&(bt=n.createElement("div",{className:`${S}-empty-text`},ct&&ct.emptyText||(yt==null?void 0:yt("List"))||n.createElement(X.Z,{componentName:"List"})));const ut=E.position||"bottom",wt=n.useMemo(()=>({grid:x,itemLayout:j}),[JSON.stringify(x),j]);return Gt(n.createElement(J.Provider,{value:wt},n.createElement("div",Object.assign({style:Object.assign(Object.assign({},tt==null?void 0:tt.style),h),className:Vt},$t),(ut==="top"||ut==="both")&&jt,Z&&n.createElement("div",{className:`${S}-header`},Z),n.createElement(nt.Z,Object.assign({},et),bt,O),K&&n.createElement("div",{className:`${S}-footer`},K),w||(ut==="bottom"||ut==="both")&&jt)))}Q.Item=Y;var B=Q}}]); diff --git a/starter/src/main/resources/templates/admin/810.fe56442b.async.js b/starter/src/main/resources/templates/admin/810.fe56442b.async.js new file mode 100644 index 0000000000..4fe8051468 --- /dev/null +++ b/starter/src/main/resources/templates/admin/810.fe56442b.async.js @@ -0,0 +1,335 @@ +var vx=Object.defineProperty;var Pv=Object.getOwnPropertySymbols;var mx=Object.prototype.hasOwnProperty,gx=Object.prototype.propertyIsEnumerable;var Ev=(D,L,i)=>L in D?vx(D,L,{enumerable:!0,configurable:!0,writable:!0,value:i}):D[L]=i,Iv=(D,L)=>{for(var i in L||(L={}))mx.call(L,i)&&Ev(D,i,L[i]);if(Pv)for(var i of Pv(L))gx.call(L,i)&&Ev(D,i,L[i]);return D};(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[810],{47046:function(D,L){"use strict";var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};L.Z=i},42003:function(D,L){"use strict";var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};L.Z=i},5717:function(D,L){"use strict";var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};L.Z=i},509:function(D,L){"use strict";var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};L.Z=i},53439:function(D,L,i){"use strict";i.d(L,{ZP:function(){return un},NA:function(){return Xn},aK:function(){return gr}});var a=i(1413),p=i(91),g=i(97685),x=i(71002),m=i(74902),I=i(4942),y=i(10915),$=i(98082),W=i(10989),T=i(75661),X=i(48171),o=i(74138),N=i(21770),_=i(27068),Z=i(67294),ee=i(51280);function Me(ze){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,_e=arguments.length>2?arguments[2]:void 0,et=(0,Z.useState)(ze),pt=(0,g.Z)(et,2),lt=pt[0],kt=pt[1],ye=(0,ee.d)(ze);return(0,Z.useEffect)(function(){var Ae=setTimeout(function(){kt(ye.current)},J);return function(){return clearTimeout(Ae)}},_e?[J].concat((0,m.Z)(_e)):void 0),lt}var je=i(31413),Xe=i(28459),He=i(75081),Ne=i(81758),Et=i(87462),it=i(509),Fe=i(92593),Ie=function(J,_e){return Z.createElement(Fe.Z,(0,Et.Z)({},J,{ref:_e,icon:it.Z}))},re=Z.forwardRef(Ie),Y=re,fe=i(98912),K=i(83863),$e=i(96365),Be=i(93967),Oe=i.n(Be),xt=i(50344),yt=i(85893),mn=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp","optionLabelProp","valueMaxLength"],Kt=function(J,_e){return(0,x.Z)(_e)!=="object"?J[_e]||_e:J[_e==null?void 0:_e.value]||_e.label},Mn=function(J,_e){var et=J.label,pt=J.prefixCls,lt=J.onChange,kt=J.value,ye=J.mode,Ae=J.children,Pe=J.defaultValue,at=J.size,We=J.showSearch,st=J.disabled,Wt=J.style,Dt=J.className,Xt=J.bordered,Ut=J.options,qt=J.onSearch,En=J.allowClear,V=J.labelInValue,me=J.fieldNames,de=J.lightLabel,F=J.labelTrigger,ie=J.optionFilterProp,De=J.optionLabelProp,Ge=De===void 0?"":De,Qe=J.valueMaxLength,ct=Qe===void 0?41:Qe,Je=(0,p.Z)(J,mn),ft=J.placeholder,dt=ft===void 0?et:ft,Nt=me||{},Qt=Nt.label,ln=Qt===void 0?"label":Qt,an=Nt.value,In=an===void 0?"value":an,Jn=(0,Z.useContext)(Xe.ZP.ConfigContext),on=Jn.getPrefixCls,vn=on("pro-field-select-light-select"),Nn=(0,Z.useState)(!1),jn=(0,g.Z)(Nn,2),Mr=jn[0],vr=jn[1],zr=(0,Z.useState)(""),nr=(0,g.Z)(zr,2),Ir=nr[0],Vr=nr[1],lo=(0,$.Xj)("LightSelect",function(sr){return(0,I.Z)({},".".concat(vn),(0,I.Z)((0,I.Z)({},"".concat(sr.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),"&.".concat(vn,"-searchable"),(0,I.Z)({},"".concat(sr.antCls,"-select"),{width:"200px","&-selector":{height:28}})))}),kr=lo.wrapSSR,jr=lo.hashId,hr=(0,Z.useMemo)(function(){var sr={};return Ut==null||Ut.forEach(function(yn){var Vn=yn[Ge]||yn[ln],ar=yn[In];sr[ar]=Vn||ar}),sr},[ln,Ut,In,Ge]),Fn=(0,Z.useMemo)(function(){return Reflect.has(Je,"open")?Je==null?void 0:Je.open:Mr},[Mr,Je]),qn=Array.isArray(kt)?kt.map(function(sr){return Kt(hr,sr)}):Kt(hr,kt);return kr((0,yt.jsxs)("div",{className:Oe()(vn,jr,(0,I.Z)({},"".concat(vn,"-searchable"),We),"".concat(vn,"-container-").concat(Je.placement||"bottomLeft"),Dt),style:Wt,onClick:function(yn){var Vn;if(!st){var ar=de==null||(Vn=de.current)===null||Vn===void 0||(Vn=Vn.labelRef)===null||Vn===void 0||(Vn=Vn.current)===null||Vn===void 0?void 0:Vn.contains(yn.target);ar&&vr(!Mr)}},children:[(0,yt.jsx)(K.Z,(0,a.Z)((0,a.Z)((0,a.Z)({popupMatchSelectWidth:!1},Je),{},{allowClear:En,value:kt,mode:ye,labelInValue:V,size:at,disabled:st,onChange:function(yn,Vn){lt==null||lt(yn,Vn),ye!=="multiple"&&vr(!1)}},(0,je.J)(Xt)),{},{showSearch:We,onSearch:qt,style:Wt,dropdownRender:function(yn){return(0,yt.jsxs)("div",{ref:_e,children:[We&&(0,yt.jsx)("div",{style:{margin:"4px 8px"},children:(0,yt.jsx)($e.Z,{value:Ir,allowClear:!!En,onChange:function(ar){Vr(ar.target.value),qt==null||qt(ar.target.value)},onKeyDown:function(ar){ar.stopPropagation()},style:{width:"100%"},prefix:(0,yt.jsx)(Y,{})})}),yn]})},open:Fn,onDropdownVisibleChange:function(yn){var Vn;yn||Vr(""),F||vr(yn),Je==null||(Vn=Je.onDropdownVisibleChange)===null||Vn===void 0||Vn.call(Je,yn)},prefixCls:pt,options:qt||!Ir?Ut:Ut==null?void 0:Ut.filter(function(sr){var yn,Vn;return ie?(0,xt.Z)(sr[ie]).join("").toLowerCase().includes(Ir):((yn=String(sr[ln]))===null||yn===void 0||(yn=yn.toLowerCase())===null||yn===void 0?void 0:yn.includes(Ir==null?void 0:Ir.toLowerCase()))||((Vn=sr[In])===null||Vn===void 0||(Vn=Vn.toString())===null||Vn===void 0||(Vn=Vn.toLowerCase())===null||Vn===void 0?void 0:Vn.includes(Ir==null?void 0:Ir.toLowerCase()))})})),(0,yt.jsx)(fe.Q,{ellipsis:!0,label:et,placeholder:dt,disabled:st,bordered:Xt,allowClear:!!En,value:qn||(kt==null?void 0:kt.label)||kt,onClear:function(){lt==null||lt(void 0,void 0)},ref:de,valueMaxLength:ct})]}))},jt=Z.forwardRef(Mn),Gt=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue"],Tn=["className","optionType"],vt=function(J,_e){var et=J.optionItemRender,pt=J.mode,lt=J.onSearch,kt=J.onFocus,ye=J.onChange,Ae=J.autoClearSearchValue,Pe=Ae===void 0?!0:Ae,at=J.searchOnFocus,We=at===void 0?!1:at,st=J.resetAfterSelect,Wt=st===void 0?!1:st,Dt=J.fetchDataOnSearch,Xt=Dt===void 0?!0:Dt,Ut=J.optionFilterProp,qt=Ut===void 0?"label":Ut,En=J.optionLabelProp,V=En===void 0?"label":En,me=J.className,de=J.disabled,F=J.options,ie=J.fetchData,De=J.resetData,Ge=J.prefixCls,Qe=J.onClear,ct=J.searchValue,Je=J.showSearch,ft=J.fieldNames,dt=J.defaultSearchValue,Nt=(0,p.Z)(J,Gt),Qt=ft||{},ln=Qt.label,an=ln===void 0?"label":ln,In=Qt.value,Jn=In===void 0?"value":In,on=Qt.options,vn=on===void 0?"options":on,Nn=(0,Z.useState)(ct!=null?ct:dt),jn=(0,g.Z)(Nn,2),Mr=jn[0],vr=jn[1],zr=(0,Z.useRef)();(0,Z.useImperativeHandle)(_e,function(){return zr.current}),(0,Z.useEffect)(function(){if(Nt.autoFocus){var hr;zr==null||(hr=zr.current)===null||hr===void 0||hr.focus()}},[Nt.autoFocus]),(0,Z.useEffect)(function(){vr(ct)},[ct]);var nr=(0,Z.useContext)(Xe.ZP.ConfigContext),Ir=nr.getPrefixCls,Vr=Ir("pro-filed-search-select",Ge),lo=Oe()(Vr,me,(0,I.Z)({},"".concat(Vr,"-disabled"),de)),kr=function(Fn,qn){return Array.isArray(Fn)&&Array.isArray(qn)&&Fn.length>0?Fn.map(function(sr,yn){var Vn=qn==null?void 0:qn[yn],ar=(Vn==null?void 0:Vn["data-item"])||{};return(0,a.Z)((0,a.Z)({},ar),sr)}):[]},jr=function hr(Fn){return Fn.map(function(qn,sr){var yn,Vn=qn,ar=Vn.className,Wo=Vn.optionType,So=(0,p.Z)(Vn,Tn),La=qn[an],_a=qn[Jn],Ya=(yn=qn[vn])!==null&&yn!==void 0?yn:[];return Wo==="optGroup"||qn.options?(0,a.Z)((0,a.Z)({label:La},So),{},{data_title:La,title:La,key:_a!=null?_a:La==null?void 0:La.toString(),children:hr(Ya)}):(0,a.Z)((0,a.Z)({title:La},So),{},{data_title:La,value:_a!=null?_a:sr,key:_a!=null?_a:La==null?void 0:La.toString(),"data-item":qn,className:"".concat(Vr,"-option ").concat(ar||"").trim(),label:(et==null?void 0:et(qn))||La})})};return(0,yt.jsx)(K.Z,(0,a.Z)((0,a.Z)({ref:zr,className:lo,allowClear:!0,autoClearSearchValue:Pe,disabled:de,mode:pt,showSearch:Je,searchValue:Mr,optionFilterProp:qt,optionLabelProp:V,onClear:function(){Qe==null||Qe(),ie(void 0),Je&&vr(void 0)}},Nt),{},{filterOption:Nt.filterOption==!1?!1:function(hr,Fn){var qn,sr,yn;return Nt.filterOption&&typeof Nt.filterOption=="function"?Nt.filterOption(hr,(0,a.Z)((0,a.Z)({},Fn),{},{label:Fn==null?void 0:Fn.data_title})):!!(Fn!=null&&(qn=Fn.data_title)!==null&&qn!==void 0&&qn.toString().toLowerCase().includes(hr.toLowerCase())||Fn!=null&&(sr=Fn.label)!==null&&sr!==void 0&&sr.toString().toLowerCase().includes(hr.toLowerCase())||Fn!=null&&(yn=Fn.value)!==null&&yn!==void 0&&yn.toString().toLowerCase().includes(hr.toLowerCase()))},onSearch:Je?function(hr){Xt&&ie(hr),lt==null||lt(hr),vr(hr)}:void 0,onChange:function(Fn,qn){Je&&Pe&&(ie(void 0),lt==null||lt(""),vr(void 0));for(var sr=arguments.length,yn=new Array(sr>2?sr-2:0),Vn=2;Vn=60&&Math.round(V.h)<=240?F=de?Math.round(V.h)-T*me:Math.round(V.h)+T*me:F=de?Math.round(V.h)+T*me:Math.round(V.h)-T*me,F<0?F+=360:F>=360&&(F-=360),F}function Et(V,me,de){if(V.h===0&&V.s===0)return V.s;var F;return de?F=V.s-X*me:me===ee?F=V.s+X:F=V.s+o*me,F>1&&(F=1),de&&me===Z&&F>.1&&(F=.1),F<.06&&(F=.06),Number(F.toFixed(2))}function it(V,me,de){var F;return de?F=V.v+N*me:F=V.v-_*me,F>1&&(F=1),Number(F.toFixed(2))}function Fe(V){for(var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=[],F=(0,W.uA)(V),ie=Z;ie>0;ie-=1){var De=je(F),Ge=Xe((0,W.uA)({h:Ne(De,ie,!0),s:Et(De,ie,!0),v:it(De,ie,!0)}));de.push(Ge)}de.push(Xe(F));for(var Qe=1;Qe<=ee;Qe+=1){var ct=je(F),Je=Xe((0,W.uA)({h:Ne(ct,Qe),s:Et(ct,Qe),v:it(ct,Qe)}));de.push(Je)}return me.theme==="dark"?Me.map(function(ft){var dt=ft.index,Nt=ft.opacity,Qt=Xe(He((0,W.uA)(me.backgroundColor||"#141414"),(0,W.uA)(de[dt]),Nt*100));return Qt}):de}var Ie={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"},re={},Y={};Object.keys(Ie).forEach(function(V){re[V]=Fe(Ie[V]),re[V].primary=re[V][5],Y[V]=Fe(Ie[V],{theme:"dark",backgroundColor:"#141414"}),Y[V].primary=Y[V][5]});var fe=re.red,K=re.volcano,$e=re.gold,Be=re.orange,Oe=re.yellow,xt=re.lime,yt=re.green,mn=re.cyan,Kt=re.blue,Mn=re.geekblue,jt=re.purple,Gt=re.magenta,Tn=re.grey,vt=re.grey,Tt=(0,m.createContext)({}),Pn=Tt,Mt=i(1413),Zn=i(71002),rr=i(44958),Xn=i(27571),gr=i(80334);function ut(V){return V.replace(/-(.)/g,function(me,de){return de.toUpperCase()})}function un(V,me){(0,gr.ZP)(V,"[@ant-design/icons] ".concat(me))}function ze(V){return(0,Zn.Z)(V)==="object"&&typeof V.name=="string"&&typeof V.theme=="string"&&((0,Zn.Z)(V.icon)==="object"||typeof V.icon=="function")}function J(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(V).reduce(function(me,de){var F=V[de];switch(de){case"class":me.className=F,delete me.class;break;default:delete me[de],me[ut(de)]=F}return me},{})}function _e(V,me,de){return de?m.createElement(V.tag,(0,Mt.Z)((0,Mt.Z)({key:me},J(V.attrs)),de),(V.children||[]).map(function(F,ie){return _e(F,"".concat(me,"-").concat(V.tag,"-").concat(ie))})):m.createElement(V.tag,(0,Mt.Z)({key:me},J(V.attrs)),(V.children||[]).map(function(F,ie){return _e(F,"".concat(me,"-").concat(V.tag,"-").concat(ie))}))}function et(V){return Fe(V)[0]}function pt(V){return V?Array.isArray(V)?V:[V]:[]}var lt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},kt=` +.anticon { + display: inline-flex; + alignItems: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,ye=function(me){var de=(0,m.useContext)(Pn),F=de.csp,ie=de.prefixCls,De=kt;ie&&(De=De.replace(/anticon/g,ie)),(0,m.useEffect)(function(){var Ge=me.current,Qe=(0,Xn.A)(Ge);(0,rr.hq)(De,"@ant-design-icons",{prepend:!0,csp:F,attachTo:Qe})},[])},Ae=["icon","className","onClick","style","primaryColor","secondaryColor"],Pe={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function at(V){var me=V.primaryColor,de=V.secondaryColor;Pe.primaryColor=me,Pe.secondaryColor=de||et(me),Pe.calculated=!!de}function We(){return(0,Mt.Z)({},Pe)}var st=function(me){var de=me.icon,F=me.className,ie=me.onClick,De=me.style,Ge=me.primaryColor,Qe=me.secondaryColor,ct=(0,x.Z)(me,Ae),Je=m.useRef(),ft=Pe;if(Ge&&(ft={primaryColor:Ge,secondaryColor:Qe||et(Ge)}),ye(Je),un(ze(de),"icon should be icon definiton, but got ".concat(de)),!ze(de))return null;var dt=de;return dt&&typeof dt.icon=="function"&&(dt=(0,Mt.Z)((0,Mt.Z)({},dt),{},{icon:dt.icon(ft.primaryColor,ft.secondaryColor)})),_e(dt.icon,"svg-".concat(dt.name),(0,Mt.Z)((0,Mt.Z)({className:F,onClick:ie,style:De,"data-icon":dt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},ct),{},{ref:Je}))};st.displayName="IconReact",st.getTwoToneColors=We,st.setTwoToneColors=at;var Wt=st;function Dt(V){var me=pt(V),de=(0,p.Z)(me,2),F=de[0],ie=de[1];return Wt.setTwoToneColors({primaryColor:F,secondaryColor:ie})}function Xt(){var V=Wt.getTwoToneColors();return V.calculated?[V.primaryColor,V.secondaryColor]:V.primaryColor}var Ut=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Dt(Kt.primary);var qt=m.forwardRef(function(V,me){var de=V.className,F=V.icon,ie=V.spin,De=V.rotate,Ge=V.tabIndex,Qe=V.onClick,ct=V.twoToneColor,Je=(0,x.Z)(V,Ut),ft=m.useContext(Pn),dt=ft.prefixCls,Nt=dt===void 0?"anticon":dt,Qt=ft.rootClassName,ln=y()(Qt,Nt,(0,g.Z)((0,g.Z)({},"".concat(Nt,"-").concat(F.name),!!F.name),"".concat(Nt,"-spin"),!!ie||F.name==="loading"),de),an=Ge;an===void 0&&Qe&&(an=-1);var In=De?{msTransform:"rotate(".concat(De,"deg)"),transform:"rotate(".concat(De,"deg)")}:void 0,Jn=pt(ct),on=(0,p.Z)(Jn,2),vn=on[0],Nn=on[1];return m.createElement("span",(0,a.Z)({role:"img","aria-label":F.name},Je,{ref:me,tabIndex:an,onClick:Qe,className:ln}),m.createElement(Wt,{icon:F,primaryColor:vn,secondaryColor:Nn,style:In}))});qt.displayName="AntdIcon",qt.getTwoToneColor=Xt,qt.setTwoToneColor=Dt;var En=qt},89671:function(D,L,i){"use strict";i.d(L,{I:function(){return kt}});var a=i(97685),p=i(4942),g=i(1413),x=i(74165),m=i(15861),I=i(91),y=i(10915),$=i(22270),W=i(48171),T=i(26369),X=i(60249),o=i(41036),N=i(21770),_=i(75661),Z=i(67294),ee=i(81758),Me=0;function je(ye){var Ae=(0,Z.useRef)(null),Pe=(0,Z.useState)(function(){return ye.proFieldKey?ye.proFieldKey.toString():(Me+=1,Me.toString())}),at=(0,a.Z)(Pe,1),We=at[0],st=(0,Z.useRef)(We),Wt=function(){var qt=(0,m.Z)((0,x.Z)().mark(function En(){var V,me,de,F;return(0,x.Z)().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return(V=Ae.current)===null||V===void 0||V.abort(),de=new AbortController,Ae.current=de,De.next=5,Promise.race([(me=ye.request)===null||me===void 0?void 0:me.call(ye,ye.params,ye),new Promise(function(Ge,Qe){var ct;(ct=Ae.current)===null||ct===void 0||(ct=ct.signal)===null||ct===void 0||ct.addEventListener("abort",function(){Qe(new Error("aborted"))})})]);case 5:return F=De.sent,De.abrupt("return",F);case 7:case"end":return De.stop()}},En)}));return function(){return qt.apply(this,arguments)}}();(0,Z.useEffect)(function(){return function(){Me+=1}},[]);var Dt=(0,ee.ZP)([st.current,ye.params],Wt,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),Xt=Dt.data,Ut=Dt.error;return[Xt||Ut]}var Xe=i(98082),He=i(74902),Ne=i(71002),Et=i(72378),it=i.n(Et),Fe=i(88306),Ie=i(8880),re=i(74763),Y=i(92210);function fe(ye){return(0,Ne.Z)(ye)!=="object"?!1:ye===null?!0:!(Z.isValidElement(ye)||ye.constructor===RegExp||ye instanceof Map||ye instanceof Set||ye instanceof HTMLElement||ye instanceof Blob||ye instanceof File||Array.isArray(ye))}var K=function(Ae,Pe){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,We=Object.keys(Pe).reduce(function(Dt,Xt){var Ut=Pe[Xt];return(0,re.k)(Ut)||(Dt[Xt]=Ut),Dt},{});if(Object.keys(We).length<1||typeof window=="undefined"||(0,Ne.Z)(Ae)!=="object"||(0,re.k)(Ae)||Ae instanceof Blob)return Ae;var st=Array.isArray(Ae)?[]:{},Wt=function Dt(Xt,Ut){var qt=Array.isArray(Xt),En=qt?[]:{};return Xt==null||Xt===void 0?En:(Object.keys(Xt).forEach(function(V){var me=function Qe(ct,Je){return Array.isArray(ct)&&ct.forEach(function(ft,dt){if(ft){var Nt=Je==null?void 0:Je[dt];typeof ft=="function"&&(Je[dt]=ft(Je,V,Xt)),(0,Ne.Z)(ft)==="object"&&!Array.isArray(ft)&&Object.keys(ft).forEach(function(Qt){var ln=Nt==null?void 0:Nt[Qt];if(typeof ft[Qt]=="function"&&ln){var an=ft[Qt](Nt[Qt],V,Xt);Nt[Qt]=(0,Ne.Z)(an)==="object"?an[Qt]:an}else(0,Ne.Z)(ft[Qt])==="object"&&Array.isArray(ft[Qt])&&ln&&Qe(ft[Qt],ln)}),(0,Ne.Z)(ft)==="object"&&Array.isArray(ft)&&Nt&&Qe(ft,Nt)}}),V},de=Ut?[Ut,V].flat(1):[V].flat(1),F=Xt[V],ie=(0,Fe.Z)(We,de),De=function(){var ct,Je,ft=!1;if(typeof ie=="function"){Je=ie==null?void 0:ie(F,V,Xt);var dt=(0,Ne.Z)(Je);dt!=="object"&&dt!=="undefined"?(ct=V,ft=!0):ct=Je}else ct=me(ie,F);if(Array.isArray(ct)){En=(0,Ie.Z)(En,ct,F);return}(0,Ne.Z)(ct)==="object"&&!Array.isArray(st)?st=it()(st,ct):(0,Ne.Z)(ct)==="object"&&Array.isArray(st)?En=(0,g.Z)((0,g.Z)({},En),ct):(ct!==null||ct!==void 0)&&(En=(0,Ie.Z)(En,[ct],ft?Je:F))};if(ie&&typeof ie=="function"&&De(),typeof window!="undefined"){if(fe(F)){var Ge=Dt(F,de);if(Object.keys(Ge).length<1)return;En=(0,Ie.Z)(En,[V],Ge);return}De()}}),at?En:Xt)};return st=Array.isArray(Ae)&&Array.isArray(st)?(0,He.Z)(Wt(Ae)):(0,Y.T)({},Wt(Ae),st),st},$e=i(23312),Be=function(){return Be=Object.assign||function(ye){for(var Ae,Pe=1,at=arguments.length;Pe0&&arguments[0]!==void 0?arguments[0]:[],Fn=et(hr);if(!Fn)throw new Error("nameList is require");var qn=(jr=Mr())===null||jr===void 0?void 0:jr.getFieldValue(Fn),sr=Fn?(0,Ie.Z)({},Fn,qn):qn;return(0,Fe.Z)(Xt(sr,ct,Fn),Fn)},getFieldFormatValueObject:function(jr){var hr,Fn=et(jr),qn=(hr=Mr())===null||hr===void 0?void 0:hr.getFieldValue(Fn),sr=Fn?(0,Ie.Z)({},Fn,qn):qn;return Xt(sr,ct,Fn)},validateFieldsReturnFormatValue:function(){var kr=(0,m.Z)((0,x.Z)().mark(function hr(Fn){var qn,sr,yn;return(0,x.Z)().wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:if(!(!Array.isArray(Fn)&&Fn)){ar.next=2;break}throw new Error("nameList must be array");case 2:return ar.next=4,(qn=Mr())===null||qn===void 0?void 0:qn.validateFields(Fn);case 4:return sr=ar.sent,yn=Xt(sr,ct),ar.abrupt("return",yn||{});case 7:case"end":return ar.stop()}},hr)}));function jr(hr){return kr.apply(this,arguments)}return jr}()}},[ct,Xt]),zr=(0,Z.useMemo)(function(){return Z.Children.toArray(Pe).map(function(kr,jr){return jr===0&&Z.isValidElement(kr)&&dt?Z.cloneElement(kr,(0,g.Z)((0,g.Z)({},kr.props),{},{autoFocus:dt})):kr})},[dt,Pe]),nr=(0,Z.useMemo)(function(){return typeof We=="boolean"||!We?{}:We},[We]),Ir=(0,Z.useMemo)(function(){if(We!==!1)return(0,Zn.jsx)(Xn,(0,g.Z)((0,g.Z)({},nr),{},{onReset:function(){var jr,hr,Fn=Xt((jr=vn.current)===null||jr===void 0?void 0:jr.getFieldsValue(),ct);if(nr==null||(hr=nr.onReset)===null||hr===void 0||hr.call(nr,Fn),Ge==null||Ge(Fn),ie){var qn,sr=Object.keys(Xt((qn=vn.current)===null||qn===void 0?void 0:qn.getFieldsValue(),!1)).reduce(function(yn,Vn){return(0,g.Z)((0,g.Z)({},yn),{},(0,p.Z)({},Vn,Fn[Vn]||void 0))},F);De(_e(ie,sr||{},"set"))}},submitButtonProps:(0,g.Z)({loading:V},nr.submitButtonProps)}),"submitter")},[We,nr,V,Xt,ct,Ge,ie,F,De]),Vr=(0,Z.useMemo)(function(){var kr=Nt?(0,Zn.jsx)(jn,{children:zr}):zr;return at?at(kr,Ir,vn.current):kr},[Nt,jn,zr,at,Ir]),lo=(0,T.D)(ye.initialValues);return(0,Z.useEffect)(function(){if(!(ie||!ye.initialValues||!lo||an.request)){var kr=(0,X.A)(ye.initialValues,lo);(0,Tt.ET)(kr,"initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ?
: null "),(0,Tt.ET)(kr,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[ye.initialValues]),(0,Z.useImperativeHandle)(Ut,function(){return(0,g.Z)((0,g.Z)({},vn.current),vr)},[vr,vn.current]),(0,Z.useEffect)(function(){var kr,jr,hr=Xt((kr=vn.current)===null||kr===void 0||(jr=kr.getFieldsValue)===null||jr===void 0?void 0:jr.call(kr,!0),ct);qt==null||qt(hr,(0,g.Z)((0,g.Z)({},vn.current),vr))},[]),(0,Zn.jsx)(o.J.Provider,{value:(0,g.Z)((0,g.Z)({},vr),{},{formRef:vn}),children:(0,Zn.jsx)(Mn.ZP,{componentSize:an.size||on,children:(0,Zn.jsxs)(ut._p.Provider,{value:{grid:Nt,colProps:ln},children:[an.component!==!1&&(0,Zn.jsx)("input",{type:"text",style:{display:"none"}}),Vr]})})})}var lt=0;function kt(ye){var Ae=ye.extraUrlParams,Pe=Ae===void 0?{}:Ae,at=ye.syncToUrl,We=ye.isKeyPressSubmit,st=ye.syncToUrlAsImportant,Wt=st===void 0?!1:st,Dt=ye.syncToInitialValues,Xt=Dt===void 0?!0:Dt,Ut=ye.children,qt=ye.contentRender,En=ye.submitter,V=ye.fieldProps,me=ye.proFieldProps,de=ye.formItemProps,F=ye.groupProps,ie=ye.dateFormatter,De=ie===void 0?"string":ie,Ge=ye.formRef,Qe=ye.onInit,ct=ye.form,Je=ye.formComponentType,ft=ye.onReset,dt=ye.grid,Nt=ye.rowProps,Qt=ye.colProps,ln=ye.omitNil,an=ln===void 0?!0:ln,In=ye.request,Jn=ye.params,on=ye.initialValues,vn=ye.formKey,Nn=vn===void 0?lt:vn,jn=ye.readonly,Mr=ye.onLoadingChange,vr=ye.loading,zr=(0,I.Z)(ye,J),nr=(0,Z.useRef)({}),Ir=(0,N.Z)(!1,{onChange:Mr,value:vr}),Vr=(0,a.Z)(Ir,2),lo=Vr[0],kr=Vr[1],jr=xt({},{disabled:!at}),hr=(0,a.Z)(jr,2),Fn=hr[0],qn=hr[1],sr=(0,Z.useRef)((0,_.x)());(0,Z.useEffect)(function(){lt+=0},[]);var yn=je({request:In,params:Jn,proFieldKey:Nn}),Vn=(0,a.Z)(yn,1),ar=Vn[0],Wo=(0,Z.useContext)(Mn.ZP.ConfigContext),So=Wo.getPrefixCls,La=So("pro-form"),_a=(0,Xe.Xj)("ProForm",function(la){return(0,p.Z)({},".".concat(La),(0,p.Z)({},"> div:not(".concat(la.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),Ya=_a.wrapSSR,ii=_a.hashId,ue=(0,Z.useState)(function(){return at?_e(at,Fn,"get"):{}}),qe=(0,a.Z)(ue,2),St=qe[0],Ht=qe[1],tn=(0,Z.useRef)({}),Cn=(0,Z.useRef)({}),Or=(0,W.J)(function(la,Yr,Ar){return K((0,$e.lp)(la,De,Cn.current,Yr,Ar),tn.current,Yr)});(0,Z.useEffect)(function(){Xt||Ht({})},[Xt]),(0,Z.useEffect)(function(){at&&qn(_e(at,(0,g.Z)((0,g.Z)({},Fn),Pe),"set"))},[Pe,at]);var qr=(0,Z.useMemo)(function(){if(typeof window!="undefined"&&Je&&["DrawerForm"].includes(Je))return function(la){return la.parentNode||document.body}},[Je]),ia=(0,W.J)((0,m.Z)((0,x.Z)().mark(function la(){var Yr,Ar,Dr,ba,ja,Ma;return(0,x.Z)().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(zr.onFinish){ce.next=2;break}return ce.abrupt("return");case 2:if(!lo){ce.next=4;break}return ce.abrupt("return");case 4:return kr(!0),ce.prev=5,Dr=nr==null||(Yr=nr.current)===null||Yr===void 0||(Ar=Yr.getFieldsFormatValue)===null||Ar===void 0?void 0:Ar.call(Yr),ce.next=9,zr.onFinish(Dr);case 9:at&&(Ma=Object.keys(nr==null||(ba=nr.current)===null||ba===void 0||(ja=ba.getFieldsFormatValue)===null||ja===void 0?void 0:ja.call(ba,void 0,!1)).reduce(function(bt,ot){var wt;return(0,g.Z)((0,g.Z)({},bt),{},(0,p.Z)({},ot,(wt=Dr[ot])!==null&&wt!==void 0?wt:void 0))},Pe),Object.keys(Fn).forEach(function(bt){Ma[bt]!==!1&&Ma[bt]!==0&&!Ma[bt]&&(Ma[bt]=void 0)}),qn(_e(at,Ma,"set"))),kr(!1),ce.next=17;break;case 13:ce.prev=13,ce.t0=ce.catch(5),console.log(ce.t0),kr(!1);case 17:case"end":return ce.stop()}},la,null,[[5,13]])})));return(0,Z.useImperativeHandle)(Ge,function(){return nr.current},[!ar]),!ar&&ye.request?(0,Zn.jsx)("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:(0,Zn.jsx)(jt.Z,{})}):Ya((0,Zn.jsx)(un.A.Provider,{value:{mode:ye.readonly?"read":"edit"},children:(0,Zn.jsx)(y._Y,{needDeps:!0,children:(0,Zn.jsx)(Pn.Z.Provider,{value:{formRef:nr,fieldProps:V,proFieldProps:me,formItemProps:de,groupProps:F,formComponentType:Je,getPopupContainer:qr,formKey:sr.current,setFieldValueType:function(Yr,Ar){var Dr=Ar.valueType,ba=Dr===void 0?"text":Dr,ja=Ar.dateFormat,Ma=Ar.transform;Array.isArray(Yr)&&(tn.current=(0,Ie.Z)(tn.current,Yr,Ma),Cn.current=(0,Ie.Z)(Cn.current,Yr,{valueType:ba,dateFormat:ja}))}},children:(0,Zn.jsx)(gr.J.Provider,{value:{},children:(0,Zn.jsx)(Kt.Z,(0,g.Z)((0,g.Z)({onKeyPress:function(Yr){if(We&&Yr.key==="Enter"){var Ar;(Ar=nr.current)===null||Ar===void 0||Ar.submit()}},autoComplete:"off",form:ct},(0,vt.Z)(zr,["labelWidth","autoFocusFirstInput"])),{},{initialValues:Wt?(0,g.Z)((0,g.Z)((0,g.Z)({},on),ar),St):(0,g.Z)((0,g.Z)((0,g.Z)({},St),on),ar),onValuesChange:function(Yr,Ar){var Dr;zr==null||(Dr=zr.onValuesChange)===null||Dr===void 0||Dr.call(zr,Or(Yr,!!an),Or(Ar,!!an))},className:Tn()(ye.className,La,ii),onFinish:ia,children:(0,Zn.jsx)(pt,(0,g.Z)((0,g.Z)({transformKey:Or,autoComplete:"off",loading:lo,onUrlSearchChange:qn},ye),{},{formRef:nr,initialValues:(0,g.Z)((0,g.Z)({},on),ar)}))}))})})})}))}},9105:function(D,L,i){"use strict";i.d(L,{A:function(){return p}});var a=i(67294),p=a.createContext({mode:"edit"})},90789:function(D,L,i){"use strict";i.d(L,{G:function(){return re}});var a=i(4942),p=i(97685),g=i(1413),x=i(91),m=i(74138),I=i(51812),y=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function $(Y){var fe={};return y.forEach(function(K){Y[K]!==void 0&&(fe[K]=Y[K])}),fe}var W=i(53914),T=i(48171),X=i(93967),o=i.n(X),N=i(43589),_=i(80334),Z=i(67294),ee=i(66758),Me=i(62370),je=i(97462),Xe=i(2514),He=i(85893),Ne=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],Et=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],it=Symbol("ProFormComponent"),Fe={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},Ie=["switch","radioButton","radio","rate"];function re(Y,fe){Y.displayName="ProFormComponent";var K=function(Oe){var xt=(0,g.Z)((0,g.Z)({},Oe==null?void 0:Oe.filedConfig),fe)||{},yt=xt.valueType,mn=xt.customLightMode,Kt=xt.lightFilterLabelFormatter,Mn=xt.valuePropName,jt=Mn===void 0?"value":Mn,Gt=xt.ignoreWidth,Tn=xt.defaultProps,vt=(0,x.Z)(xt,Ne),Tt=(0,g.Z)((0,g.Z)({},Tn),Oe),Pn=Tt.label,Mt=Tt.tooltip,Zn=Tt.placeholder,rr=Tt.width,Xn=Tt.bordered,gr=Tt.messageVariables,ut=Tt.ignoreFormItem,un=Tt.transform,ze=Tt.convertValue,J=Tt.readonly,_e=Tt.allowClear,et=Tt.colSize,pt=Tt.getFormItemProps,lt=Tt.getFieldProps,kt=Tt.filedConfig,ye=Tt.cacheForSwr,Ae=Tt.proFieldProps,Pe=(0,x.Z)(Tt,Et),at=yt||Pe.valueType,We=(0,Z.useMemo)(function(){return Gt||Ie.includes(at)},[Gt,at]),st=(0,Z.useState)(),Wt=(0,p.Z)(st,2),Dt=Wt[1],Xt=(0,Z.useState)(),Ut=(0,p.Z)(Xt,2),qt=Ut[0],En=Ut[1],V=Z.useContext(ee.Z),me=(0,m.Z)(function(){return{formItemProps:pt==null?void 0:pt(),fieldProps:lt==null?void 0:lt()}},[lt,pt,Pe.dependenciesValues,qt]),de=(0,m.Z)(function(){var on=(0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)({},ut?(0,I.Y)({value:Pe.value}):{}),{},{placeholder:Zn,disabled:Oe.disabled},V.fieldProps),me.fieldProps),Pe.fieldProps);return on.style=(0,I.Y)(on==null?void 0:on.style),on},[ut,Pe.value,Pe.fieldProps,Zn,Oe.disabled,V.fieldProps,me.fieldProps]),F=$(Pe),ie=(0,m.Z)(function(){return(0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)({},V.formItemProps),F),me.formItemProps),Pe.formItemProps)},[me.formItemProps,V.formItemProps,Pe.formItemProps,F]),De=(0,m.Z)(function(){return(0,g.Z)((0,g.Z)({messageVariables:gr},vt),ie)},[vt,ie,gr]);(0,_.ET)(!Pe.defaultValue,"\u8BF7\u4E0D\u8981\u5728 Form \u4E2D\u4F7F\u7528 defaultXXX\u3002\u5982\u679C\u9700\u8981\u9ED8\u8BA4\u503C\u8BF7\u4F7F\u7528 initialValues \u548C initialValue\u3002");var Ge=(0,Z.useContext)(N.zb),Qe=Ge.prefixName,ct=(0,m.Z)(function(){var on,vn=De==null?void 0:De.name;Array.isArray(vn)&&(vn=vn.join("_")),Array.isArray(Qe)&&vn&&(vn="".concat(Qe.join("."),".").concat(vn));var Nn=vn&&"form-".concat((on=V.formKey)!==null&&on!==void 0?on:"","-field-").concat(vn);return Nn},[(0,W.ZP)(De==null?void 0:De.name),Qe,V.formKey]),Je=(0,T.J)(function(){var on;pt||lt?En([]):Pe.renderFormItem&&Dt([]);for(var vn=arguments.length,Nn=new Array(vn),jn=0;jn5&&arguments[5]!==void 0?arguments[5]:!1,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,f=o.useMemo(function(){if((0,g.Z)(l)==="object")return l.clearIcon;if(s)return s},[l,s]),v=o.useMemo(function(){return!!(!c&&l&&(r.length||u)&&!(d==="combobox"&&u===""))},[l,c,r.length,u,d]);return{allowClear:v,clearIcon:o.createElement(mn,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:f},"\xD7")}},Mn=o.createContext(null);function jt(){return o.useContext(Mn)}function Gt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=o.useState(!1),n=(0,N.Z)(t,2),r=n[0],l=n[1],s=o.useRef(null),c=function(){window.clearTimeout(s.current)};o.useEffect(function(){return c},[]);var u=function(f,v){c(),s.current=window.setTimeout(function(){l(f),v&&v()},e)};return[r,u,c]}function Tn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);o.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(l){(l||t.current===null)&&(t.current=l),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function vt(e,t,n,r){var l=o.useRef(null);l.current={open:t,triggerOpen:n,customizedTrigger:r},o.useEffect(function(){function s(c){var u;if(!((u=l.current)!==null&&u!==void 0&&u.customizedTrigger)){var d=c.target;d.shadowRoot&&c.composed&&(d=c.composedPath()[0]||d),l.current.open&&e().filter(function(f){return f}).every(function(f){return!f.contains(d)&&f!==d})&&l.current.triggerOpen(!1)}}return window.addEventListener("mousedown",s),function(){return window.removeEventListener("mousedown",s)}},[])}function Tt(e){return![Oe.Z.ESC,Oe.Z.SHIFT,Oe.Z.BACKSPACE,Oe.Z.TAB,Oe.Z.WIN_KEY,Oe.Z.ALT,Oe.Z.META,Oe.Z.WIN_KEY_RIGHT,Oe.Z.CTRL,Oe.Z.SEMICOLON,Oe.Z.EQUALS,Oe.Z.CAPS_LOCK,Oe.Z.CONTEXT_MENU,Oe.Z.F1,Oe.Z.F2,Oe.Z.F3,Oe.Z.F4,Oe.Z.F5,Oe.Z.F6,Oe.Z.F7,Oe.Z.F8,Oe.Z.F9,Oe.Z.F10,Oe.Z.F11,Oe.Z.F12].includes(e)}var Pn=i(64217),Mt=i(39983),Zn=function(t,n){var r,l=t.prefixCls,s=t.id,c=t.inputElement,u=t.disabled,d=t.tabIndex,f=t.autoFocus,v=t.autoComplete,h=t.editable,b=t.activeDescendantId,C=t.value,w=t.maxLength,P=t.onKeyDown,E=t.onMouseDown,R=t.onChange,M=t.onPaste,j=t.onCompositionStart,z=t.onCompositionEnd,H=t.open,k=t.attrs,G=c||o.createElement("input",null),te=G,le=te.ref,oe=te.props,ne=oe.onKeyDown,ae=oe.onChange,ve=oe.onMouseDown,Ee=oe.onCompositionStart,be=oe.onCompositionEnd,Re=oe.style;return(0,K.Kp)(!("maxLength"in G.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),G=o.cloneElement(G,(0,a.Z)((0,a.Z)((0,a.Z)({type:"search"},oe),{},{id:s,ref:(0,xt.sQ)(n,le),disabled:u,tabIndex:d,autoComplete:v||"off",autoFocus:f,className:re()("".concat(l,"-selection-search-input"),(r=G)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":H||!1,"aria-haspopup":"listbox","aria-owns":"".concat(s,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(s,"_list"),"aria-activedescendant":H?b:void 0},k),{},{value:h?C:"",maxLength:w,readOnly:!h,unselectable:h?null:"on",style:(0,a.Z)((0,a.Z)({},Re),{},{opacity:h?null:0}),onKeyDown:function(we){P(we),ne&&ne(we)},onMouseDown:function(we){E(we),ve&&ve(we)},onChange:function(we){R(we),ae&&ae(we)},onCompositionStart:function(we){j(we),Ee&&Ee(we)},onCompositionEnd:function(we){z(we),be&&be(we)},onPaste:M})),G},rr=o.forwardRef(Zn),Xn=rr;function gr(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var ut=typeof window!="undefined"&&window.document&&window.document.documentElement,un=ut;function ze(e){return e!=null}function J(e){return!e&&e!==0}function _e(e){return["string","number"].includes((0,g.Z)(e))}function et(e){var t=void 0;return e&&(_e(e.title)?t=e.title.toString():_e(e.label)&&(t=e.label.toString())),t}function pt(e,t){un?o.useLayoutEffect(e,t):o.useEffect(e,t)}function lt(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var kt=function(t){t.preventDefault(),t.stopPropagation()},ye=function(t){var n=t.id,r=t.prefixCls,l=t.values,s=t.open,c=t.searchValue,u=t.autoClearSearchValue,d=t.inputRef,f=t.placeholder,v=t.disabled,h=t.mode,b=t.showSearch,C=t.autoFocus,w=t.autoComplete,P=t.activeDescendantId,E=t.tabIndex,R=t.removeIcon,M=t.maxTagCount,j=t.maxTagTextLength,z=t.maxTagPlaceholder,H=z===void 0?function(ht){return"+ ".concat(ht.length," ...")}:z,k=t.tagRender,G=t.onToggleOpen,te=t.onRemove,le=t.onInputChange,oe=t.onInputPaste,ne=t.onInputKeyDown,ae=t.onInputMouseDown,ve=t.onInputCompositionStart,Ee=t.onInputCompositionEnd,be=o.useRef(null),Re=(0,o.useState)(0),pe=(0,N.Z)(Re,2),we=pe[0],Te=pe[1],Ue=(0,o.useState)(!1),tt=(0,N.Z)(Ue,2),ke=tt[0],Ot=tt[1],$t="".concat(r,"-selection"),zt=s||h==="multiple"&&u===!1||h==="tags"?c:"",Bt=h==="tags"||h==="multiple"&&u===!1||b&&(s||ke);pt(function(){Te(be.current.scrollWidth)},[zt]);var mt=function(It,Vt,Lt,fn,hn){return o.createElement("span",{title:et(It),className:re()("".concat($t,"-item"),(0,Y.Z)({},"".concat($t,"-item-disabled"),Lt))},o.createElement("span",{className:"".concat($t,"-item-content")},Vt),fn&&o.createElement(mn,{className:"".concat($t,"-item-remove"),onMouseDown:kt,onClick:hn,customizeIcon:R},"\xD7"))},At=function(It,Vt,Lt,fn,hn){var Ln=function(zn){kt(zn),G(!s)};return o.createElement("span",{onMouseDown:Ln},k({label:Vt,value:It,disabled:Lt,closable:fn,onClose:hn}))},Jt=function(It){var Vt=It.disabled,Lt=It.label,fn=It.value,hn=!v&&!Vt,Ln=Lt;if(typeof j=="number"&&(typeof Lt=="string"||typeof Lt=="number")){var Rn=String(Ln);Rn.length>j&&(Ln="".concat(Rn.slice(0,j),"..."))}var zn=function(ca){ca&&ca.stopPropagation(),te(It)};return typeof k=="function"?At(fn,Ln,Vt,hn,zn):mt(It,Ln,Vt,hn,zn)},Pt=function(It){var Vt=typeof H=="function"?H(It):H;return mt({title:Vt},Vt,!1)},gt=o.createElement("div",{className:"".concat($t,"-search"),style:{width:we},onFocus:function(){Ot(!0)},onBlur:function(){Ot(!1)}},o.createElement(Xn,{ref:d,open:s,prefixCls:r,id:n,inputElement:null,disabled:v,autoFocus:C,autoComplete:w,editable:Bt,activeDescendantId:P,value:zt,onKeyDown:ne,onMouseDown:ae,onChange:le,onPaste:oe,onCompositionStart:ve,onCompositionEnd:Ee,tabIndex:E,attrs:(0,Pn.Z)(t,!0)}),o.createElement("span",{ref:be,className:"".concat($t,"-search-mirror"),"aria-hidden":!0},zt,"\xA0")),Rt=o.createElement(Mt.Z,{prefixCls:"".concat($t,"-overflow"),data:l,renderItem:Jt,renderRest:Pt,suffix:gt,itemKey:lt,maxCount:M});return o.createElement(o.Fragment,null,Rt,!l.length&&!zt&&o.createElement("span",{className:"".concat($t,"-placeholder")},f))},Ae=ye,Pe=function(t){var n=t.inputElement,r=t.prefixCls,l=t.id,s=t.inputRef,c=t.disabled,u=t.autoFocus,d=t.autoComplete,f=t.activeDescendantId,v=t.mode,h=t.open,b=t.values,C=t.placeholder,w=t.tabIndex,P=t.showSearch,E=t.searchValue,R=t.activeValue,M=t.maxLength,j=t.onInputKeyDown,z=t.onInputMouseDown,H=t.onInputChange,k=t.onInputPaste,G=t.onInputCompositionStart,te=t.onInputCompositionEnd,le=t.title,oe=o.useState(!1),ne=(0,N.Z)(oe,2),ae=ne[0],ve=ne[1],Ee=v==="combobox",be=Ee||P,Re=b[0],pe=E||"";Ee&&R&&!ae&&(pe=R),o.useEffect(function(){Ee&&ve(!1)},[Ee,R]);var we=v!=="combobox"&&!h&&!P?!1:!!pe,Te=le===void 0?et(Re):le,Ue=o.useMemo(function(){return Re?null:o.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:we?{visibility:"hidden"}:void 0},C)},[Re,we,C,r]);return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(r,"-selection-search")},o.createElement(Xn,{ref:s,prefixCls:r,id:l,open:h,inputElement:n,disabled:c,autoFocus:u,autoComplete:d,editable:be,activeDescendantId:f,value:pe,onKeyDown:j,onMouseDown:z,onChange:function(ke){ve(!0),H(ke)},onPaste:k,onCompositionStart:G,onCompositionEnd:te,tabIndex:w,attrs:(0,Pn.Z)(t,!0),maxLength:Ee?M:void 0})),!Ee&&Re?o.createElement("span",{className:"".concat(r,"-selection-item"),title:Te,style:we?{visibility:"hidden"}:void 0},Re.label):null,Ue)},at=Pe,We=function(t,n){var r=(0,o.useRef)(null),l=(0,o.useRef)(!1),s=t.prefixCls,c=t.open,u=t.mode,d=t.showSearch,f=t.tokenWithEnter,v=t.autoClearSearchValue,h=t.onSearch,b=t.onSearchSubmit,C=t.onToggleOpen,w=t.onInputKeyDown,P=t.domRef;o.useImperativeHandle(n,function(){return{focus:function(pe){r.current.focus(pe)},blur:function(){r.current.blur()}}});var E=Tn(0),R=(0,N.Z)(E,2),M=R[0],j=R[1],z=function(pe){var we=pe.which;(we===Oe.Z.UP||we===Oe.Z.DOWN)&&pe.preventDefault(),w&&w(pe),we===Oe.Z.ENTER&&u==="tags"&&!l.current&&!c&&(b==null||b(pe.target.value)),Tt(we)&&C(!0)},H=function(){j(!0)},k=(0,o.useRef)(null),G=function(pe){h(pe,!0,l.current)!==!1&&C(!0)},te=function(){l.current=!0},le=function(pe){l.current=!1,u!=="combobox"&&G(pe.target.value)},oe=function(pe){var we=pe.target.value;if(f&&k.current&&/[\r\n]/.test(k.current)){var Te=k.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");we=we.replace(Te,k.current)}k.current=null,G(we)},ne=function(pe){var we=pe.clipboardData,Te=we==null?void 0:we.getData("text");k.current=Te||""},ae=function(pe){var we=pe.target;if(we!==r.current){var Te=document.body.style.msTouchAction!==void 0;Te?setTimeout(function(){r.current.focus()}):r.current.focus()}},ve=function(pe){var we=M();pe.target!==r.current&&!we&&u!=="combobox"&&pe.preventDefault(),(u!=="combobox"&&(!d||!we)||!c)&&(c&&v!==!1&&h("",!0,!1),C())},Ee={inputRef:r,onInputKeyDown:z,onInputMouseDown:H,onInputChange:oe,onInputPaste:ne,onInputCompositionStart:te,onInputCompositionEnd:le},be=u==="multiple"||u==="tags"?o.createElement(Ae,(0,_.Z)({},t,Ee)):o.createElement(at,(0,_.Z)({},t,Ee));return o.createElement("div",{ref:P,className:"".concat(s,"-selector"),onClick:ae,onMouseDown:ve},be)},st=o.forwardRef(We),Wt=st,Dt=i(40228),Xt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ut=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},qt=function(t,n){var r=t.prefixCls,l=t.disabled,s=t.visible,c=t.children,u=t.popupElement,d=t.animation,f=t.transitionName,v=t.dropdownStyle,h=t.dropdownClassName,b=t.direction,C=b===void 0?"ltr":b,w=t.placement,P=t.builtinPlacements,E=t.dropdownMatchSelectWidth,R=t.dropdownRender,M=t.dropdownAlign,j=t.getPopupContainer,z=t.empty,H=t.getTriggerDOMNode,k=t.onPopupVisibleChange,G=t.onPopupMouseEnter,te=(0,p.Z)(t,Xt),le="".concat(r,"-dropdown"),oe=u;R&&(oe=R(u));var ne=o.useMemo(function(){return P||Ut(E)},[P,E]),ae=d?"".concat(le,"-").concat(d):f,ve=typeof E=="number",Ee=o.useMemo(function(){return ve?null:E===!1?"minWidth":"width"},[E,ve]),be=v;ve&&(be=(0,a.Z)((0,a.Z)({},be),{},{width:E}));var Re=o.useRef(null);return o.useImperativeHandle(n,function(){return{getPopupElement:function(){return Re.current}}}),o.createElement(Dt.Z,(0,_.Z)({},te,{showAction:k?["click"]:[],hideAction:k?["click"]:[],popupPlacement:w||(C==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ne,prefixCls:le,popupTransitionName:ae,popup:o.createElement("div",{ref:Re,onMouseEnter:G},oe),stretch:Ee,popupAlign:M,popupVisible:s,getPopupContainer:j,popupClassName:re()(h,(0,Y.Z)({},"".concat(le,"-empty"),z)),popupStyle:be,getTriggerDOMNode:H,onPopupVisibleChange:k}),c)},En=o.forwardRef(qt),V=En,me=i(84506);function de(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n!=null?n:r!==void 0?r:"rc-index-key-".concat(t)}function F(e){return typeof e!="undefined"&&!Number.isNaN(e)}function ie(e,t){var n=e||{},r=n.label,l=n.value,s=n.options,c=n.groupLabel,u=r||(t?"children":"label");return{label:u,value:l||"value",options:s||"options",groupLabel:c||u}}function De(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,l=[],s=ie(n,!1),c=s.label,u=s.value,d=s.options,f=s.groupLabel;function v(h,b){Array.isArray(h)&&h.forEach(function(C){if(b||!(d in C)){var w=C[u];l.push({key:de(C,l.length),groupOption:b,data:C,label:C[c],value:w})}else{var P=C[f];P===void 0&&r&&(P=C.label),l.push({key:de(C,l.length),group:!0,data:C,label:P}),v(C[d],!0)}})}return v(e,!1),l}function Ge(e){var t=(0,a.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,K.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Qe=function(t,n,r){if(!n||!n.length)return null;var l=!1,s=function u(d,f){var v=(0,me.Z)(f),h=v[0],b=v.slice(1);if(!h)return[d];var C=d.split(h);return l=l||C.length>1,C.reduce(function(w,P){return[].concat((0,Fe.Z)(w),(0,Fe.Z)(u(P,b)))},[]).filter(Boolean)},c=s(t,n);return l?typeof r!="undefined"?c.slice(0,r):c:null},ct=o.createContext(null),Je=ct,ft=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],dt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Nt=function(t){return t==="tags"||t==="multiple"},Qt=o.forwardRef(function(e,t){var n,r=e.id,l=e.prefixCls,s=e.className,c=e.showSearch,u=e.tagRender,d=e.direction,f=e.omitDomProps,v=e.displayValues,h=e.onDisplayValuesChange,b=e.emptyOptions,C=e.notFoundContent,w=C===void 0?"Not Found":C,P=e.onClear,E=e.mode,R=e.disabled,M=e.loading,j=e.getInputElement,z=e.getRawInputElement,H=e.open,k=e.defaultOpen,G=e.onDropdownVisibleChange,te=e.activeValue,le=e.onActiveValueChange,oe=e.activeDescendantId,ne=e.searchValue,ae=e.autoClearSearchValue,ve=e.onSearch,Ee=e.onSearchSplit,be=e.tokenSeparators,Re=e.allowClear,pe=e.suffixIcon,we=e.clearIcon,Te=e.OptionList,Ue=e.animation,tt=e.transitionName,ke=e.dropdownStyle,Ot=e.dropdownClassName,$t=e.dropdownMatchSelectWidth,zt=e.dropdownRender,Bt=e.dropdownAlign,mt=e.placement,At=e.builtinPlacements,Jt=e.getPopupContainer,Pt=e.showAction,gt=Pt===void 0?[]:Pt,Rt=e.onFocus,ht=e.onBlur,It=e.onKeyUp,Vt=e.onKeyDown,Lt=e.onMouseDown,fn=(0,p.Z)(e,ft),hn=Nt(E),Ln=(c!==void 0?c:hn)||E==="combobox",Rn=(0,a.Z)({},fn);dt.forEach(function(io){delete Rn[io]}),f==null||f.forEach(function(io){delete Rn[io]});var zn=o.useState(!1),br=(0,N.Z)(zn,2),ca=br[0],bn=br[1];o.useEffect(function(){bn((0,Be.Z)())},[]);var $r=o.useRef(null),Un=o.useRef(null),en=o.useRef(null),wn=o.useRef(null),ir=o.useRef(null),Kn=o.useRef(!1),Kr=Gt(),lr=(0,N.Z)(Kr,3),Oa=lr[0],Wn=lr[1],Gn=lr[2];o.useImperativeHandle(t,function(){var io,Ba;return{focus:(io=wn.current)===null||io===void 0?void 0:io.focus,blur:(Ba=wn.current)===null||Ba===void 0?void 0:Ba.blur,scrollTo:function(Ji){var gi;return(gi=ir.current)===null||gi===void 0?void 0:gi.scrollTo(Ji)}}});var ua=o.useMemo(function(){var io;if(E!=="combobox")return ne;var Ba=(io=v[0])===null||io===void 0?void 0:io.value;return typeof Ba=="string"||typeof Ba=="number"?String(Ba):""},[ne,E,v]),Za=E==="combobox"&&typeof j=="function"&&j()||null,Wr=typeof z=="function"&&z(),fi=(0,xt.x1)(Un,Wr==null||(n=Wr.props)===null||n===void 0?void 0:n.ref),Zi=o.useState(!1),oi=(0,N.Z)(Zi,2),Wi=oi[0],vi=oi[1];(0,$e.Z)(function(){vi(!0)},[]);var Jr=(0,fe.Z)(!1,{defaultValue:k,value:H}),Er=(0,N.Z)(Jr,2),da=Er[0],mr=Er[1],Pa=Wi?da:!1,mi=!w&&b;(R||mi&&Pa&&E==="combobox")&&(Pa=!1);var Jo=mi?!1:Pa,Hr=o.useCallback(function(io){var Ba=io!==void 0?io:!Pa;R||(mr(Ba),Pa!==Ba&&(G==null||G(Ba)))},[R,Pa,mr,G]),fa=o.useMemo(function(){return(be||[]).some(function(io){return[` +`,`\r +`].includes(io)})},[be]),ta=o.useContext(Je)||{},Sa=ta.maxCount,Po=ta.rawValues,Lo=function(Ba,ji,Ji){if(!(hn&&F(Sa)&&(Po==null?void 0:Po.size)>=Sa)){var gi=!0,zi=Ba;le==null||le(null);var xa=Qe(Ba,be,F(Sa)?Sa-Po.size:void 0),ma=Ji?null:xa;return E!=="combobox"&&ma&&(zi="",Ee==null||Ee(ma),Hr(!1),gi=!1),ve&&ua!==zi&&ve(zi,{source:ji?"typing":"effect"}),gi}},ll=function(Ba){!Ba||!Ba.trim()||ve(Ba,{source:"submit"})};o.useEffect(function(){!Pa&&!hn&&E!=="combobox"&&Lo("",!1,!1)},[Pa]),o.useEffect(function(){da&&R&&mr(!1),R&&!Kn.current&&Wn(!1)},[R]);var Qi=Tn(),wl=(0,N.Z)(Qi,2),qa=wl[0],Ha=wl[1],na=function(Ba){var ji=qa(),Ji=Ba.which;if(Ji===Oe.Z.ENTER&&(E!=="combobox"&&Ba.preventDefault(),Pa||Hr(!0)),Ha(!!ua),Ji===Oe.Z.BACKSPACE&&!ji&&hn&&!ua&&v.length){for(var gi=(0,Fe.Z)(v),zi=null,xa=gi.length-1;xa>=0;xa-=1){var ma=gi[xa];if(!ma.disabled){gi.splice(xa,1),zi=ma;break}}zi&&h(gi,{type:"remove",values:[zi]})}for(var Ci=arguments.length,sl=new Array(Ci>1?Ci-1:0),Dl=1;Dl1?ji-1:0),gi=1;gi1?xa-1:0),Ci=1;Ci=w},[u,w,z==null?void 0:z.size]),be=function(gt){gt.preventDefault()},Re=function(gt){var Rt;(Rt=ve.current)===null||Rt===void 0||Rt.scrollTo(typeof gt=="number"?{index:gt}:gt)},pe=function(gt){for(var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ht=ae.length,It=0;It1&&arguments[1]!==void 0?arguments[1]:!1;tt(gt);var ht={source:Rt?"keyboard":"mouse"},It=ae[gt];if(!It){E(null,-1,ht);return}E(It.value,gt,ht)};(0,o.useEffect)(function(){ke(R!==!1?pe(0):-1)},[ae.length,f]);var Ot=o.useCallback(function(Pt){return z.has(Pt)&&d!=="combobox"},[d,(0,Fe.Z)(z).toString(),z.size]);(0,o.useEffect)(function(){var Pt=setTimeout(function(){if(!u&&c&&z.size===1){var Rt=Array.from(z)[0],ht=ae.findIndex(function(It){var Vt=It.data;return Vt.value===Rt});ht!==-1&&(ke(ht),Re(ht))}});if(c){var gt;(gt=ve.current)===null||gt===void 0||gt.scrollTo(void 0)}return function(){return clearTimeout(Pt)}},[c,f]);var $t=function(gt){gt!==void 0&&M(gt,{selected:!z.has(gt)}),u||v(!1)};if(o.useImperativeHandle(n,function(){return{onKeyDown:function(gt){var Rt=gt.which,ht=gt.ctrlKey;switch(Rt){case Oe.Z.N:case Oe.Z.P:case Oe.Z.UP:case Oe.Z.DOWN:{var It=0;if(Rt===Oe.Z.UP?It=-1:Rt===Oe.Z.DOWN?It=1:Mr()&&ht&&(Rt===Oe.Z.N?It=1:Rt===Oe.Z.P&&(It=-1)),It!==0){var Vt=pe(Ue+It,It);Re(Vt),ke(Vt,!0)}break}case Oe.Z.ENTER:{var Lt,fn=ae[Ue];fn&&!(fn!=null&&(Lt=fn.data)!==null&&Lt!==void 0&&Lt.disabled)&&!Ee?$t(fn.value):$t(void 0),c&>.preventDefault();break}case Oe.Z.ESC:v(!1),c&>.stopPropagation()}},onKeyUp:function(){},scrollTo:function(gt){Re(gt)}}}),ae.length===0)return o.createElement("div",{role:"listbox",id:"".concat(s,"_list"),className:"".concat(ne,"-empty"),onMouseDown:be},h);var zt=Object.keys(H).map(function(Pt){return H[Pt]}),Bt=function(gt){return gt.label};function mt(Pt,gt){var Rt=Pt.group;return{role:Rt?"presentation":"option",id:"".concat(s,"_list_").concat(gt)}}var At=function(gt){var Rt=ae[gt];if(!Rt)return null;var ht=Rt.data||{},It=ht.value,Vt=Rt.group,Lt=(0,Pn.Z)(ht,!0),fn=Bt(Rt);return Rt?o.createElement("div",(0,_.Z)({"aria-label":typeof fn=="string"&&!Vt?fn:null},Lt,{key:gt},mt(Rt,gt),{"aria-selected":Ot(It)}),It):null},Jt={role:"listbox",id:"".concat(s,"_list")};return o.createElement(o.Fragment,null,k&&o.createElement("div",(0,_.Z)({},Jt,{style:{height:0,width:0,overflow:"hidden"}}),At(Ue-1),At(Ue),At(Ue+1)),o.createElement(jn.Z,{itemKey:"key",ref:ve,data:ae,height:te,itemHeight:le,fullHeight:!1,onMouseDown:be,onScroll:b,virtual:k,direction:G,innerProps:k?null:Jt},function(Pt,gt){var Rt=Pt.group,ht=Pt.groupOption,It=Pt.data,Vt=Pt.label,Lt=Pt.value,fn=It.key;if(Rt){var hn,Ln=(hn=It.title)!==null&&hn!==void 0?hn:zr(Vt)?Vt.toString():void 0;return o.createElement("div",{className:re()(ne,"".concat(ne,"-group"),It.className),title:Ln},Vt!==void 0?Vt:fn)}var Rn=It.disabled,zn=It.title,br=It.children,ca=It.style,bn=It.className,$r=(0,p.Z)(It,vr),Un=(0,Nn.Z)($r,zt),en=Ot(Lt),wn=Rn||!en&&Ee,ir="".concat(ne,"-option"),Kn=re()(ne,ir,bn,(0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(ir,"-grouped"),ht),"".concat(ir,"-active"),Ue===gt&&!wn),"".concat(ir,"-disabled"),wn),"".concat(ir,"-selected"),en)),Kr=Bt(Pt),lr=!j||typeof j=="function"||en,Oa=typeof Kr=="number"?Kr:Kr||Lt,Wn=zr(Oa)?Oa.toString():void 0;return zn!==void 0&&(Wn=zn),o.createElement("div",(0,_.Z)({},(0,Pn.Z)(Un),k?{}:mt(Pt,gt),{"aria-selected":en,className:Kn,title:Wn,onMouseMove:function(){Ue===gt||wn||ke(gt)},onClick:function(){wn||$t(Lt)},style:ca}),o.createElement("div",{className:"".concat(ir,"-content")},typeof oe=="function"?oe(Pt,{index:gt}):Oa),o.isValidElement(j)||en,lr&&o.createElement(mn,{className:"".concat(ne,"-option-state"),customizeIcon:j,customizeIconProps:{value:Lt,disabled:wn,isSelected:en}},en?"\u2713":null))}))},Ir=o.forwardRef(nr),Vr=Ir,lo=function(e,t){var n=o.useRef({values:new Map,options:new Map}),r=o.useMemo(function(){var s=n.current,c=s.values,u=s.options,d=e.map(function(h){if(h.label===void 0){var b;return(0,a.Z)((0,a.Z)({},h),{},{label:(b=c.get(h.value))===null||b===void 0?void 0:b.label})}return h}),f=new Map,v=new Map;return d.forEach(function(h){f.set(h.value,h),v.set(h.value,t.get(h.value)||u.get(h.value))}),n.current.values=f,n.current.options=v,d},[e,t]),l=o.useCallback(function(s){return t.get(s)||n.current.options.get(s)},[t]);return[r,l]};function kr(e,t){return gr(e).join("").toUpperCase().includes(t)}var jr=function(e,t,n,r,l){return o.useMemo(function(){if(!n||r===!1)return e;var s=t.options,c=t.label,u=t.value,d=[],f=typeof r=="function",v=n.toUpperCase(),h=f?r:function(C,w){return l?kr(w[l],v):w[s]?kr(w[c!=="children"?c:"label"],v):kr(w[u],v)},b=f?function(C){return Ge(C)}:function(C){return C};return e.forEach(function(C){if(C[s]){var w=h(n,b(C));if(w)d.push(C);else{var P=C[s].filter(function(E){return h(n,b(E))});P.length&&d.push((0,a.Z)((0,a.Z)({},C),{},(0,Y.Z)({},s,P)))}return}h(n,b(C))&&d.push(C)}),d},[e,r,l,n,t])},hr=i(98924),Fn=0,qn=(0,hr.Z)();function sr(){var e;return qn?(e=Fn,Fn+=1):e="TEST_OR_SSR",e}function yn(e){var t=o.useState(),n=(0,N.Z)(t,2),r=n[0],l=n[1];return o.useEffect(function(){l("rc_select_".concat(sr()))},[]),e||r}var Vn=i(50344),ar=["children","value"],Wo=["children"];function So(e){var t=e,n=t.key,r=t.props,l=r.children,s=r.value,c=(0,p.Z)(r,ar);return(0,a.Z)({key:n,value:s!==void 0?s:n,children:l},c)}function La(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Vn.Z)(e).map(function(n,r){if(!o.isValidElement(n)||!n.type)return null;var l=n,s=l.type.isSelectOptGroup,c=l.key,u=l.props,d=u.children,f=(0,p.Z)(u,Wo);return t||!s?So(n):(0,a.Z)((0,a.Z)({key:"__RC_SELECT_GRP__".concat(c===null?r:c,"__"),label:c},f),{},{options:La(d)})}).filter(function(n){return n})}var _a=function(t,n,r,l,s){return o.useMemo(function(){var c=t,u=!t;u&&(c=La(n));var d=new Map,f=new Map,v=function(C,w,P){P&&typeof P=="string"&&C.set(w[P],w)},h=function b(C){for(var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,P=0;P1&&arguments[1]!==void 0?arguments[1]:!1,c=0;c2&&arguments[2]!==void 0?arguments[2]:{},Sa=ta.source,Po=Sa===void 0?"keyboard":Sa;Wi(fa),c&&r==="combobox"&&Hr!==null&&Po==="keyboard"&&Wr(String(Hr))},[c,r]),Er=function(fa,ta,Sa){var Po=function(){var Ri,yi=$r(fa);return[Te?{label:yi==null?void 0:yi[mt.label],value:fa,key:(Ri=yi==null?void 0:yi.key)!==null&&Ri!==void 0?Ri:fa}:fa,Ge(yi)]};if(ta&&C){var Lo=Po(),ll=(0,N.Z)(Lo,2),Qi=ll[0],wl=ll[1];C(Qi,wl)}else if(!ta&&w&&Sa!=="clear"){var qa=Po(),Ha=(0,N.Z)(qa,2),na=Ha[0],qo=Ha[1];w(na,qo)}},da=ii(function(Hr,fa){var ta,Sa=$t?fa.selected:!0;Sa?ta=$t?[].concat((0,Fe.Z)(bn),[Hr]):[Hr]:ta=bn.filter(function(Po){return Po.value!==Hr}),Wn(ta),Er(Hr,Sa),r==="combobox"?Wr(""):(!Nt||b)&&(gt(""),Wr(""))}),mr=function(fa,ta){Wn(fa);var Sa=ta.type,Po=ta.values;(Sa==="remove"||Sa==="clear")&&Po.forEach(function(Lo){Er(Lo.value,!1,Sa)})},Pa=function(fa,ta){if(gt(fa),Wr(null),ta.source==="submit"){var Sa=(fa||"").trim();if(Sa){var Po=Array.from(new Set([].concat((0,Fe.Z)(en),[Sa])));Wn(Po),Er(Sa,!0),gt("")}return}ta.source!=="blur"&&(r==="combobox"&&Wn(fa),v==null||v(fa))},mi=function(fa){var ta=fa;r!=="tags"&&(ta=fa.map(function(Po){var Lo=It.get(Po);return Lo==null?void 0:Lo.value}).filter(function(Po){return Po!==void 0}));var Sa=Array.from(new Set([].concat((0,Fe.Z)(en),(0,Fe.Z)(ta))));Wn(Sa),Sa.forEach(function(Po){Er(Po,!0)})},Jo=o.useMemo(function(){var Hr=oe!==!1&&E!==!1;return(0,a.Z)((0,a.Z)({},Rt),{},{flattenOptions:Oa,onActiveValue:Jr,defaultActiveFirstOption:vi,onSelect:da,menuItemSelectedIcon:le,rawValues:en,fieldNames:mt,virtual:Hr,direction:ne,listHeight:ve,listItemHeight:be,childrenAsData:zt,maxCount:tt,optionRender:k})},[tt,Rt,Oa,Jr,vi,da,le,en,mt,oe,E,ne,ve,be,zt,k]);return o.createElement(Je.Provider,{value:Jo},o.createElement(ln,(0,_.Z)({},ke,{id:Ot,prefixCls:s,ref:t,omitDomProps:tn,mode:r,displayValues:Un,onDisplayValuesChange:mr,direction:ne,searchValue:Pt,onSearch:Pa,autoClearSearchValue:b,onSearchSplit:mi,dropdownMatchSelectWidth:E,OptionList:Vr,emptyOptions:!Oa.length,activeValue:Za,activeDescendantId:"".concat(Ot,"_list_").concat(oi)})))}),qr=Or;qr.Option=on,qr.OptGroup=In;var ia=null,la=null,Yr=i(66680),Ar=o.createContext(null),Dr=Ar,ba="__rc_cascader_search_mark__",ja=function(t,n,r){var l=r.label;return n.some(function(s){return String(s[l]).toLowerCase().includes(t.toLowerCase())})},Ma=function(t,n,r,l){return n.map(function(s){return s[l.label]}).join(" / ")},xe=function(e,t,n,r,l,s){var c=l.filter,u=c===void 0?ja:c,d=l.render,f=d===void 0?Ma:d,v=l.limit,h=v===void 0?50:v,b=l.sort;return o.useMemo(function(){var C=[];if(!e)return[];function w(P,E){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;P.forEach(function(M){if(!(!b&&h!==!1&&h>0&&C.length>=h)){var j=[].concat((0,Fe.Z)(E),[M]),z=M[n.children],H=R||M.disabled;if((!z||z.length===0||s)&&u(e,j,{label:n.label})){var k;C.push((0,a.Z)((0,a.Z)({},M),{},(k={disabled:H},(0,Y.Z)(k,n.label,f(e,j,r,n)),(0,Y.Z)(k,ba,j),(0,Y.Z)(k,n.children,void 0),k)))}z&&w(M[n.children],j,H)}})}return w(t,[]),b&&C.sort(function(P,E){return b(P[ba],E[ba],e,n)}),h!==!1&&h>0?C.slice(0,h):C},[e,t,n,r,f,s,u,b,h])},ce="__RC_CASCADER_SPLIT__",bt="SHOW_PARENT",ot="SHOW_CHILD";function wt(e){return e.join(ce)}function sn(e){return e.map(wt)}function gn(e){return e.split(ce)}function Dn(e){var t=e||{},n=t.label,r=t.value,l=t.children,s=r||"value";return{label:n||"label",value:s,key:s,children:l||"children"}}function Hn(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function or(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function Yn(e,t){return e.map(function(n){var r;return(r=n[ba])===null||r===void 0?void 0:r.map(function(l){return l[t.value]})})}function Qn(e){return Array.isArray(e)&&Array.isArray(e[0])}function Ft(e){return e?Qn(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function pn(e,t,n){var r=new Set(e),l=t();return e.filter(function(s){var c=l[s],u=c?c.parent:null,d=c?c.children:null;return c&&c.node.disabled?!0:n===ot?!(d&&d.some(function(f){return f.key&&r.has(f.key)})):!(u&&!u.node.disabled&&r.has(u.key))})}function Bn(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,l=t,s=[],c=function(){var f,v,h,b=e[u],C=(f=l)===null||f===void 0?void 0:f.findIndex(function(P){var E=P[n.value];return r?String(E)===String(b):E===b}),w=C!==-1?(v=l)===null||v===void 0?void 0:v[C]:null;s.push({value:(h=w==null?void 0:w[n.value])!==null&&h!==void 0?h:b,index:C,option:w}),l=w==null?void 0:w[n.children]},u=0;u1&&arguments[1]!==void 0?arguments[1]:"";(l||[]).forEach(function(c){var u=c[t.key],d=c[t.children];warning(u!=null,"Tree node must have a certain key: [".concat(s).concat(u,"]"));var f=String(u);warning(!n.has(f)||u===null||u===void 0,"Same 'key' exist in the Tree: ".concat(f)),n.set(f,!0),r(d,"".concat(s).concat(f," > "))})}r(e)}function va(e){function t(n){var r=toArray(n);return r.map(function(l){if(!_n(l))return warning(!l,"Tree/TreeNode can only accept TreeNode as children."),null;var s=l.key,c=l.props,u=c.children,d=_objectWithoutProperties(c,_t),f=_objectSpread({key:s},d),v=t(u);return v.length&&(f.children=v),f}).filter(function(l){return l})}return t(e)}function Ka(e,t,n){var r=ra(n),l=r._title,s=r.key,c=r.children,u=new Set(t===!0?[]:t),d=[];function f(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(b,C){for(var w=$n(h?h.pos:"0",C),P=dr(b[s],w),E,R=0;R1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,l=t.onProcessFinished,s=t.externalGetKey,c=t.childrenPropName,u=t.fieldNames,d=arguments.length>2?arguments[2]:void 0,f=s||d,v={},h={},b={posEntities:v,keyEntities:h};return n&&(b=n(b)||b),Ga(e,function(C){var w=C.node,P=C.index,E=C.pos,R=C.key,M=C.parentPos,j=C.level,z=C.nodes,H={node:w,nodes:z,index:P,key:R,pos:E,level:j},k=dr(R,E);v[E]=H,h[k]=H,H.parent=v[M],H.parent&&(H.parent.children=H.parent.children||[],H.parent.children.push(H)),r&&r(H,b)},{externalGetKey:f,childrenPropName:c,fieldNames:u}),l&&l(b),b}function Zr(e,t){var n=t.expandedKeys,r=t.selectedKeys,l=t.loadedKeys,s=t.loadingKeys,c=t.checkedKeys,u=t.halfCheckedKeys,d=t.dragOverNodeKey,f=t.dropPosition,v=t.keyEntities,h=getEntity(v,e),b={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:l.indexOf(e)!==-1,loading:s.indexOf(e)!==-1,checked:c.indexOf(e)!==-1,halfChecked:u.indexOf(e)!==-1,pos:String(h?h.pos:""),dragOver:d===e&&f===0,dragOverGapTop:d===e&&f===-1,dragOverGapBottom:d===e&&f===1};return b}function ga(e){var t=e.data,n=e.expanded,r=e.selected,l=e.checked,s=e.loaded,c=e.loading,u=e.halfChecked,d=e.dragOver,f=e.dragOverGapTop,v=e.dragOverGapBottom,h=e.pos,b=e.active,C=e.eventKey,w=_objectSpread(_objectSpread({},t),{},{expanded:n,selected:r,checked:l,loaded:s,loading:c,halfChecked:u,dragOver:d,dragOverGapTop:f,dragOverGapBottom:v,pos:h,active:b,key:C});return"props"in w||Object.defineProperty(w,"props",{get:function(){return warning(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),w}var Q=function(e,t){var n=o.useRef({options:null,info:null}),r=o.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=Gr(e,{fieldNames:t,initWrapper:function(s){return(0,a.Z)((0,a.Z)({},s),{},{pathKeyEntities:{}})},processEntity:function(s,c){var u=s.nodes.map(function(d){return d[t.value]}).join(ce);c.pathKeyEntities[u]=s,s.key=u}})),n.current.info.pathKeyEntities},[t,e]);return r};function Se(e,t){var n=o.useMemo(function(){return t||[]},[t]),r=Q(n,e),l=o.useCallback(function(s){var c=r();return s.map(function(u){var d=c[u].nodes;return d.map(function(f){return f[e.value]})})},[r,e]);return[n,r,l]}function Ye(e){return o.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&(0,g.Z)(e)==="object"&&(t=(0,a.Z)((0,a.Z)({},t),e)),t.limit<=0&&delete t.limit,[!0,t]},[e])}function nn(e,t){return e[t]}function An(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function kn(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,l=t.checkable;return!!(n||r)||l===!1}function xr(e,t,n,r){for(var l=new Set(e),s=new Set,c=0;c<=n;c+=1){var u=t.get(c)||new Set;u.forEach(function(h){var b=h.key,C=h.node,w=h.children,P=w===void 0?[]:w;l.has(b)&&!r(C)&&P.filter(function(E){return!r(E.node)}).forEach(function(E){l.add(E.key)})})}for(var d=new Set,f=n;f>=0;f-=1){var v=t.get(f)||new Set;v.forEach(function(h){var b=h.parent,C=h.node;if(!(r(C)||!h.parent||d.has(h.parent.key))){if(r(h.parent.node)){d.add(b.key);return}var w=!0,P=!1;(b.children||[]).filter(function(E){return!r(E.node)}).forEach(function(E){var R=E.key,M=l.has(R);w&&!M&&(w=!1),!P&&(M||s.has(R))&&(P=!0)}),w&&l.add(b.key),P&&s.add(b.key),d.add(b.key)}})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(An(s,l))}}function fr(e,t,n,r,l){for(var s=new Set(e),c=new Set(t),u=0;u<=r;u+=1){var d=n.get(u)||new Set;d.forEach(function(b){var C=b.key,w=b.node,P=b.children,E=P===void 0?[]:P;!s.has(C)&&!c.has(C)&&!l(w)&&E.filter(function(R){return!l(R.node)}).forEach(function(R){s.delete(R.key)})})}c=new Set;for(var f=new Set,v=r;v>=0;v-=1){var h=n.get(v)||new Set;h.forEach(function(b){var C=b.parent,w=b.node;if(!(l(w)||!b.parent||f.has(b.parent.key))){if(l(b.parent.node)){f.add(C.key);return}var P=!0,E=!1;(C.children||[]).filter(function(R){return!l(R.node)}).forEach(function(R){var M=R.key,j=s.has(M);P&&!j&&(P=!1),!E&&(j||c.has(M))&&(E=!0)}),P||s.delete(C.key),E&&c.add(C.key),f.add(C.key)}})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(An(c,s))}}function Fa(e,t,n,r){var l=[],s;r?s=r:s=kn;var c=new Set(e.filter(function(v){var h=!!nn(n,v);return h||l.push(v),h})),u=new Map,d=0;Object.keys(n).forEach(function(v){var h=n[v],b=h.level,C=u.get(b);C||(C=new Set,u.set(b,C)),C.add(h),d=Math.max(d,b)}),(0,K.ZP)(!l.length,"Tree missing follow keys: ".concat(l.slice(0,100).map(function(v){return"'".concat(v,"'")}).join(", ")));var f;return t===!0?f=xr(c,u,d,s):f=fr(c,t.halfCheckedKeys,u,d,s),f}function Va(e,t,n,r,l,s,c,u){return function(d){if(!e)t(d);else{var f=wt(d),v=sn(n),h=sn(r),b=v.includes(f),C=l.some(function(k){return wt(k)===f}),w=n,P=l;if(C&&!b)P=l.filter(function(k){return wt(k)!==f});else{var E=b?v.filter(function(k){return k!==f}):[].concat((0,Fe.Z)(v),[f]),R=s(),M;if(b){var j=Fa(E,{checked:!1,halfCheckedKeys:h},R);M=j.checkedKeys}else{var z=Fa(E,!0,R);M=z.checkedKeys}var H=pn(M,s,u);w=c(H)}t([].concat((0,Fe.Z)(P),(0,Fe.Z)(w)))}}}function Aa(e,t,n,r,l){return o.useMemo(function(){var s=l(t),c=(0,N.Z)(s,2),u=c[0],d=c[1];if(!e||!t.length)return[u,[],d];var f=sn(u),v=n(),h=Fa(f,!0,v),b=h.checkedKeys,C=h.halfCheckedKeys;return[r(b),r(C),d]},[e,t,n,r,l])}var uo=o.memo(function(e){var t=e.children;return t},function(e,t){return!t.open}),po=uo;function Si(e){var t,n=e.prefixCls,r=e.checked,l=e.halfChecked,s=e.disabled,c=e.onClick,u=e.disableCheckbox,d=o.useContext(Dr),f=d.checkable,v=typeof f!="boolean"?f:null;return o.createElement("span",{className:re()("".concat(n),(t={},(0,Y.Z)(t,"".concat(n,"-checked"),r),(0,Y.Z)(t,"".concat(n,"-indeterminate"),!r&&l),(0,Y.Z)(t,"".concat(n,"-disabled"),s||u),t)),onClick:c},v)}var bo="__cascader_fix_label__";function Ui(e){var t=e.prefixCls,n=e.multiple,r=e.options,l=e.activeValue,s=e.prevValuePath,c=e.onToggleOpen,u=e.onSelect,d=e.onActive,f=e.checkedSet,v=e.halfCheckedSet,h=e.loadingKeys,b=e.isSelectable,C=e.searchValue,w="".concat(t,"-menu"),P="".concat(t,"-menu-item"),E=o.useContext(Dr),R=E.fieldNames,M=E.changeOnSelect,j=E.expandTrigger,z=E.expandIcon,H=E.loadingIcon,k=E.dropdownMenuColumnStyle,G=E.optionRender,te=j==="hover",le=o.useMemo(function(){return r.map(function(oe){var ne,ae=oe.disabled,ve=oe.disableCheckbox,Ee=oe[ba],be=(ne=oe[bo])!==null&&ne!==void 0?ne:oe[R.label],Re=oe[R.value],pe=Hn(oe,R),we=Ee?Ee.map(function(Ot){return Ot[R.value]}):[].concat((0,Fe.Z)(s),[Re]),Te=wt(we),Ue=h.includes(Te),tt=f.has(Te),ke=v.has(Te);return{disabled:ae,label:be,value:Re,isLeaf:pe,isLoading:Ue,checked:tt,halfChecked:ke,option:oe,disableCheckbox:ve,fullPath:we,fullPathKey:Te}})},[r,f,R,v,h,s]);return o.createElement("ul",{className:w,role:"menu"},le.map(function(oe){var ne,ae=oe.disabled,ve=oe.label,Ee=oe.value,be=oe.isLeaf,Re=oe.isLoading,pe=oe.checked,we=oe.halfChecked,Te=oe.option,Ue=oe.fullPath,tt=oe.fullPathKey,ke=oe.disableCheckbox,Ot=function(){if(!(ae||C)){var mt=(0,Fe.Z)(Ue);te&&be&&mt.pop(),d(mt)}},$t=function(){b(Te)&&u(Ue,be)},zt;return typeof Te.title=="string"?zt=Te.title:typeof ve=="string"&&(zt=ve),o.createElement("li",{key:tt,className:re()(P,(ne={},(0,Y.Z)(ne,"".concat(P,"-expand"),!be),(0,Y.Z)(ne,"".concat(P,"-active"),l===Ee||l===tt),(0,Y.Z)(ne,"".concat(P,"-disabled"),ae),(0,Y.Z)(ne,"".concat(P,"-loading"),Re),ne)),style:k,role:"menuitemcheckbox",title:zt,"aria-checked":pe,"data-path-key":tt,onClick:function(){Ot(),!ke&&(!n||be)&&$t()},onDoubleClick:function(){M&&c(!1)},onMouseEnter:function(){te&&Ot()},onMouseDown:function(mt){mt.preventDefault()}},n&&o.createElement(Si,{prefixCls:"".concat(t,"-checkbox"),checked:pe,halfChecked:we,disabled:ae||ke,disableCheckbox:ke,onClick:function(mt){ke||(mt.stopPropagation(),$t())}}),o.createElement("div",{className:"".concat(P,"-content")},G?G(Te):ve),!Re&&z&&!be&&o.createElement("div",{className:"".concat(P,"-expand-icon")},z),Re&&H&&o.createElement("div",{className:"".concat(P,"-loading-icon")},H))}))}var Fi=function(e,t){var n=o.useContext(Dr),r=n.values,l=r[0],s=o.useState([]),c=(0,N.Z)(s,2),u=c[0],d=c[1];return o.useEffect(function(){t&&!e&&d(l||[])},[t,l]),[u,d]},ha=function(e,t,n,r,l,s,c){var u=c.direction,d=c.searchValue,f=c.toggleOpen,v=c.open,h=u==="rtl",b=o.useMemo(function(){for(var k=-1,G=t,te=[],le=[],oe=r.length,ne=Yn(t,n),ae=function(pe){var we=G.findIndex(function(Te,Ue){return(ne[Ue]?wt(ne[Ue]):Te[n.value])===r[pe]});if(we===-1)return 1;k=we,te.push(k),le.push(r[pe]),G=G[k][n.children]},ve=0;ve1){var G=w.slice(0,-1);M(G)}else f(!1)},H=function(){var G,te=((G=E[P])===null||G===void 0?void 0:G[n.children])||[],le=te.find(function(ne){return!ne.disabled});if(le){var oe=[].concat((0,Fe.Z)(w),[le[n.value]]);M(oe)}};o.useImperativeHandle(e,function(){return{onKeyDown:function(G){var te=G.which;switch(te){case Oe.Z.UP:case Oe.Z.DOWN:{var le=0;te===Oe.Z.UP?le=-1:te===Oe.Z.DOWN&&(le=1),le!==0&&j(le);break}case Oe.Z.LEFT:{if(d)break;h?H():z();break}case Oe.Z.RIGHT:{if(d)break;h?z():H();break}case Oe.Z.BACKSPACE:{d||z();break}case Oe.Z.ENTER:{if(w.length){var oe=E[P],ne=(oe==null?void 0:oe[ba])||[];ne.length?s(ne.map(function(ae){return ae[n.value]}),ne[ne.length-1]):s(w,E[P])}break}case Oe.Z.ESC:f(!1),v&&G.stopPropagation()}},onKeyUp:function(){}}})},aa=o.forwardRef(function(e,t){var n,r,l,s=e.prefixCls,c=e.multiple,u=e.searchValue,d=e.toggleOpen,f=e.notFoundContent,v=e.direction,h=e.open,b=o.useRef(),C=v==="rtl",w=o.useContext(Dr),P=w.options,E=w.values,R=w.halfValues,M=w.fieldNames,j=w.changeOnSelect,z=w.onSelect,H=w.searchOptions,k=w.dropdownPrefixCls,G=w.loadData,te=w.expandTrigger,le=k||s,oe=o.useState([]),ne=(0,N.Z)(oe,2),ae=ne[0],ve=ne[1],Ee=function(ht){if(!(!G||u)){var It=Bn(ht,P,M),Vt=It.map(function(hn){var Ln=hn.option;return Ln}),Lt=Vt[Vt.length-1];if(Lt&&!Hn(Lt,M)){var fn=wt(ht);ve(function(hn){return[].concat((0,Fe.Z)(hn),[fn])}),G(Vt)}}};o.useEffect(function(){ae.length&&ae.forEach(function(Rt){var ht=gn(Rt),It=Bn(ht,P,M,!0).map(function(Lt){var fn=Lt.option;return fn}),Vt=It[It.length-1];(!Vt||Vt[M.children]||Hn(Vt,M))&&ve(function(Lt){return Lt.filter(function(fn){return fn!==Rt})})})},[P,ae,M]);var be=o.useMemo(function(){return new Set(sn(E))},[E]),Re=o.useMemo(function(){return new Set(sn(R))},[R]),pe=Fi(c,h),we=(0,N.Z)(pe,2),Te=we[0],Ue=we[1],tt=function(ht){Ue(ht),Ee(ht)},ke=function(ht){var It=ht.disabled,Vt=Hn(ht,M);return!It&&(Vt||j||c)},Ot=function(ht,It){var Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;z(ht),!c&&(It||j&&(te==="hover"||Vt))&&d(!1)},$t=o.useMemo(function(){return u?H:P},[u,H,P]),zt=o.useMemo(function(){for(var Rt=[{options:$t}],ht=$t,It=Yn(ht,M),Vt=function(){var hn=Te[Lt],Ln=ht.find(function(zn,br){return(It[br]?wt(It[br]):zn[M.value])===hn}),Rn=Ln==null?void 0:Ln[M.children];if(!(Rn!=null&&Rn.length))return 1;ht=Rn,Rt.push({options:Rn})},Lt=0;Lt":R,j=n.loadingIcon,z=n.direction,H=n.notFoundContent,k=H===void 0?"Not Found":H,G=!!d,te=(0,yr.C8)(f,{value:v,postState:Ft}),le=(0,N.Z)(te,2),oe=le[0],ne=le[1],ae=o.useMemo(function(){return Dn(h)},[JSON.stringify(h)]),ve=Se(ae,u),Ee=(0,N.Z)(ve,3),be=Ee[0],Re=Ee[1],pe=Ee[2],we=er(be,ae),Te=Aa(G,oe,Re,pe,we),Ue=(0,N.Z)(Te,3),tt=Ue[0],ke=Ue[1],Ot=Ue[2],$t=(0,yr.zX)(function(Pt){if(ne(Pt),C){var gt=Ft(Pt),Rt=gt.map(function(Vt){return Bn(Vt,be,ae).map(function(Lt){return Lt.option})}),ht=G?gt:gt[0],It=G?Rt:Rt[0];C(ht,It)}}),zt=Va(G,$t,tt,ke,Ot,Re,pe,w),Bt=(0,yr.zX)(function(Pt){zt(Pt)}),mt=o.useMemo(function(){return{options:be,fieldNames:ae,values:tt,halfValues:ke,changeOnSelect:b,onSelect:Bt,checkable:d,searchOptions:[],dropdownPrefixCls:null,loadData:P,expandTrigger:E,expandIcon:M,loadingIcon:j,dropdownMenuColumnStyle:null}},[be,ae,tt,ke,b,Bt,d,P,E,M,j]),At="".concat(l,"-panel"),Jt=!be.length;return o.createElement(Dr.Provider,{value:mt},o.createElement("div",{className:re()(At,(t={},(0,Y.Z)(t,"".concat(At,"-rtl"),z==="rtl"),(0,Y.Z)(t,"".concat(At,"-empty"),Jt),t),c),style:s},Jt?k:o.createElement(ya,{prefixCls:l,searchValue:null,multiple:G,toggleOpen:xo,open:!0,direction:z})))}function No(e){var t=e.onPopupVisibleChange,n=e.popupVisible,r=e.popupClassName,l=e.popupPlacement;warning(!t,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(n===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(r===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(l===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function ei(e,t){if(e){var n=function r(l){for(var s=0;s":be,pe=e.loadingIcon,we=e.children,Te=e.dropdownMatchSelectWidth,Ue=Te===void 0?!1:Te,tt=e.showCheckedStrategy,ke=tt===void 0?bt:tt,Ot=e.optionRender,$t=(0,p.Z)(e,_i),zt=yn(n),Bt=!!h,mt=(0,fe.Z)(c,{value:u,postState:Ft}),At=(0,N.Z)(mt,2),Jt=At[0],Pt=At[1],gt=o.useMemo(function(){return Dn(s)},[JSON.stringify(s)]),Rt=Se(gt,M),ht=(0,N.Z)(Rt,3),It=ht[0],Vt=ht[1],Lt=ht[2],fn=(0,fe.Z)("",{value:w,postState:function(mr){return mr||""}}),hn=(0,N.Z)(fn,2),Ln=hn[0],Rn=hn[1],zn=function(mr,Pa){Rn(mr),Pa.source!=="blur"&&P&&P(mr)},br=Ye(E),ca=(0,N.Z)(br,2),bn=ca[0],$r=ca[1],Un=xe(Ln,It,gt,j||l,$r,d),en=er(It,gt),wn=Aa(Bt,Jt,Vt,Lt,en),ir=(0,N.Z)(wn,3),Kn=ir[0],Kr=ir[1],lr=ir[2],Oa=o.useMemo(function(){var da=sn(Kn),mr=pn(da,Vt,ke);return[].concat((0,Fe.Z)(lr),(0,Fe.Z)(Lt(mr)))},[Kn,Vt,Lt,lr,ke]),Wn=cr(Oa,It,gt,Bt,v),Gn=(0,Yr.Z)(function(da){if(Pt(da),f){var mr=Ft(da),Pa=mr.map(function(Hr){return Bn(Hr,It,gt).map(function(fa){return fa.option})}),mi=Bt?mr:mr[0],Jo=Bt?Pa:Pa[0];f(mi,Jo)}}),ua=Va(Bt,Gn,Kn,Kr,lr,Vt,Lt,ke),Za=(0,Yr.Z)(function(da){(!Bt||C)&&Rn(""),ua(da)}),Wr=function(mr,Pa){if(Pa.type==="clear"){Gn([]);return}var mi=Pa.values[0],Jo=mi.valueCells;Za(Jo)},fi=k!==void 0?k:H,Zi=te||G,oi=ae||ne,Wi=function(mr){ve==null||ve(mr),Ee==null||Ee(mr)},vi=o.useMemo(function(){return{options:It,fieldNames:gt,values:Kn,halfValues:Kr,changeOnSelect:d,onSelect:Za,checkable:h,searchOptions:Un,dropdownPrefixCls:j,loadData:z,expandTrigger:R,expandIcon:Re,loadingIcon:pe,dropdownMenuColumnStyle:le,optionRender:Ot}},[It,gt,Kn,Kr,d,Za,h,Un,j,z,R,Re,pe,le,Ot]),Jr=!(Ln?Un:It).length,Er=Ln&&$r.matchInputWidth||Jr?{}:{minWidth:"auto"};return o.createElement(Dr.Provider,{value:vi},o.createElement(ln,(0,_.Z)({},$t,{ref:t,id:zt,prefixCls:l,autoClearSearchValue:C,dropdownMatchSelectWidth:Ue,dropdownStyle:(0,a.Z)((0,a.Z)({},Er),oe),displayValues:Wn,onDisplayValuesChange:Wr,mode:Bt?"multiple":void 0,searchValue:Ln,onSearch:zn,showSearch:bn,OptionList:oa,emptyOptions:Jr,open:fi,dropdownClassName:Zi,placement:oi,onDropdownVisibleChange:Wi,getRawInputElement:function(){return we}})))});el.SHOW_PARENT=bt,el.SHOW_CHILD=ot,el.Panel=Bo;var Vi=el,ti=Vi,Hi=i(87263),ki=i(33603),Go=i(8745),jo=i(9708),Ro=i(53124),Bi=i(88258),xi=i(98866),li=i(35792),si=i(98675),Xo=i(65223),bl=i(27833),tl=i(30307),yl=i(15030),wi=i(43277),as=i(78642),nl=i(4173);function $l(e,t){const{getPrefixCls:n,direction:r,renderEmpty:l}=o.useContext(Ro.E_),s=t||r,c=n("select",e),u=n("cascader",e);return[c,u,s,l]}function os(e,t){return o.useMemo(()=>t?o.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}var ds=i(62946),fs=i(19267),Pl=i(62994);function Xl(e,t,n){let r=n;n||(r=t?o.createElement(ds.Z,null):o.createElement(Pl.Z,null));const l=o.createElement("span",{className:`${e}-menu-item-loading-icon`},o.createElement(fs.Z,{spin:!0}));return[r,l]}var jl=i(80110),fo=i(91945),dn=i(6731),Ql=i(63185),pr=i(14747),Ca=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,l=` + &${r}-expand ${r}-expand-icon, + ${r}-loading-icon +`;return[(0,Ql.C2)(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,dn.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},pr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[l]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{["&, &:hover"]:{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[l]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]};const Wa=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},Ca(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},(0,jl.c)(e)]},Io=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}};var Ho=(0,fo.I$)("Cascader",e=>[Wa(e)],Io);const El=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[Ca(e),{display:"inline-flex",border:`${(0,dn.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}};var ml=(0,fo.ZP)(["Cascader","Panel"],e=>El(e),Io),Mi=e=>{const{prefixCls:t,className:n,multiple:r,rootClassName:l,notFoundContent:s,direction:c,expandIcon:u}=e,[d,f,v,h]=$l(t,c),b=(0,li.Z)(f),[C,w,P]=Ho(f,b);ml(f);const E=v==="rtl",[R,M]=Xl(d,E,u),j=s||(h==null?void 0:h("Cascader"))||o.createElement(Bi.Z,{componentName:"Cascader"}),z=os(f,r);return C(o.createElement(Bo,Object.assign({},e,{checkable:z,prefixCls:f,className:re()(n,w,l,P,b),notFoundContent:j,direction:v,expandIcon:R,loadingIcon:M})))},Nl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);ld===0?[u]:[].concat((0,Fe.Z)(c),[t,u]),[]),l=[];let s=0;return r.forEach((c,u)=>{const d=s+c.length;let f=e.slice(s,d);s=d,u%2===1&&(f=o.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${u}`},f)),l.push(f)}),l}const Hl=(e,t,n,r)=>{const l=[],s=e.toLowerCase();return t.forEach((c,u)=>{u!==0&&l.push(" / ");let d=c[r.label];const f=typeof d;(f==="string"||f==="number")&&(d=Ms(String(d),s,n)),l.push(d)}),l},Yi=o.forwardRef((e,t)=>{var n;const{prefixCls:r,size:l,disabled:s,className:c,rootClassName:u,multiple:d,bordered:f=!0,transitionName:v,choiceTransitionName:h="",popupClassName:b,dropdownClassName:C,expandIcon:w,placement:P,showSearch:E,allowClear:R=!0,notFoundContent:M,direction:j,getPopupContainer:z,status:H,showArrow:k,builtinPlacements:G,style:te,variant:le}=e,oe=Nl(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),ne=(0,Nn.Z)(oe,["suffixIcon"]),{getPopupContainer:ae,getPrefixCls:ve,popupOverflow:Ee,cascader:be}=o.useContext(Ro.E_),{status:Re,hasFeedback:pe,isFormItemInput:we,feedbackIcon:Te}=o.useContext(Xo.aM),Ue=(0,jo.F)(Re,H),[tt,ke,Ot,$t]=$l(r,j),zt=Ot==="rtl",Bt=ve(),mt=(0,li.Z)(tt),[At,Jt,Pt]=(0,yl.Z)(tt,mt),gt=(0,li.Z)(ke),[Rt]=Ho(ke,gt),{compactSize:ht,compactItemClassnames:It}=(0,nl.ri)(tt,j),[Vt,Lt]=(0,bl.Z)(le,f),fn=M||($t==null?void 0:$t("Cascader"))||o.createElement(Bi.Z,{componentName:"Cascader"}),hn=re()(b||C,`${ke}-dropdown`,{[`${ke}-dropdown-rtl`]:Ot==="rtl"},u,mt,gt,Jt,Pt),Ln=o.useMemo(()=>{if(!E)return E;let Wn={render:Hl};return typeof E=="object"&&(Wn=Object.assign(Object.assign({},Wn),E)),Wn},[E]),Rn=(0,si.Z)(Wn=>{var Gn;return(Gn=l!=null?l:ht)!==null&&Gn!==void 0?Gn:Wn}),zn=o.useContext(xi.Z),br=s!=null?s:zn,[ca,bn]=Xl(tt,zt,w),$r=os(ke,d),Un=(0,as.Z)(e.suffixIcon,k),{suffixIcon:en,removeIcon:wn,clearIcon:ir}=(0,wi.Z)(Object.assign(Object.assign({},e),{hasFeedback:pe,feedbackIcon:Te,showSuffixIcon:Un,multiple:d,prefixCls:tt,componentName:"Cascader"})),Kn=o.useMemo(()=>P!==void 0?P:zt?"bottomRight":"bottomLeft",[P,zt]),Kr=R===!0?{clearIcon:ir}:R,[lr]=(0,Hi.Cn)("SelectLike",(n=ne.dropdownStyle)===null||n===void 0?void 0:n.zIndex),Oa=o.createElement(ti,Object.assign({prefixCls:tt,className:re()(!r&&ke,{[`${tt}-lg`]:Rn==="large",[`${tt}-sm`]:Rn==="small",[`${tt}-rtl`]:zt,[`${tt}-${Vt}`]:Lt,[`${tt}-in-form-item`]:we},(0,jo.Z)(tt,Ue,pe),It,be==null?void 0:be.className,c,u,mt,gt,Jt,Pt),disabled:br,style:Object.assign(Object.assign({},be==null?void 0:be.style),te)},ne,{builtinPlacements:(0,tl.Z)(G,Ee),direction:Ot,placement:Kn,notFoundContent:fn,allowClear:Kr,showSearch:Ln,expandIcon:ca,suffixIcon:en,removeIcon:wn,loadingIcon:bn,checkable:$r,dropdownClassName:hn,dropdownPrefixCls:r||ke,dropdownStyle:Object.assign(Object.assign({},ne.dropdownStyle),{zIndex:lr}),choiceTransitionName:(0,ki.m)(Bt,"",h),transitionName:(0,ki.m)(Bt,"slide-up",v),getPopupContainer:z||ae,ref:t}));return Rt(At(Oa))}),ac=(0,Go.Z)(Yi);Yi.SHOW_PARENT=Ss,Yi.SHOW_CHILD=vs,Yi.Panel=Mi,Yi._InternalPanelDoNotUseOrYouWillBeFired=ac;var kl=Yi,Jl=i(53439),Ve=i(85893),oc=["radioType","renderFormItem","mode","render","label","light"],Ds=function(t,n){var r,l=t.radioType,s=t.renderFormItem,c=t.mode,u=t.render,d=t.label,f=t.light,v=(0,p.Z)(t,oc),h=(0,o.useContext)(it.ZP.ConfigContext),b=h.getPrefixCls,C=b("pro-field-cascader"),w=(0,Jl.aK)(v),P=(0,N.Z)(w,3),E=P[0],R=P[1],M=P[2],j=(0,x.YB)(),z=(0,o.useRef)(),H=(0,o.useState)(!1),k=(0,N.Z)(H,2),G=k[0],te=k[1];(0,o.useImperativeHandle)(n,function(){return(0,a.Z)((0,a.Z)({},z.current||{}),{},{fetchData:function(tt){return M(tt)}})},[M]);var le=(0,o.useMemo)(function(){var Ue;if(c==="read"){var tt=((Ue=v.fieldProps)===null||Ue===void 0?void 0:Ue.fieldNames)||{},ke=tt.value,Ot=ke===void 0?"value":ke,$t=tt.label,zt=$t===void 0?"label":$t,Bt=tt.children,mt=Bt===void 0?"children":Bt,At=new Map,Jt=function Pt(gt){if(!(gt!=null&>.length))return At;for(var Rt=gt.length,ht=0;ht=1?1:E,a:R.a})},cn=function(t,n,r,l){var s=t.current.getBoundingClientRect(),c=s.width,u=s.height,d=n.current.getBoundingClientRect(),f=d.width,v=d.height,h=f/2,b=v/2,C=r.toHsb();if(!(f===0&&v===0||f!==v)){if(l)switch(l){case"hue":return{x:C.h/360*c-h,y:-b/3};case"alpha":return{x:C.a/1*c-h,y:-b/3}}return{x:C.s*c-h,y:(1-C.b)*u-b}}},Sn=function(t){var n=t.color,r=t.prefixCls,l=t.className,s=t.style,c=t.onClick,u="".concat(r,"-color-block");return o.createElement("div",{className:re()(u,l),style:s,onClick:c},o.createElement("div",{className:"".concat(u,"-inner"),style:{background:n}}))},tr=Sn;function Rr(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function Lr(e){var t=e.offset,n=e.targetRef,r=e.containerRef,l=e.direction,s=e.onDragChange,c=e.onDragChangeComplete,u=e.calculate,d=e.color,f=e.disabledDrag,v=(0,o.useState)(t||{x:0,y:0}),h=(0,N.Z)(v,2),b=h[0],C=h[1],w=(0,o.useRef)(null),P=(0,o.useRef)(null),E=(0,o.useRef)({flag:!1});(0,o.useEffect)(function(){if(E.current.flag===!1){var H=u==null?void 0:u(r);H&&C(H)}},[d,r]),(0,o.useEffect)(function(){return function(){document.removeEventListener("mousemove",w.current),document.removeEventListener("mouseup",P.current),document.removeEventListener("touchmove",w.current),document.removeEventListener("touchend",P.current),w.current=null,P.current=null}},[]);var R=function(k){var G=Rr(k),te=G.pageX,le=G.pageY,oe=r.current.getBoundingClientRect(),ne=oe.x,ae=oe.y,ve=oe.width,Ee=oe.height,be=n.current.getBoundingClientRect(),Re=be.width,pe=be.height,we=Re/2,Te=pe/2,Ue=Math.max(0,Math.min(te-ne,ve))-we,tt=Math.max(0,Math.min(le-ae,Ee))-Te,ke={x:Ue,y:l==="x"?b.y:tt};if(Re===0&&pe===0||Re!==pe)return!1;C(ke),s==null||s(ke)},M=function(k){k.preventDefault(),R(k)},j=function(k){k.preventDefault(),E.current.flag=!1,document.removeEventListener("mousemove",w.current),document.removeEventListener("mouseup",P.current),document.removeEventListener("touchmove",w.current),document.removeEventListener("touchend",P.current),w.current=null,P.current=null,c==null||c()},z=function(k){document.removeEventListener("mousemove",w.current),document.removeEventListener("mouseup",P.current),!f&&(R(k),E.current.flag=!0,document.addEventListener("mousemove",M),document.addEventListener("mouseup",j),document.addEventListener("touchmove",M),document.addEventListener("touchend",j),w.current=M,P.current=j)};return[b,z]}var wr=Lr,Cr=function(t){var n=t.size,r=n===void 0?"default":n,l=t.color,s=t.prefixCls;return o.createElement("div",{className:re()("".concat(s,"-handler"),(0,Y.Z)({},"".concat(s,"-handler-sm"),r==="small")),style:{backgroundColor:l}})},Pr=Cr,sa=function(t){var n=t.children,r=t.style,l=t.prefixCls;return o.createElement("div",{className:"".concat(l,"-palette"),style:(0,a.Z)({position:"relative"},r)},n)},_r=sa,Ea=(0,o.forwardRef)(function(e,t){var n=e.children,r=e.offset;return o.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),Br=Ea,ur=function(t){var n=t.color,r=t.onChange,l=t.prefixCls,s=t.onChangeComplete,c=t.disabled,u=(0,o.useRef)(),d=(0,o.useRef)(),f=(0,o.useRef)(n),v=(0,yr.zX)(function(P){var E=xn({offset:P,targetRef:d,containerRef:u,color:n});f.current=E,r(E)}),h=wr({color:n,containerRef:u,targetRef:d,calculate:function(E){return cn(E,d,n)},onDragChange:v,onDragChangeComplete:function(){return s==null?void 0:s(f.current)},disabledDrag:c}),b=(0,N.Z)(h,2),C=b[0],w=b[1];return o.createElement("div",{ref:u,className:"".concat(l,"-select"),onMouseDown:w,onTouchStart:w},o.createElement(_r,{prefixCls:l},o.createElement(Br,{offset:C,ref:d},o.createElement(Pr,{color:n.toRgbString(),prefixCls:l})),o.createElement("div",{className:"".concat(l,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Nr=ur,yo=function(t){var n=t.colors,r=t.children,l=t.direction,s=l===void 0?"to right":l,c=t.type,u=t.prefixCls,d=(0,o.useMemo)(function(){return n.map(function(f,v){var h=On(f);return c==="alpha"&&v===n.length-1&&h.setAlpha(1),h.toRgbString()}).join(",")},[n,c]);return o.createElement("div",{className:"".concat(u,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(s,", ").concat(d,")")}},r)},wo=yo,ni=function(t){var n=t.gradientColors,r=t.direction,l=t.type,s=l===void 0?"hue":l,c=t.color,u=t.value,d=t.onChange,f=t.onChangeComplete,v=t.disabled,h=t.prefixCls,b=(0,o.useRef)(),C=(0,o.useRef)(),w=(0,o.useRef)(c),P=(0,yr.zX)(function(z){var H=xn({offset:z,targetRef:C,containerRef:b,color:c,type:s});w.current=H,d(H)}),E=wr({color:c,targetRef:C,containerRef:b,calculate:function(H){return cn(H,C,c,s)},onDragChange:P,onDragChangeComplete:function(){f==null||f(w.current,s)},direction:"x",disabledDrag:v}),R=(0,N.Z)(E,2),M=R[0],j=R[1];return o.createElement("div",{ref:b,className:re()("".concat(h,"-slider"),"".concat(h,"-slider-").concat(s)),onMouseDown:j,onTouchStart:j},o.createElement(_r,{prefixCls:h},o.createElement(Br,{offset:M,ref:C},o.createElement(Pr,{size:"small",color:u,prefixCls:h})),o.createElement(wo,{colors:n,direction:r,type:s,prefixCls:h})))},Oo=ni;function Vo(e){return e!==void 0}var Xa=function(t,n){var r=n.defaultValue,l=n.value,s=(0,o.useState)(function(){var f;return Vo(l)?f=l:Vo(r)?f=r:f=t,On(f)}),c=(0,N.Z)(s,2),u=c[0],d=c[1];return(0,o.useEffect)(function(){l&&d(On(l))},[l]),[u,d]},eo=Xa,hi=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],to=(0,o.forwardRef)(function(e,t){var n=e.value,r=e.defaultValue,l=e.prefixCls,s=l===void 0?Yt:l,c=e.onChange,u=e.onChangeComplete,d=e.className,f=e.style,v=e.panelRender,h=e.disabledAlpha,b=h===void 0?!1:h,C=e.disabled,w=C===void 0?!1:C,P=eo(rn,{value:n,defaultValue:r}),E=(0,N.Z)(P,2),R=E[0],M=E[1],j=(0,o.useMemo)(function(){var te=On(R.toRgbString());return te.setAlpha(1),te.toRgbString()},[R]),z=re()("".concat(s,"-panel"),d,(0,Y.Z)({},"".concat(s,"-panel-disabled"),w)),H={prefixCls:s,onChangeComplete:u,disabled:w},k=function(le,oe){n||M(le),c==null||c(le,oe)},G=o.createElement(o.Fragment,null,o.createElement(Nr,(0,_.Z)({color:R,onChange:k},H)),o.createElement("div",{className:"".concat(s,"-slider-container")},o.createElement("div",{className:re()("".concat(s,"-slider-group"),(0,Y.Z)({},"".concat(s,"-slider-group-disabled-alpha"),b))},o.createElement(Oo,(0,_.Z)({gradientColors:hi,color:R,value:"hsl(".concat(R.toHsb().h,",100%, 50%)"),onChange:function(le){return k(le,"hue")}},H)),!b&&o.createElement(Oo,(0,_.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",j],color:R,value:R.toRgbString(),onChange:function(le){return k(le,"alpha")}},H))),o.createElement(tr,{color:R.toRgbString(),prefixCls:s})));return o.createElement("div",{className:z,style:f,ref:t},typeof v=="function"?v(G):G)}),pi=to;const To=o.createContext({}),Xr=o.createContext({}),{Provider:Tr}=To,{Provider:Na}=Xr,Ia=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",Qr=(e,t)=>e?Ia(e,t):"";let Ra=function(){function e(t){(0,B.Z)(this,e),this.metaColor=new rt(t),t||this.metaColor.setAlpha(0)}return(0,U.Z)(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Qr(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),e}();const pa=e=>e instanceof Ra?e:new Ra(e),vo=e=>Math.round(Number(e||0)),za=e=>vo(e.toHsb().a*100),co=(e,t)=>{const n=e.toHsb();return n.a=t||1,pa(n)};var ko=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:l}=e;const s=()=>{if(n&&!r){const c=n.toHsb();c.a=0;const u=pa(c);l==null||l(u)}};return o.createElement("div",{className:`${t}-clear`,onClick:s})},Co=i(83863),mo;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(mo||(mo={}));var so=i(13622),ci={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},go=ci,Fr=i(93771),Fo=function(t,n){return o.createElement(Fr.Z,(0,_.Z)({},t,{ref:n,icon:go}))},Zo=o.forwardRef(Fo),Yo=Zo;function ui(){return typeof BigInt=="function"}function rl(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function zo(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",l=r.split("."),s=l[0]||"0",c=l[1]||"0";s==="0"&&c==="0"&&(n=!1);var u=n?"-":"";return{negative:n,negativeStr:u,trimStr:r,integerStr:s,decimalStr:c,fullStr:"".concat(u).concat(r)}}function Ei(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Uo(e){var t=String(e);if(Ei(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Ol(t)?t.length-t.indexOf(".")-1:0}function Qo(e){var t=String(e);if(Ei(e)){if(e>Number.MAX_SAFE_INTEGER)return String(ui()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":zo("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),ql=function(){function e(t){if((0,B.Z)(this,e),(0,Y.Z)(this,"origin",""),(0,Y.Z)(this,"number",void 0),(0,Y.Z)(this,"empty",void 0),rl(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return(0,U.Z)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var l=this.number+r;if(l>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(lNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(l0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Qo(this.number):this.origin}}]),e}();function gl(e){return ui()?new Ai(e):new ql(e)}function Gi(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var l=zo(e),s=l.negativeStr,c=l.integerStr,u=l.decimalStr,d="".concat(t).concat(u),f="".concat(s).concat(c);if(n>=0){var v=Number(u[n]);if(v>=5&&!r){var h=gl(e).add("".concat(s,"0.").concat("0".repeat(n)).concat(10-v));return Gi(h.toString(),t,n,r)}return n===0?f:"".concat(f).concat(t).concat(u.padEnd(n,"0").slice(0,n))}return d===".0"?f:"".concat(f).concat(d)}var Di=gl,ms=i(67656);function ls(e,t){var n=(0,o.useRef)(null);function r(){try{var s=e.selectionStart,c=e.selectionEnd,u=e.value,d=u.substring(0,s),f=u.substring(c);n.current={start:s,end:c,value:u,beforeTxt:d,afterTxt:f}}catch(v){}}function l(){if(e&&n.current&&t)try{var s=e.value,c=n.current,u=c.beforeTxt,d=c.afterTxt,f=c.start,v=s.length;if(s.endsWith(d))v=s.length-n.current.afterTxt.length;else if(s.startsWith(u))v=u.length;else{var h=u[f-1],b=s.indexOf(h,f-1);b!==-1&&(v=b+1)}e.setSelectionRange(v,v)}catch(C){(0,K.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(C.message))}}return[r,l]}var dl=function(){var t=(0,o.useState)(!1),n=(0,N.Z)(t,2),r=n[0],l=n[1];return(0,$e.Z)(function(){l((0,Be.Z)())},[]),r},_l=dl,ri=i(75164),bi=200,ss=600;function hl(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,l=e.upDisabled,s=e.downDisabled,c=e.onStep,u=o.useRef(),d=o.useRef([]),f=o.useRef();f.current=c;var v=function(){clearTimeout(u.current)},h=function(j,z){j.preventDefault(),v(),f.current(z);function H(){f.current(z),u.current=setTimeout(H,bi)}u.current=setTimeout(H,ss)};o.useEffect(function(){return function(){v(),d.current.forEach(function(M){return ri.Z.cancel(M)})}},[]);var b=_l();if(b)return null;var C="".concat(t,"-handler"),w=re()(C,"".concat(C,"-up"),(0,Y.Z)({},"".concat(C,"-up-disabled"),l)),P=re()(C,"".concat(C,"-down"),(0,Y.Z)({},"".concat(C,"-down-disabled"),s)),E=function(){return d.current.push((0,ri.Z)(v))},R={unselectable:"on",role:"button",onMouseUp:E,onMouseLeave:E};return o.createElement("div",{className:"".concat(C,"-wrap")},o.createElement("span",(0,_.Z)({},R,{onMouseDown:function(j){h(j,!0)},"aria-label":"Increase Value","aria-disabled":l,className:w}),n||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),o.createElement("span",(0,_.Z)({},R,{onMouseDown:function(j){h(j,!1)},"aria-label":"Decrease Value","aria-disabled":s,className:P}),r||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Ur(e){var t=typeof e=="number"?Qo(e):zo(e).fullStr,n=t.includes(".");return n?zo(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Ta=i(87887),wa=function(){var e=(0,o.useRef)(0),t=function(){ri.Z.cancel(e.current)};return(0,o.useEffect)(function(){return t},[]),function(n){t(),e.current=(0,ri.Z)(function(){n()})}},Qa=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],Mo=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Do=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},fl=function(t){var n=Di(t);return n.isInvalidate()?null:n},Cl=o.forwardRef(function(e,t){var n,r=e.prefixCls,l=r===void 0?"rc-input-number":r,s=e.className,c=e.style,u=e.min,d=e.max,f=e.step,v=f===void 0?1:f,h=e.defaultValue,b=e.value,C=e.disabled,w=e.readOnly,P=e.upHandler,E=e.downHandler,R=e.keyboard,M=e.changeOnWheel,j=M===void 0?!1:M,z=e.controls,H=z===void 0?!0:z,k=e.classNames,G=e.stringMode,te=e.parser,le=e.formatter,oe=e.precision,ne=e.decimalSeparator,ae=e.onChange,ve=e.onInput,Ee=e.onPressEnter,be=e.onStep,Re=e.changeOnBlur,pe=Re===void 0?!0:Re,we=(0,p.Z)(e,Qa),Te="".concat(l,"-input"),Ue=o.useRef(null),tt=o.useState(!1),ke=(0,N.Z)(tt,2),Ot=ke[0],$t=ke[1],zt=o.useRef(!1),Bt=o.useRef(!1),mt=o.useRef(!1),At=o.useState(function(){return Di(b!=null?b:h)}),Jt=(0,N.Z)(At,2),Pt=Jt[0],gt=Jt[1];function Rt(Jr){b===void 0&>(Jr)}var ht=o.useCallback(function(Jr,Er){if(!Er)return oe>=0?oe:Math.max(Uo(Jr),Uo(v))},[oe,v]),It=o.useCallback(function(Jr){var Er=String(Jr);if(te)return te(Er);var da=Er;return ne&&(da=da.replace(ne,".")),da.replace(/[^\w.-]+/g,"")},[te,ne]),Vt=o.useRef(""),Lt=o.useCallback(function(Jr,Er){if(le)return le(Jr,{userTyping:Er,input:String(Vt.current)});var da=typeof Jr=="number"?Qo(Jr):Jr;if(!Er){var mr=ht(da,Er);if(Ol(da)&&(ne||mr>=0)){var Pa=ne||".";da=Gi(da,Pa,mr)}}return da},[le,ht,ne]),fn=o.useState(function(){var Jr=h!=null?h:b;return Pt.isInvalidate()&&["string","number"].includes((0,g.Z)(Jr))?Number.isNaN(Jr)?"":Jr:Lt(Pt.toString(),!1)}),hn=(0,N.Z)(fn,2),Ln=hn[0],Rn=hn[1];Vt.current=Ln;function zn(Jr,Er){Rn(Lt(Jr.isInvalidate()?Jr.toString(!1):Jr.toString(!Er),Er))}var br=o.useMemo(function(){return fl(d)},[d,oe]),ca=o.useMemo(function(){return fl(u)},[u,oe]),bn=o.useMemo(function(){return!br||!Pt||Pt.isInvalidate()?!1:br.lessEquals(Pt)},[br,Pt]),$r=o.useMemo(function(){return!ca||!Pt||Pt.isInvalidate()?!1:Pt.lessEquals(ca)},[ca,Pt]),Un=ls(Ue.current,Ot),en=(0,N.Z)(Un,2),wn=en[0],ir=en[1],Kn=function(Er){return br&&!Er.lessEquals(br)?br:ca&&!ca.lessEquals(Er)?ca:null},Kr=function(Er){return!Kn(Er)},lr=function(Er,da){var mr=Er,Pa=Kr(mr)||mr.isEmpty();if(!mr.isEmpty()&&!da&&(mr=Kn(mr)||mr,Pa=!0),!w&&!C&&Pa){var mi=mr.toString(),Jo=ht(mi,da);return Jo>=0&&(mr=Di(Gi(mi,".",Jo)),Kr(mr)||(mr=Di(Gi(mi,".",Jo,!0)))),mr.equals(Pt)||(Rt(mr),ae==null||ae(mr.isEmpty()?null:Do(G,mr)),b===void 0&&zn(mr,da)),mr}return Pt},Oa=wa(),Wn=function Jr(Er){if(wn(),Vt.current=Er,Rn(Er),!Bt.current){var da=It(Er),mr=Di(da);mr.isNaN()||lr(mr,!0)}ve==null||ve(Er),Oa(function(){var Pa=Er;te||(Pa=Er.replace(/。/g,".")),Pa!==Er&&Jr(Pa)})},Gn=function(){Bt.current=!0},ua=function(){Bt.current=!1,Wn(Ue.current.value)},Za=function(Er){Wn(Er.target.value)},Wr=function(Er){var da;if(!(Er&&bn||!Er&&$r)){zt.current=!1;var mr=Di(mt.current?Ur(v):v);Er||(mr=mr.negate());var Pa=(Pt||Di(0)).add(mr.toString()),mi=lr(Pa,!1);be==null||be(Do(G,mi),{offset:mt.current?Ur(v):v,type:Er?"up":"down"}),(da=Ue.current)===null||da===void 0||da.focus()}},fi=function(Er){var da=Di(It(Ln)),mr=da;da.isNaN()?mr=lr(Pt,Er):mr=lr(da,Er),b!==void 0?zn(Pt,!1):mr.isNaN()||zn(mr,!1)},Zi=function(){zt.current=!0},oi=function(Er){var da=Er.key,mr=Er.shiftKey;zt.current=!0,mt.current=mr,da==="Enter"&&(Bt.current||(zt.current=!1),fi(!1),Ee==null||Ee(Er)),R!==!1&&!Bt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(da)&&(Wr(da==="Up"||da==="ArrowUp"),Er.preventDefault())},Wi=function(){zt.current=!1,mt.current=!1};o.useEffect(function(){if(j&&Ot){var Jr=function(mr){Wr(mr.deltaY<0),mr.preventDefault()},Er=Ue.current;if(Er)return Er.addEventListener("wheel",Jr,{passive:!1}),function(){return Er.removeEventListener("wheel",Jr)}}});var vi=function(){pe&&fi(!1),$t(!1),zt.current=!1};return(0,$e.o)(function(){Pt.isInvalidate()||zn(Pt,!1)},[oe,le]),(0,$e.o)(function(){var Jr=Di(b);gt(Jr);var Er=Di(It(Ln));(!Jr.equals(Er)||!zt.current||le)&&zn(Jr,zt.current)},[b]),(0,$e.o)(function(){le&&ir()},[Ln]),o.createElement("div",{className:re()(l,s,(n={},(0,Y.Z)(n,"".concat(l,"-focused"),Ot),(0,Y.Z)(n,"".concat(l,"-disabled"),C),(0,Y.Z)(n,"".concat(l,"-readonly"),w),(0,Y.Z)(n,"".concat(l,"-not-a-number"),Pt.isNaN()),(0,Y.Z)(n,"".concat(l,"-out-of-range"),!Pt.isInvalidate()&&!Kr(Pt)),n)),style:c,onFocus:function(){$t(!0)},onBlur:vi,onKeyDown:oi,onKeyUp:Wi,onCompositionStart:Gn,onCompositionEnd:ua,onBeforeInput:Zi},H&&o.createElement(hl,{prefixCls:l,upNode:P,downNode:E,upDisabled:bn,downDisabled:$r,onStep:Wr}),o.createElement("div",{className:"".concat(Te,"-wrap")},o.createElement("input",(0,_.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":u,"aria-valuemax":d,"aria-valuenow":Pt.isInvalidate()?null:Pt.toString(),step:v},we,{ref:(0,xt.sQ)(Ue,t),className:Te,value:Ln,onChange:Za,disabled:C,readOnly:w}))))}),Zl=o.forwardRef(function(e,t){var n=e.disabled,r=e.style,l=e.prefixCls,s=e.value,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,v=e.className,h=e.classNames,b=(0,p.Z)(e,Mo),C=o.useRef(null),w=function(E){C.current&&(0,Ta.nH)(C.current,E)};return o.createElement(ms.Q,{className:v,triggerFocus:w,prefixCls:l,value:s,disabled:n,style:r,prefix:c,suffix:u,addonAfter:f,addonBefore:d,classNames:h,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},o.createElement(Cl,(0,_.Z)({prefixCls:l,disabled:n,ref:(0,xt.sQ)(C,t),className:h==null?void 0:h.input},b)))});Zl.displayName="InputNumber";var $i=Zl,Fl=$i,no=i(47673),ao=i(20353),ro=i(93900),ka=i(45503);const ai=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},(0,ao.T)(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Le.C(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},Ii=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:l}=e;const s=t==="lg"?l:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:s,borderEndEndRadius:s},[`${n}-handler-up`]:{borderStartEndRadius:s},[`${n}-handler-down`]:{borderEndEndRadius:s}}}},Ao=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:l,fontSizeLG:s,controlHeightLG:c,controlHeightSM:u,colorError:d,paddingInlineSM:f,paddingBlockSM:v,paddingBlockLG:h,paddingInlineLG:b,colorTextDescription:C,motionDurationMid:w,handleHoverColor:P,paddingInline:E,paddingBlock:R,handleBg:M,handleActiveBg:j,colorTextDisabled:z,borderRadiusSM:H,borderRadiusLG:k,controlWidth:G,handleOpacity:te,handleBorderColor:le,filledHandleBg:oe,lineHeightLG:ne,calc:ae}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,pr.Wf)(e)),(0,no.ik)(e)),{display:"inline-block",width:G,margin:0,padding:0,borderRadius:l}),(0,ro.qG)(e,{[`${t}-handler-wrap`]:{background:M,[`${t}-handler-down`]:{borderBlockStart:`${(0,dn.bf)(n)} ${r} ${le}`}}})),(0,ro.H8)(e,{[`${t}-handler-wrap`]:{background:oe,[`${t}-handler-down`]:{borderBlockStart:`${(0,dn.bf)(n)} ${r} ${le}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:M}}})),(0,ro.Mu)(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:s,lineHeight:ne,borderRadius:k,[`input${t}-input`]:{height:ae(c).sub(ae(n).mul(2)).equal(),padding:`${(0,dn.bf)(h)} ${(0,dn.bf)(b)}`}},"&-sm":{padding:0,borderRadius:H,[`input${t}-input`]:{height:ae(u).sub(ae(n).mul(2)).equal(),padding:`${(0,dn.bf)(v)} ${(0,dn.bf)(f)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:d}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,pr.Wf)(e)),(0,no.s7)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:H}}},(0,ro.ir)(e)),(0,ro.S5)(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,pr.Wf)(e)),{width:"100%",padding:`${(0,dn.bf)(R)} ${(0,dn.bf)(E)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:l,outline:0,transition:`all ${w} linear`,appearance:"textfield",fontSize:"inherit"}),(0,no.nz)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l,borderEndStartRadius:0,opacity:te,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${w} linear ${w}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:C,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,dn.bf)(n)} ${r} ${le}`,transition:`all ${w} linear`,"&:active":{background:j},"&:hover":{height:"60%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:P}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,pr.Ro)()),{color:C,transition:`all ${w} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:l},[`${t}-handler-down`]:{borderEndEndRadius:l}},Ii(e,"lg")),Ii(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + ${t}-handler-up-disabled, + ${t}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${t}-handler-up-disabled:hover &-handler-up-inner, + ${t}-handler-down-disabled:hover &-handler-down-inner + `]:{color:z}})}]},Ko=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:l,controlWidth:s,borderRadiusLG:c,borderRadiusSM:u,paddingInlineLG:d,paddingInlineSM:f,paddingBlockLG:v,paddingBlockSM:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${(0,dn.bf)(n)} 0`}},(0,no.ik)(e)),{position:"relative",display:"inline-flex",width:s,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:c,paddingInlineStart:d,[`input${t}-input`]:{padding:`${(0,dn.bf)(v)} 0`}},"&-sm":{borderRadius:u,paddingInlineStart:f,[`input${t}-input`]:{padding:`${(0,dn.bf)(h)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:l},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:l}}})}};var al=(0,fo.I$)("InputNumber",e=>{const t=(0,ka.TS)(e,(0,ao.e)(e));return[Ao(t),Ko(t),(0,jl.c)(t)]},ai,{unitless:{handleOpacity:!0}}),Al=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const{getPrefixCls:n,direction:r}=o.useContext(Ro.E_),l=o.useRef(null);o.useImperativeHandle(t,()=>l.current);const{className:s,rootClassName:c,size:u,disabled:d,prefixCls:f,addonBefore:v,addonAfter:h,prefix:b,bordered:C,readOnly:w,status:P,controls:E,variant:R}=e,M=Al(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),j=n("input-number",f),z=(0,li.Z)(j),[H,k,G]=al(j,z),{compactSize:te,compactItemClassnames:le}=(0,nl.ri)(j,r);let oe=o.createElement(Yo,{className:`${j}-handler-up-inner`}),ne=o.createElement(so.Z,{className:`${j}-handler-down-inner`});const ae=typeof E=="boolean"?E:void 0;typeof E=="object"&&(oe=typeof E.upIcon=="undefined"?oe:o.createElement("span",{className:`${j}-handler-up-inner`},E.upIcon),ne=typeof E.downIcon=="undefined"?ne:o.createElement("span",{className:`${j}-handler-down-inner`},E.downIcon));const{hasFeedback:ve,status:Ee,isFormItemInput:be,feedbackIcon:Re}=o.useContext(Xo.aM),pe=(0,jo.F)(Ee,P),we=(0,si.Z)(mt=>{var At;return(At=u!=null?u:te)!==null&&At!==void 0?At:mt}),Te=o.useContext(xi.Z),Ue=d!=null?d:Te,[tt,ke]=(0,bl.Z)(R,C),Ot=ve&&o.createElement(o.Fragment,null,Re),$t=re()({[`${j}-lg`]:we==="large",[`${j}-sm`]:we==="small",[`${j}-rtl`]:r==="rtl",[`${j}-in-form-item`]:be},k),zt=`${j}-group`,Bt=o.createElement(Fl,Object.assign({ref:l,disabled:Ue,className:re()(G,z,s,c,le),upHandler:oe,downHandler:ne,prefixCls:j,readOnly:w,controls:ae,prefix:b,suffix:Ot,addonAfter:h&&o.createElement(nl.BR,null,o.createElement(Xo.Ux,{override:!0,status:!0},h)),addonBefore:v&&o.createElement(nl.BR,null,o.createElement(Xo.Ux,{override:!0,status:!0},v)),classNames:{input:$t,variant:re()({[`${j}-${tt}`]:ke},(0,jo.Z)(j,pe,ve)),affixWrapper:re()({[`${j}-affix-wrapper-sm`]:we==="small",[`${j}-affix-wrapper-lg`]:we==="large",[`${j}-affix-wrapper-rtl`]:r==="rtl"},k),wrapper:re()({[`${zt}-rtl`]:r==="rtl"},k),groupWrapper:re()({[`${j}-group-wrapper-sm`]:we==="small",[`${j}-group-wrapper-lg`]:we==="large",[`${j}-group-wrapper-rtl`]:r==="rtl",[`${j}-group-wrapper-${tt}`]:ke},(0,jo.Z)(`${j}-group-wrapper`,pe,ve),k)}},M));return H(Bt)}),ts=es,Ll=e=>o.createElement(it.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},o.createElement(es,Object.assign({},e)));ts._InternalPanelDoNotUseOrYouWillBeFired=Ll;var ol=ts,Ni=e=>{let{prefixCls:t,min:n=0,max:r=100,value:l,onChange:s,className:c,formatter:u}=e;const d=`${t}-steppers`,[f,v]=(0,o.useState)(l);return(0,o.useEffect)(()=>{Number.isNaN(l)||v(l)},[l]),o.createElement(ol,{className:re()(d,c),min:n,max:r,value:f,formatter:u,size:"small",onChange:h=>{l||v(h||0),s==null||s(h)}})},Nc=e=>{let{prefixCls:t,value:n,onChange:r}=e;const l=`${t}-alpha-input`,[s,c]=(0,o.useState)(pa(n||"#000"));(0,o.useEffect)(()=>{n&&c(n)},[n]);const u=d=>{const f=s.toHsb();f.a=(d||0)/100;const v=pa(f);n||c(v),r==null||r(v)};return o.createElement(Ni,{value:za(s),prefixCls:t,formatter:d=>`${d}%`,className:l,onChange:u})};const iu=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Tc=e=>iu.test(`#${e}`);var lu=e=>{let{prefixCls:t,value:n,onChange:r}=e;const l=`${t}-hex-input`,[s,c]=(0,o.useState)(n==null?void 0:n.toHex());(0,o.useEffect)(()=>{const d=n==null?void 0:n.toHex();Tc(d)&&n&&c(Ia(d))},[n]);const u=d=>{const f=d.target.value;c(Ia(f)),Tc(Ia(f,!0))&&(r==null||r(pa(f)))};return o.createElement(Il.Z,{className:l,value:s,prefix:"#",onChange:u,size:"small"})},sc=e=>{let{prefixCls:t,value:n,onChange:r}=e;const l=`${t}-hsb-input`,[s,c]=(0,o.useState)(pa(n||"#000"));(0,o.useEffect)(()=>{n&&c(n)},[n]);const u=(d,f)=>{const v=s.toHsb();v[f]=f==="h"?d:(d||0)/100;const h=pa(v);n||c(h),r==null||r(h)};return o.createElement("div",{className:l},o.createElement(Ni,{max:360,min:0,value:Number(s.toHsb().h),prefixCls:t,className:l,formatter:d=>vo(d||0).toString(),onChange:d=>u(Number(d),"h")}),o.createElement(Ni,{max:100,min:0,value:Number(s.toHsb().s)*100,prefixCls:t,className:l,formatter:d=>`${vo(d||0)}%`,onChange:d=>u(Number(d),"s")}),o.createElement(Ni,{max:100,min:0,value:Number(s.toHsb().b)*100,prefixCls:t,className:l,formatter:d=>`${vo(d||0)}%`,onChange:d=>u(Number(d),"b")}))},Ja=e=>{let{prefixCls:t,value:n,onChange:r}=e;const l=`${t}-rgb-input`,[s,c]=(0,o.useState)(pa(n||"#000"));(0,o.useEffect)(()=>{n&&c(n)},[n]);const u=(d,f)=>{const v=s.toRgb();v[f]=d||0;const h=pa(v);n||c(h),r==null||r(h)};return o.createElement("div",{className:l},o.createElement(Ni,{max:255,min:0,value:Number(s.toRgb().r),prefixCls:t,className:l,onChange:d=>u(Number(d),"r")}),o.createElement(Ni,{max:255,min:0,value:Number(s.toRgb().g),prefixCls:t,className:l,onChange:d=>u(Number(d),"g")}),o.createElement(Ni,{max:255,min:0,value:Number(s.toRgb().b),prefixCls:t,className:l,onChange:d=>u(Number(d),"b")}))};const Xi=[mo.hex,mo.hsb,mo.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()}));var Oi=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:l,onFormatChange:s,onChange:c}=e,[u,d]=(0,fe.Z)(mo.hex,{value:n,onChange:s}),f=`${t}-input`,v=b=>{d(b)},h=(0,o.useMemo)(()=>{const b={value:r,prefixCls:t,onChange:c};switch(u){case mo.hsb:return o.createElement(sc,Object.assign({},b));case mo.rgb:return o.createElement(Ja,Object.assign({},b));case mo.hex:default:return o.createElement(lu,Object.assign({},b))}},[u,t,r,c]);return o.createElement("div",{className:`${f}-container`},o.createElement(Co.Z,{value:u,variant:"borderless",getPopupContainer:b=>b,popupMatchSelectWidth:68,placement:"bottomRight",onChange:v,className:`${t}-format-select`,size:"small",options:Xi}),o.createElement("div",{className:f},h),!l&&o.createElement(Nc,{prefixCls:t,value:r,onChange:c}))},il=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const e=(0,o.useContext)(To),{prefixCls:t,colorCleared:n,allowClear:r,value:l,disabledAlpha:s,onChange:c,onClear:u,onChangeComplete:d}=e,f=il(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return o.createElement(o.Fragment,null,r&&o.createElement(ko,Object.assign({prefixCls:t,value:l,colorCleared:n,onChange:v=>{c==null||c(v),u==null||u()}},f)),o.createElement(pi,{prefixCls:t,value:l==null?void 0:l.toHsb(),disabledAlpha:s,onChange:(v,h)=>c==null?void 0:c(v,h,!0),onChangeComplete:d}),o.createElement(Oi,Object.assign({value:l,onChange:c,prefixCls:t,disabledAlpha:s},f)))},Sl=i(82225),cs=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,l=e.className,s=e.style,c=e.children,u=e.isActive,d=e.role,f=o.useState(u||r),v=(0,N.Z)(f,2),h=v[0],b=v[1];return o.useEffect(function(){(r||u)&&b(!0)},[r,u]),h?o.createElement("div",{ref:t,className:re()("".concat(n,"-content"),(0,Y.Z)((0,Y.Z)({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),l),style:s,role:d},o.createElement("div",{className:"".concat(n,"-content-box")},c)):null});cs.displayName="PanelContent";var ns=cs,Ts=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Ov=o.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,l=e.headerClass,s=e.isActive,c=e.onItemClick,u=e.forceRender,d=e.className,f=e.prefixCls,v=e.collapsible,h=e.accordion,b=e.panelKey,C=e.extra,w=e.header,P=e.expandIcon,E=e.openMotion,R=e.destroyInactivePanel,M=e.children,j=(0,p.Z)(e,Ts),z=v==="disabled",H=v==="header",k=v==="icon",G=C!=null&&typeof C!="boolean",te=function(){c==null||c(b)},le=function(be){(be.key==="Enter"||be.keyCode===Oe.Z.ENTER||be.which===Oe.Z.ENTER)&&te()},oe=typeof P=="function"?P(e):o.createElement("i",{className:"arrow"});oe&&(oe=o.createElement("div",{className:"".concat(f,"-expand-icon"),onClick:["header","icon"].includes(v)?te:void 0},oe));var ne=re()((0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(f,"-item"),!0),"".concat(f,"-item-active"),s),"".concat(f,"-item-disabled"),z),d),ae=re()(l,(0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(f,"-header"),!0),"".concat(f,"-header-collapsible-only"),H),"".concat(f,"-icon-collapsible-only"),k)),ve={className:ae,"aria-expanded":s,"aria-disabled":z,onKeyDown:le};return!H&&!k&&(ve.onClick=te,ve.role=h?"tab":"button",ve.tabIndex=z?-1:0),o.createElement("div",(0,_.Z)({},j,{ref:t,className:ne}),o.createElement("div",ve,r&&oe,o.createElement("span",{className:"".concat(f,"-header-text"),onClick:v==="header"?te:void 0},w),G&&o.createElement("div",{className:"".concat(f,"-extra")},C)),o.createElement(Sl.ZP,(0,_.Z)({visible:s,leavedClassName:"".concat(f,"-content-hidden")},E,{forceRender:u,removeOnLeave:R}),function(Ee,be){var Re=Ee.className,pe=Ee.style;return o.createElement(ns,{ref:be,prefixCls:f,className:Re,style:pe,isActive:s,forceRender:u,role:h?"tabpanel":void 0},M)}))}),ed=Ov,Zv=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Rv=function(t,n){var r=n.prefixCls,l=n.accordion,s=n.collapsible,c=n.destroyInactivePanel,u=n.onItemClick,d=n.activeKey,f=n.openMotion,v=n.expandIcon;return t.map(function(h,b){var C=h.children,w=h.label,P=h.key,E=h.collapsible,R=h.onItemClick,M=h.destroyInactivePanel,j=(0,p.Z)(h,Zv),z=String(P!=null?P:b),H=E!=null?E:s,k=M!=null?M:c,G=function(oe){H!=="disabled"&&(u(oe),R==null||R(oe))},te=!1;return l?te=d[0]===z:te=d.indexOf(z)>-1,o.createElement(ed,(0,_.Z)({},j,{prefixCls:r,key:z,panelKey:z,isActive:te,accordion:l,openMotion:f,expandIcon:v,header:w,collapsible:H,onItemClick:G,destroyInactivePanel:k}),C)})},Mv=function(t,n,r){if(!t)return null;var l=r.prefixCls,s=r.accordion,c=r.collapsible,u=r.destroyInactivePanel,d=r.onItemClick,f=r.activeKey,v=r.openMotion,h=r.expandIcon,b=t.key||String(n),C=t.props,w=C.header,P=C.headerClass,E=C.destroyInactivePanel,R=C.collapsible,M=C.onItemClick,j=!1;s?j=f[0]===b:j=f.indexOf(b)>-1;var z=R!=null?R:c,H=function(te){z!=="disabled"&&(d(te),M==null||M(te))},k={key:b,panelKey:b,header:w,headerClass:P,isActive:j,prefixCls:l,destroyInactivePanel:E!=null?E:u,openMotion:v,accordion:s,children:t.props.children,onItemClick:H,expandIcon:h,collapsible:z};return typeof t.type=="string"?t:(Object.keys(k).forEach(function(G){typeof k[G]=="undefined"&&delete k[G]}),o.cloneElement(t,k))};function Dv(e,t,n){return Array.isArray(e)?Rv(e,n):(0,Vn.Z)(t).map(function(r,l){return Mv(r,l,n)})}var $v=Dv;function Nv(e){var t=e;if(!Array.isArray(t)){var n=(0,g.Z)(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var Tv=o.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,l=e.destroyInactivePanel,s=l===void 0?!1:l,c=e.style,u=e.accordion,d=e.className,f=e.children,v=e.collapsible,h=e.openMotion,b=e.expandIcon,C=e.activeKey,w=e.defaultActiveKey,P=e.onChange,E=e.items,R=re()(r,d),M=(0,fe.Z)([],{value:C,onChange:function(le){return P==null?void 0:P(le)},defaultValue:w,postState:Nv}),j=(0,N.Z)(M,2),z=j[0],H=j[1],k=function(le){return H(function(){if(u)return z[0]===le?[]:[le];var oe=z.indexOf(le),ne=oe>-1;return ne?z.filter(function(ae){return ae!==le}):[].concat((0,Fe.Z)(z),[le])})};(0,K.ZP)(!f,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var G=$v(E,f,{prefixCls:r,accordion:u,openMotion:h,expandIcon:b,collapsible:v,destroyInactivePanel:s,onItemClick:k,activeKey:z});return o.createElement("div",(0,_.Z)({ref:t,className:R,style:c,role:u?"tablist":void 0},(0,Pn.Z)(e,{aria:!0,data:!0})),G)}),td=Object.assign(Tv,{Panel:ed}),nd=td,hx=td.Panel,rd=i(96159),Fv=o.forwardRef((e,t)=>{const{getPrefixCls:n}=o.useContext(Ro.E_),{prefixCls:r,className:l,showArrow:s=!0}=e,c=n("collapse",r),u=re()({[`${c}-no-arrow`]:!s},l);return o.createElement(nd.Panel,Object.assign({ref:t},e,{prefixCls:c,className:u}))}),Av=i(33507);const Lv=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:l,headerPadding:s,collapseHeaderPaddingSM:c,collapseHeaderPaddingLG:u,collapsePanelBorderRadius:d,lineWidth:f,lineType:v,colorBorder:h,colorText:b,colorTextHeading:C,colorTextDisabled:w,fontSizeLG:P,lineHeight:E,lineHeightLG:R,marginSM:M,paddingSM:j,paddingLG:z,paddingXS:H,motionDurationSlow:k,fontSizeIcon:G,contentPadding:te,fontHeight:le,fontHeightLG:oe}=e,ne=`${(0,dn.bf)(f)} ${v} ${h}`;return{[t]:Object.assign(Object.assign({},(0,pr.Wf)(e)),{backgroundColor:l,border:ne,borderBottom:0,borderRadius:d,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:ne,["&:last-child"]:{[` + &, + & > ${t}-header`]:{borderRadius:`0 0 ${(0,dn.bf)(d)} ${(0,dn.bf)(d)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:s,color:C,lineHeight:E,cursor:"pointer",transition:`all ${k}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:le,display:"flex",alignItems:"center",paddingInlineEnd:M},[`${t}-arrow`]:Object.assign(Object.assign({},(0,pr.Ro)()),{fontSize:G,svg:{transition:`transform ${k}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:b,backgroundColor:n,borderTop:ne,[`& > ${t}-content-box`]:{padding:te},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:c,paddingInlineStart:H,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(j).sub(H).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:j}}},["&-large"]:{[`> ${t}-item`]:{fontSize:P,lineHeight:R,[`> ${t}-header`]:{padding:u,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:oe,marginInlineStart:e.calc(z).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:z}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${(0,dn.bf)(d)} ${(0,dn.bf)(d)}`}},[`& ${t}-item-disabled > ${t}-header`]:{[` + &, + & > .arrow + `]:{color:w,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:M}}}}})}},jv=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Vv=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:l}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${l}`},[` + > ${t}-item:last-child, + > ${t}-item:last-child ${t}-header + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Hv=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},kv=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer});var Bv=(0,fo.I$)("Collapse",e=>{const t=(0,ka.TS)(e,{collapseHeaderPaddingSM:`${(0,dn.bf)(e.paddingXS)} ${(0,dn.bf)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,dn.bf)(e.padding)} ${(0,dn.bf)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Lv(t),Vv(t),Hv(t),jv(t),(0,Av.Z)(t)]},kv),Kv=Object.assign(o.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:l}=o.useContext(Ro.E_),{prefixCls:s,className:c,rootClassName:u,style:d,bordered:f=!0,ghost:v,size:h,expandIconPosition:b="start",children:C,expandIcon:w}=e,P=(0,si.Z)(ne=>{var ae;return(ae=h!=null?h:ne)!==null&&ae!==void 0?ae:"middle"}),E=n("collapse",s),R=n(),[M,j,z]=Bv(E),H=o.useMemo(()=>b==="left"?"start":b==="right"?"end":b,[b]),k=w!=null?w:l==null?void 0:l.expandIcon,G=o.useCallback(function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const ae=typeof k=="function"?k(ne):o.createElement(Pl.Z,{rotate:ne.isActive?90:void 0});return(0,rd.Tm)(ae,()=>{var ve;return{className:re()((ve=ae==null?void 0:ae.props)===null||ve===void 0?void 0:ve.className,`${E}-arrow`)}})},[k,E]),te=re()(`${E}-icon-position-${H}`,{[`${E}-borderless`]:!f,[`${E}-rtl`]:r==="rtl",[`${E}-ghost`]:!!v,[`${E}-${P}`]:P!=="middle"},l==null?void 0:l.className,c,u,j,z),le=Object.assign(Object.assign({},(0,ki.Z)(R)),{motionAppear:!1,leavedClassName:`${E}-content-hidden`}),oe=o.useMemo(()=>C?(0,Vn.Z)(C).map((ne,ae)=>{var ve,Ee;if(!((ve=ne.props)===null||ve===void 0)&&ve.disabled){const be=(Ee=ne.key)!==null&&Ee!==void 0?Ee:String(ae),{disabled:Re,collapsible:pe}=ne.props,we=Object.assign(Object.assign({},(0,Nn.Z)(ne.props,["disabled"])),{key:be,collapsible:pe!=null?pe:Re?"disabled":void 0});return(0,rd.Tm)(ne,we)}return ne}):null,[C]);return M(o.createElement(nd,Object.assign({ref:t,openMotion:le},(0,Nn.Z)(e,["rootClassName"]),{expandIcon:G,prefixCls:E,className:te,style:Object.assign(Object.assign({},l==null?void 0:l.style),d)}),oe))}),{Panel:Fv}),Wv=Kv,cu=i(10110),zv=i(29691);const uu=e=>e.map(t=>(t.colors=t.colors.map(pa),t)),Uv=(e,t)=>{const{r:n,g:r,b:l,a:s}=e.toRgb(),c=new rt(e.toRgbString()).onBackground(t).toHsv();return s<=.5?c.v>.5:n*.299+r*.587+l*.114>192},ad=e=>{let{label:t}=e;return`panel-${t}`};var Yv=e=>{let{prefixCls:t,presets:n,value:r,onChange:l}=e;const[s]=(0,cu.Z)("ColorPicker"),[,c]=(0,zv.ZP)(),[u]=(0,fe.Z)(uu(n),{value:uu(n),postState:uu}),d=`${t}-presets`,f=(0,o.useMemo)(()=>u.reduce((b,C)=>{const{defaultOpen:w=!0}=C;return w&&b.push(ad(C)),b},[]),[u]),v=b=>{l==null||l(b)},h=u.map(b=>{var C;return{key:ad(b),label:o.createElement("div",{className:`${d}-label`},b==null?void 0:b.label),children:o.createElement("div",{className:`${d}-items`},Array.isArray(b==null?void 0:b.colors)&&((C=b.colors)===null||C===void 0?void 0:C.length)>0?b.colors.map((w,P)=>o.createElement(tr,{key:`preset-${P}-${w.toHexString()}`,color:pa(w).toRgbString(),prefixCls:t,className:re()(`${d}-color`,{[`${d}-color-checked`]:w.toHexString()===(r==null?void 0:r.toHexString()),[`${d}-color-bright`]:Uv(w,c.colorBgElevated)}),onClick:()=>v(w)})):o.createElement("span",{className:`${d}-empty`},s.presetEmpty))}});return o.createElement("div",{className:d},o.createElement(Wv,{defaultActiveKey:f,ghost:!0,items:h}))},od=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=(0,o.useContext)(Xr);return Array.isArray(n)?o.createElement(Yv,{value:t,presets:n,prefixCls:e,onChange:r}):null},Gv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const{prefixCls:t,presets:n,panelRender:r,color:l,onChange:s,onClear:c}=e,u=Gv(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),d=`${t}-inner`,f=Object.assign({prefixCls:t,value:l,onChange:s,onClear:c},u),v=o.useMemo(()=>({prefixCls:t,value:l,presets:n,onChange:s}),[t,l,n,s]),h=o.createElement("div",{className:`${d}-content`},o.createElement(Wl,null),Array.isArray(n)&&o.createElement(Ze.Z,null),o.createElement(od,null));return o.createElement(Tr,{value:f},o.createElement(Na,{value:v},o.createElement("div",{className:d},typeof r=="function"?r(h,{components:{Picker:Wl,Presets:od}}):h)))},Qv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const{color:n,prefixCls:r,open:l,colorCleared:s,disabled:c,format:u,className:d,showText:f}=e,v=Qv(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),h=`${r}-trigger`,b=(0,o.useMemo)(()=>s?o.createElement(ko,{prefixCls:r}):o.createElement(tr,{prefixCls:r,color:n.toRgbString()}),[n,s,r]),C=()=>{const P=n.toHexString().toUpperCase(),E=za(n);switch(u){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return E<100?`${P.slice(0,7)},${E}%`:P}},w=()=>{if(typeof f=="function")return f(n);if(f)return C()};return o.createElement("div",Object.assign({ref:t,className:re()(h,d,{[`${h}-active`]:l,[`${h}-disabled`]:c})},v),b,f&&o.createElement("div",{className:`${h}-text`},w()))});function id(e){return e!==void 0}var qv=(e,t)=>{const{defaultValue:n,value:r}=t,[l,s]=(0,o.useState)(()=>{let c;return id(r)?c=r:id(n)?c=n:c=e,pa(c||"")});return(0,o.useEffect)(()=>{r&&s(pa(r))},[r]),[l,s]};const ld=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`});var sd=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:l,lineWidth:s,colorFillSecondary:c}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:l},ld("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${(0,dn.bf)(s)} solid ${c}`,borderRadius:"inherit"}})}},_v=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:l,colorPickerAlphaInputWidth:s,marginXXS:c,paddingXXS:u,controlHeightSM:d,marginXS:f,fontSizeIcon:v,paddingXS:h,colorTextPlaceholder:b,colorPickerInputNumberHandleWidth:C,lineWidth:w}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:l,[`${n}-input-number-input`]:{paddingInlineStart:u,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:C}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${(0,dn.bf)(s)}`,marginInlineStart:c},[`${t}-format-select${n}-select`]:{marginInlineEnd:f,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(v).add(c).equal(),fontSize:r,lineHeight:`${(0,dn.bf)(d)}`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:l},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:c,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:c,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,dn.bf)(h)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:(0,dn.bf)(e.calc(d).sub(e.calc(w).mul(2)).equal())},[`${n}-input-prefix`]:{color:b}}}}}},em=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:l,marginSM:s,colorBgElevated:c,colorFillSecondary:u,lineWidthBold:d,colorPickerHandlerSize:f,colorPickerHandlerSizeSM:v,colorPickerSliderHeight:h}=e;return{[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:l,inset:0},marginBottom:s},[`${t}-handler`]:{width:f,height:f,border:`${(0,dn.bf)(d)} solid ${c}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${l}, 0 0 0 1px ${u}`,"&-sm":{width:v,height:v}},[`${t}-slider`]:{borderRadius:e.calc(h).div(2).equal(),[`${t}-palette`]:{height:h},[`${t}-gradient`]:{borderRadius:e.calc(h).div(2).equal(),boxShadow:l},"&-alpha":ld(`${(0,dn.bf)(h)}`,e.colorFillSecondary),"&-hue":{marginBottom:s}},[`${t}-slider-container`]:{display:"flex",gap:s,marginBottom:s,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},tm=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:l,colorPickerPresetColorSize:s,fontSizeSM:c,colorText:u,lineHeightSM:d,lineWidth:f,borderRadius:v,colorFill:h,colorWhite:b,marginXXS:C,paddingXS:w,fontHeightSM:P}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:P,color:r,paddingInlineEnd:l}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:C},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${(0,dn.bf)(w)} 0`},"&-label":{fontSize:c,color:u,lineHeight:d},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(C).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:s,height:s,"&::before":{content:'""',pointerEvents:"none",width:e.calc(s).add(e.calc(f).mul(4)).equal(),height:e.calc(s).add(e.calc(f).mul(4)).equal(),position:"absolute",top:e.calc(f).mul(-2).equal(),insetInlineStart:e.calc(f).mul(-2).equal(),borderRadius:v,border:`${(0,dn.bf)(f)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:h},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(s).div(13).mul(5).equal(),height:e.calc(s).div(13).mul(8).equal(),border:`${(0,dn.bf)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:b,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:c,color:r}}}};const du=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${(0,dn.bf)(e.controlOutlineWidth)} ${n}`,outline:0}),nm=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},cd=(e,t,n)=>{const{componentCls:r,borderRadiusSM:l,lineWidth:s,colorSplit:c,colorBorder:u,red6:d}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:l,border:`${(0,dn.bf)(s)} solid ${c}`,position:"relative",overflow:"hidden",cursor:"pointer",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:s,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:d},"&:hover":{borderColor:u}})}},rm=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:l,colorWarningHover:s,colorErrorOutline:c,colorWarningOutline:u}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:l},[`&${t}-trigger-active`]:Object.assign({},du(e,n,c))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:s},[`&${t}-trigger-active`]:Object.assign({},du(e,r,u))}}},am=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:l,controlHeightXS:s,borderRadius:c,borderRadiusSM:u,borderRadiusXS:d,borderRadiusLG:f,fontSizeLG:v}=e;return{[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:f,[`${t}-color-block, ${t}-clear`]:{width:l,height:l,borderRadius:c},[`${t}-trigger-text`]:{fontSize:v}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:u,[`${t}-color-block, ${t}-clear`]:{width:s,height:s,borderRadius:d}}}},om=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:l,motionDurationMid:s,colorBgElevated:c,colorTextDisabled:u,colorText:d,colorBgContainerDisabled:f,borderRadius:v,marginXS:h,marginSM:b,controlHeight:C,controlHeightSM:w,colorBgTextActive:P,colorPickerPresetColorSize:E,colorPickerPreviewSize:R,lineWidth:M,colorBorder:j,paddingXXS:z,fontSize:H,colorPrimaryHover:k,controlOutline:G}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${(0,dn.bf)(b)} 0 ${(0,dn.bf)(h)}`}},[`${n}-panel`]:Object.assign({},em(e))},sd(e,R)),_v(e)),tm(e)),cd(e,E,{marginInlineStart:"auto",marginBottom:h})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:C,height:C,borderRadius:v,border:`${(0,dn.bf)(M)} solid ${j}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${s}`,background:c,padding:e.calc(z).sub(M).equal(),[`${n}-trigger-text`]:{marginInlineStart:h,marginInlineEnd:e.calc(h).sub(e.calc(z).sub(M)).equal(),fontSize:H,color:d},"&:hover":{borderColor:k},[`&${n}-trigger-active`]:Object.assign({},du(e,l,G)),"&-disabled":{color:u,background:f,cursor:"not-allowed","&:hover":{borderColor:P},[`${n}-trigger-text`]:{color:u}}},cd(e,w)),sd(e,w)),rm(e)),am(e))},nm(e))}]};var im=(0,fo.I$)("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,l=(0,ka.TS)(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[om(l)]}),lm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const{value:t,defaultValue:n,format:r,defaultFormat:l,allowClear:s=!1,presets:c,children:u,trigger:d="click",open:f,disabled:v,placement:h="bottomLeft",arrow:b=!0,panelRender:C,showText:w,style:P,className:E,size:R,rootClassName:M,prefixCls:j,styles:z,disabledAlpha:H=!1,onFormatChange:k,onChange:G,onClear:te,onOpenChange:le,onChangeComplete:oe,getPopupContainer:ne,autoAdjustOverflow:ae=!0,destroyTooltipOnHide:ve}=e,Ee=lm(e,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:be,direction:Re,colorPicker:pe}=(0,o.useContext)(Ro.E_),we=(0,o.useContext)(xi.Z),Te=v!=null?v:we,[Ue,tt]=qv("",{value:t,defaultValue:n}),[ke,Ot]=(0,fe.Z)(!1,{value:f,postState:en=>!Te&&en,onChange:le}),[$t,zt]=(0,fe.Z)(r,{value:r,defaultValue:l,onChange:k}),[Bt,mt]=(0,o.useState)(!t&&!n),At=be("color-picker",j),Jt=(0,o.useMemo)(()=>za(Ue)<100,[Ue]),{status:Pt}=o.useContext(Xo.aM),gt=(0,si.Z)(R),Rt=(0,li.Z)(At),[ht,It,Vt]=im(At,Rt),Lt={[`${At}-rtl`]:Re},fn=re()(M,Vt,Rt,Lt),hn=re()((0,jo.Z)(At,Pt),{[`${At}-sm`]:gt==="small",[`${At}-lg`]:gt==="large"},pe==null?void 0:pe.className,fn,E,It),Ln=re()(At,fn),Rn=(0,o.useRef)(!0),zn=(en,wn,ir)=>{let Kn=pa(en);(Bt||(t===null||!t&&n===null))&&(mt(!1),za(Ue)===0&&wn!=="alpha"&&(Kn=co(Kn))),H&&Jt&&(Kn=co(Kn)),ir?Rn.current=!1:oe==null||oe(Kn),tt(Kn),G==null||G(Kn,Kn.toHexString())},br=()=>{mt(!0),te==null||te()},ca=en=>{Rn.current=!0;let wn=pa(en);H&&Jt&&(wn=co(en)),oe==null||oe(wn)},bn={open:ke,trigger:d,placement:h,arrow:b,rootClassName:M,getPopupContainer:ne,autoAdjustOverflow:ae,destroyTooltipOnHide:ve},$r={prefixCls:At,color:Ue,allowClear:s,colorCleared:Bt,disabled:Te,disabledAlpha:H,presets:c,panelRender:C,format:$t,onFormatChange:zt,onChangeComplete:ca},Un=Object.assign(Object.assign({},pe==null?void 0:pe.style),P);return ht(o.createElement(ge.Z,Object.assign({style:z==null?void 0:z.popup,overlayInnerStyle:z==null?void 0:z.popupOverlayInner,onOpenChange:en=>{Rn.current&&!Te&&Ot(en)},content:o.createElement(Xo.Ux,{override:!0,status:!0},o.createElement(Xv,Object.assign({},$r,{onChange:zn,onChangeComplete:ca,onClear:br}))),overlayClassName:Ln},bn),u||o.createElement(Jv,Object.assign({open:ke,className:hn,style:Un,color:t?pa(t):Ue,prefixCls:At,disabled:Te,colorCleared:Bt,showText:w,format:$t},Ee))))},sm=(0,Go.Z)(fu,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));fu._InternalPanelDoNotUseOrYouWillBeFired=sm;var cm=fu,um=cm,hs=i(79941),dm=i(82492),fm=i.n(dm),vm=function(t,n,r,l,s){var c=s.clientWidth,u=s.clientHeight,d=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,f=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,v=d-(s.getBoundingClientRect().left+window.pageXOffset),h=f-(s.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var b;if(h<0?b=0:h>u?b=1:b=Math.round(h*100/u)/100,n.a!==b)return{h:n.h,s:n.s,l:n.l,a:b,source:"rgb"}}else{var C;if(v<0?C=0:v>c?C=1:C=Math.round(v*100/c)/100,l!==C)return{h:n.h,s:n.s,l:n.l,a:C,source:"rgb"}}return null},vu={},mm=function(t,n,r,l){if(typeof document=="undefined"&&!l)return null;var s=l?new l:document.createElement("canvas");s.width=r*2,s.height=r*2;var c=s.getContext("2d");return c?(c.fillStyle=t,c.fillRect(0,0,s.width,s.height),c.fillStyle=n,c.fillRect(0,0,r,r),c.translate(r,r),c.fillRect(0,0,r,r),s.toDataURL()):null},gm=function(t,n,r,l){var s="".concat(t,"-").concat(n,"-").concat(r).concat(l?"-server":"");if(vu[s])return vu[s];var c=mm(t,n,r,l);return vu[s]=c,c};function cc(e){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cc(e)}function ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Fc(e){for(var t=1;tc)h=0;else{var b=-(v*100/c)+100;h=360*b/100}if(r.h!==h)return{h,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var C;if(f<0)C=0;else if(f>s)C=359;else{var w=f*100/s;C=360*w/100}if(r.h!==C)return{h:C,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function As(e){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},As(e)}function $m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gd(e,t){for(var n=0;ns&&(f=s),v<0?v=0:v>c&&(v=c);var h=f/s,b=1-v/c;return{h:n.h,s:h,v:b,a:n.a,source:"hsv"}};function Ls(e){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ls(e)}function Um(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hd(e,t){for(var n=0;n=0,s=!n&&l&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return s?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return ea(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(pg,arguments)},brighten:function(){return this._applyModification(bg,arguments)},darken:function(){return this._applyModification(yg,arguments)},desaturate:function(){return this._applyModification(mg,arguments)},saturate:function(){return this._applyModification(gg,arguments)},greyscale:function(){return this._applyModification(hg,arguments)},spin:function(){return this._applyModification(Cg,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(wg,arguments)},complement:function(){return this._applyCombination(Sg,arguments)},monochromatic:function(){return this._applyCombination(Pg,arguments)},splitcomplement:function(){return this._applyCombination(xg,arguments)},triad:function(){return this._applyCombination(Sd,[3])},tetrad:function(){return this._applyCombination(Sd,[4])}},ea.fromRatio=function(e,t){if(Vc(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=uc(e[r]));e=n}return ea(e,t)};function cg(e){var t={r:0,g:0,b:0},n=1,r=null,l=null,s=null,c=!1,u=!1;return typeof e=="string"&&(e=Rg(e)),Vc(e)=="object"&&(us(e.r)&&us(e.g)&&us(e.b)?(t=ug(e.r,e.g,e.b),c=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):us(e.h)&&us(e.s)&&us(e.v)?(r=uc(e.s),l=uc(e.v),t=fg(e.h,r,l),c=!0,u="hsv"):us(e.h)&&us(e.s)&&us(e.l)&&(r=uc(e.s),s=uc(e.l),t=dg(e.h,r,s),c=!0,u="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=xd(n),{ok:c,format:e.format||u,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:n}}function ug(e,t,n){return{r:di(e,255)*255,g:di(t,255)*255,b:di(n,255)*255}}function pd(e,t,n){e=di(e,255),t=di(t,255),n=di(n,255);var r=Math.max(e,t,n),l=Math.min(e,t,n),s,c,u=(r+l)/2;if(r==l)s=c=0;else{var d=r-l;switch(c=u>.5?d/(2-r-l):d/(r+l),r){case e:s=(t-n)/d+(t1&&(h-=1),h<1/6?f+(v-f)*6*h:h<1/2?v:h<2/3?f+(v-f)*(2/3-h)*6:f}if(t===0)r=l=s=n;else{var u=n<.5?n*(1+t):n+t-n*t,d=2*n-u;r=c(d,u,e+1/3),l=c(d,u,e),s=c(d,u,e-1/3)}return{r:r*255,g:l*255,b:s*255}}function bd(e,t,n){e=di(e,255),t=di(t,255),n=di(n,255);var r=Math.max(e,t,n),l=Math.min(e,t,n),s,c,u=r,d=r-l;if(c=r===0?0:d/r,r==l)s=0;else{switch(r){case e:s=(t-n)/d+(t>1)+720)%360;--t;)r.h=(r.h+l)%360,s.push(ea(r));return s}function Pg(e,t){t=t||6;for(var n=ea(e).toHsv(),r=n.h,l=n.s,s=n.v,c=[],u=1/t;t--;)c.push(ea({h:r,s:l,v:s})),s=(s+u)%1;return c}ea.mix=function(e,t,n){n=n===0?0:n||50;var r=ea(e).toRgb(),l=ea(t).toRgb(),s=n/100,c={r:(l.r-r.r)*s+r.r,g:(l.g-r.g)*s+r.g,b:(l.b-r.b)*s+r.b,a:(l.a-r.a)*s+r.a};return ea(c)},ea.readability=function(e,t){var n=ea(e),r=ea(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},ea.isReadable=function(e,t,n){var r=ea.readability(e,t),l,s;switch(s=!1,l=Mg(n),l.level+l.size){case"AAsmall":case"AAAlarge":s=r>=4.5;break;case"AAlarge":s=r>=3;break;case"AAAsmall":s=r>=7;break}return s},ea.mostReadable=function(e,t,n){var r=null,l=0,s,c,u,d;n=n||{},c=n.includeFallbackColors,u=n.level,d=n.size;for(var f=0;fl&&(l=s,r=ea(t[f]));return ea.isReadable(e,r,{level:u,size:d})||!c?r:(n.includeFallbackColors=!1,ea.mostReadable(e,["#fff","#000"],n))};var bu=ea.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Eg=ea.hexNames=Ig(bu);function Ig(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function xd(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function di(e,t){Og(e)&&(e="100%");var n=Zg(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Hc(e){return Math.min(1,Math.max(0,e))}function Rl(e){return parseInt(e,16)}function Og(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Zg(e){return typeof e=="string"&&e.indexOf("%")!=-1}function zl(e){return e.length==1?"0"+e:""+e}function uc(e){return e<=1&&(e=e*100+"%"),e}function wd(e){return Math.round(parseFloat(e)*255).toString(16)}function Pd(e){return Rl(e)/255}var Ul=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",l="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+l),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+l),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+l),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 us(e){return!!Ul.CSS_UNIT.exec(e)}function Rg(e){e=e.replace(lg,"").replace(sg,"").toLowerCase();var t=!1;if(bu[e])e=bu[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Ul.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Ul.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ul.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Ul.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ul.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Ul.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ul.hex8.exec(e))?{r:Rl(n[1]),g:Rl(n[2]),b:Rl(n[3]),a:Pd(n[4]),format:t?"name":"hex8"}:(n=Ul.hex6.exec(e))?{r:Rl(n[1]),g:Rl(n[2]),b:Rl(n[3]),format:t?"name":"hex"}:(n=Ul.hex4.exec(e))?{r:Rl(n[1]+""+n[1]),g:Rl(n[2]+""+n[2]),b:Rl(n[3]+""+n[3]),a:Pd(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Ul.hex3.exec(e))?{r:Rl(n[1]+""+n[1]),g:Rl(n[2]+""+n[2]),b:Rl(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function Mg(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var Ed=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,l=0;return ig()(n,function(s){if(t[s]&&(r+=1,isNaN(t[s])||(l+=1),s==="s"||s==="l")){var c=/^\d+%$/;c.test(t[s])&&(l+=1)}}),r===l?t:!1},dc=function(t,n){var r=t.hex?ea(t.hex):ea(t),l=r.toHsl(),s=r.toHsv(),c=r.toRgb(),u=r.toHex();l.s===0&&(l.h=n||0,s.h=n||0);var d=u==="000000"&&c.a===0;return{hsl:l,hex:d?"transparent":"#".concat(u),rgb:c,hsv:s,oldHue:t.h||n||l.h,source:t.source}},Dg=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&ea(t).isValid()},Zx=function(t){if(!t)return"#fff";var n=dc(t);if(n.hex==="transparent")return"rgba(0,0,0,0.4)";var r=(n.rgb.r*299+n.rgb.g*587+n.rgb.b*114)/1e3;return r>=128?"#000":"#fff"},Rx={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},Mx=function(t,n){var r=t.replace("\xB0","");return tinycolor("".concat(n," (").concat(r,")"))._ok};function js(e){"@babel/helpers - typeof";return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},js(e)}function yu(){return yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t-1},n0=function(t){return Number(String(t).replace(/%/g,""))},r0=1,a0=function(e){Yg(n,e);var t=Gg(n);function n(r){var l;return Wg(this,n),l=t.call(this),l.handleBlur=function(){l.state.blurValue&&l.setState({value:l.state.blurValue,blurValue:null})},l.handleChange=function(s){l.setUpdatedValue(s.target.value,s)},l.handleKeyDown=function(s){var c=n0(s.target.value);if(!isNaN(c)&&t0(s.keyCode)){var u=l.getArrowOffset(),d=s.keyCode===Dd?c+u:c-u;l.setUpdatedValue(d,s)}},l.handleDrag=function(s){if(l.props.dragLabel){var c=Math.round(l.props.value+s.movementX);c>=0&&c<=l.props.dragMax&&l.props.onChange&&l.props.onChange(l.getValueObjectWithLabel(c),s)}},l.handleMouseDown=function(s){l.props.dragLabel&&(s.preventDefault(),l.handleDrag(s),window.addEventListener("mousemove",l.handleDrag),window.addEventListener("mouseup",l.handleMouseUp))},l.handleMouseUp=function(){l.unbindEventListeners()},l.unbindEventListeners=function(){window.removeEventListener("mousemove",l.handleDrag),window.removeEventListener("mouseup",l.handleMouseUp)},l.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},l.inputId="rc-editable-input-".concat(r0++),l}return zg(n,[{key:"componentDidUpdate",value:function(l,s){this.props.value!==this.state.value&&(l.value!==this.props.value||s.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(l){return Kg({},this.props.label,l)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||qg}},{key:"setUpdatedValue",value:function(l,s){var c=this.props.label?this.getValueObjectWithLabel(l):l;this.props.onChange&&this.props.onChange(c,s),this.setState({value:l})}},{key:"render",value:function(){var l=this,s=(0,hs.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return o.createElement("div",{style:s.wrap},o.createElement("input",{id:this.inputId,style:s.input,ref:function(u){return l.input=u},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?o.createElement("label",{htmlFor:this.inputId,style:s.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(o.PureComponent||o.Component),vc=a0;function Hs(e){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hs(e)}function xu(){return xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){c0(s,r);var l=u0(s);function s(){var c;o0(this,s);for(var u=arguments.length,d=new Array(u),f=0;f100&&(v.a=100),v.a/=100,n==null||n({h:l==null?void 0:l.h,s:l==null?void 0:l.s,l:l==null?void 0:l.l,a:v.a,source:"rgb"},h))};return o.createElement("div",{style:u.fields,className:"flexbox-fix"},o.createElement("div",{style:u.double},o.createElement(vc,{style:{input:u.input,label:u.label},label:"hex",value:s==null?void 0:s.replace("#",""),onChange:d})),o.createElement("div",{style:u.single},o.createElement(vc,{style:{input:u.input,label:u.label},label:"r",value:r==null?void 0:r.r,onChange:d,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:u.single},o.createElement(vc,{style:{input:u.input,label:u.label},label:"g",value:r==null?void 0:r.g,onChange:d,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:u.single},o.createElement(vc,{style:{input:u.input,label:u.label},label:"b",value:r==null?void 0:r.b,onChange:d,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:u.alpha},o.createElement(vc,{style:{input:u.input,label:u.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:d,dragLabel:"true",dragMax:"100"})))},x0=S0;function gc(e){"@babel/helpers - typeof";return gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gc(e)}function Fd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Ad(e){for(var t=1;t-1}function L0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e=="undefined"||e===!1)&&Vd()?um:F0}var j0=function(t,n){var r=t.text,l=t.mode,s=t.render,c=t.renderFormItem,u=t.fieldProps,d=t.old,f=(0,o.useContext)(it.ZP.ConfigContext),v=f.getPrefixCls,h=o.useMemo(function(){return L0(d)},[d]),b=v("pro-field-color-picker"),C=(0,o.useMemo)(function(){return d?"":re()((0,Y.Z)({},b,Vd()))},[b,d]);if(l==="read"){var w=(0,Ve.jsx)(h,{value:r,mode:"read",ref:n,className:C,open:!1});return s?s(r,(0,a.Z)({mode:l},u),w):w}if(l==="edit"||l==="update"){var P=(0,a.Z)({display:"table-cell"},u.style),E=(0,Ve.jsx)(h,(0,a.Z)((0,a.Z)({ref:n,presets:[A0]},u),{},{style:P,className:C}));return c?c(r,(0,a.Z)((0,a.Z)({mode:l},u),{},{style:P}),E):E}return null},V0=o.forwardRef(j0),H0=i(27484),oo=i.n(H0),k0=i(10285),Hd=i.n(k0),Eu=i(74763);oo().extend(Hd());var kd=function(t){return!!(t!=null&&t._isAMomentObject)},pc=function e(t,n){return(0,Eu.k)(t)||oo().isDayjs(t)||kd(t)?kd(t)?oo()(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?oo()(t):oo()(t,n)},B0=i(6833),Bd=i.n(B0),K0=i(96036),Kd=i.n(K0),W0=i(55183),Iu=i.n(W0),z0=i(172),U0=i.n(z0),Y0=i(28734),Wd=i.n(Y0);oo().extend(Hd()),oo().extend(Wd()),oo().extend(Bd()),oo().extend(Kd()),oo().extend(Iu()),oo().extend(U0()),oo().extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(s){var c=(s||"").replace("Wo","wo");return r.bind(this)(c)}});var G0={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},xs=function(t){var n=G0[t];return n||t.split("_")[0]},zd=function(){(0,K.ET)(!1,"Not match any format. Please help to fire a issue about this.")},X0={getNow:function(){return oo()()},getFixedDate:function(t){return oo()(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return oo()().locale(xs(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(xs(t)).weekday(0)},getWeek:function(t,n){return n.locale(xs(t)).week()},getShortWeekDays:function(t){return oo()().locale(xs(t)).localeData().weekdaysMin()},getShortMonths:function(t){return oo()().locale(xs(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(xs(t)).format(r)},parse:function(t,n,r){for(var l=xs(t),s=0;s2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=o.useState([!1,!1]),l=(0,N.Z)(r,2),s=l[0],c=l[1],u=function(v,h){c(function(b){return bc(b,h,v)})},d=o.useMemo(function(){return s.map(function(f,v){if(f)return!0;var h=e[v];return h?!!(!n[v]&&!h||h&&t(h,{activeIndex:v})):!1})},[e,s,t,n]);return[d,u]}function qd(e,t,n,r,l){var s="",c=[];return e&&c.push(l?"hh":"HH"),t&&c.push("mm"),n&&c.push("ss"),s=c.join(":"),r&&(s+=".SSS"),l&&(s+=" A"),s}function vh(e,t,n,r,l,s){var c=e.fieldDateTimeFormat,u=e.fieldDateFormat,d=e.fieldTimeFormat,f=e.fieldMonthFormat,v=e.fieldYearFormat,h=e.fieldWeekFormat,b=e.fieldQuarterFormat,C=e.yearFormat,w=e.cellYearFormat,P=e.cellQuarterFormat,E=e.dayFormat,R=e.cellDateFormat,M=qd(t,n,r,l,s);return(0,a.Z)((0,a.Z)({},e),{},{fieldDateTimeFormat:c||"YYYY-MM-DD ".concat(M),fieldDateFormat:u||"YYYY-MM-DD",fieldTimeFormat:d||M,fieldMonthFormat:f||"YYYY-MM",fieldYearFormat:v||"YYYY",fieldWeekFormat:h||"gggg-wo",fieldQuarterFormat:b||"YYYY-[Q]Q",yearFormat:C||"YYYY",cellYearFormat:w||"YYYY",cellQuarterFormat:P||"[Q]Q",cellDateFormat:R||E||"D"})}function _d(e,t){var n=t.showHour,r=t.showMinute,l=t.showSecond,s=t.showMillisecond,c=t.use12Hours;return o.useMemo(function(){return vh(e,n,r,l,s,c)},[e,n,r,l,s,c])}function yc(e,t,n){return n!=null?n:t.some(function(r){return e.includes(r)})}var mh=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function gh(e){var t=Wc(e,mh),n=e.format,r=e.picker,l=null;return n&&(l=n,Array.isArray(l)&&(l=l[0]),l=(0,g.Z)(l)==="object"?l.format:l),r==="time"&&(t.format=l),[t,l]}function hh(e){return e&&typeof e=="string"}function ef(e){var t=e.showTime,n=gh(e),r=(0,N.Z)(n,2),l=r[0],s=r[1],c=t&&(0,g.Z)(t)==="object"?t:{},u=(0,a.Z)((0,a.Z)({defaultOpenValue:c.defaultOpenValue||c.defaultValue},l),c),d=u.showMillisecond,f=u.showHour,v=u.showMinute,h=u.showSecond;return!f&&!v&&!h&&!d&&(f=!0,v=!0,h=!0),[u,(0,a.Z)((0,a.Z)({},u),{},{showHour:f,showMinute:v,showSecond:h,showMillisecond:d}),u.format,s]}function tf(e,t,n,r,l){var s=e==="time";if(e==="datetime"||s){for(var c=r,u=Xd(e,l,null),d=u,f=[t,n],v=0;v1&&(c=t.addDate(c,-7)),c}function Ki(e,t){var n=t.generateConfig,r=t.locale,l=t.format;return e?typeof l=="function"?l(e):n.locale.format(r.locale,e,l):""}function Yc(e,t,n){var r=t,l=["getHour","getMinute","getSecond","getMillisecond"],s=["setHour","setMinute","setSecond","setMillisecond"];return s.forEach(function(c,u){n?r=e[c](r,e[l[u]](n)):r=e[c](r,0)}),r}function Ch(e,t,n,r,l){var s=(0,yr.zX)(function(c,u){return!!(n&&n(c,u)||r&&e.isAfter(r,c)&&!vl(e,t,r,c,u.type)||l&&e.isAfter(c,l)&&!vl(e,t,l,c,u.type))});return s}function Sh(e,t,n){return o.useMemo(function(){var r=Xd(e,t,n),l=ws(r),s=l[0],c=(0,g.Z)(s)==="object"&&s.type==="mask"?s.format:null;return[l.map(function(u){return typeof u=="string"||typeof u=="function"?u:u.format}),c]},[e,t,n])}function xh(e,t,n){return typeof e[0]=="function"||n?!0:t}function wh(e,t,n,r){var l=(0,yr.zX)(function(s,c){var u=(0,a.Z)({type:t},c);if(delete u.activeIndex,!e.isValidate(s)||n&&n(s,u))return!0;if((t==="date"||t==="time")&&r){var d,f=((d=r.disabledTime)===null||d===void 0?void 0:d.call(r,s,c&&c.activeIndex===1?"end":"start"))||{},v=f.disabledHours,h=f.disabledMinutes,b=f.disabledSeconds,C=f.disabledMilliseconds,w=r.disabledHours,P=r.disabledMinutes,E=r.disabledSeconds,R=v||w,M=h||P,j=b||E,z=e.getHour(s),H=e.getMinute(s),k=e.getSecond(s),G=e.getMillisecond(s);if(R&&R().includes(z)||M&&M(z).includes(H)||j&&j(z,H).includes(k)||C&&C(z,H,k).includes(G))return!0}return!1});return l}function Gc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=o.useMemo(function(){var r=e&&ws(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function of(e,t){var n=e.generateConfig,r=e.locale,l=e.picker,s=l===void 0?"date":l,c=e.prefixCls,u=c===void 0?"rc-picker":c,d=e.styles,f=d===void 0?{}:d,v=e.classNames,h=v===void 0?{}:v,b=e.order,C=b===void 0?!0:b,w=e.components,P=w===void 0?{}:w,E=e.inputRender,R=e.allowClear,M=e.clearIcon,j=e.needConfirm,z=e.multiple,H=e.format,k=e.inputReadOnly,G=e.disabledDate,te=e.minDate,le=e.maxDate,oe=e.showTime,ne=e.value,ae=e.defaultValue,ve=e.pickerValue,Ee=e.defaultPickerValue,be=Gc(ne),Re=Gc(ae),pe=Gc(ve),we=Gc(Ee),Te=s==="date"&&oe?"datetime":s,Ue=Te==="time"||Te==="datetime",tt=Ue||z,ke=j!=null?j:Ue,Ot=ef(e),$t=(0,N.Z)(Ot,4),zt=$t[0],Bt=$t[1],mt=$t[2],At=$t[3],Jt=_d(r,Bt),Pt=o.useMemo(function(){return tf(Te,mt,At,zt,Jt)},[Te,mt,At,zt,Jt]),gt=o.useMemo(function(){return(0,a.Z)((0,a.Z)({},e),{},{prefixCls:u,locale:Jt,picker:s,styles:f,classNames:h,order:C,components:(0,a.Z)({input:E},P),clearIcon:ph(u,R,M),showTime:Pt,value:be,defaultValue:Re,pickerValue:pe,defaultPickerValue:we},t==null?void 0:t())},[e]),Rt=Sh(Te,Jt,H),ht=(0,N.Z)(Rt,2),It=ht[0],Vt=ht[1],Lt=xh(It,k,z),fn=Ch(n,r,G,te,le),hn=wh(n,s,G,Pt),Ln=o.useMemo(function(){return(0,a.Z)((0,a.Z)({},gt),{},{needConfirm:ke,inputReadOnly:Lt,disabledDate:fn})},[gt,ke,Lt,fn]);return[Ln,Te,tt,It,Vt,hn]}function Ph(e,t,n){var r=(0,yr.C8)(t,{value:e}),l=(0,N.Z)(r,2),s=l[0],c=l[1],u=o.useRef(e),d=o.useRef(),f=function(){ri.Z.cancel(d.current)},v=(0,yr.zX)(function(){c(u.current),n&&s!==u.current&&n(u.current)}),h=(0,yr.zX)(function(b,C){f(),u.current=b,b||C?v():d.current=(0,ri.Z)(v)});return o.useEffect(function(){return f},[]),[s,h]}function lf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,l=n.every(function(v){return v})?!1:e,s=Ph(l,t||!1,r),c=(0,N.Z)(s,2),u=c[0],d=c[1];function f(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!h.inherit||u)&&d(v,h.force)}return[u,f]}function sf(e){var t=o.useRef();return o.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(l){var s;(s=t.current)===null||s===void 0||s.focus(l)},blur:function(){var l;(l=t.current)===null||l===void 0||l.blur()}}}),t}function cf(e,t){return o.useMemo(function(){return e||(t?((0,K.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=(0,N.Z)(n,2),l=r[0],s=r[1];return{label:l,value:s}})):[])},[e,t])}function Nu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=o.useRef(t);r.current=t,(0,$e.o)(function(){if(e)r.current(e);else{var l=(0,ri.Z)(function(){r.current(e)},n);return function(){ri.Z.cancel(l)}}},[e])}function uf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=o.useState(0),r=(0,N.Z)(n,2),l=r[0],s=r[1],c=o.useState(!1),u=(0,N.Z)(c,2),d=u[0],f=u[1],v=o.useRef([]),h=o.useRef(null),b=function(E){f(E)},C=function(E){return E&&(h.current=E),h.current},w=function(E){var R=v.current,M=new Set(R.filter(function(z){return E[z]||t[z]})),j=R[R.length-1]===0?1:0;return M.size>=2||e[j]?null:j};return Nu(d,function(){d||(v.current=[])}),o.useEffect(function(){d&&v.current.push(l)},[d,l]),[d,b,C,l,s,w,v.current]}function Eh(e,t,n,r,l,s){var c=n[n.length-1],u=n.find(function(f){return e[f]}),d=function(v,h){var b=(0,N.Z)(e,2),C=b[0],w=b[1],P=(0,a.Z)((0,a.Z)({},h),{},{from:c!==u?e[u]:void 0});return c===1&&t[0]&&C&&!vl(r,l,C,v,P.type)&&r.isAfter(C,v)||c===0&&t[1]&&w&&!vl(r,l,w,v,P.type)&&r.isAfter(v,w)?!0:s==null?void 0:s(v,P)};return d}function Sc(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Tu=[];function df(e,t,n,r,l,s,c,u){var d=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Tu,f=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Tu,v=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Tu,h=arguments.length>11?arguments[11]:void 0,b=arguments.length>12?arguments[12]:void 0,C=arguments.length>13?arguments[13]:void 0,w=c==="time",P=s||0,E=function(pe){var we=e.getNow();return w&&(we=Yc(e,we)),d[pe]||n[pe]||we},R=(0,N.Z)(f,2),M=R[0],j=R[1],z=(0,yr.C8)(function(){return E(0)},{value:M}),H=(0,N.Z)(z,2),k=H[0],G=H[1],te=(0,yr.C8)(function(){return E(1)},{value:j}),le=(0,N.Z)(te,2),oe=le[0],ne=le[1],ae=o.useMemo(function(){var Re=[k,oe][P];return w?Re:Yc(e,Re,v[P])},[w,k,oe,P,e,v]),ve=function(pe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Te=[G,ne][P];Te(pe);var Ue=[k,oe];Ue[P]=pe,h&&(!vl(e,t,k,Ue[0],c)||!vl(e,t,oe,Ue[1],c))&&h(Ue,{source:we,range:P===1?"end":"start",mode:r})},Ee=function(pe,we){if(u){var Te={date:"month",week:"month",month:"year",quarter:"year"},Ue=Te[c];if(Ue&&!vl(e,t,pe,we,Ue))return Sc(e,c,we,-1);if(c==="year"){var tt=Math.floor(e.getYear(pe)/10),ke=Math.floor(e.getYear(we)/10);if(tt!==ke)return Sc(e,c,we,-1)}}return we},be=o.useRef(null);return(0,$e.Z)(function(){if(l&&!d[P]){var Re=w?null:e.getNow();if(be.current!==null&&be.current!==P?Re=[k,oe][P^1]:n[P]?Re=P===0?n[0]:Ee(n[0],n[1]):n[P^1]&&(Re=n[P^1]),Re){b&&e.isAfter(b,Re)&&(Re=b);var pe=u?Sc(e,c,Re,1):Re;C&&e.isAfter(pe,C)&&(Re=u?Sc(e,c,C,-1):C),ve(Re,"reset")}}},[l,P,n[P]]),o.useEffect(function(){l?be.current=P:be.current=null},[l,P]),(0,$e.Z)(function(){l&&d&&d[P]&&ve(d[P],"reset")},[l,P]),[ae,ve]}function ff(e,t){var n=o.useRef(e),r=o.useState({}),l=(0,N.Z)(r,2),s=l[1],c=function(f){return f&&t!==void 0?t:n.current},u=function(f){n.current=f,s({})};return[c,u,c(!0)]}var Ih=[];function vf(e,t,n){var r=function(c){return c.map(function(u){return Ki(u,{generateConfig:e,locale:t,format:n[0]})})},l=function(c,u){for(var d=Math.max(c.length,u.length),f=-1,v=0;v2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,c=[],u=n>=1?n|0:1,d=e;d<=t;d+=u){var f=l.includes(d);(!f||!r)&&c.push({label:Ou(d,s),value:d,disabled:f})}return c}function Fu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},l=r.use12Hours,s=r.hourStep,c=s===void 0?1:s,u=r.minuteStep,d=u===void 0?1:u,f=r.secondStep,v=f===void 0?1:f,h=r.millisecondStep,b=h===void 0?100:h,C=r.hideDisabledOptions,w=r.disabledTime,P=r.disabledHours,E=r.disabledMinutes,R=r.disabledSeconds,M=o.useMemo(function(){return n||e.getNow()},[n,e]);if(!1)var j,z,H;var k=o.useCallback(function(tt){var ke=(w==null?void 0:w(tt))||{};return[ke.disabledHours||P||Xc,ke.disabledMinutes||E||Xc,ke.disabledSeconds||R||Xc,ke.disabledMilliseconds||Xc]},[w,P,E,R]),G=o.useMemo(function(){return k(M)},[M,k]),te=(0,N.Z)(G,4),le=te[0],oe=te[1],ne=te[2],ae=te[3],ve=o.useCallback(function(tt,ke,Ot,$t){var zt=Qc(0,23,c,C,tt()),Bt=l?zt.map(function(Pt){return(0,a.Z)((0,a.Z)({},Pt),{},{label:Ou(Pt.value%12||12,2)})}):zt,mt=function(gt){return Qc(0,59,d,C,ke(gt))},At=function(gt,Rt){return Qc(0,59,v,C,Ot(gt,Rt))},Jt=function(gt,Rt,ht){return Qc(0,999,b,C,$t(gt,Rt,ht),3)};return[Bt,mt,At,Jt]},[C,c,l,b,d,v]),Ee=o.useMemo(function(){return ve(le,oe,ne,ae)},[ve,le,oe,ne,ae]),be=(0,N.Z)(Ee,4),Re=be[0],pe=be[1],we=be[2],Te=be[3],Ue=function(ke,Ot){var $t=function(){return Re},zt=pe,Bt=we,mt=Te;if(Ot){var At=k(Ot),Jt=(0,N.Z)(At,4),Pt=Jt[0],gt=Jt[1],Rt=Jt[2],ht=Jt[3],It=ve(Pt,gt,Rt,ht),Vt=(0,N.Z)(It,4),Lt=Vt[0],fn=Vt[1],hn=Vt[2],Ln=Vt[3];$t=function(){return Lt},zt=fn,Bt=hn,mt=Ln}var Rn=Zh(ke,$t,zt,Bt,mt,e);return Rn};return[Ue,Re,pe,we,Te]}function Rh(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,l=e.showNow,s=e.showTime,c=e.onSubmit,u=e.onNow,d=e.invalid,f=e.needConfirm,v=e.generateConfig,h=e.disabledDate,b=o.useContext(Yl),C=b.prefixCls,w=b.locale,P=b.button,E=P===void 0?"button":P,R=v.getNow(),M=Fu(v,s,R),j=(0,N.Z)(M,1),z=j[0],H=r==null?void 0:r(t),k=h(R,{type:t}),G=function(){if(!k){var Ee=z(R);u(Ee)}},te="".concat(C,"-now"),le="".concat(te,"-btn"),oe=l&&o.createElement("li",{className:te},o.createElement("a",{className:re()(le,k&&"".concat(le,"-disabled")),"aria-disabled":k,onClick:G},n==="date"?w.today:w.now)),ne=f&&o.createElement("li",{className:"".concat(C,"-ok")},o.createElement(E,{disabled:d,onClick:c},w.ok)),ae=(oe||ne)&&o.createElement("ul",{className:"".concat(C,"-ranges")},oe,ne);return!H&&!ae?null:o.createElement("div",{className:"".concat(C,"-footer")},H&&o.createElement("div",{className:"".concat(C,"-footer-extra")},H),ae)}function yf(e,t,n){function r(l,s){var c=l.findIndex(function(d){return vl(e,t,d,s,n)});if(c===-1)return[].concat((0,Fe.Z)(l),[s]);var u=(0,Fe.Z)(l);return u.splice(c,1),u}return r}var Es=o.createContext(null);function Jc(){return o.useContext(Es)}function ks(e,t){var n=e.prefixCls,r=e.generateConfig,l=e.locale,s=e.disabledDate,c=e.minDate,u=e.maxDate,d=e.cellRender,f=e.hoverValue,v=e.hoverRangeValue,h=e.onHover,b=e.values,C=e.pickerValue,w=e.onSelect,P=e.prevIcon,E=e.nextIcon,R=e.superPrevIcon,M=e.superNextIcon,j=r.getNow(),z={now:j,values:b,pickerValue:C,prefixCls:n,disabledDate:s,minDate:c,maxDate:u,cellRender:d,hoverValue:f,hoverRangeValue:v,onHover:h,locale:l,generateConfig:r,onSelect:w,panelType:t,prevIcon:P,nextIcon:E,superPrevIcon:R,superNextIcon:M};return[z,j]}var bs=o.createContext({});function xc(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,l=e.getCellDate,s=e.prefixColumn,c=e.rowClassName,u=e.titleFormat,d=e.getCellText,f=e.getCellClassName,v=e.headerCells,h=e.cellSelection,b=h===void 0?!0:h,C=e.disabledDate,w=Jc(),P=w.prefixCls,E=w.panelType,R=w.now,M=w.disabledDate,j=w.cellRender,z=w.onHover,H=w.hoverValue,k=w.hoverRangeValue,G=w.generateConfig,te=w.values,le=w.locale,oe=w.onSelect,ne=C||M,ae="".concat(P,"-cell"),ve=o.useContext(bs),Ee=ve.onCellDblClick,be=function(Ot){return te.some(function($t){return $t&&vl(G,le,Ot,$t,E)})},Re=[],pe=0;pe1&&arguments[1]!==void 0?arguments[1]:!1;br(Gn),E==null||E(Gn),ua&&ca(Gn)},$r=function(Gn,ua){Jt(Gn),ua&&bn(ua),ca(ua,Gn)},Un=function(Gn){if(hn(Gn),bn(Gn),At!==z){var ua=["decade","year"],Za=[].concat(ua,["month"]),Wr={quarter:[].concat(ua,["quarter"]),week:[].concat((0,Fe.Z)(Za),["week"]),date:[].concat((0,Fe.Z)(Za),["date"])},fi=Wr[z]||Za,Zi=fi.indexOf(At),oi=fi[Zi+1];oi&&$r(oi,Gn)}},en=o.useMemo(function(){var Wn,Gn;if(Array.isArray(G)){var ua=(0,N.Z)(G,2);Wn=ua[0],Gn=ua[1]}else Wn=G;return!Wn&&!Gn?null:(Wn=Wn||Gn,Gn=Gn||Wn,l.isAfter(Wn,Gn)?[Gn,Wn]:[Wn,Gn])},[G,l]),wn=Zu(te,le,oe),ir=ae[Pt]||Bh[Pt]||_c,Kn=o.useContext(bs),Kr=o.useMemo(function(){return(0,a.Z)((0,a.Z)({},Kn),{},{hideHeader:ve})},[Kn,ve]),lr="".concat(Ee,"-panel"),Oa=Wc(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return o.createElement(bs.Provider,{value:Kr},o.createElement("div",{ref:be,tabIndex:d,className:re()(lr,(0,Y.Z)({},"".concat(lr,"-rtl"),s==="rtl"))},o.createElement(ir,(0,_.Z)({},Oa,{showTime:$t,prefixCls:Ee,locale:ke,generateConfig:l,onModeChange:$r,pickerValue:zn,onPickerValueChange:function(Gn){bn(Gn,!0)},value:Lt[0],onSelect:Un,values:Lt,cellRender:wn,hoverRangeValue:en,hoverValue:k}))))}var Wh=o.memo(o.forwardRef(Kh)),Au=Wh;function zh(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,l=e.onPickerValueChange,s=e.needConfirm,c=e.onSubmit,u=e.range,d=e.hoverValue,f=o.useContext(Yl),v=f.prefixCls,h=f.generateConfig,b=o.useCallback(function(M,j){return Sc(h,t,M,j)},[h,t]),C=o.useMemo(function(){return b(r,1)},[r,b]),w=function(j){l(b(j,-1))},P={onCellDblClick:function(){s&&c()}},E=t==="time",R=(0,a.Z)((0,a.Z)({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:E});return u?R.hoverRangeValue=d:R.hoverValue=d,n?o.createElement("div",{className:"".concat(v,"-panels")},o.createElement(bs.Provider,{value:(0,a.Z)((0,a.Z)({},P),{},{hideNext:!0})},o.createElement(Au,R)),o.createElement(bs.Provider,{value:(0,a.Z)((0,a.Z)({},P),{},{hidePrev:!0})},o.createElement(Au,(0,_.Z)({},R,{pickerValue:C,onPickerValueChange:w})))):o.createElement(bs.Provider,{value:(0,a.Z)({},P)},o.createElement(Au,R))}function Sf(e){return typeof e=="function"?e():e}function Uh(e){var t=e.prefixCls,n=e.presets,r=e.onClick,l=e.onHover;return n.length?o.createElement("div",{className:"".concat(t,"-presets")},o.createElement("ul",null,n.map(function(s,c){var u=s.label,d=s.value;return o.createElement("li",{key:c,onClick:function(){r(Sf(d))},onMouseEnter:function(){l(Sf(d))},onMouseLeave:function(){l(null)}},u)}))):null}function xf(e){var t=e.panelRender,n=e.internalMode,r=e.picker,l=e.showNow,s=e.range,c=e.multiple,u=e.activeOffset,d=u===void 0?0:u,f=e.presets,v=e.onPresetHover,h=e.onPresetSubmit,b=e.onFocus,C=e.onBlur,w=e.direction,P=e.value,E=e.onSelect,R=e.isInvalid,M=e.defaultOpenValue,j=e.onOk,z=e.onSubmit,H=o.useContext(Yl),k=H.prefixCls,G="".concat(k,"-panel"),te=w==="rtl",le=o.useRef(null),oe=o.useRef(null),ne=o.useState(0),ae=(0,N.Z)(ne,2),ve=ae[0],Ee=ae[1],be=o.useState(0),Re=(0,N.Z)(be,2),pe=Re[0],we=Re[1],Te=function(ht){ht.offsetWidth&&Ee(ht.offsetWidth)};o.useEffect(function(){if(s){var Rt,ht=((Rt=le.current)===null||Rt===void 0?void 0:Rt.offsetWidth)||0,It=ve-ht;d<=It?we(0):we(d+ht-ve)}},[ve,d,s]);function Ue(Rt){return Rt.filter(function(ht){return ht})}var tt=o.useMemo(function(){return Ue(ws(P))},[P]),ke=r==="time"&&!tt.length,Ot=o.useMemo(function(){return ke?Ue([M]):tt},[ke,tt,M]),$t=ke?M:tt,zt=o.useMemo(function(){return Ot.length?Ot.some(function(Rt){return R(Rt)}):!0},[Ot,R]),Bt=function(){ke&&E(M),j(),z()},mt=o.createElement("div",{className:"".concat(k,"-panel-layout")},o.createElement(Uh,{prefixCls:k,presets:f,onClick:h,onHover:v}),o.createElement("div",null,o.createElement(zh,(0,_.Z)({},e,{value:$t})),o.createElement(Rh,(0,_.Z)({},e,{showNow:c?!1:l,invalid:zt,onSubmit:Bt}))));t&&(mt=t(mt));var At="".concat(G,"-container"),Jt="marginLeft",Pt="marginRight",gt=o.createElement("div",{tabIndex:-1,className:re()(At,"".concat(k,"-").concat(n,"-panel-container")),style:(0,Y.Z)((0,Y.Z)({},te?Pt:Jt,pe),te?Jt:Pt,"auto"),onFocus:b,onBlur:C},mt);return s&&(gt=o.createElement("div",{ref:oe,className:re()("".concat(k,"-range-wrapper"),"".concat(k,"-").concat(r,"-range-wrapper"))},o.createElement("div",{ref:le,className:"".concat(k,"-range-arrow"),style:(0,Y.Z)({},te?"right":"left",d)}),o.createElement(bf.Z,{onResize:Te},gt))),gt}function wf(e,t){var n=e.format,r=e.maskFormat,l=e.generateConfig,s=e.locale,c=e.preserveInvalidOnBlur,u=e.inputReadOnly,d=e.required,f=e["aria-required"],v=e.onSubmit,h=e.onFocus,b=e.onBlur,C=e.onInputChange,w=e.onInvalid,P=e.open,E=e.onOpenChange,R=e.onKeyDown,M=e.onChange,j=e.activeHelp,z=e.name,H=e.autoComplete,k=e.id,G=e.value,te=e.invalid,le=e.placeholder,oe=e.disabled,ne=e.activeIndex,ae=e.allHelp,ve=e.picker,Ee=function(ke,Ot){var $t=l.locale.parse(s.locale,ke,[Ot]);return $t&&l.isValidate($t)?$t:null},be=n[0],Re=o.useCallback(function(tt){return Ki(tt,{locale:s,format:be,generateConfig:l})},[s,l,be]),pe=o.useMemo(function(){return G.map(Re)},[G,Re]),we=o.useMemo(function(){var tt=ve==="time"?8:10,ke=typeof be=="function"?be(l.getNow()).length:be.length;return Math.max(tt,ke)+2},[be,ve,l]),Te=function(ke){for(var Ot=0;Ot=u&&n<=d)return s;var f=Math.min(Math.abs(n-u),Math.abs(n-d));f0?Pa:mi));var ta=fa+Er,Sa=mi-Pa+1;return String(Pa+(Sa+ta-Pa)%Sa)};switch(ua){case"Backspace":case"Delete":Za="",Wr=Zi;break;case"ArrowLeft":Za="",oi(-1);break;case"ArrowRight":Za="",oi(1);break;case"ArrowUp":Za="",Wr=Wi(1);break;case"ArrowDown":Za="",Wr=Wi(-1);break;default:isNaN(Number(ua))||(Za=ke+ua,Wr=Za);break}if(Za!==null&&(Ot(Za),Za.length>=fi&&(oi(1),Ot(""))),Wr!==null){var vi=Rt.slice(0,hn)+Ou(Wr,fi)+Rt.slice(Ln);zn(vi.slice(0,c.length))}gt({})},lr=o.useRef();(0,$e.Z)(function(){if(!(!Ee||!c||bn.current)){if(!Vt.match(Rt)){zn(c);return}return It.current.setSelectionRange(hn,Ln),lr.current=(0,ri.Z)(function(){It.current.setSelectionRange(hn,Ln)}),function(){ri.Z.cancel(lr.current)}}},[Vt,c,Ee,Rt,Bt,hn,Ln,Pt,zn]);var Oa=c?{onFocus:en,onBlur:ir,onKeyDown:Kr,onMouseDown:$r,onMouseUp:Un,onPaste:ca}:{};return o.createElement("div",{ref:ht,className:re()(ne,(0,Y.Z)((0,Y.Z)({},"".concat(ne,"-active"),n&&l),"".concat(ne,"-placeholder"),v))},o.createElement(oe,(0,_.Z)({ref:It,"aria-invalid":E,autoComplete:"off"},M,{onKeyDown:Kn,onBlur:wn},Oa,{value:Rt,onChange:br})),o.createElement(eu,{type:"suffix",icon:s}),R)}),Vu=_h,ep=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"],tp=["index"];function np(e,t){var n=e.id,r=e.clearIcon,l=e.suffixIcon,s=e.separator,c=s===void 0?"~":s,u=e.activeIndex,d=e.activeHelp,f=e.allHelp,v=e.focused,h=e.onFocus,b=e.onBlur,C=e.onKeyDown,w=e.locale,P=e.generateConfig,E=e.placeholder,R=e.className,M=e.style,j=e.onClick,z=e.onClear,H=e.value,k=e.onChange,G=e.onSubmit,te=e.onInputChange,le=e.format,oe=e.maskFormat,ne=e.preserveInvalidOnBlur,ae=e.onInvalid,ve=e.disabled,Ee=e.invalid,be=e.inputReadOnly,Re=e.direction,pe=e.onOpenChange,we=e.onActiveOffset,Te=e.onMouseDown,Ue=e.required,tt=e["aria-required"],ke=e.autoFocus,Ot=(0,p.Z)(e,ep),$t=Re==="rtl",zt=o.useContext(Yl),Bt=zt.prefixCls,mt=o.useMemo(function(){if(typeof n=="string")return[n];var Un=n||{};return[Un.start,Un.end]},[n]),At=o.useRef(),Jt=o.useRef(),Pt=o.useRef(),gt=function(en){var wn;return(wn=[Jt,Pt][en])===null||wn===void 0?void 0:wn.current};o.useImperativeHandle(t,function(){return{nativeElement:At.current,focus:function(en){if((0,g.Z)(en)==="object"){var wn,ir=en||{},Kn=ir.index,Kr=Kn===void 0?0:Kn,lr=(0,p.Z)(ir,tp);(wn=gt(Kr))===null||wn===void 0||wn.focus(lr)}else{var Oa;(Oa=gt(en!=null?en:0))===null||Oa===void 0||Oa.focus()}},blur:function(){var en,wn;(en=gt(0))===null||en===void 0||en.blur(),(wn=gt(1))===null||wn===void 0||wn.blur()}}});var Rt=Pf(Ot),ht=o.useMemo(function(){return Array.isArray(E)?E:[E,E]},[E]),It=wf((0,a.Z)((0,a.Z)({},e),{},{id:mt,placeholder:ht})),Vt=(0,N.Z)(It,1),Lt=Vt[0],fn=$t?"right":"left",hn=o.useState((0,Y.Z)({position:"absolute",width:0},fn,0)),Ln=(0,N.Z)(hn,2),Rn=Ln[0],zn=Ln[1],br=(0,yr.zX)(function(){var Un=gt(u);if(Un){var en=Un.nativeElement,wn=en.offsetWidth,ir=en.offsetLeft,Kn=en.offsetParent,Kr=ir;if($t){var lr=Kn,Oa=getComputedStyle(lr);Kr=lr.offsetWidth-parseFloat(Oa.borderRightWidth)-parseFloat(Oa.borderLeftWidth)-ir-wn}zn(function(Wn){return(0,a.Z)((0,a.Z)({},Wn),{},(0,Y.Z)({width:wn},fn,Kr))}),we(u===0?0:Kr)}});o.useEffect(function(){br()},[u]);var ca=r&&(H[0]&&!ve[0]||H[1]&&!ve[1]),bn=ke&&!ve[0],$r=ke&&!bn&&!ve[1];return o.createElement(bf.Z,{onResize:br},o.createElement("div",(0,_.Z)({},Rt,{className:re()(Bt,"".concat(Bt,"-range"),(0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(Bt,"-focused"),v),"".concat(Bt,"-disabled"),ve.every(function(Un){return Un})),"".concat(Bt,"-invalid"),Ee.some(function(Un){return Un})),"".concat(Bt,"-rtl"),$t),R),style:M,ref:At,onClick:j,onMouseDown:function(en){var wn=en.target;wn!==Jt.current.inputElement&&wn!==Pt.current.inputElement&&en.preventDefault(),Te==null||Te(en)}}),o.createElement(Vu,(0,_.Z)({ref:Jt},Lt(0),{autoFocus:bn,"date-range":"start"})),o.createElement("div",{className:"".concat(Bt,"-range-separator")},c),o.createElement(Vu,(0,_.Z)({ref:Pt},Lt(1),{autoFocus:$r,"date-range":"end"})),o.createElement("div",{className:"".concat(Bt,"-active-bar"),style:Rn}),o.createElement(eu,{type:"suffix",icon:l}),ca&&o.createElement(Lu,{icon:r,onClear:z})))}var rp=o.forwardRef(np),ap=rp;function If(e,t){var n=e!=null?e:t;return Array.isArray(n)?n:[n,n]}function tu(e){return e===1?"end":"start"}function op(e,t){var n=of(e,function(){var $o=e.disabled,Ua=e.allowEmpty,Eo=If($o,!1),qi=If(Ua,!1);return{disabled:Eo,allowEmpty:qi}}),r=(0,N.Z)(n,6),l=r[0],s=r[1],c=r[2],u=r[3],d=r[4],f=r[5],v=l.prefixCls,h=l.styles,b=l.classNames,C=l.defaultValue,w=l.value,P=l.needConfirm,E=l.onKeyDown,R=l.disabled,M=l.allowEmpty,j=l.disabledDate,z=l.minDate,H=l.maxDate,k=l.defaultOpen,G=l.open,te=l.onOpenChange,le=l.locale,oe=l.generateConfig,ne=l.picker,ae=l.showNow,ve=l.showToday,Ee=l.showTime,be=l.mode,Re=l.onPanelChange,pe=l.onCalendarChange,we=l.onOk,Te=l.defaultPickerValue,Ue=l.pickerValue,tt=l.onPickerValueChange,ke=l.inputReadOnly,Ot=l.suffixIcon,$t=l.onFocus,zt=l.onBlur,Bt=l.presets,mt=l.ranges,At=l.components,Jt=l.cellRender,Pt=l.dateRender,gt=l.monthCellRender,Rt=l.onClick,ht=sf(t),It=lf(G,k,R,te),Vt=(0,N.Z)(It,2),Lt=Vt[0],fn=Vt[1],hn=function(Ua,Eo){(R.some(function(qi){return!qi})||!Ua)&&fn(Ua,Eo)},Ln=gf(oe,le,u,!0,!1,C,w,pe,we),Rn=(0,N.Z)(Ln,5),zn=Rn[0],br=Rn[1],ca=Rn[2],bn=Rn[3],$r=Rn[4],Un=ca(),en=uf(R,M),wn=(0,N.Z)(en,7),ir=wn[0],Kn=wn[1],Kr=wn[2],lr=wn[3],Oa=wn[4],Wn=wn[5],Gn=wn[6],ua=function(Ua,Eo){Kn(!0),$t==null||$t(Ua,{range:tu(Eo!=null?Eo:lr)})},Za=function(Ua,Eo){Kn(!1),zt==null||zt(Ua,{range:tu(Eo!=null?Eo:lr)})},Wr=o.useMemo(function(){if(!Ee)return null;var $o=Ee.disabledTime,Ua=$o?function(Eo){var qi=tu(lr);return $o(Eo,qi)}:void 0;return(0,a.Z)((0,a.Z)({},Ee),{},{disabledTime:Ua})},[Ee,lr]),fi=(0,yr.C8)([ne,ne],{value:be}),Zi=(0,N.Z)(fi,2),oi=Zi[0],Wi=Zi[1],vi=oi[lr]||ne,Jr=vi==="date"&&Wr?"datetime":vi,Er=Jr===ne&&Jr!=="time",da=pf(ne,vi,ae,ve,!0),mr=hf(l,zn,br,ca,bn,R,u,ir,Lt,f),Pa=(0,N.Z)(mr,2),mi=Pa[0],Jo=Pa[1],Hr=Eh(Un,R,Gn,oe,le,j),fa=Jd(Un,f,M),ta=(0,N.Z)(fa,2),Sa=ta[0],Po=ta[1],Lo=df(oe,le,Un,oi,Lt,lr,s,Er,Te,Ue,Wr==null?void 0:Wr.defaultOpenValue,tt,z,H),ll=(0,N.Z)(Lo,2),Qi=ll[0],wl=ll[1],qa=(0,yr.zX)(function($o,Ua,Eo){var qi=bc(oi,lr,Ua);if((qi[0]!==oi[0]||qi[1]!==oi[1])&&Wi(qi),Re&&Eo!==!1){var rc=(0,Fe.Z)(Un);$o&&(rc[lr]=$o),Re(rc,qi)}}),Ha=function(Ua,Eo){return bc(Un,Eo,Ua)},na=function(Ua,Eo){var qi=Un;Ua&&(qi=Ha(Ua,lr));var rc=Wn(qi);bn(qi),mi(lr,rc===null),rc===null?hn(!1,{force:!0}):Eo||ht.current.focus({index:rc})},qo=function(Ua){if(!ht.current.nativeElement.contains(document.activeElement)){var Eo=R.findIndex(function(qi){return!qi});Eo>=0&&ht.current.focus({index:Eo})}hn(!0),Rt==null||Rt(Ua)},_o=function(){Jo(null),hn(!1,{force:!0})},Ri=o.useState(null),yi=(0,N.Z)(Ri,2),Ml=yi[0],Ti=yi[1],Cs=o.useState(null),rs=(0,N.Z)(Cs,2),Li=rs[0],Gl=rs[1],Js=o.useMemo(function(){return Li||Un},[Un,Li]);o.useEffect(function(){Lt||Gl(null)},[Lt]);var qs=o.useState(0),_s=(0,N.Z)(qs,2),ec=_s[0],Zs=_s[1],Ic=cf(Bt,mt),tc=function(Ua){Gl(Ua),Ti("preset")},Oc=function(Ua){var Eo=Jo(Ua);Eo&&hn(!1,{force:!0})},Zc=function(Ua){na(Ua)},Rc=function(Ua){Gl(Ua?Ha(Ua,lr):null),Ti("cell")},Mc=function(Ua){hn(!0),ua(Ua)},nc=function(Ua){Kr("panel");var Eo=bc(Un,lr,Ua);bn(Eo),!P&&!c&&s===Jr&&na(Ua)},Rs=function(){hn(!1)},io=Zu(Jt,Pt,gt,tu(lr)),Ba=Un[lr]||null,ji=(0,yr.zX)(function($o){return f($o,{activeIndex:lr})}),Ji=o.useMemo(function(){var $o=(0,Pn.Z)(l,!1),Ua=(0,Nn.Z)(l,[].concat((0,Fe.Z)(Object.keys($o)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Ua},[l]),gi=o.createElement(xf,(0,_.Z)({},Ji,{showNow:da,showTime:Wr,range:!0,multiplePanel:Er,activeOffset:ec,disabledDate:Hr,onFocus:Mc,onBlur:Za,picker:ne,mode:vi,internalMode:Jr,onPanelChange:qa,format:d,value:Ba,isInvalid:ji,onChange:null,onSelect:nc,pickerValue:Qi,defaultOpenValue:ws(Ee==null?void 0:Ee.defaultOpenValue)[lr],onPickerValueChange:wl,hoverValue:Js,onHover:Rc,needConfirm:P,onSubmit:na,onOk:$r,presets:Ic,onPresetHover:tc,onPresetSubmit:Oc,onNow:Zc,cellRender:io})),zi=function(Ua,Eo){var qi=Ha(Ua,Eo);bn(qi)},xa=function(){Kr("input")},ma=function(Ua,Eo){Kr("input"),hn(!0,{inherit:!0}),Oa(Eo),ua(Ua,Eo)},Ci=function(Ua,Eo){hn(!1),Za(Ua,Eo)},sl=function(Ua,Eo){Ua.key==="Tab"&&na(null,!0),E==null||E(Ua,Eo)},Dl=o.useMemo(function(){return{prefixCls:v,locale:le,generateConfig:oe,button:At.button,input:At.input}},[v,le,oe,At.button,At.input]);if((0,$e.Z)(function(){Lt&&lr!==void 0&&qa(null,ne,!1)},[Lt,lr,ne]),(0,$e.Z)(function(){var $o=Kr();!Lt&&$o==="input"&&(hn(!1),na(null,!0)),!Lt&&c&&!P&&$o==="panel"&&(hn(!0),na())},[Lt]),!1)var Dc;return o.createElement(Yl.Provider,{value:Dl},o.createElement(Gd,(0,_.Z)({},Qd(l),{popupElement:gi,popupStyle:h.popup,popupClassName:b.popup,visible:Lt,onClose:Rs,range:!0}),o.createElement(ap,(0,_.Z)({},l,{ref:ht,suffixIcon:Ot,activeIndex:ir||Lt?lr:null,activeHelp:!!Li,allHelp:!!Li&&Ml==="preset",focused:ir,onFocus:ma,onBlur:Ci,onKeyDown:sl,onSubmit:na,value:Js,maskFormat:d,onChange:zi,onInputChange:xa,format:u,inputReadOnly:ke,disabled:R,open:Lt,onOpenChange:hn,onClick:qo,onClear:_o,invalid:Sa,onInvalid:Po,onActiveOffset:Zs}))))}var ip=o.forwardRef(op),lp=ip;function sp(e){var t=e.prefixCls,n=e.value,r=e.onRemove,l=e.removeIcon,s=l===void 0?"\xD7":l,c=e.formatDate,u=e.disabled,d=e.maxTagCount,f="".concat(t,"-selector"),v="".concat(t,"-selection"),h="".concat(v,"-overflow");function b(P,E){return o.createElement("span",{className:re()("".concat(v,"-item")),title:typeof P=="string"?P:null},o.createElement("span",{className:"".concat(v,"-item-content")},P),!u&&E&&o.createElement("span",{onMouseDown:function(M){M.preventDefault()},onClick:E,className:"".concat(v,"-item-remove")},s))}function C(P){var E=c(P),R=function(j){j&&j.stopPropagation(),r(P)};return b(E,R)}function w(P){var E="+ ".concat(P.length," ...");return b(E)}return o.createElement("div",{className:f},o.createElement(Mt.Z,{prefixCls:h,data:n,renderItem:C,renderRest:w,itemKey:function(E){return c(E)},maxCount:d}))}var cp=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function up(e,t){var n=e.id,r=e.open,l=e.clearIcon,s=e.suffixIcon,c=e.activeHelp,u=e.allHelp,d=e.focused,f=e.onFocus,v=e.onBlur,h=e.onKeyDown,b=e.locale,C=e.generateConfig,w=e.placeholder,P=e.className,E=e.style,R=e.onClick,M=e.onClear,j=e.internalPicker,z=e.value,H=e.onChange,k=e.onSubmit,G=e.onInputChange,te=e.multiple,le=e.maxTagCount,oe=e.format,ne=e.maskFormat,ae=e.preserveInvalidOnBlur,ve=e.onInvalid,Ee=e.disabled,be=e.invalid,Re=e.inputReadOnly,pe=e.direction,we=e.onOpenChange,Te=e.onMouseDown,Ue=e.required,tt=e["aria-required"],ke=e.autoFocus,Ot=e.removeIcon,$t=(0,p.Z)(e,cp),zt=pe==="rtl",Bt=o.useContext(Yl),mt=Bt.prefixCls,At=o.useRef(),Jt=o.useRef();o.useImperativeHandle(t,function(){return{nativeElement:At.current,focus:function(Rn){var zn;(zn=Jt.current)===null||zn===void 0||zn.focus(Rn)},blur:function(){var Rn;(Rn=Jt.current)===null||Rn===void 0||Rn.blur()}}});var Pt=Pf($t),gt=function(Rn){H([Rn])},Rt=function(Rn){var zn=z.filter(function(br){return br&&!vl(C,b,br,Rn,j)});H(zn),r||k()},ht=wf((0,a.Z)((0,a.Z)({},e),{},{onChange:gt}),function(Ln){var Rn=Ln.valueTexts;return{value:Rn[0]||"",active:d}}),It=(0,N.Z)(ht,2),Vt=It[0],Lt=It[1],fn=!!(l&&z.length&&!Ee),hn=te?o.createElement(o.Fragment,null,o.createElement(sp,{prefixCls:mt,value:z,onRemove:Rt,formatDate:Lt,maxTagCount:le,disabled:Ee,removeIcon:Ot}),o.createElement("input",{className:"".concat(mt,"-multiple-input"),value:z.map(Lt).join(","),ref:Jt,readOnly:!0,autoFocus:ke}),o.createElement(eu,{type:"suffix",icon:s}),fn&&o.createElement(Lu,{icon:l,onClear:M})):o.createElement(Vu,(0,_.Z)({ref:Jt},Vt(),{autoFocus:ke,suffixIcon:s,clearIcon:fn&&o.createElement(Lu,{icon:l,onClear:M}),showActiveCls:!1}));return o.createElement("div",(0,_.Z)({},Pt,{className:re()(mt,(0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(mt,"-multiple"),te),"".concat(mt,"-focused"),d),"".concat(mt,"-disabled"),Ee),"".concat(mt,"-invalid"),be),"".concat(mt,"-rtl"),zt),P),style:E,ref:At,onClick:R,onMouseDown:function(Rn){var zn,br=Rn.target;br!==((zn=Jt.current)===null||zn===void 0?void 0:zn.inputElement)&&Rn.preventDefault(),Te==null||Te(Rn)}}),hn)}var dp=o.forwardRef(up),fp=dp;function vp(e,t){var n=of(e),r=(0,N.Z)(n,6),l=r[0],s=r[1],c=r[2],u=r[3],d=r[4],f=r[5],v=l,h=v.prefixCls,b=v.styles,C=v.classNames,w=v.order,P=v.defaultValue,E=v.value,R=v.needConfirm,M=v.onChange,j=v.onKeyDown,z=v.disabled,H=v.disabledDate,k=v.minDate,G=v.maxDate,te=v.defaultOpen,le=v.open,oe=v.onOpenChange,ne=v.locale,ae=v.generateConfig,ve=v.picker,Ee=v.showNow,be=v.showToday,Re=v.showTime,pe=v.mode,we=v.onPanelChange,Te=v.onCalendarChange,Ue=v.onOk,tt=v.multiple,ke=v.defaultPickerValue,Ot=v.pickerValue,$t=v.onPickerValueChange,zt=v.inputReadOnly,Bt=v.suffixIcon,mt=v.removeIcon,At=v.onFocus,Jt=v.onBlur,Pt=v.presets,gt=v.components,Rt=v.cellRender,ht=v.dateRender,It=v.monthCellRender,Vt=v.onClick,Lt=sf(t);function fn(xa){return xa===null?null:tt?xa:xa[0]}var hn=yf(ae,ne,s),Ln=lf(le,te,[z],oe),Rn=(0,N.Z)(Ln,2),zn=Rn[0],br=Rn[1],ca=function(ma,Ci,sl){if(Te){var Dl=(0,a.Z)({},sl);delete Dl.range,Te(fn(ma),fn(Ci),Dl)}},bn=function(ma){Ue==null||Ue(fn(ma))},$r=gf(ae,ne,u,!1,w,P,E,ca,bn),Un=(0,N.Z)($r,5),en=Un[0],wn=Un[1],ir=Un[2],Kn=Un[3],Kr=Un[4],lr=ir(),Oa=uf([z]),Wn=(0,N.Z)(Oa,4),Gn=Wn[0],ua=Wn[1],Za=Wn[2],Wr=Wn[3],fi=function(ma){ua(!0),At==null||At(ma,{})},Zi=function(ma){ua(!1),Jt==null||Jt(ma,{})},oi=(0,yr.C8)(ve,{value:pe}),Wi=(0,N.Z)(oi,2),vi=Wi[0],Jr=Wi[1],Er=vi==="date"&&Re?"datetime":vi,da=pf(ve,vi,Ee,be),mr=M&&function(xa,ma){M(fn(xa),fn(ma))},Pa=hf((0,a.Z)((0,a.Z)({},l),{},{onChange:mr}),en,wn,ir,Kn,[],u,Gn,zn,f),mi=(0,N.Z)(Pa,2),Jo=mi[1],Hr=Jd(lr,f),fa=(0,N.Z)(Hr,2),ta=fa[0],Sa=fa[1],Po=o.useMemo(function(){return ta.some(function(xa){return xa})},[ta]),Lo=function(ma,Ci){if($t){var sl=(0,a.Z)((0,a.Z)({},Ci),{},{mode:Ci.mode[0]});delete sl.range,$t(ma[0],sl)}},ll=df(ae,ne,lr,[vi],zn,Wr,s,!1,ke,Ot,ws(Re==null?void 0:Re.defaultOpenValue),Lo,k,G),Qi=(0,N.Z)(ll,2),wl=Qi[0],qa=Qi[1],Ha=(0,yr.zX)(function(xa,ma,Ci){if(Jr(ma),we&&Ci!==!1){var sl=xa||lr[lr.length-1];we(sl,ma)}}),na=function(){Jo(ir()),br(!1,{force:!0})},qo=function(ma){!z&&!Lt.current.nativeElement.contains(document.activeElement)&&Lt.current.focus(),br(!0),Vt==null||Vt(ma)},_o=function(){Jo(null),br(!1,{force:!0})},Ri=o.useState(null),yi=(0,N.Z)(Ri,2),Ml=yi[0],Ti=yi[1],Cs=o.useState(null),rs=(0,N.Z)(Cs,2),Li=rs[0],Gl=rs[1],Js=o.useMemo(function(){var xa=[Li].concat((0,Fe.Z)(lr)).filter(function(ma){return ma});return tt?xa:xa.slice(0,1)},[lr,Li,tt]),qs=o.useMemo(function(){return!tt&&Li?[Li]:lr.filter(function(xa){return xa})},[lr,Li,tt]);o.useEffect(function(){zn||Gl(null)},[zn]);var _s=cf(Pt),ec=function(ma){Gl(ma),Ti("preset")},Zs=function(ma){var Ci=tt?hn(ir(),ma):[ma],sl=Jo(Ci);sl&&!tt&&br(!1,{force:!0})},Ic=function(ma){Zs(ma)},tc=function(ma){Gl(ma),Ti("cell")},Oc=function(ma){br(!0),fi(ma)},Zc=function(ma){Za("panel");var Ci=tt?hn(ir(),ma):[ma];Kn(Ci),!R&&!c&&s===Er&&na()},Rc=function(){br(!1)},Mc=Zu(Rt,ht,It),nc=o.useMemo(function(){var xa=(0,Pn.Z)(l,!1),ma=(0,Nn.Z)(l,[].concat((0,Fe.Z)(Object.keys(xa)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,a.Z)((0,a.Z)({},ma),{},{multiple:l.multiple})},[l]),Rs=o.createElement(xf,(0,_.Z)({},nc,{showNow:da,showTime:Re,disabledDate:H,onFocus:Oc,onBlur:Zi,picker:ve,mode:vi,internalMode:Er,onPanelChange:Ha,format:d,value:lr,isInvalid:f,onChange:null,onSelect:Zc,pickerValue:wl,defaultOpenValue:Re==null?void 0:Re.defaultOpenValue,onPickerValueChange:qa,hoverValue:Js,onHover:tc,needConfirm:R,onSubmit:na,onOk:Kr,presets:_s,onPresetHover:ec,onPresetSubmit:Zs,onNow:Ic,cellRender:Mc})),io=function(ma){Kn(ma)},Ba=function(){Za("input")},ji=function(ma){Za("input"),br(!0,{inherit:!0}),fi(ma)},Ji=function(ma){br(!1),Zi(ma)},gi=function(ma,Ci){ma.key==="Tab"&&na(),j==null||j(ma,Ci)},zi=o.useMemo(function(){return{prefixCls:h,locale:ne,generateConfig:ae,button:gt.button,input:gt.input}},[h,ne,ae,gt.button,gt.input]);return(0,$e.Z)(function(){zn&&Wr!==void 0&&Ha(null,ve,!1)},[zn,Wr,ve]),(0,$e.Z)(function(){var xa=Za();!zn&&xa==="input"&&(br(!1),na()),!zn&&c&&!R&&xa==="panel"&&(br(!0),na())},[zn]),o.createElement(Yl.Provider,{value:zi},o.createElement(Gd,(0,_.Z)({},Qd(l),{popupElement:Rs,popupStyle:b.popup,popupClassName:C.popup,visible:zn,onClose:Rc}),o.createElement(fp,(0,_.Z)({},l,{ref:Lt,suffixIcon:Bt,removeIcon:mt,activeHelp:!!Li,allHelp:!!Li&&Ml==="preset",focused:Gn,onFocus:ji,onBlur:Ji,onKeyDown:gi,onSubmit:na,value:qs,maskFormat:d,onChange:io,onInputChange:Ba,internalPicker:s,format:u,inputReadOnly:zt,disabled:z,open:zn,onOpenChange:br,onClick:qo,onClear:_o,invalid:Po,onInvalid:function(ma){Sa(ma,0)}}))))}var mp=o.forwardRef(vp),gp=mp,hp=gp,Of=i(87206),Ks=i(67771),Zf=i(33297),Rf=i(79511),Mf=i(16928);const Hu=(e,t)=>{const{componentCls:n,controlHeight:r}=e,l=t?`${n}-${t}`:"",s=(0,Mf.gp)(e);return[{[`${n}-multiple${l}`]:{paddingBlock:s.containerPadding,paddingInlineStart:s.basePadding,minHeight:r,[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:(0,dn.bf)(s.itemLineHeight)}}}]};var pp=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,l=(0,ka.TS)(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),s=(0,ka.TS)(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Hu(l,"small"),Hu(e),Hu(s,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",[`${t}-selector`]:{flex:"auto",padding:0,"&:after":{margin:0}}},(0,Mf._z)(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]};const bp=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:l,motionDurationMid:s,cellHoverBg:c,lineWidth:u,lineType:d,colorPrimary:f,cellActiveWithRangeBg:v,colorTextLightSolid:h,colorTextDisabled:b,cellBgDisabled:C,colorFillSecondary:w}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:(0,dn.bf)(r),borderRadius:l,transition:`background ${s}`},[`&:hover:not(${t}-in-view), + &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:c}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,dn.bf)(u)} ${d} ${f}`,borderRadius:l,content:'""'}},[`&-in-view${t}-in-range, + &-in-view${t}-range-start, + &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:v}},[`&-in-view${t}-selected, + &-in-view${t}-range-start, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:h,background:f},[`&${t}-disabled ${n}`]:{background:w}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:l,borderEndStartRadius:l,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l},"&-disabled":{color:b,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:C}},[`&-disabled${t}-today ${n}::before`]:{borderColor:b}}},yp=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:l,pickerControlIconSize:s,cellWidth:c,paddingSM:u,paddingXS:d,paddingXXS:f,colorBgContainer:v,lineWidth:h,lineType:b,borderRadiusLG:C,colorPrimary:w,colorTextHeading:P,colorSplit:E,pickerControlIconBorderWidth:R,colorIcon:M,textHeight:j,motionDurationMid:z,colorIconHover:H,fontWeightStrong:k,cellHeight:G,pickerCellPaddingVertical:te,colorTextDisabled:le,colorText:oe,fontSize:ne,motionDurationSlow:ae,withoutTimeCellHeight:ve,pickerQuarterPanelContentHeight:Ee,borderRadiusSM:be,colorTextLightSolid:Re,cellHoverBg:pe,timeColumnHeight:we,timeColumnWidth:Te,timeCellHeight:Ue,controlItemBgActive:tt,marginXXS:ke,pickerDatePanelPaddingHorizontal:Ot,pickerControlIconMargin:$t}=e,zt=e.calc(c).mul(7).add(e.calc(Ot).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:v,borderRadius:C,outline:"none","&-focused":{borderColor:w},"&-rtl":{direction:"rtl",[`${t}-prev-icon, + ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},[`&-decade-panel, + &-year-panel, + &-quarter-panel, + &-month-panel, + &-week-panel, + &-date-panel, + &-time-panel`]:{display:"flex",flexDirection:"column",width:zt},"&-header":{display:"flex",padding:`0 ${(0,dn.bf)(d)}`,color:P,borderBottom:`${(0,dn.bf)(h)} ${b} ${E}`,"> *":{flex:"none"},button:{padding:0,color:M,lineHeight:(0,dn.bf)(j),background:"transparent",border:0,cursor:"pointer",transition:`color ${z}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:ne,"&:hover":{color:H},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:k,lineHeight:(0,dn.bf)(j),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:d},"&:hover":{color:w}}}},[`&-prev-icon, + &-next-icon, + &-super-prev-icon, + &-super-next-icon`]:{position:"relative",display:"inline-block",width:s,height:s,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:s,height:s,border:"0 solid currentcolor",borderBlockStartWidth:R,borderBlockEndWidth:0,borderInlineStartWidth:R,borderInlineEndWidth:0,content:'""'}},[`&-super-prev-icon, + &-super-next-icon`]:{"&::after":{position:"absolute",top:$t,insetInlineStart:$t,display:"inline-block",width:s,height:s,border:"0 solid currentcolor",borderBlockStartWidth:R,borderBlockEndWidth:0,borderInlineStartWidth:R,borderInlineEndWidth:0,content:'""'}},[`&-prev-icon, + &-super-prev-icon`]:{transform:"rotate(-45deg)"},[`&-next-icon, + &-super-next-icon`]:{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:G,fontWeight:"normal"},th:{height:e.calc(G).add(e.calc(te).mul(2)).equal(),color:oe,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,dn.bf)(te)} 0`,color:le,cursor:"pointer","&-in-view":{color:oe}},bp(e)),[`&-decade-panel, + &-year-panel, + &-quarter-panel, + &-month-panel`]:{[`${t}-content`]:{height:e.calc(ve).mul(4).equal()},[r]:{padding:`0 ${(0,dn.bf)(d)}`}},"&-quarter-panel":{[`${t}-content`]:{height:Ee}},"&-decade-panel":{[r]:{padding:`0 ${(0,dn.bf)(e.calc(d).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},[`&-year-panel, + &-quarter-panel, + &-month-panel`]:{[`${t}-body`]:{padding:`0 ${(0,dn.bf)(d)}`},[r]:{width:l}},"&-date-panel":{[`${t}-body`]:{padding:`${(0,dn.bf)(d)} ${(0,dn.bf)(Ot)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, + &-selected ${r}, + ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${z}`},"&:first-child:before":{borderStartStartRadius:be,borderEndStartRadius:be},"&:last-child:before":{borderStartEndRadius:be,borderEndEndRadius:be}},["&:hover td"]:{"&:before":{background:pe}},[`&-range-start td, + &-range-end td, + &-selected td`]:{[`&${n}`]:{"&:before":{background:w},[`&${t}-cell-week`]:{color:new Le.C(Re).setAlpha(.5).toHexString()},[r]:{color:Re}}},["&-range-hover td:before"]:{background:tt}}},["&-week-panel, &-date-panel-show-week"]:{[`${t}-body`]:{padding:`${(0,dn.bf)(d)} ${(0,dn.bf)(u)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${(0,dn.bf)(h)} ${b} ${E}`},[`${t}-date-panel, + ${t}-time-panel`]:{transition:`opacity ${ae}`},"&-active":{[`${t}-date-panel, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:we},"&-column":{flex:"1 0 auto",width:Te,margin:`${(0,dn.bf)(f)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${z}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:4},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(Ue).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,dn.bf)(h)} ${b} ${E}`},"&-active":{background:new Le.C(tt).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:ke,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(Te).sub(e.calc(ke).mul(2)).equal(),height:Ue,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(Te).sub(Ue).div(2).equal(),color:oe,lineHeight:(0,dn.bf)(Ue),borderRadius:be,cursor:"pointer",transition:`background ${z}`,"&:hover":{background:pe}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:tt}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:le,background:"transparent",cursor:"not-allowed"}}}}}}}}};var Cp=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:l,antCls:s,colorPrimary:c,cellActiveWithRangeBg:u,colorPrimaryBorder:d,lineType:f,colorSplit:v}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${(0,dn.bf)(r)} ${f} ${v}`,"&-extra":{padding:`0 ${(0,dn.bf)(l)}`,lineHeight:(0,dn.bf)(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,dn.bf)(r)} ${f} ${v}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:(0,dn.bf)(l),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:(0,dn.bf)(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${s}-tag-blue`]:{color:c,background:u,borderColor:d,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}};const Sp=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:l}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(l).add(e.calc(r).div(2)).equal()}},xp=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:l,paddingXXS:s}=e;return{cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Le.C(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Le.C(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:l*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:l,withoutTimeCellHeight:l*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:n-s*2,multipleItemHeightSM:r-s*2,multipleItemHeightLG:l-s*2,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},wp=e=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,ao.T)(e)),xp(e)),(0,Rf.w)(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50});var Pp=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},(0,ro.qG)(e)),(0,ro.H8)(e)),(0,ro.Mu)(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,dn.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${(0,dn.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,dn.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}};const ku=(e,t,n,r)=>{const l=e.calc(n).add(2).equal(),s=e.max(e.calc(t).sub(l).div(2).equal(),0),c=e.max(e.calc(t).sub(l).sub(s).equal(),0);return{padding:`${(0,dn.bf)(s)} ${(0,dn.bf)(r)} ${(0,dn.bf)(c)}`}},Ep=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},Ip=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:l,lineWidth:s,lineType:c,colorBorder:u,borderRadius:d,motionDurationMid:f,colorTextDisabled:v,colorTextPlaceholder:h,controlHeightLG:b,fontSizeLG:C,controlHeightSM:w,paddingInlineSM:P,paddingXS:E,marginXS:R,colorTextDescription:M,lineWidthBold:j,colorPrimary:z,motionDurationSlow:H,zIndexPopup:k,paddingXXS:G,sizePopupArrow:te,colorBgElevated:le,borderRadiusLG:oe,boxShadowSecondary:ne,borderRadiusSM:ae,colorSplit:ve,cellHoverBg:Ee,presetsWidth:be,presetsMaxWidth:Re,boxShadowPopoverArrow:pe,fontHeight:we,fontHeightLG:Te,lineHeightLG:Ue}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},(0,pr.Wf)(e)),ku(e,r,we,l)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:d,transition:`border ${f}, box-shadow ${f}, background ${f}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${f}`},(0,no.nz)(h)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:v,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:h}}},"&-large":Object.assign(Object.assign({},ku(e,b,Te,l)),{[`${t}-input > input`]:{fontSize:C,lineHeight:Ue}}),"&-small":Object.assign({},ku(e,w,we,P)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(E).div(2).equal(),color:v,lineHeight:1,pointerEvents:"none",transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:R}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:v,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:M}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:C,color:v,fontSize:C,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:M},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(s).mul(-1).equal(),height:j,background:z,opacity:0,transition:`all ${H} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${(0,dn.bf)(E)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:l},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:P}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,pr.Wf)(e)),yp(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:k,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Ks.Qt},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Ks.fJ},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Ks.ly},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Ks.Uw},[`${t}-panel > ${t}-time-panel`]:{paddingTop:G},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(l).mul(1.5).equal(),boxSizing:"content-box",transition:`left ${H} ease-out`},(0,Rf.W)(e,le,pe)),{"&:before":{insetInlineStart:e.calc(l).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:le,borderRadius:oe,boxShadow:ne,transition:`margin ${H}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:be,maxWidth:Re,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:E,borderInlineEnd:`${(0,dn.bf)(s)} ${c} ${ve}`,li:Object.assign(Object.assign({},pr.vS),{borderRadius:ae,paddingInline:E,paddingBlock:e.calc(w).sub(we).div(2).equal(),cursor:"pointer",transition:`all ${H}`,"+ li":{marginTop:R},"&:hover":{background:Ee}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, + table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${(0,dn.bf)(e.calc(te).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Ks.oN)(e,"slide-up"),(0,Ks.oN)(e,"slide-down"),(0,Zf.Fm)(e,"move-up"),(0,Zf.Fm)(e,"move-down")]};var Df=(0,fo.I$)("DatePicker",e=>{const t=(0,ka.TS)((0,ao.e)(e),Sp(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Cp(t),Ip(t),Pp(t),Ep(t),pp(t),(0,jl.c)(e,{focusElCls:`${e.componentCls}-focused`})]},wp);function Op(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Zp(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Bu(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function $f(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:l}=(0,wi.Z)(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[o.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),l]}var Rp=i(14726);function Mp(e){return o.createElement(Rp.ZP,Object.assign({size:"small",type:"primary"},e))}function Nf(e){return(0,o.useMemo)(()=>Object.assign({button:Mp},e),[e])}var Dp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{var l;const{prefixCls:s,getPopupContainer:c,components:u,className:d,style:f,placement:v,size:h,disabled:b,bordered:C=!0,placeholder:w,popupClassName:P,dropdownClassName:E,status:R,rootClassName:M,variant:j}=n,z=Dp(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),H=o.useRef(null),{getPrefixCls:k,direction:G,getPopupContainer:te,rangePicker:le}=(0,o.useContext)(Ro.E_),oe=k("picker",s),{compactSize:ne,compactItemClassnames:ae}=(0,nl.ri)(oe,G),{picker:ve}=n,Ee=k(),[be,Re]=(0,bl.Z)(j,C),pe=(0,li.Z)(oe),[we,Te,Ue]=Df(oe,pe),[tt]=$f(n,oe),ke=Nf(u),Ot=(0,si.Z)(It=>{var Vt;return(Vt=h!=null?h:ne)!==null&&Vt!==void 0?Vt:It}),$t=o.useContext(xi.Z),zt=b!=null?b:$t,Bt=(0,o.useContext)(Xo.aM),{hasFeedback:mt,status:At,feedbackIcon:Jt}=Bt,Pt=o.createElement(o.Fragment,null,ve==="time"?o.createElement(Yd,null):o.createElement(Ud,null),mt&&Jt);(0,o.useImperativeHandle)(r,()=>H.current);const[gt]=(0,cu.Z)("Calendar",Of.Z),Rt=Object.assign(Object.assign({},gt),n.locale),[ht]=(0,Hi.Cn)("DatePicker",(l=n.popupStyle)===null||l===void 0?void 0:l.zIndex);return we(o.createElement(nl.BR,null,o.createElement(lp,Object.assign({separator:o.createElement("span",{"aria-label":"to",className:`${oe}-separator`},o.createElement(ch,null)),disabled:zt,ref:H,popupAlign:Bu(G,v),placeholder:Zp(Rt,ve,w),suffixIcon:Pt,prevIcon:o.createElement("span",{className:`${oe}-prev-icon`}),nextIcon:o.createElement("span",{className:`${oe}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${oe}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${oe}-super-next-icon`}),transitionName:`${Ee}-slide-up`},z,{className:re()({[`${oe}-${Ot}`]:Ot,[`${oe}-${be}`]:Re},(0,jo.Z)(oe,(0,jo.F)(At,R),mt),Te,ae,d,le==null?void 0:le.className,Ue,pe,M),style:Object.assign(Object.assign({},le==null?void 0:le.style),f),locale:Rt.lang,prefixCls:oe,getPopupContainer:c||te,generateConfig:e,components:ke,direction:G,classNames:{popup:re()(Te,P||E,Ue,pe,M)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:ht})},allowClear:tt}))))})}var Np=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{var w;const{prefixCls:P,getPopupContainer:E,components:R,style:M,className:j,rootClassName:z,size:H,bordered:k,placement:G,placeholder:te,popupClassName:le,dropdownClassName:oe,disabled:ne,status:ae,variant:ve,onCalendarChange:Ee}=b,be=Np(b,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:Re,direction:pe,getPopupContainer:we,[v]:Te}=(0,o.useContext)(Ro.E_),Ue=Re("picker",P),{compactSize:tt,compactItemClassnames:ke}=(0,nl.ri)(Ue,pe),Ot=o.useRef(null),[$t,zt]=(0,bl.Z)(ve,k),Bt=(0,li.Z)(Ue),[mt,At,Jt]=Df(Ue,Bt);(0,o.useImperativeHandle)(C,()=>Ot.current);const Pt={showToday:!0},gt=d||b.picker,Rt=Re(),{onSelect:ht,multiple:It}=be,Vt=ht&&d==="time"&&!It,Lt=(Kr,lr,Oa)=>{Ee==null||Ee(Kr,lr,Oa),Vt&&ht(Kr)},[fn,hn]=$f(b,Ue),Ln=Nf(R),Rn=(0,si.Z)(Kr=>{var lr;return(lr=H!=null?H:tt)!==null&&lr!==void 0?lr:Kr}),zn=o.useContext(xi.Z),br=ne!=null?ne:zn,ca=(0,o.useContext)(Xo.aM),{hasFeedback:bn,status:$r,feedbackIcon:Un}=ca,en=o.createElement(o.Fragment,null,gt==="time"?o.createElement(Yd,null):o.createElement(Ud,null),bn&&Un),[wn]=(0,cu.Z)("DatePicker",Of.Z),ir=Object.assign(Object.assign({},wn),b.locale),[Kn]=(0,Hi.Cn)("DatePicker",(w=b.popupStyle)===null||w===void 0?void 0:w.zIndex);return mt(o.createElement(nl.BR,null,o.createElement(hp,Object.assign({ref:Ot,placeholder:Op(ir,gt,te),suffixIcon:en,dropdownAlign:Bu(pe,G),prevIcon:o.createElement("span",{className:`${Ue}-prev-icon`}),nextIcon:o.createElement("span",{className:`${Ue}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${Ue}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${Ue}-super-next-icon`}),transitionName:`${Rt}-slide-up`,picker:d,onCalendarChange:Lt},Pt,be,{locale:ir.lang,className:re()({[`${Ue}-${Rn}`]:Rn,[`${Ue}-${$t}`]:zt},(0,jo.Z)(Ue,(0,jo.F)($r,ae),bn),At,ke,Te==null?void 0:Te.className,j,Jt,Bt,z),style:Object.assign(Object.assign({},Te==null?void 0:Te.style),M),prefixCls:Ue,getPopupContainer:E||we,generateConfig:e,components:Ln,direction:pe,disabled:br,classNames:{popup:re()(At,Jt,Bt,z,le||oe)},styles:{popup:Object.assign(Object.assign({},b.popupStyle),{zIndex:Kn})},allowClear:fn,removeIcon:hn}))))})}const n=t(),r=t("week","WeekPicker"),l=t("month","MonthPicker"),s=t("year","YearPicker"),c=t("quarter","QuarterPicker"),u=t("time","TimePicker");return{DatePicker:n,WeekPicker:r,MonthPicker:l,YearPicker:s,TimePicker:u,QuarterPicker:c}}function Fp(e){const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:l,TimePicker:s,QuarterPicker:c}=Tp(e),u=$p(e),d=t;return d.WeekPicker=n,d.MonthPicker=r,d.YearPicker=l,d.RangePicker=u,d.TimePicker=s,d.QuarterPicker=c,d}var Tf=Fp;const Ws=Tf(Q0);function Ff(e){const t=Bu(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const Ap=(0,Go.Z)(Ws,"picker",null,Ff);Ws._InternalPanelDoNotUseOrYouWillBeFired=Ap;const Lp=(0,Go.Z)(Ws.RangePicker,"picker",null,Ff);Ws._InternalRangePanelDoNotUseOrYouWillBeFired=Lp,Ws.generatePicker=Tf;var Is=Ws;oo().extend(Iu());var jp=function(t,n){return t?typeof n=="function"?n(oo()(t)):oo()(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},Vp=function(t,n){var r=t.text,l=t.mode,s=t.format,c=t.label,u=t.light,d=t.render,f=t.renderFormItem,v=t.plain,h=t.showTime,b=t.fieldProps,C=t.picker,w=t.bordered,P=t.lightLabel,E=(0,x.YB)(),R=(0,o.useState)(!1),M=(0,N.Z)(R,2),j=M[0],z=M[1];if(l==="read"){var H=jp(r,b.format||s);return d?d(r,(0,a.Z)({mode:l},b),(0,Ve.jsx)(Ve.Fragment,{children:H})):(0,Ve.jsx)(Ve.Fragment,{children:H})}if(l==="edit"||l==="update"){var k,G=b.disabled,te=b.value,le=b.placeholder,oe=le===void 0?E.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"):le,ne=pc(te);return u?k=(0,Ve.jsx)(Et.Q,{label:c,onClick:function(){var ve;b==null||(ve=b.onOpenChange)===null||ve===void 0||ve.call(b,!0),z(!0)},style:ne?{paddingInlineEnd:0}:void 0,disabled:G,value:ne||j?(0,Ve.jsx)(Is,(0,a.Z)((0,a.Z)((0,a.Z)({picker:C,showTime:h,format:s,ref:n},b),{},{value:ne,onOpenChange:function(ve){var Ee;z(ve),b==null||(Ee=b.onOpenChange)===null||Ee===void 0||Ee.call(b,ve)}},(0,Ne.J)(!1)),{},{open:j})):void 0,allowClear:!1,downIcon:ne||j?!1:void 0,bordered:w,ref:P}):k=(0,Ve.jsx)(Is,(0,a.Z)((0,a.Z)((0,a.Z)({picker:C,showTime:h,format:s,placeholder:oe},(0,Ne.J)(v===void 0?!0:!v)),{},{ref:n},b),{},{value:ne})),f?f(r,(0,a.Z)({mode:l},b),k):k}return null},zs=o.forwardRef(Vp),nu=i(97435),Hp=function(t,n){var r=t.text,l=t.mode,s=t.render,c=t.placeholder,u=t.renderFormItem,d=t.fieldProps,f=(0,x.YB)(),v=c||f.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),h=(0,o.useCallback)(function(R){var M=R!=null?R:void 0;return!d.stringMode&&typeof M=="string"&&(M=Number(M)),typeof M=="number"&&!(0,Eu.k)(M)&&!(0,Eu.k)(d.precision)&&(M=Number(M.toFixed(d.precision))),M},[d]);if(l==="read"){var b,C={};d!=null&&d.precision&&(C={minimumFractionDigits:Number(d.precision),maximumFractionDigits:Number(d.precision)});var w=new Intl.NumberFormat(void 0,(0,a.Z)((0,a.Z)({},C),(d==null?void 0:d.intlProps)||{})).format(Number(r)),P=(0,Ve.jsx)("span",{ref:n,children:(d==null||(b=d.formatter)===null||b===void 0?void 0:b.call(d,w))||w});return s?s(r,(0,a.Z)({mode:l},d),P):P}if(l==="edit"||l==="update"){var E=(0,Ve.jsx)(ol,(0,a.Z)((0,a.Z)({ref:n,min:0,placeholder:v},(0,nu.Z)(d,["onChange","onBlur"])),{},{onChange:function(M){var j;return d==null||(j=d.onChange)===null||j===void 0?void 0:j.call(d,h(M))},onBlur:function(M){var j;return d==null||(j=d.onBlur)===null||j===void 0?void 0:j.call(d,h(M.target.value))}}));return u?u(r,(0,a.Z)({mode:l},d),E):E}return null},kp=o.forwardRef(Hp),Ku=i(42075),Bp=function(t,n){var r=t.text,l=t.mode,s=t.render,c=t.placeholder,u=t.renderFormItem,d=t.fieldProps,f=t.separator,v=f===void 0?"~":f,h=t.separatorWidth,b=h===void 0?30:h,C=d.value,w=d.defaultValue,P=d.onChange,E=d.id,R=(0,x.YB)(),M=ul.Ow.useToken(),j=M.token,z=(0,fe.Z)(function(){return w},{value:C,onChange:P}),H=(0,N.Z)(z,2),k=H[0],G=H[1];if(l==="read"){var te=function(we){var Te,Ue=new Intl.NumberFormat(void 0,(0,a.Z)({minimumSignificantDigits:2},(d==null?void 0:d.intlProps)||{})).format(Number(we));return(d==null||(Te=d.formatter)===null||Te===void 0?void 0:Te.call(d,Ue))||Ue},le=(0,Ve.jsxs)("span",{ref:n,children:[te(r[0])," ",v," ",te(r[1])]});return s?s(r,(0,a.Z)({mode:l},d),le):le}if(l==="edit"||l==="update"){var oe=function(){if(Array.isArray(k)){var we=(0,N.Z)(k,2),Te=we[0],Ue=we[1];typeof Te=="number"&&typeof Ue=="number"&&Te>Ue?G([Ue,Te]):Te===void 0&&Ue===void 0&&G(void 0)}},ne=function(we,Te){var Ue=(0,Fe.Z)(k||[]);Ue[we]=Te===null?void 0:Te,G(Ue)},ae=(d==null?void 0:d.placeholder)||c||[R.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),R.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")],ve=function(we){return Array.isArray(ae)?ae[we]:ae},Ee=Ku.Z.Compact||Il.Z.Group,be=Ku.Z.Compact?{}:{compact:!0},Re=(0,Ve.jsxs)(Ee,(0,a.Z)((0,a.Z)({},be),{},{onBlur:oe,children:[(0,Ve.jsx)(ol,(0,a.Z)((0,a.Z)({},d),{},{placeholder:ve(0),id:E!=null?E:"".concat(E,"-0"),style:{width:"calc((100% - ".concat(b,"px) / 2)")},value:k==null?void 0:k[0],defaultValue:w==null?void 0:w[0],onChange:function(we){return ne(0,we)}})),(0,Ve.jsx)(Il.Z,{style:{width:b,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:j==null?void 0:j.colorBgContainer},placeholder:v,disabled:!0}),(0,Ve.jsx)(ol,(0,a.Z)((0,a.Z)({},d),{},{placeholder:ve(1),id:E!=null?E:"".concat(E,"-1"),style:{width:"calc((100% - ".concat(b,"px) / 2)"),borderInlineStart:0},value:k==null?void 0:k[1],defaultValue:w==null?void 0:w[1],onChange:function(we){return ne(1,we)}}))]}));return u?u(r,(0,a.Z)({mode:l},d),Re):Re}return null},Kp=o.forwardRef(Bp),Wu=i(83062),Wp=i(84110),zp=i.n(Wp);oo().extend(zp());var Up=function(t,n){var r=t.text,l=t.mode,s=t.render,c=t.renderFormItem,u=t.format,d=t.fieldProps,f=(0,x.YB)();if(l==="read"){var v=(0,Ve.jsx)(Wu.Z,{title:oo()(r).format((d==null?void 0:d.format)||u||"YYYY-MM-DD HH:mm:ss"),children:oo()(r).fromNow()});return s?s(r,(0,a.Z)({mode:l},d),(0,Ve.jsx)(Ve.Fragment,{children:v})):(0,Ve.jsx)(Ve.Fragment,{children:v})}if(l==="edit"||l==="update"){var h=f.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),b=pc(d.value),C=(0,Ve.jsx)(Is,(0,a.Z)((0,a.Z)({ref:n,placeholder:h,showTime:!0},d),{},{value:b}));return c?c(r,(0,a.Z)({mode:l},d),C):C}return null},Yp=o.forwardRef(Up),Gp=i(1208),zu=i(27678),Uu=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],Pc=o.createContext(null),Af=0;function Xp(e,t){var n=o.useState(function(){return Af+=1,String(Af)}),r=(0,N.Z)(n,1),l=r[0],s=o.useContext(Pc),c={data:t,canPreview:e};return o.useEffect(function(){if(s)return s.register(l,c)},[]),o.useEffect(function(){s&&s.register(l,c)},[e,t]),l}function Qp(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function Lf(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,l=(0,o.useState)(n?"loading":"normal"),s=(0,N.Z)(l,2),c=s[0],u=s[1],d=(0,o.useRef)(!1),f=c==="error";(0,o.useEffect)(function(){var C=!0;return Qp(t).then(function(w){!w&&C&&u("error")}),function(){C=!1}},[t]),(0,o.useEffect)(function(){n&&!d.current?u("loading"):f&&u("normal")},[t]);var v=function(){u("normal")},h=function(w){d.current=!1,c==="loading"&&w!==null&&w!==void 0&&w.complete&&(w.naturalWidth||w.naturalHeight)&&(d.current=!0,v())},b=f&&r?{src:r}:{onLoad:v,src:t};return[h,b,c]}var jf=i(2788),Vf=o.createContext({}),Hf=i(94999),Jp=i(7028);function kf(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Bf(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var l=e.document;n=l.documentElement[r],typeof n!="number"&&(n=l.body[r])}return n}function qp(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,l=r.defaultView||r.parentWindow;return n.left+=Bf(l),n.top+=Bf(l,!0),n}var _p=o.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n}),Kf={width:0,height:0,overflow:"hidden",outline:"none"},eb={outline:"none"},tb=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,l=e.style,s=e.title,c=e.ariaId,u=e.footer,d=e.closable,f=e.closeIcon,v=e.onClose,h=e.children,b=e.bodyStyle,C=e.bodyProps,w=e.modalRender,P=e.onMouseDown,E=e.onMouseUp,R=e.holderRef,M=e.visible,j=e.forceRender,z=e.width,H=e.height,k=e.classNames,G=e.styles,te=o.useContext(Vf),le=te.panel,oe=(0,xt.x1)(R,le),ne=(0,o.useRef)(),ae=(0,o.useRef)(),ve=(0,o.useRef)();o.useImperativeHandle(t,function(){return{focus:function(){var ke;(ke=ve.current)===null||ke===void 0||ke.focus()},changeActive:function(ke){var Ot=document,$t=Ot.activeElement;ke&&$t===ae.current?ne.current.focus():!ke&&$t===ne.current&&ae.current.focus()}}});var Ee={};z!==void 0&&(Ee.width=z),H!==void 0&&(Ee.height=H);var be;u&&(be=o.createElement("div",{className:re()("".concat(n,"-footer"),k==null?void 0:k.footer),style:(0,a.Z)({},G==null?void 0:G.footer)},u));var Re;s&&(Re=o.createElement("div",{className:re()("".concat(n,"-header"),k==null?void 0:k.header),style:(0,a.Z)({},G==null?void 0:G.header)},o.createElement("div",{className:"".concat(n,"-title"),id:c},s)));var pe=(0,o.useMemo)(function(){return(0,g.Z)(d)==="object"&&d!==null?d:d?{closeIcon:f!=null?f:o.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[d,f]),we=(0,Pn.Z)(pe,!0),Te;d&&(Te=o.createElement("button",(0,_.Z)({type:"button",onClick:v,"aria-label":"Close"},we,{className:"".concat(n,"-close")}),pe.closeIcon));var Ue=o.createElement("div",{className:re()("".concat(n,"-content"),k==null?void 0:k.content),style:G==null?void 0:G.content},Te,Re,o.createElement("div",(0,_.Z)({className:re()("".concat(n,"-body"),k==null?void 0:k.body),style:(0,a.Z)((0,a.Z)({},b),G==null?void 0:G.body)},C),h),be);return o.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?c:null,"aria-modal":"true",ref:oe,style:(0,a.Z)((0,a.Z)({},l),Ee),className:re()(n,r),onMouseDown:P,onMouseUp:E},o.createElement("div",{tabIndex:0,ref:ne,style:Kf,"aria-hidden":"true"}),o.createElement("div",{ref:ve,tabIndex:-1,style:eb},o.createElement(_p,{shouldUpdate:M||j},w?w(Ue):Ue)),o.createElement("div",{tabIndex:0,ref:ae,style:Kf,"aria-hidden":"true"}))}),nb=tb,Wf=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,l=e.style,s=e.className,c=e.visible,u=e.forceRender,d=e.destroyOnClose,f=e.motionName,v=e.ariaId,h=e.onVisibleChanged,b=e.mousePosition,C=(0,o.useRef)(),w=o.useState(),P=(0,N.Z)(w,2),E=P[0],R=P[1],M={};E&&(M.transformOrigin=E);function j(){var z=qp(C.current);R(b?"".concat(b.x-z.left,"px ").concat(b.y-z.top,"px"):"")}return o.createElement(Sl.ZP,{visible:c,onVisibleChanged:h,onAppearPrepare:j,onEnterPrepare:j,forceRender:u,motionName:f,removeOnLeave:d,ref:C},function(z,H){var k=z.className,G=z.style;return o.createElement(nb,(0,_.Z)({},e,{ref:t,title:r,ariaId:v,prefixCls:n,holderRef:H,style:(0,a.Z)((0,a.Z)((0,a.Z)({},G),l),M),className:re()(s,k)}))})});Wf.displayName="Content";var rb=Wf;function ab(e){var t=e.prefixCls,n=e.style,r=e.visible,l=e.maskProps,s=e.motionName,c=e.className;return o.createElement(Sl.ZP,{key:"mask",visible:r,motionName:s,leavedClassName:"".concat(t,"-mask-hidden")},function(u,d){var f=u.className,v=u.style;return o.createElement("div",(0,_.Z)({ref:d,style:(0,a.Z)((0,a.Z)({},v),n),className:re()("".concat(t,"-mask"),f,c)},l))})}function ob(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,l=e.visible,s=l===void 0?!1:l,c=e.keyboard,u=c===void 0?!0:c,d=e.focusTriggerAfterClose,f=d===void 0?!0:d,v=e.wrapStyle,h=e.wrapClassName,b=e.wrapProps,C=e.onClose,w=e.afterOpenChange,P=e.afterClose,E=e.transitionName,R=e.animation,M=e.closable,j=M===void 0?!0:M,z=e.mask,H=z===void 0?!0:z,k=e.maskTransitionName,G=e.maskAnimation,te=e.maskClosable,le=te===void 0?!0:te,oe=e.maskStyle,ne=e.maskProps,ae=e.rootClassName,ve=e.classNames,Ee=e.styles,be=(0,o.useRef)(),Re=(0,o.useRef)(),pe=(0,o.useRef)(),we=o.useState(s),Te=(0,N.Z)(we,2),Ue=Te[0],tt=Te[1],ke=(0,Jp.Z)();function Ot(){(0,Hf.Z)(Re.current,document.activeElement)||(be.current=document.activeElement)}function $t(){if(!(0,Hf.Z)(Re.current,document.activeElement)){var ht;(ht=pe.current)===null||ht===void 0||ht.focus()}}function zt(ht){if(ht)$t();else{if(tt(!1),H&&be.current&&f){try{be.current.focus({preventScroll:!0})}catch(It){}be.current=null}Ue&&(P==null||P())}w==null||w(ht)}function Bt(ht){C==null||C(ht)}var mt=(0,o.useRef)(!1),At=(0,o.useRef)(),Jt=function(){clearTimeout(At.current),mt.current=!0},Pt=function(){At.current=setTimeout(function(){mt.current=!1})},gt=null;le&&(gt=function(It){mt.current?mt.current=!1:Re.current===It.target&&Bt(It)});function Rt(ht){if(u&&ht.keyCode===Oe.Z.ESC){ht.stopPropagation(),Bt(ht);return}s&&ht.keyCode===Oe.Z.TAB&&pe.current.changeActive(!ht.shiftKey)}return(0,o.useEffect)(function(){s&&(tt(!0),Ot())},[s]),(0,o.useEffect)(function(){return function(){clearTimeout(At.current)}},[]),o.createElement("div",(0,_.Z)({className:re()("".concat(n,"-root"),ae)},(0,Pn.Z)(e,{data:!0})),o.createElement(ab,{prefixCls:n,visible:H&&s,motionName:kf(n,k,G),style:(0,a.Z)((0,a.Z)({zIndex:r},oe),Ee==null?void 0:Ee.mask),maskProps:ne,className:ve==null?void 0:ve.mask}),o.createElement("div",(0,_.Z)({tabIndex:-1,onKeyDown:Rt,className:re()("".concat(n,"-wrap"),h,ve==null?void 0:ve.wrapper),ref:Re,onClick:gt,style:(0,a.Z)((0,a.Z)((0,a.Z)({zIndex:r},v),Ee==null?void 0:Ee.wrapper),{},{display:Ue?null:"none"})},b),o.createElement(rb,(0,_.Z)({},e,{onMouseDown:Jt,onMouseUp:Pt,ref:pe,closable:j,ariaId:ke,prefixCls:n,visible:s&&Ue,onClose:Bt,onVisibleChanged:zt,motionName:kf(n,E,R)}))))}var zf=function(t){var n=t.visible,r=t.getContainer,l=t.forceRender,s=t.destroyOnClose,c=s===void 0?!1:s,u=t.afterClose,d=t.panelRef,f=o.useState(n),v=(0,N.Z)(f,2),h=v[0],b=v[1],C=o.useMemo(function(){return{panel:d}},[d]);return o.useEffect(function(){n&&b(!0)},[n]),!l&&c&&!h?null:o.createElement(Vf.Provider,{value:C},o.createElement(jf.Z,{open:n||l||h,autoDestroy:!1,getContainer:r,autoLock:n||h},o.createElement(ob,(0,_.Z)({},t,{destroyOnClose:c,afterClose:function(){u==null||u(),b(!1)}}))))};zf.displayName="Dialog";var ib=zf,lb=ib,Us=i(64019),Uf=i(91881),ru={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function sb(e,t,n,r){var l=(0,o.useRef)(null),s=(0,o.useRef)([]),c=(0,o.useState)(ru),u=(0,N.Z)(c,2),d=u[0],f=u[1],v=function(w){f(ru),r&&!(0,Uf.Z)(ru,d)&&r({transform:ru,action:w})},h=function(w,P){l.current===null&&(s.current=[],l.current=(0,ri.Z)(function(){f(function(E){var R=E;return s.current.forEach(function(M){R=(0,a.Z)((0,a.Z)({},R),M)}),l.current=null,r==null||r({transform:R,action:P}),R})})),s.current.push((0,a.Z)((0,a.Z)({},d),w))},b=function(w,P,E,R,M){var j=e.current,z=j.width,H=j.height,k=j.offsetWidth,G=j.offsetHeight,te=j.offsetLeft,le=j.offsetTop,oe=w,ne=d.scale*w;ne>n?(ne=n,oe=n/d.scale):ner){if(t>0)return(0,Y.Z)({},e,s);if(t<0&&lr)return(0,Y.Z)({},e,t<0?s:-s);return{}}function Gf(e,t,n,r){var l=(0,zu.g1)(),s=l.width,c=l.height,u=null;return e<=s&&t<=c?u={x:0,y:0}:(e>s||t>c)&&(u=(0,a.Z)((0,a.Z)({},Yf("x",n,e,s)),Yf("y",r,t,c))),u}var Ys=1,cb=1;function ub(e,t,n,r,l,s,c){var u=l.rotate,d=l.scale,f=l.x,v=l.y,h=(0,o.useState)(!1),b=(0,N.Z)(h,2),C=b[0],w=b[1],P=(0,o.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),E=function(H){!t||H.button!==0||(H.preventDefault(),H.stopPropagation(),P.current={diffX:H.pageX-f,diffY:H.pageY-v,transformX:f,transformY:v},w(!0))},R=function(H){n&&C&&s({x:H.pageX-P.current.diffX,y:H.pageY-P.current.diffY},"move")},M=function(){if(n&&C){w(!1);var H=P.current,k=H.transformX,G=H.transformY,te=f!==k&&v!==G;if(!te)return;var le=e.current.offsetWidth*d,oe=e.current.offsetHeight*d,ne=e.current.getBoundingClientRect(),ae=ne.left,ve=ne.top,Ee=u%180!==0,be=Gf(Ee?oe:le,Ee?le:oe,ae,ve);be&&s((0,a.Z)({},be),"dragRebound")}},j=function(H){if(!(!n||H.deltaY==0)){var k=Math.abs(H.deltaY/100),G=Math.min(k,cb),te=Ys+G*r;H.deltaY>0&&(te=Ys/te),c(te,"wheel",H.clientX,H.clientY)}};return(0,o.useEffect)(function(){var z,H,k,G;if(t){k=(0,Us.Z)(window,"mouseup",M,!1),G=(0,Us.Z)(window,"mousemove",R,!1);try{window.top!==window.self&&(z=(0,Us.Z)(window.top,"mouseup",M,!1),H=(0,Us.Z)(window.top,"mousemove",R,!1))}catch(te){(0,K.Kp)(!1,"[rc-image] ".concat(te))}}return function(){var te,le,oe,ne;(te=k)===null||te===void 0||te.remove(),(le=G)===null||le===void 0||le.remove(),(oe=z)===null||oe===void 0||oe.remove(),(ne=H)===null||ne===void 0||ne.remove()}},[n,C,f,v,u,t]),{isMoving:C,onMouseDown:E,onMouseMove:R,onMouseUp:M,onWheel:j}}function au(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function db(e,t,n,r){var l=au(e,n),s=au(t,r);if(l===0&&s===0)return[e.x,e.y];var c=l/(l+s),u=e.x+c*(t.x-e.x),d=e.y+c*(t.y-e.y);return[u,d]}function fb(e,t,n,r,l,s,c){var u=l.rotate,d=l.scale,f=l.x,v=l.y,h=(0,o.useState)(!1),b=(0,N.Z)(h,2),C=b[0],w=b[1],P=(0,o.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),E=function(H){P.current=(0,a.Z)((0,a.Z)({},P.current),H)},R=function(H){if(t){H.stopPropagation(),w(!0);var k=H.touches,G=k===void 0?[]:k;G.length>1?E({point1:{x:G[0].clientX,y:G[0].clientY},point2:{x:G[1].clientX,y:G[1].clientY},eventType:"touchZoom"}):E({point1:{x:G[0].clientX-f,y:G[0].clientY-v},eventType:"move"})}},M=function(H){var k=H.touches,G=k===void 0?[]:k,te=P.current,le=te.point1,oe=te.point2,ne=te.eventType;if(G.length>1&&ne==="touchZoom"){var ae={x:G[0].clientX,y:G[0].clientY},ve={x:G[1].clientX,y:G[1].clientY},Ee=db(le,oe,ae,ve),be=(0,N.Z)(Ee,2),Re=be[0],pe=be[1],we=au(ae,ve)/au(le,oe);c(we,"touchZoom",Re,pe,!0),E({point1:ae,point2:ve,eventType:"touchZoom"})}else ne==="move"&&(s({x:G[0].clientX-le.x,y:G[0].clientY-le.y},"move"),E({eventType:"move"}))},j=function(){if(n){if(C&&w(!1),E({eventType:"none"}),r>d)return s({x:0,y:0,scale:r},"touchZoom");var H=e.current.offsetWidth*d,k=e.current.offsetHeight*d,G=e.current.getBoundingClientRect(),te=G.left,le=G.top,oe=u%180!==0,ne=Gf(oe?k:H,oe?H:k,te,le);ne&&s((0,a.Z)({},ne),"dragRebound")}};return(0,o.useEffect)(function(){var z;return n&&t&&(z=(0,Us.Z)(window,"touchmove",function(H){return H.preventDefault()},{passive:!1})),function(){var H;(H=z)===null||H===void 0||H.remove()}},[n,t]),{isTouching:C,onTouchStart:R,onTouchMove:M,onTouchEnd:j}}var vb=function(t){var n=t.visible,r=t.maskTransitionName,l=t.getContainer,s=t.prefixCls,c=t.rootClassName,u=t.icons,d=t.countRender,f=t.showSwitch,v=t.showProgress,h=t.current,b=t.transform,C=t.count,w=t.scale,P=t.minScale,E=t.maxScale,R=t.closeIcon,M=t.onSwitchLeft,j=t.onSwitchRight,z=t.onClose,H=t.onZoomIn,k=t.onZoomOut,G=t.onRotateRight,te=t.onRotateLeft,le=t.onFlipX,oe=t.onFlipY,ne=t.toolbarRender,ae=t.zIndex,ve=(0,o.useContext)(Pc),Ee=u.rotateLeft,be=u.rotateRight,Re=u.zoomIn,pe=u.zoomOut,we=u.close,Te=u.left,Ue=u.right,tt=u.flipX,ke=u.flipY,Ot="".concat(s,"-operations-operation");o.useEffect(function(){var mt=function(Jt){Jt.keyCode===Oe.Z.ESC&&z()};return n&&window.addEventListener("keydown",mt),function(){window.removeEventListener("keydown",mt)}},[n]);var $t=[{icon:ke,onClick:oe,type:"flipY"},{icon:tt,onClick:le,type:"flipX"},{icon:Ee,onClick:te,type:"rotateLeft"},{icon:be,onClick:G,type:"rotateRight"},{icon:pe,onClick:k,type:"zoomOut",disabled:w<=P},{icon:Re,onClick:H,type:"zoomIn",disabled:w===E}],zt=$t.map(function(mt){var At,Jt=mt.icon,Pt=mt.onClick,gt=mt.type,Rt=mt.disabled;return o.createElement("div",{className:re()(Ot,(At={},(0,Y.Z)(At,"".concat(s,"-operations-operation-").concat(gt),!0),(0,Y.Z)(At,"".concat(s,"-operations-operation-disabled"),!!Rt),At)),onClick:Pt,key:gt},Jt)}),Bt=o.createElement("div",{className:"".concat(s,"-operations")},zt);return o.createElement(Sl.ZP,{visible:n,motionName:r},function(mt){var At=mt.className,Jt=mt.style;return o.createElement(jf.Z,{open:!0,getContainer:l!=null?l:document.body},o.createElement("div",{className:re()("".concat(s,"-operations-wrapper"),At,c),style:(0,a.Z)((0,a.Z)({},Jt),{},{zIndex:ae})},R===null?null:o.createElement("button",{className:"".concat(s,"-close"),onClick:z},R||we),f&&o.createElement(o.Fragment,null,o.createElement("div",{className:re()("".concat(s,"-switch-left"),(0,Y.Z)({},"".concat(s,"-switch-left-disabled"),h===0)),onClick:M},Te),o.createElement("div",{className:re()("".concat(s,"-switch-right"),(0,Y.Z)({},"".concat(s,"-switch-right-disabled"),h===C-1)),onClick:j},Ue)),o.createElement("div",{className:"".concat(s,"-footer")},v&&o.createElement("div",{className:"".concat(s,"-progress")},d?d(h+1,C):"".concat(h+1," / ").concat(C)),ne?ne(Bt,(0,a.Z)({icons:{flipYIcon:zt[0],flipXIcon:zt[1],rotateLeftIcon:zt[2],rotateRightIcon:zt[3],zoomOutIcon:zt[4],zoomInIcon:zt[5]},actions:{onFlipY:oe,onFlipX:le,onRotateLeft:te,onRotateRight:G,onZoomOut:k,onZoomIn:H},transform:b},ve?{current:h,total:C}:{})):Bt)))})},mb=vb,gb=["fallback","src","imgRef"],hb=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],pb=function(t){var n=t.fallback,r=t.src,l=t.imgRef,s=(0,p.Z)(t,gb),c=Lf({src:r,fallback:n}),u=(0,N.Z)(c,2),d=u[0],f=u[1];return o.createElement("img",(0,_.Z)({ref:function(h){l.current=h,d(h)}},s,f))},bb=function(t){var n=t.prefixCls,r=t.src,l=t.alt,s=t.fallback,c=t.movable,u=c===void 0?!0:c,d=t.onClose,f=t.visible,v=t.icons,h=v===void 0?{}:v,b=t.rootClassName,C=t.closeIcon,w=t.getContainer,P=t.current,E=P===void 0?0:P,R=t.count,M=R===void 0?1:R,j=t.countRender,z=t.scaleStep,H=z===void 0?.5:z,k=t.minScale,G=k===void 0?1:k,te=t.maxScale,le=te===void 0?50:te,oe=t.transitionName,ne=oe===void 0?"zoom":oe,ae=t.maskTransitionName,ve=ae===void 0?"fade":ae,Ee=t.imageRender,be=t.imgCommonProps,Re=t.toolbarRender,pe=t.onTransform,we=t.onChange,Te=(0,p.Z)(t,hb),Ue=(0,o.useRef)(),tt=(0,o.useContext)(Pc),ke=tt&&M>1,Ot=tt&&M>=1,$t=(0,o.useState)(!0),zt=(0,N.Z)($t,2),Bt=zt[0],mt=zt[1],At=sb(Ue,G,le,pe),Jt=At.transform,Pt=At.resetTransform,gt=At.updateTransform,Rt=At.dispatchZoomChange,ht=ub(Ue,u,f,H,Jt,gt,Rt),It=ht.isMoving,Vt=ht.onMouseDown,Lt=ht.onWheel,fn=fb(Ue,u,f,G,Jt,gt,Rt),hn=fn.isTouching,Ln=fn.onTouchStart,Rn=fn.onTouchMove,zn=fn.onTouchEnd,br=Jt.rotate,ca=Jt.scale,bn=re()((0,Y.Z)({},"".concat(n,"-moving"),It));(0,o.useEffect)(function(){Bt||mt(!0)},[Bt]);var $r=function(){Pt("close")},Un=function(){Rt(Ys+H,"zoomIn")},en=function(){Rt(Ys/(Ys+H),"zoomOut")},wn=function(){gt({rotate:br+90},"rotateRight")},ir=function(){gt({rotate:br-90},"rotateLeft")},Kn=function(){gt({flipX:!Jt.flipX},"flipX")},Kr=function(){gt({flipY:!Jt.flipY},"flipY")},lr=function(Wr){Wr==null||Wr.preventDefault(),Wr==null||Wr.stopPropagation(),E>0&&(mt(!1),Pt("prev"),we==null||we(E-1,E))},Oa=function(Wr){Wr==null||Wr.preventDefault(),Wr==null||Wr.stopPropagation(),E({position:e||"absolute",inset:0}),ty=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:l,prefixCls:s,colorTextLightSolid:c}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:c,background:new Le.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${s}-mask-info`]:Object.assign(Object.assign({},pr.vS),{padding:`0 ${(0,dn.bf)(r)}`,[t]:{marginInlineEnd:l,svg:{verticalAlign:"baseline"}}})}},ny=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:l,margin:s,paddingLG:c,previewOperationColorDisabled:u,previewOperationHoverColor:d,motionDurationSlow:f,iconCls:v,colorTextLightSolid:h}=e,b=new Le.C(n).setAlpha(.1),C=b.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:l,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:s},[`${t}-close`]:{position:"fixed",top:l,right:{_skip_check_:!0,value:l},display:"flex",color:h,backgroundColor:b.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${f}`,"&:hover":{backgroundColor:C.toRgbString()},[`& > ${v}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,dn.bf)(c)}`,backgroundColor:b.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${f}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${v}`]:{color:d},"&-disabled":{color:u,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${v}`]:{fontSize:e.previewOperationSize}}}}},ry=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:l,zIndexPopup:s,motionDurationSlow:c}=e,u=new Le.C(t).setAlpha(.1),d=u.clone().setAlpha(.2);return{[`${l}-switch-left, ${l}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(s).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:u.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${c}`,userSelect:"none","&:hover":{background:d.toRgbString()},["&-disabled"]:{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${l}-switch-left`]:{insetInlineStart:e.marginSM},[`${l}-switch-right`]:{insetInlineEnd:e.marginSM}}},ay=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:l}=e;return[{[`${l}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Gu()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Gu()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${l}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${l}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[ny(e),ry(e)]}]},oy=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},ty(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Gu())}}},iy=e=>{const{previewCls:t}=e;return{[`${t}-root`]:(0,_b._y)(e,"zoom"),["&"]:(0,ey.J$)(e,!0)}},ly=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Le.C(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Le.C(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Le.C(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5});var _f=(0,fo.I$)("Image",e=>{const t=`${e.componentCls}-preview`,n=(0,ka.TS)(e,{previewCls:t,modalMaskBg:new Le.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[oy(n),ay(n),(0,qb.QA)((0,ka.TS)(n,{componentCls:t})),iy(n)]},ly),sy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{var{previewPrefixCls:t,preview:n}=e,r=sy(e,["previewPrefixCls","preview"]);const{getPrefixCls:l}=o.useContext(Ro.E_),s=l("image",t),c=`${s}-preview`,u=l(),d=(0,li.Z)(s),[f,v,h]=_f(s,d),[b]=(0,Hi.Cn)("ImagePreview",typeof n=="object"?n.zIndex:void 0),C=o.useMemo(()=>{var w;if(n===!1)return n;const P=typeof n=="object"?n:{},E=re()(v,h,d,(w=P.rootClassName)!==null&&w!==void 0?w:"");return Object.assign(Object.assign({},P),{transitionName:(0,ki.m)(u,"zoom",P.transitionName),maskTransitionName:(0,ki.m)(u,"fade",P.maskTransitionName),rootClassName:E,zIndex:b})},[n]);return f(o.createElement(Qf.PreviewGroup,Object.assign({preview:C,previewPrefixCls:c,icons:ev},r)))},tv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{var t;const{prefixCls:n,preview:r,className:l,rootClassName:s,style:c}=e,u=tv(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:d,locale:f=Jf.Z,getPopupContainer:v,image:h}=o.useContext(Ro.E_),b=d("image",n),C=d(),w=f.Image||Jf.Z.Image,P=(0,li.Z)(b),[E,R,M]=_f(b,P),j=re()(s,R,M,P),z=re()(l,R,h==null?void 0:h.className),[H]=(0,Hi.Cn)("ImagePreview",typeof r=="object"?r.zIndex:void 0),k=o.useMemo(()=>{var te;if(r===!1)return r;const le=typeof r=="object"?r:{},{getContainer:oe,closeIcon:ne}=le,ae=tv(le,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:o.createElement("div",{className:`${b}-mask-info`},o.createElement(Gp.Z,null),w==null?void 0:w.preview),icons:ev},ae),{getContainer:oe!=null?oe:v,transitionName:(0,ki.m)(C,"zoom",le.transitionName),maskTransitionName:(0,ki.m)(C,"fade",le.maskTransitionName),zIndex:H,closeIcon:ne!=null?ne:(te=h==null?void 0:h.preview)===null||te===void 0?void 0:te.closeIcon})},[r,w,(t=h==null?void 0:h.preview)===null||t===void 0?void 0:t.closeIcon]),G=Object.assign(Object.assign({},h==null?void 0:h.style),c);return E(o.createElement(Qf,Object.assign({prefixCls:b,preview:k,rootClassName:j,className:z,style:G},u)))};nv.PreviewGroup=cy;var uy=nv,dy=o.forwardRef(function(e,t){var n=e.text,r=e.mode,l=e.render,s=e.renderFormItem,c=e.fieldProps,u=e.placeholder,d=e.width,f=(0,x.YB)(),v=u||f.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165");if(r==="read"){var h=(0,Ve.jsx)(uy,(0,a.Z)({ref:t,width:d||32,src:n},c));return l?l(n,(0,a.Z)({mode:r},c),h):h}if(r==="edit"||r==="update"){var b=(0,Ve.jsx)(Il.Z,(0,a.Z)({ref:t,placeholder:v},c));return s?s(n,(0,a.Z)({mode:r},c),b):b}return null}),rv=dy,fy=function(t,n){var r=t.border,l=r===void 0?!1:r,s=t.children,c=(0,o.useContext)(it.ZP.ConfigContext),u=c.getPrefixCls,d=u("pro-field-index-column"),f=(0,ul.Xj)("IndexColumn",function(){return(0,Y.Z)({},".".concat(d),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),v=f.wrapSSR,h=f.hashId;return v((0,Ve.jsx)("div",{ref:n,className:re()(d,h,(0,Y.Z)((0,Y.Z)({},"".concat(d,"-border"),l),"top-three",s>3)),children:s}))},av=o.forwardRef(fy),ov=i(32818),vy=i(73177),my=["contentRender","numberFormatOptions","numberPopoverRender","open"],gy=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],iv=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),hy={style:"currency",currency:"USD"},py={style:"currency",currency:"RUB"},by={style:"currency",currency:"RSD"},yy={style:"currency",currency:"MYR"},Cy={style:"currency",currency:"BRL"},Sy={default:iv,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":hy,"ru-RU":py,"ms-MY":yy,"sr-RS":by,"pt-BR":Cy},lv=function(t,n,r,l){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",c=n==null?void 0:n.toString().replaceAll(",","");if(typeof c=="string"){var u=Number(c);if(Number.isNaN(u))return c;c=u}if(!c&&c!==0)return"";var d=!1;try{d=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch(E){}try{var f=new Intl.NumberFormat(d&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",(0,a.Z)((0,a.Z)({},Sy[t||"zh-Hans-CN"]||iv),{},{maximumFractionDigits:r},l)),v=f.format(c),h=function(R){var M=R.match(/\d+/);if(M){var j=M[0];return R.slice(R.indexOf(j))}else return R},b=h(v),C=v||"",w=(0,N.Z)(C,1),P=w[0];return["+","-"].includes(P)?"".concat(s||"").concat(P).concat(b):"".concat(s||"").concat(b)}catch(E){return c}},Xu=2,xy=o.forwardRef(function(e,t){var n=e.contentRender,r=e.numberFormatOptions,l=e.numberPopoverRender,s=e.open,c=(0,p.Z)(e,my),u=(0,fe.Z)(function(){return c.defaultValue},{value:c.value,onChange:c.onChange}),d=(0,N.Z)(u,2),f=d[0],v=d[1],h=n==null?void 0:n((0,a.Z)((0,a.Z)({},c),{},{value:f})),b=(0,vy.X)(h?s:!1);return(0,Ve.jsx)(ge.Z,(0,a.Z)((0,a.Z)({placement:"topLeft"},b),{},{trigger:["focus","click"],content:h,getPopupContainer:function(w){return(w==null?void 0:w.parentElement)||document.body},children:(0,Ve.jsx)(ol,(0,a.Z)((0,a.Z)({ref:t},c),{},{value:f,onChange:v}))}))}),wy=function(t,n){var r,l=t.text,s=t.mode,c=t.render,u=t.renderFormItem,d=t.fieldProps,f=t.proFieldKey,v=t.plain,h=t.valueEnum,b=t.placeholder,C=t.locale,w=t.customSymbol,P=w===void 0?d.customSymbol:w,E=t.numberFormatOptions,R=E===void 0?d==null?void 0:d.numberFormatOptions:E,M=t.numberPopoverRender,j=M===void 0?(d==null?void 0:d.numberPopoverRender)||!1:M,z=(0,p.Z)(t,gy),H=(r=d==null?void 0:d.precision)!==null&&r!==void 0?r:Xu,k=(0,x.YB)();C&&ov.Go[C]&&(k=ov.Go[C]);var G=b||k.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),te=(0,o.useMemo)(function(){if(P)return P;if(!(z.moneySymbol===!1||d.moneySymbol===!1))return k.getMessage("moneySymbol","\xA5")},[P,d.moneySymbol,k,z.moneySymbol]),le=(0,o.useCallback)(function(ae){var ve=new RegExp("\\B(?=(\\d{".concat(3+Math.max(H-Xu,0),"})+(?!\\d))"),"g"),Ee=String(ae).split("."),be=(0,N.Z)(Ee,2),Re=be[0],pe=be[1],we=Re.replace(ve,","),Te="";return pe&&H>0&&(Te=".".concat(pe.slice(0,H===void 0?Xu:H))),"".concat(we).concat(Te)},[H]);if(s==="read"){var oe=(0,Ve.jsx)("span",{ref:n,children:lv(C||!1,l,H,R!=null?R:d.numberFormatOptions,te)});return c?c(l,(0,a.Z)({mode:s},d),oe):oe}if(s==="edit"||s==="update"){var ne=(0,Ve.jsx)(xy,(0,a.Z)((0,a.Z)({contentRender:function(ve){if(j===!1||!ve.value)return null;var Ee=lv(te||C||!1,"".concat(le(ve.value)),H,(0,a.Z)((0,a.Z)({},R),{},{notation:"compact"}),te);return typeof j=="function"?j==null?void 0:j(ve,Ee):Ee},ref:n,precision:H,formatter:function(ve){return ve&&te?"".concat(te," ").concat(le(ve)):ve==null?void 0:ve.toString()},parser:function(ve){return te&&ve?ve.replace(new RegExp("\\".concat(te,"\\s?|(,*)"),"g"),""):ve},placeholder:G},(0,nu.Z)(d,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:d.onBlur?function(ae){var ve,Ee=ae.target.value;te&&Ee&&(Ee=Ee.replace(new RegExp("\\".concat(te,"\\s?|(,*)"),"g"),"")),(ve=d.onBlur)===null||ve===void 0||ve.call(d,Ee)}:void 0}));return u?u(l,(0,a.Z)({mode:s},d),ne):ne}return null},sv=o.forwardRef(wy),cv=function(t){return t.map(function(n,r){var l;return o.isValidElement(n)?o.cloneElement(n,(0,a.Z)((0,a.Z)({key:r},n==null?void 0:n.props),{},{style:(0,a.Z)({},n==null||(l=n.props)===null||l===void 0?void 0:l.style)})):(0,Ve.jsx)(o.Fragment,{children:n},r)})},Py=function(t,n){var r=t.text,l=t.mode,s=t.render,c=t.fieldProps,u=(0,o.useContext)(it.ZP.ConfigContext),d=u.getPrefixCls,f=d("pro-field-option"),v=ul.Ow.useToken(),h=v.token;if((0,o.useImperativeHandle)(n,function(){return{}}),s){var b=s(r,(0,a.Z)({mode:l},c),(0,Ve.jsx)(Ve.Fragment,{}));return!b||(b==null?void 0:b.length)<1||!Array.isArray(b)?null:(0,Ve.jsx)("div",{style:{display:"flex",gap:h.margin,alignItems:"center"},className:f,children:cv(b)})}return!r||!Array.isArray(r)?o.isValidElement(r)?r:null:(0,Ve.jsx)("div",{style:{display:"flex",gap:h.margin,alignItems:"center"},className:f,children:cv(r)})},Ey=o.forwardRef(Py),Iy=i(5717),Oy=function(t,n){return o.createElement(ee.Z,(0,_.Z)({},t,{ref:n,icon:Iy.Z}))},Zy=o.forwardRef(Oy),Ry=Zy,My=i(42003),Dy=function(t,n){return o.createElement(ee.Z,(0,_.Z)({},t,{ref:n,icon:My.Z}))},$y=o.forwardRef(Dy),Ny=$y,Ty=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],Fy=function(t,n){var r=t.text,l=t.mode,s=t.render,c=t.renderFormItem,u=t.fieldProps,d=t.proFieldKey,f=(0,p.Z)(t,Ty),v=(0,x.YB)(),h=(0,fe.Z)(function(){return f.open||f.visible||!1},{value:f.open||f.visible,onChange:f.onOpenChange||f.onVisible}),b=(0,N.Z)(h,2),C=b[0],w=b[1];if(l==="read"){var P=(0,Ve.jsx)(Ve.Fragment,{children:"-"});return r&&(P=(0,Ve.jsxs)(Ku.Z,{children:[(0,Ve.jsx)("span",{ref:n,children:C?r:"********"}),(0,Ve.jsx)("a",{onClick:function(){return w(!C)},children:C?(0,Ve.jsx)(Ry,{}):(0,Ve.jsx)(Ny,{})})]})),s?s(r,(0,a.Z)({mode:l},u),P):P}if(l==="edit"||l==="update"){var E=(0,Ve.jsx)(Il.Z.Password,(0,a.Z)({placeholder:v.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ref:n},u));return c?c(r,(0,a.Z)({mode:l},u),E):E}return null},Ay=o.forwardRef(Fy),Ly=i(49323),ou=i.n(Ly);function jy(e){return e===0?null:e>0?"+":"-"}function Vy(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function Hy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}var ky=function(t,n){var r=t.text,l=t.prefix,s=t.precision,c=t.suffix,u=c===void 0?"%":c,d=t.mode,f=t.showColor,v=f===void 0?!1:f,h=t.render,b=t.renderFormItem,C=t.fieldProps,w=t.placeholder,P=t.showSymbol,E=(0,x.YB)(),R=w||E.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),M=(0,o.useMemo)(function(){return typeof r=="string"&&r.includes("%")?ou()(r.replace("%","")):ou()(r)},[r]),j=(0,o.useMemo)(function(){return typeof P=="function"?P==null?void 0:P(r):P},[P,r]);if(d==="read"){var z=v?{color:Vy(M)}:{},H=(0,Ve.jsxs)("span",{style:z,ref:n,children:[l&&(0,Ve.jsx)("span",{children:l}),j&&(0,Ve.jsxs)(o.Fragment,{children:[jy(M)," "]}),Hy(Math.abs(M),s),u&&u]});return h?h(r,(0,a.Z)((0,a.Z)({mode:d},C),{},{prefix:l,precision:s,showSymbol:j,suffix:u}),H):H}if(d==="edit"||d==="update"){var k=(0,Ve.jsx)(ol,(0,a.Z)({ref:n,formatter:function(te){return te&&l?"".concat(l," ").concat(te).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):te},parser:function(te){return te?te.replace(/.*\s|,/g,""):""},placeholder:R},C));return b?b(r,(0,a.Z)({mode:d},C),k):k}return null},uv=o.forwardRef(ky),By=i(38703);function Ky(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var Wy=function(t,n){var r=t.text,l=t.mode,s=t.render,c=t.plain,u=t.renderFormItem,d=t.fieldProps,f=t.placeholder,v=(0,x.YB)(),h=f||v.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),b=(0,o.useMemo)(function(){return typeof r=="string"&&r.includes("%")?ou()(r.replace("%","")):ou()(r)},[r]);if(l==="read"){var C=(0,Ve.jsx)(By.Z,(0,a.Z)({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:b,steps:c?10:void 0,status:Ky(b)},d));return s?s(b,(0,a.Z)({mode:l},d),C):C}if(l==="edit"||l==="update"){var w=(0,Ve.jsx)(ol,(0,a.Z)({ref:n,placeholder:h},d));return u?u(r,(0,a.Z)({mode:l},d),w):w}return null},dv=o.forwardRef(Wy),zy=i(78045),Uy=["radioType","renderFormItem","mode","render"],Yy=function(t,n){var r,l,s=t.radioType,c=t.renderFormItem,u=t.mode,d=t.render,f=(0,p.Z)(t,Uy),v=(0,o.useContext)(it.ZP.ConfigContext),h=v.getPrefixCls,b=h("pro-field-radio"),C=(0,Jl.aK)(f),w=(0,N.Z)(C,3),P=w[0],E=w[1],R=w[2],M=(0,o.useRef)(),j=(r=$s.Z.Item)===null||r===void 0||(l=r.useStatus)===null||l===void 0?void 0:l.call(r);(0,o.useImperativeHandle)(n,function(){return(0,a.Z)((0,a.Z)({},M.current||{}),{},{fetchData:function(Ee){return R(Ee)}})},[R]);var z=(0,ul.Xj)("FieldRadioRadio",function(ve){return(0,Y.Z)((0,Y.Z)((0,Y.Z)({},".".concat(b,"-error"),{span:{color:ve.colorError}}),".".concat(b,"-warning"),{span:{color:ve.colorWarning}}),".".concat(b,"-vertical"),(0,Y.Z)({},"".concat(ve.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),H=z.wrapSSR,k=z.hashId;if(P)return(0,Ve.jsx)(is.Z,{size:"small"});if(u==="read"){var G=E!=null&&E.length?E==null?void 0:E.reduce(function(ve,Ee){var be;return(0,a.Z)((0,a.Z)({},ve),{},(0,Y.Z)({},(be=Ee.value)!==null&&be!==void 0?be:"",Ee.label))},{}):void 0,te=(0,Ve.jsx)(Ve.Fragment,{children:(0,He.MP)(f.text,(0,He.R6)(f.valueEnum||G))});if(d){var le;return(le=d(f.text,(0,a.Z)({mode:u},f.fieldProps),te))!==null&&le!==void 0?le:null}return te}if(u==="edit"){var oe,ne=H((0,Ve.jsx)(zy.ZP.Group,(0,a.Z)((0,a.Z)({ref:M,optionType:s},f.fieldProps),{},{className:re()((oe=f.fieldProps)===null||oe===void 0?void 0:oe.className,(0,Y.Z)((0,Y.Z)({},"".concat(b,"-error"),(j==null?void 0:j.status)==="error"),"".concat(b,"-warning"),(j==null?void 0:j.status)==="warning"),k,"".concat(b,"-").concat(f.fieldProps.layout||"horizontal")),options:E})));if(c){var ae;return(ae=c(f.text,(0,a.Z)((0,a.Z)({mode:u},f.fieldProps),{},{options:E,loading:P}),ne))!==null&&ae!==void 0?ae:null}return ne}return null},fv=o.forwardRef(Yy),Gy=function(t,n){var r=t.text,l=t.mode,s=t.light,c=t.label,u=t.format,d=t.render,f=t.picker,v=t.renderFormItem,h=t.plain,b=t.showTime,C=t.lightLabel,w=t.bordered,P=t.fieldProps,E=(0,x.YB)(),R=Array.isArray(r)?r:[],M=(0,N.Z)(R,2),j=M[0],z=M[1],H=o.useState(!1),k=(0,N.Z)(H,2),G=k[0],te=k[1],le=(0,o.useCallback)(function(Re){if(typeof(P==null?void 0:P.format)=="function"){var pe;return P==null||(pe=P.format)===null||pe===void 0?void 0:pe.call(P,Re)}return(P==null?void 0:P.format)||u||"YYYY-MM-DD"},[P,u]),oe=j?oo()(j).format(le(oo()(j))):"",ne=z?oo()(z).format(le(oo()(z))):"";if(l==="read"){var ae=(0,Ve.jsxs)("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[(0,Ve.jsx)("div",{children:oe||"-"}),(0,Ve.jsx)("div",{children:ne||"-"})]});return d?d(r,(0,a.Z)({mode:l},P),(0,Ve.jsx)("span",{children:ae})):ae}if(l==="edit"||l==="update"){var ve=pc(P.value),Ee;if(s){var be;Ee=(0,Ve.jsx)(Et.Q,{label:c,onClick:function(){var pe;P==null||(pe=P.onOpenChange)===null||pe===void 0||pe.call(P,!0),te(!0)},style:ve?{paddingInlineEnd:0}:void 0,disabled:P.disabled,value:ve||G?(0,Ve.jsx)(Is.RangePicker,(0,a.Z)((0,a.Z)((0,a.Z)({picker:f,showTime:b,format:u},(0,Ne.J)(!1)),P),{},{placeholder:(be=P.placeholder)!==null&&be!==void 0?be:[E.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),E.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],onClear:function(){var pe;te(!1),P==null||(pe=P.onClear)===null||pe===void 0||pe.call(P)},value:ve,onOpenChange:function(pe){var we;ve&&te(pe),P==null||(we=P.onOpenChange)===null||we===void 0||we.call(P,pe)}})):null,allowClear:!1,bordered:w,ref:C,downIcon:ve||G?!1:void 0})}else Ee=(0,Ve.jsx)(Is.RangePicker,(0,a.Z)((0,a.Z)((0,a.Z)({ref:n,format:u,showTime:b,placeholder:[E.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),E.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")]},(0,Ne.J)(h===void 0?!0:!h)),P),{},{value:ve}));return v?v(r,(0,a.Z)({mode:l},P),Ee):Ee}return null},Gs=o.forwardRef(Gy),Xy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Qy=Xy,Jy=function(t,n){return o.createElement(Fr.Z,(0,_.Z)({},t,{ref:n,icon:Qy}))},qy=o.forwardRef(Jy),_y=qy;function eC(e,t){var n=e.disabled,r=e.prefixCls,l=e.character,s=e.characterRender,c=e.index,u=e.count,d=e.value,f=e.allowHalf,v=e.focused,h=e.onHover,b=e.onClick,C=function(H){h(H,c)},w=function(H){b(H,c)},P=function(H){H.keyCode===Oe.Z.ENTER&&b(H,c)},E=c+1,R=new Set([r]);d===0&&c===0&&v?R.add("".concat(r,"-focused")):f&&d+.5>=E&&dc?"true":"false","aria-posinset":c+1,"aria-setsize":u,tabIndex:n?-1:0},o.createElement("div",{className:"".concat(r,"-first")},M),o.createElement("div",{className:"".concat(r,"-second")},M)));return s&&(j=s(j,e)),j}var tC=o.forwardRef(eC);function nC(){var e=o.useRef({});function t(r){return e.current[r]}function n(r){return function(l){e.current[r]=l}}return[t,n]}function rC(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function aC(e){var t,n,r=e.ownerDocument,l=r.body,s=r&&r.documentElement,c=e.getBoundingClientRect();return t=c.left,n=c.top,t-=s.clientLeft||l.clientLeft||0,n-=s.clientTop||l.clientTop||0,{left:t,top:n}}function oC(e){var t=aC(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=rC(r),t.left}var iC=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function lC(e,t){var n,r=e.prefixCls,l=r===void 0?"rc-rate":r,s=e.className,c=e.defaultValue,u=e.value,d=e.count,f=d===void 0?5:d,v=e.allowHalf,h=v===void 0?!1:v,b=e.allowClear,C=b===void 0?!0:b,w=e.character,P=w===void 0?"\u2605":w,E=e.characterRender,R=e.disabled,M=e.direction,j=M===void 0?"ltr":M,z=e.tabIndex,H=z===void 0?0:z,k=e.autoFocus,G=e.onHoverChange,te=e.onChange,le=e.onFocus,oe=e.onBlur,ne=e.onKeyDown,ae=e.onMouseLeave,ve=(0,p.Z)(e,iC),Ee=nC(),be=(0,N.Z)(Ee,2),Re=be[0],pe=be[1],we=o.useRef(null),Te=function(){if(!R){var en;(en=we.current)===null||en===void 0||en.focus()}};o.useImperativeHandle(t,function(){return{focus:Te,blur:function(){if(!R){var en;(en=we.current)===null||en===void 0||en.blur()}}}});var Ue=(0,fe.Z)(c||0,{value:u}),tt=(0,N.Z)(Ue,2),ke=tt[0],Ot=tt[1],$t=(0,fe.Z)(null),zt=(0,N.Z)($t,2),Bt=zt[0],mt=zt[1],At=function(en,wn){var ir=j==="rtl",Kn=en+1;if(h){var Kr=Re(en),lr=oC(Kr),Oa=Kr.clientWidth;(ir&&wn-lr>Oa/2||!ir&&wn-lr0&&!ir||wn===Oe.Z.RIGHT&&Kn>0&&ir?(h?Kn-=.5:Kn-=1,Jt(Kn),en.preventDefault()):wn===Oe.Z.LEFT&&Kn{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,dn.bf)(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},dC=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),fC=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pr.Wf)(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),uC(e)),dC(e))}},vC=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent});var mC=(0,fo.I$)("Rate",e=>{const t=(0,ka.TS)(e,{});return[fC(t)]},vC),gC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const{prefixCls:n,className:r,rootClassName:l,style:s,tooltips:c,character:u=o.createElement(_y,null)}=e,d=gC(e,["prefixCls","className","rootClassName","style","tooltips","character"]),f=(M,j)=>{let{index:z}=j;return c?o.createElement(Wu.Z,{title:c[z]},M):M},{getPrefixCls:v,direction:h,rate:b}=o.useContext(Ro.E_),C=v("rate",n),[w,P,E]=mC(C),R=Object.assign(Object.assign({},b==null?void 0:b.style),s);return w(o.createElement(cC,Object.assign({ref:t,character:u,characterRender:f},d,{className:re()(r,l,P,E,b==null?void 0:b.className),style:R,prefixCls:C,direction:h})))}),hC=function(t,n){var r=t.text,l=t.mode,s=t.render,c=t.renderFormItem,u=t.fieldProps;if(l==="read"){var d=(0,Ve.jsx)(vv,(0,a.Z)((0,a.Z)({allowHalf:!0,disabled:!0,ref:n},u),{},{value:r}));return s?s(r,(0,a.Z)({mode:l},u),(0,Ve.jsx)(Ve.Fragment,{children:d})):d}if(l==="edit"||l==="update"){var f=(0,Ve.jsx)(vv,(0,a.Z)({allowHalf:!0,ref:n},u));return c?c(r,(0,a.Z)({mode:l},u),f):f}return null},pC=o.forwardRef(hC);function bC(e){var t="",n=Math.floor(e/86400),r=Math.floor(e/3600%24),l=Math.floor(e/60%60),s=Math.floor(e%60);return t="".concat(s,"\u79D2"),l>0&&(t="".concat(l,"\u5206\u949F").concat(t)),r>0&&(t="".concat(r,"\u5C0F\u65F6").concat(t)),n>0&&(t="".concat(n,"\u5929").concat(t)),t}var yC=function(t,n){var r=t.text,l=t.mode,s=t.render,c=t.renderFormItem,u=t.fieldProps,d=t.placeholder,f=(0,x.YB)(),v=d||f.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165");if(l==="read"){var h=bC(Number(r)),b=(0,Ve.jsx)("span",{ref:n,children:h});return s?s(r,(0,a.Z)({mode:l},u),b):b}if(l==="edit"||l==="update"){var C=(0,Ve.jsx)(ol,(0,a.Z)({ref:n,min:0,style:{width:"100%"},placeholder:v},u));return c?c(r,(0,a.Z)({mode:l},u),C):C}return null},CC=o.forwardRef(yC),mv=function(t){return t?{left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth}:null},Xs=function(t){return t!==void 0?"".concat(t,"px"):void 0};function SC(e){var t=e.prefixCls,n=e.containerRef,r=e.value,l=e.getValueIndex,s=e.motionName,c=e.onMotionStart,u=e.onMotionEnd,d=e.direction,f=o.useRef(null),v=o.useState(r),h=(0,N.Z)(v,2),b=h[0],C=h[1],w=function(ve){var Ee,be=l(ve),Re=(Ee=n.current)===null||Ee===void 0?void 0:Ee.querySelectorAll(".".concat(t,"-item"))[be];return(Re==null?void 0:Re.offsetParent)&&Re},P=o.useState(null),E=(0,N.Z)(P,2),R=E[0],M=E[1],j=o.useState(null),z=(0,N.Z)(j,2),H=z[0],k=z[1];(0,$e.Z)(function(){if(b!==r){var ae=w(b),ve=w(r),Ee=mv(ae),be=mv(ve);C(r),M(Ee),k(be),ae&&ve?c():u()}},[r]);var G=o.useMemo(function(){return Xs(d==="rtl"?-(R==null?void 0:R.right):R==null?void 0:R.left)},[d,R]),te=o.useMemo(function(){return Xs(d==="rtl"?-(H==null?void 0:H.right):H==null?void 0:H.left)},[d,H]),le=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},oe=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},ne=function(){M(null),k(null),u()};return!R||!H?null:o.createElement(Sl.ZP,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:le,onAppearActive:oe,onVisibleChanged:ne},function(ae,ve){var Ee=ae.className,be=ae.style,Re=(0,a.Z)((0,a.Z)({},be),{},{"--thumb-start-left":G,"--thumb-start-width":Xs(R==null?void 0:R.width),"--thumb-active-left":te,"--thumb-active-width":Xs(H==null?void 0:H.width)}),pe={ref:(0,xt.sQ)(f,ve),style:Re,className:re()("".concat(t,"-thumb"),Ee)};return o.createElement("div",pe)})}var xC=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function wC(e){if(typeof e.title!="undefined")return e.title;if((0,g.Z)(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function PC(e){return e.map(function(t){if((0,g.Z)(t)==="object"&&t!==null){var n=wC(t);return(0,a.Z)((0,a.Z)({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var EC=function(t){var n=t.prefixCls,r=t.className,l=t.disabled,s=t.checked,c=t.label,u=t.title,d=t.value,f=t.onChange,v=function(b){l||f(b,d)};return o.createElement("label",{className:re()(r,(0,Y.Z)({},"".concat(n,"-item-disabled"),l))},o.createElement("input",{className:"".concat(n,"-item-input"),type:"radio",disabled:l,checked:s,onChange:v}),o.createElement("div",{className:"".concat(n,"-item-label"),title:u},c))},IC=o.forwardRef(function(e,t){var n,r,l=e.prefixCls,s=l===void 0?"rc-segmented":l,c=e.direction,u=e.options,d=u===void 0?[]:u,f=e.disabled,v=e.defaultValue,h=e.value,b=e.onChange,C=e.className,w=C===void 0?"":C,P=e.motionName,E=P===void 0?"thumb-motion":P,R=(0,p.Z)(e,xC),M=o.useRef(null),j=o.useMemo(function(){return(0,xt.sQ)(M,t)},[M,t]),z=o.useMemo(function(){return PC(d)},[d]),H=(0,fe.Z)((n=z[0])===null||n===void 0?void 0:n.value,{value:h,defaultValue:v}),k=(0,N.Z)(H,2),G=k[0],te=k[1],le=o.useState(!1),oe=(0,N.Z)(le,2),ne=oe[0],ae=oe[1],ve=function(Re,pe){f||(te(pe),b==null||b(pe))},Ee=(0,Nn.Z)(R,["children"]);return o.createElement("div",(0,_.Z)({},Ee,{className:re()(s,(r={},(0,Y.Z)(r,"".concat(s,"-rtl"),c==="rtl"),(0,Y.Z)(r,"".concat(s,"-disabled"),f),r),w),ref:j}),o.createElement("div",{className:"".concat(s,"-group")},o.createElement(SC,{prefixCls:s,value:G,containerRef:M,motionName:"".concat(s,"-").concat(E),direction:c,getValueIndex:function(Re){return z.findIndex(function(pe){return pe.value===Re})},onMotionStart:function(){ae(!0)},onMotionEnd:function(){ae(!1)}}),z.map(function(be){return o.createElement(EC,(0,_.Z)({},be,{key:be.value,prefixCls:s,className:re()(be.className,"".concat(s,"-item"),(0,Y.Z)({},"".concat(s,"-item-selected"),be.value===G&&!ne)),checked:be.value===G,onChange:ve,disabled:!!f||!!be.disabled}))})))}),OC=IC,ZC=OC;function gv(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function hv(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const RC=Object.assign({overflow:"hidden"},pr.vS),MC=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),l=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,pr.Wf)(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},hv(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:(0,dn.bf)(n),padding:`0 ${(0,dn.bf)(e.segmentedPaddingHorizontal)}`},RC),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},hv(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,dn.bf)(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:(0,dn.bf)(r),padding:`0 ${(0,dn.bf)(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:l,lineHeight:(0,dn.bf)(l),padding:`0 ${(0,dn.bf)(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),gv(`&-disabled ${t}-item`,e)),gv(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},DC=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:l,colorFill:s,lineWidthBold:c,colorBgLayout:u}=e;return{trackPadding:c,trackBg:u,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:l,itemActiveBg:s,itemSelectedColor:n}};var $C=(0,fo.I$)("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=(0,ka.TS)(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[MC(r)]},DC),pv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const{prefixCls:n,className:r,rootClassName:l,block:s,options:c=[],size:u="middle",style:d}=e,f=pv(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:v,direction:h,segmented:b}=o.useContext(Ro.E_),C=v("segmented",n),[w,P,E]=$C(C),R=(0,si.Z)(u),M=o.useMemo(()=>c.map(H=>{if(NC(H)){const{icon:k,label:G}=H,te=pv(H,["icon","label"]);return Object.assign(Object.assign({},te),{label:o.createElement(o.Fragment,null,o.createElement("span",{className:`${C}-item-icon`},k),G&&o.createElement("span",null,G))})}return H}),[c,C]),j=re()(r,l,b==null?void 0:b.className,{[`${C}-block`]:s,[`${C}-sm`]:R==="small",[`${C}-lg`]:R==="large"},P,E),z=Object.assign(Object.assign({},b==null?void 0:b.style),d);return w(o.createElement(ZC,Object.assign({},f,{className:j,style:z,options:M,ref:t,prefixCls:C,direction:h})))}),FC=["mode","render","renderFormItem","fieldProps","emptyText"],AC=function(t,n){var r=t.mode,l=t.render,s=t.renderFormItem,c=t.fieldProps,u=t.emptyText,d=u===void 0?"-":u,f=(0,p.Z)(t,FC),v=(0,o.useRef)(),h=(0,Jl.aK)(t),b=(0,N.Z)(h,3),C=b[0],w=b[1],P=b[2];if((0,o.useImperativeHandle)(n,function(){return(0,a.Z)((0,a.Z)({},v.current||{}),{},{fetchData:function(H){return P(H)}})},[P]),C)return(0,Ve.jsx)(is.Z,{size:"small"});if(r==="read"){var E=w!=null&&w.length?w==null?void 0:w.reduce(function(z,H){var k;return(0,a.Z)((0,a.Z)({},z),{},(0,Y.Z)({},(k=H.value)!==null&&k!==void 0?k:"",H.label))},{}):void 0,R=(0,Ve.jsx)(Ve.Fragment,{children:(0,He.MP)(f.text,(0,He.R6)(f.valueEnum||E))});if(l){var M;return(M=l(f.text,(0,a.Z)({mode:r},c),(0,Ve.jsx)(Ve.Fragment,{children:R})))!==null&&M!==void 0?M:d}return R}if(r==="edit"||r==="update"){var j=(0,Ve.jsx)(TC,(0,a.Z)((0,a.Z)({ref:v},(0,nu.Z)(c||{},["allowClear"])),{},{options:w}));return s?s(f.text,(0,a.Z)((0,a.Z)({mode:r},c),{},{options:w,loading:C}),j):j}return null},LC=o.forwardRef(AC),jC=o.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Os=jC;function Qu(e,t,n){return(e-t)/(n-t)}function Ju(e,t,n,r){var l=Qu(t,n,r),s={};switch(e){case"rtl":s.right="".concat(l*100,"%"),s.transform="translateX(50%)";break;case"btt":s.bottom="".concat(l*100,"%"),s.transform="translateY(50%)";break;case"ttb":s.top="".concat(l*100,"%"),s.transform="translateY(-50%)";break;default:s.left="".concat(l*100,"%"),s.transform="translateX(-50%)";break}return s}function Qs(e,t){return Array.isArray(e)?e[t]:e}var VC=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete"],HC=o.forwardRef(function(e,t){var n,r,l=e.prefixCls,s=e.value,c=e.valueIndex,u=e.onStartMove,d=e.style,f=e.render,v=e.dragging,h=e.onOffsetChange,b=e.onChangeComplete,C=(0,p.Z)(e,VC),w=o.useContext(Os),P=w.min,E=w.max,R=w.direction,M=w.disabled,j=w.keyboard,z=w.range,H=w.tabIndex,k=w.ariaLabelForHandle,G=w.ariaLabelledByForHandle,te=w.ariaValueTextFormatterForHandle,le=w.styles,oe=w.classNames,ne="".concat(l,"-handle"),ae=function(we){M||u(we,c)},ve=function(we){if(!M&&j){var Te=null;switch(we.which||we.keyCode){case Oe.Z.LEFT:Te=R==="ltr"||R==="btt"?-1:1;break;case Oe.Z.RIGHT:Te=R==="ltr"||R==="btt"?1:-1;break;case Oe.Z.UP:Te=R!=="ttb"?1:-1;break;case Oe.Z.DOWN:Te=R!=="ttb"?-1:1;break;case Oe.Z.HOME:Te="min";break;case Oe.Z.END:Te="max";break;case Oe.Z.PAGE_UP:Te=2;break;case Oe.Z.PAGE_DOWN:Te=-2;break}Te!==null&&(we.preventDefault(),h(Te,c))}},Ee=function(we){switch(we.which||we.keyCode){case Oe.Z.LEFT:case Oe.Z.RIGHT:case Oe.Z.UP:case Oe.Z.DOWN:case Oe.Z.HOME:case Oe.Z.END:case Oe.Z.PAGE_UP:case Oe.Z.PAGE_DOWN:b==null||b();break}},be=Ju(R,s,P,E),Re=o.createElement("div",(0,_.Z)({ref:t,className:re()(ne,(n={},(0,Y.Z)(n,"".concat(ne,"-").concat(c+1),z),(0,Y.Z)(n,"".concat(ne,"-dragging"),v),n),oe.handle),style:(0,a.Z)((0,a.Z)((0,a.Z)({},be),d),le.handle),onMouseDown:ae,onTouchStart:ae,onKeyDown:ve,onKeyUp:Ee,tabIndex:M?null:Qs(H,c),role:"slider","aria-valuemin":P,"aria-valuemax":E,"aria-valuenow":s,"aria-disabled":M,"aria-label":Qs(k,c),"aria-labelledby":Qs(G,c),"aria-valuetext":(r=Qs(te,c))===null||r===void 0?void 0:r(s),"aria-orientation":R==="ltr"||R==="rtl"?"horizontal":"vertical"},C));return f&&(Re=f(Re,{index:c,prefixCls:l,value:s,dragging:v})),Re}),kC=HC,BC=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],KC=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,l=e.onStartMove,s=e.onOffsetChange,c=e.values,u=e.handleRender,d=e.draggingIndex,f=(0,p.Z)(e,BC),v=o.useRef({});return o.useImperativeHandle(t,function(){return{focus:function(b){var C;(C=v.current[b])===null||C===void 0||C.focus()}}}),o.createElement(o.Fragment,null,c.map(function(h,b){return o.createElement(kC,(0,_.Z)({ref:function(w){w?v.current[b]=w:delete v.current[b]},dragging:d===b,prefixCls:n,style:Qs(r,b),key:b,value:h,valueIndex:b,onStartMove:l,onOffsetChange:s,render:u},f))}))}),WC=KC;function bv(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function zC(e,t,n,r,l,s,c,u,d){var f=o.useState(null),v=(0,N.Z)(f,2),h=v[0],b=v[1],C=o.useState(-1),w=(0,N.Z)(C,2),P=w[0],E=w[1],R=o.useState(n),M=(0,N.Z)(R,2),j=M[0],z=M[1],H=o.useState(n),k=(0,N.Z)(H,2),G=k[0],te=k[1],le=o.useRef(null),oe=o.useRef(null);o.useEffect(function(){P===-1&&z(n)},[n,P]),o.useEffect(function(){return function(){document.removeEventListener("mousemove",le.current),document.removeEventListener("mouseup",oe.current),document.removeEventListener("touchmove",le.current),document.removeEventListener("touchend",oe.current)}},[]);var ne=function(pe,we){j.some(function(Te,Ue){return Te!==pe[Ue]})&&(we!==void 0&&b(we),z(pe),c(pe))},ae=function(pe,we){if(pe===-1){var Te=G[0],Ue=G[G.length-1],tt=r-Te,ke=l-Ue,Ot=we*(l-r);Ot=Math.max(Ot,tt),Ot=Math.min(Ot,ke);var $t=s(Te+Ot);Ot=$t-Te;var zt=G.map(function(Jt){return Jt+Ot});ne(zt)}else{var Bt=(l-r)*we,mt=(0,Fe.Z)(j);mt[pe]=G[pe];var At=d(mt,Bt,pe,"dist");ne(At.values,At.value)}},ve=o.useRef(ae);ve.current=ae;var Ee=function(pe,we,Te){pe.stopPropagation();var Ue=Te||n,tt=Ue[we];E(we),b(tt),te(Ue);var ke=bv(pe),Ot=ke.pageX,$t=ke.pageY,zt=function(At){At.preventDefault();var Jt=bv(At),Pt=Jt.pageX,gt=Jt.pageY,Rt=Pt-Ot,ht=gt-$t,It=e.current.getBoundingClientRect(),Vt=It.width,Lt=It.height,fn;switch(t){case"btt":fn=-ht/Lt;break;case"ttb":fn=ht/Lt;break;case"rtl":fn=-Rt/Vt;break;default:fn=Rt/Vt}ve.current(we,fn)},Bt=function mt(At){At.preventDefault(),document.removeEventListener("mouseup",mt),document.removeEventListener("mousemove",zt),document.removeEventListener("touchend",mt),document.removeEventListener("touchmove",zt),le.current=null,oe.current=null,E(-1),u()};document.addEventListener("mouseup",Bt),document.addEventListener("mousemove",zt),document.addEventListener("touchend",Bt),document.addEventListener("touchmove",zt),le.current=zt,oe.current=Bt},be=o.useMemo(function(){var Re=(0,Fe.Z)(n).sort(function(we,Te){return we-Te}),pe=(0,Fe.Z)(j).sort(function(we,Te){return we-Te});return Re.every(function(we,Te){return we===pe[Te]})?j:n},[n,j]);return[P,h,be,Ee]}function UC(e,t,n,r,l,s){var c=o.useCallback(function(C){var w=isFinite(C)?C:e;return w=Math.min(t,C),w=Math.max(e,w),w},[e,t]),u=o.useCallback(function(C){if(n!==null){var w=e+Math.round((c(C)-e)/n)*n,P=function(j){return(String(j).split(".")[1]||"").length},E=Math.max(P(n),P(t),P(e)),R=Number(w.toFixed(E));return e<=R&&R<=t?R:null}return null},[n,e,t,c]),d=o.useCallback(function(C){var w=c(C),P=r.map(function(M){return M.value});n!==null&&P.push(u(C)),P.push(e,t);var E=P[0],R=t-e;return P.forEach(function(M){var j=Math.abs(w-M);j<=R&&(E=M,R=j)}),E},[e,t,r,n,c,u]),f=function C(w,P,E){var R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof P=="number"){var M,j=w[E],z=j+P,H=[];r.forEach(function(oe){H.push(oe.value)}),H.push(e,t),H.push(u(j));var k=P>0?1:-1;R==="unit"?H.push(u(j+k*n)):H.push(u(z)),H=H.filter(function(oe){return oe!==null}).filter(function(oe){return P<0?oe<=j:oe>=j}),R==="unit"&&(H=H.filter(function(oe){return oe!==j}));var G=R==="unit"?j:z;M=H[0];var te=Math.abs(M-G);if(H.forEach(function(oe){var ne=Math.abs(oe-G);ne1){var le=(0,Fe.Z)(w);return le[E]=M,C(le,P-k,E,R)}return M}else{if(P==="min")return e;if(P==="max")return t}},v=function(w,P,E){var R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",M=w[E],j=f(w,P,E,R);return{value:j,changed:j!==M}},h=function(w){return s===null&&w===0||typeof s=="number"&&w3&&arguments[3]!==void 0?arguments[3]:"unit",M=w.map(d),j=M[E],z=f(M,P,E,R);if(M[E]=z,l===!1){var H=s||0;E>0&&M[E-1]!==j&&(M[E]=Math.max(M[E],M[E-1]+H)),E0;le-=1)for(var oe=!0;h(M[le]-M[le-1])&&oe;){var ne=v(M,-1,le-1);M[le-1]=ne.value,oe=ne.changed}for(var ae=M.length-1;ae>0;ae-=1)for(var ve=!0;h(M[ae]-M[ae-1])&&ve;){var Ee=v(M,-1,ae-1);M[ae-1]=Ee.value,ve=Ee.changed}for(var be=0;be=0?pe:!1},[pe,br]),bn=o.useMemo(function(){var qa=Object.keys(Jt||{});return qa.map(function(Ha){var na=Jt[Ha],qo={value:Number(Ha)};return na&&(0,g.Z)(na)==="object"&&!o.isValidElement(na)&&("label"in na||"style"in na)?(qo.style=na.style,qo.label=na.label):qo.label=na,qo}).filter(function(Ha){var na=Ha.label;return na||typeof na=="number"}).sort(function(Ha,na){return Ha.value-na.value})},[Jt]),$r=UC(Rn,zn,br,bn,be,ca),Un=(0,N.Z)($r,2),en=Un[0],wn=Un[1],ir=(0,fe.Z)(G,{value:k}),Kn=(0,N.Z)(ir,2),Kr=Kn[0],lr=Kn[1],Oa=o.useMemo(function(){var qa=Kr==null?[]:Array.isArray(Kr)?Kr:[Kr],Ha=(0,N.Z)(qa,1),na=Ha[0],qo=na===void 0?Rn:na,_o=Kr===null?[]:[qo];if(te){if(_o=(0,Fe.Z)(qa),le||Kr===void 0){var Ri=le>=0?le+1:2;for(_o=_o.slice(0,Ri);_o.length=0&&fn.current.focus(qa)}mi(null)},[Pa]);var Hr=o.useMemo(function(){return we&&br===null?!1:we},[we,br]),fa=function(Ha,na){vi(Ha,na),ne==null||ne(Gn(Wn.current))},ta=Zi!==-1;o.useEffect(function(){if(!ta){var qa=Oa.lastIndexOf(oi);fn.current.focus(qa)}},[ta]);var Sa=o.useMemo(function(){return(0,Fe.Z)(Wi).sort(function(qa,Ha){return qa-Ha})},[Wi]),Po=o.useMemo(function(){return te?[Sa[0],Sa[Sa.length-1]]:[Rn,Sa[0]]},[Sa,te,Rn]),Lo=(0,N.Z)(Po,2),ll=Lo[0],Qi=Lo[1];o.useImperativeHandle(t,function(){return{focus:function(){fn.current.focus(0)},blur:function(){var Ha=document,na=Ha.activeElement;hn.current.contains(na)&&(na==null||na.blur())}}}),o.useEffect(function(){C&&fn.current.focus(0)},[]);var wl=o.useMemo(function(){return{min:Rn,max:zn,direction:Ln,disabled:v,keyboard:b,step:br,included:ke,includedStart:ll,includedEnd:Qi,range:te,tabIndex:ht,ariaLabelForHandle:It,ariaLabelledByForHandle:Vt,ariaValueTextFormatterForHandle:Lt,styles:d||{},classNames:u||{}}},[Rn,zn,Ln,v,b,br,ke,ll,Qi,te,ht,It,Vt,Lt,d,u]);return o.createElement(Os.Provider,{value:wl},o.createElement("div",{ref:hn,className:re()(l,s,(n={},(0,Y.Z)(n,"".concat(l,"-disabled"),v),(0,Y.Z)(n,"".concat(l,"-vertical"),Ue),(0,Y.Z)(n,"".concat(l,"-horizontal"),!Ue),(0,Y.Z)(n,"".concat(l,"-with-marks"),bn.length),n)),style:c,onMouseDown:Er},o.createElement("div",{className:re()("".concat(l,"-rail"),u==null?void 0:u.rail),style:(0,a.Z)((0,a.Z)({},Bt),d==null?void 0:d.rail)}),o.createElement(JC,{prefixCls:l,style:$t,values:Sa,startPoint:Ot,onStartMove:Hr?fa:null}),o.createElement(QC,{prefixCls:l,marks:bn,dots:Pt,style:mt,activeStyle:At}),o.createElement(WC,{ref:fn,prefixCls:l,style:zt,values:Wi,draggingIndex:Zi,onStartMove:fa,onOffsetChange:Jo,onFocus:w,onBlur:P,handleRender:gt,onChangeComplete:Za}),o.createElement(GC,{prefixCls:l,marks:bn,onClick:Jr})))}),_C=qC,eS=_C,tS=o.forwardRef((e,t)=>{const{open:n}=e,r=(0,o.useRef)(null),l=(0,o.useRef)(null);function s(){ri.Z.cancel(l.current),l.current=null}function c(){l.current=(0,ri.Z)(()=>{var u;(u=r.current)===null||u===void 0||u.forceAlign(),l.current=null})}return o.useEffect(()=>(n?c():s(),s),[n,e.title]),o.createElement(Wu.Z,Object.assign({ref:(0,xt.sQ)(r,t)},e))});const nS=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:l,marginFull:s,marginPart:c,colorFillContentHover:u,handleColorDisabled:d,calc:f}=e;return{[t]:Object.assign(Object.assign({},(0,pr.Wf)(e)),{position:"relative",height:r,margin:`${(0,dn.bf)(c)} ${(0,dn.bf)(s)}`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${(0,dn.bf)(s)} ${(0,dn.bf)(c)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:u},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${(0,dn.bf)(e.handleLineWidth)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:f(e.handleLineWidth).mul(-1).equal(),insetBlockStart:f(e.handleLineWidth).mul(-1).equal(),width:f(e.handleSize).add(f(e.handleLineWidth).mul(2)).equal(),height:f(e.handleSize).add(f(e.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${(0,dn.bf)(e.handleLineWidth)} ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` + inset-inline-start ${e.motionDurationMid}, + inset-block-start ${e.motionDurationMid}, + width ${e.motionDurationMid}, + height ${e.motionDurationMid}, + box-shadow ${e.motionDurationMid} + `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:f(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),insetBlockStart:f(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),width:f(e.handleSizeHover).add(f(e.handleLineWidthHover).mul(2)).equal(),height:f(e.handleSizeHover).add(f(e.handleLineWidthHover).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${(0,dn.bf)(e.handleLineWidthHover)} ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal(),insetBlockStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal()}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:l,height:l,backgroundColor:e.colorBgElevated,border:`${(0,dn.bf)(e.handleLineWidth)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` + ${t}-dot + `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${(0,dn.bf)(e.handleLineWidth)} ${d}`,insetInlineStart:0,insetBlockStart:0},[` + ${t}-mark-text, + ${t}-dot + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},Cv=(e,t)=>{const{componentCls:n,railSize:r,handleSize:l,dotSize:s,marginFull:c,calc:u}=e,d=t?"paddingBlock":"paddingInline",f=t?"width":"height",v=t?"height":"width",h=t?"insetBlockStart":"insetInlineStart",b=t?"top":"insetInlineStart",C=u(r).mul(3).sub(l).div(2).equal(),w=u(l).sub(r).div(2).equal(),P=t?{borderWidth:`${(0,dn.bf)(w)} 0`,transform:`translateY(${(0,dn.bf)(u(w).mul(-1).equal())})`}:{borderWidth:`0 ${(0,dn.bf)(w)}`,transform:`translateX(${(0,dn.bf)(e.calc(w).mul(-1).equal())})`};return{[d]:r,[v]:u(r).mul(3).equal(),[`${n}-rail`]:{[f]:"100%",[v]:r},[`${n}-track,${n}-tracks`]:{[v]:r},[`${n}-track-draggable`]:Object.assign({},P),[`${n}-handle`]:{[h]:C},[`${n}-mark`]:{insetInlineStart:0,top:0,[b]:u(r).mul(3).add(t?0:c).equal(),[f]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[b]:r,[f]:"100%",[v]:r},[`${n}-dot`]:{position:"absolute",[h]:u(r).sub(s).div(2).equal()}}},rS=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Cv(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},aS=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Cv(e,!1)),{height:"100%"})}},oS=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,l=e.lineWidth+1,s=e.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:l,handleLineWidthHover:s,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,handleColorDisabled:new Le.C(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}};var iS=(0,fo.I$)("Slider",e=>{const t=(0,ka.TS)(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[nS(t),rS(t),aS(t)]},oS),lS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);ltypeof n=="number"?n.toString():""}var cS=o.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:l,rootClassName:s,style:c,disabled:u,tooltipPrefixCls:d,tipFormatter:f,tooltipVisible:v,getTooltipPopupContainer:h,tooltipPlacement:b}=e,C=lS(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:w,slider:P,getPrefixCls:E,getPopupContainer:R}=o.useContext(Ro.E_),M=o.useContext(xi.Z),j=u!=null?u:M,[z,H]=o.useState({}),k=(pe,we)=>{H(Te=>Object.assign(Object.assign({},Te),{[pe]:we}))},G=(pe,we)=>pe||(we?w==="rtl"?"left":"right":"top"),te=E("slider",n),[le,oe,ne]=iS(te),ae=re()(l,P==null?void 0:P.className,s,{[`${te}-rtl`]:w==="rtl"},oe,ne);w==="rtl"&&!C.vertical&&(C.reverse=!C.reverse);const[ve,Ee]=o.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),be=(pe,we)=>{var Te;const{index:Ue,dragging:tt}=we,{tooltip:ke={},vertical:Ot}=e,$t=Object.assign({},ke),{open:zt,placement:Bt,getPopupContainer:mt,prefixCls:At,formatter:Jt}=$t,Pt=sS(Jt,f),gt=Pt?z[Ue]||tt:!1,Rt=(Te=zt!=null?zt:v)!==null&&Te!==void 0?Te:zt===void 0&>,ht=Object.assign(Object.assign({},pe.props),{onMouseEnter:()=>k(Ue,!0),onMouseLeave:()=>k(Ue,!1),onFocus:It=>{var Vt;k(Ue,!0),(Vt=C.onFocus)===null||Vt===void 0||Vt.call(C,It)},onBlur:It=>{var Vt;k(Ue,!1),(Vt=C.onBlur)===null||Vt===void 0||Vt.call(C,It)}});return o.createElement(tS,Object.assign({},$t,{prefixCls:E("tooltip",At!=null?At:d),title:Pt?Pt(we.value):"",open:Rt,placement:G(Bt!=null?Bt:b,Ot),key:Ue,overlayClassName:`${te}-tooltip`,getPopupContainer:mt||h||R}),o.cloneElement(pe,ht))},Re=Object.assign(Object.assign({},P==null?void 0:P.style),c);return le(o.createElement(eS,Object.assign({},C,{step:C.step,range:ve,draggableTrack:Ee,className:ae,style:Re,disabled:j,ref:t,prefixCls:te,handleRender:be})))}),uS=function(t,n){var r=t.text,l=t.mode,s=t.render,c=t.renderFormItem,u=t.fieldProps;if(l==="read"){var d=r;return s?s(r,(0,a.Z)({mode:l},u),(0,Ve.jsx)(Ve.Fragment,{children:d})):(0,Ve.jsx)(Ve.Fragment,{children:d})}if(l==="edit"||l==="update"){var f=(0,Ve.jsx)(cS,(0,a.Z)((0,a.Z)({ref:n},u),{},{style:(0,a.Z)({minWidth:120},u==null?void 0:u.style)}));return c?c(r,(0,a.Z)({mode:l},u),f):f}return null},dS=o.forwardRef(uS),fS=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Sv=o.forwardRef(function(e,t){var n,r=e.prefixCls,l=r===void 0?"rc-switch":r,s=e.className,c=e.checked,u=e.defaultChecked,d=e.disabled,f=e.loadingIcon,v=e.checkedChildren,h=e.unCheckedChildren,b=e.onClick,C=e.onChange,w=e.onKeyDown,P=(0,p.Z)(e,fS),E=(0,fe.Z)(!1,{value:c,defaultValue:u}),R=(0,N.Z)(E,2),M=R[0],j=R[1];function z(te,le){var oe=M;return d||(oe=te,j(oe),C==null||C(oe,le)),oe}function H(te){te.which===Oe.Z.LEFT?z(!1,te):te.which===Oe.Z.RIGHT&&z(!0,te),w==null||w(te)}function k(te){var le=z(!M,te);b==null||b(le,te)}var G=re()(l,s,(n={},(0,Y.Z)(n,"".concat(l,"-checked"),M),(0,Y.Z)(n,"".concat(l,"-disabled"),d),n));return o.createElement("button",(0,_.Z)({},P,{type:"button",role:"switch","aria-checked":M,disabled:d,className:G,ref:t,onKeyDown:H,onClick:k}),f,o.createElement("span",{className:"".concat(l,"-inner")},o.createElement("span",{className:"".concat(l,"-inner-checked")},v),o.createElement("span",{className:"".concat(l,"-inner-unchecked")},h)))});Sv.displayName="Switch";var vS=Sv,mS=i(45353);const gS=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:l,innerMinMarginSM:s,innerMaxMarginSM:c,handleSizeSM:u,calc:d}=e,f=`${t}-inner`,v=(0,dn.bf)(d(u).add(d(r).mul(2)).equal()),h=(0,dn.bf)(d(c).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:l,height:n,lineHeight:(0,dn.bf)(n),[`${t}-inner`]:{paddingInlineStart:c,paddingInlineEnd:s,[`${f}-checked`]:{marginInlineStart:`calc(-100% + ${v} - ${h})`,marginInlineEnd:`calc(100% - ${v} + ${h})`},[`${f}-unchecked`]:{marginTop:d(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:u,height:u},[`${t}-loading-icon`]:{top:d(d(u).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:c,[`${f}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${f}-unchecked`]:{marginInlineStart:`calc(100% - ${v} + ${h})`,marginInlineEnd:`calc(-100% + ${v} - ${h})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${(0,dn.bf)(d(u).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${f}`]:{[`${f}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${f}`]:{[`${f}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},hS=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},pS=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:l,handleSize:s,calc:c}=e,u=`${t}-handle`;return{[t]:{[u]:{position:"absolute",top:n,insetInlineStart:n,width:s,height:s,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:c(s).div(2).equal(),boxShadow:l,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${u}`]:{insetInlineStart:`calc(100% - ${(0,dn.bf)(c(s).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${u}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${u}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},bS=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:l,innerMaxMargin:s,handleSize:c,calc:u}=e,d=`${t}-inner`,f=(0,dn.bf)(u(c).add(u(r).mul(2)).equal()),v=(0,dn.bf)(u(s).mul(2).equal());return{[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:s,paddingInlineEnd:l,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${f} - ${v})`,marginInlineEnd:`calc(100% - ${f} + ${v})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:l,paddingInlineEnd:s,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${f} + ${v})`,marginInlineEnd:`calc(-100% + ${f} - ${v})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(r).mul(2).equal(),marginInlineEnd:u(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(r).mul(-1).mul(2).equal(),marginInlineEnd:u(r).mul(2).equal()}}}}}},yS=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pr.Wf)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${(0,dn.bf)(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),(0,pr.Qy)(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},CS=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:l}=e,s=t*n,c=r/2,u=2,d=s-u*2,f=c-u*2;return{trackHeight:s,trackHeightSM:c,trackMinWidth:d*2+u*4,trackMinWidthSM:f*2+u*2,trackPadding:u,handleBg:l,handleSize:d,handleSizeSM:f,handleShadow:`0 2px 4px 0 ${new Le.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+u+u*2,innerMinMarginSM:f/2,innerMaxMarginSM:f+u+u*2}};var SS=(0,fo.I$)("Switch",e=>{const t=(0,ka.TS)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[yS(t),bS(t),pS(t),hS(t),gS(t)]},CS),xS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const{prefixCls:n,size:r,disabled:l,loading:s,className:c,rootClassName:u,style:d,checked:f,value:v,defaultChecked:h,defaultValue:b,onChange:C}=e,w=xS(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[P,E]=(0,fe.Z)(!1,{value:f!=null?f:v,defaultValue:h!=null?h:b}),{getPrefixCls:R,direction:M,switch:j}=o.useContext(Ro.E_),z=o.useContext(xi.Z),H=(l!=null?l:z)||s,k=R("switch",n),G=o.createElement("div",{className:`${k}-handle`},s&&o.createElement(fs.Z,{className:`${k}-loading-icon`})),[te,le,oe]=SS(k),ne=(0,si.Z)(r),ae=re()(j==null?void 0:j.className,{[`${k}-small`]:ne==="small",[`${k}-loading`]:s,[`${k}-rtl`]:M==="rtl"},c,u,le,oe),ve=Object.assign(Object.assign({},j==null?void 0:j.style),d),Ee=function(){E(arguments.length<=0?void 0:arguments[0]),C==null||C.apply(void 0,arguments)};return te(o.createElement(mS.Z,{component:"Switch"},o.createElement(vS,Object.assign({},w,{checked:P,onChange:Ee,prefixCls:k,className:ae,style:ve,disabled:H,ref:t,loadingIcon:G}))))});xv.__ANT_SWITCH=!0;var wS=xv,PS=function(t,n){var r=t.text,l=t.mode,s=t.render,c=t.light,u=t.label,d=t.renderFormItem,f=t.fieldProps,v=(0,x.YB)(),h=(0,o.useMemo)(function(){var E,R;return r==null||"".concat(r).length<1?"-":r?(E=f==null?void 0:f.checkedChildren)!==null&&E!==void 0?E:v.getMessage("switch.open","\u6253\u5F00"):(R=f==null?void 0:f.unCheckedChildren)!==null&&R!==void 0?R:v.getMessage("switch.close","\u5173\u95ED")},[f==null?void 0:f.checkedChildren,f==null?void 0:f.unCheckedChildren,r]);if(l==="read")return s?s(r,(0,a.Z)({mode:l},f),(0,Ve.jsx)(Ve.Fragment,{children:h})):h!=null?h:"-";if(l==="edit"||l==="update"){var b,C=(0,Ve.jsx)(wS,(0,a.Z)((0,a.Z)({ref:n,size:c?"small":void 0},(0,nu.Z)(f,["value"])),{},{checked:(b=f==null?void 0:f.checked)!==null&&b!==void 0?b:f==null?void 0:f.value}));if(c){var w=f.disabled,P=f.bordered;return(0,Ve.jsx)(Et.Q,{label:u,disabled:w,bordered:P,downIcon:!1,value:(0,Ve.jsx)("div",{style:{paddingLeft:8},children:C}),allowClear:!1})}return d?d(r,(0,a.Z)({mode:l},f),C):C}return null},ES=o.forwardRef(PS),IS=function(t,n){var r=t.text,l=t.mode,s=t.render,c=t.renderFormItem,u=t.fieldProps,d=t.emptyText,f=d===void 0?"-":d,v=u||{},h=v.autoFocus,b=v.prefix,C=b===void 0?"":b,w=v.suffix,P=w===void 0?"":w,E=(0,x.YB)(),R=(0,o.useRef)();if((0,o.useImperativeHandle)(n,function(){return R.current},[]),(0,o.useEffect)(function(){if(h){var k;(k=R.current)===null||k===void 0||k.focus()}},[h]),l==="read"){var M=(0,Ve.jsxs)(Ve.Fragment,{children:[C,r!=null?r:f,P]});if(s){var j;return(j=s(r,(0,a.Z)({mode:l},u),M))!==null&&j!==void 0?j:f}return M}if(l==="edit"||l==="update"){var z=E.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),H=(0,Ve.jsx)(Il.Z,(0,a.Z)({ref:R,placeholder:z,allowClear:!0},u));return c?c(r,(0,a.Z)({mode:l},u),H):H}return null},OS=o.forwardRef(IS),ZS=function(t,n){var r=t.text,l=(0,o.useContext)(it.ZP.ConfigContext),s=l.getPrefixCls,c=s("pro-field-readonly"),u="".concat(c,"-textarea"),d=(0,ul.Xj)("TextArea",function(){return(0,Y.Z)({},".".concat(u),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),f=d.wrapSSR,v=d.hashId;return f((0,Ve.jsx)("span",{ref:n,className:re()(v,c,u),style:{},children:r!=null?r:"-"}))},RS=o.forwardRef(ZS),MS=function(t,n){var r=t.text,l=t.mode,s=t.render,c=t.renderFormItem,u=t.fieldProps,d=(0,x.YB)();if(l==="read"){var f=(0,Ve.jsx)(RS,(0,a.Z)((0,a.Z)({},t),{},{ref:n}));return s?s(r,(0,a.Z)({mode:l},u),f):f}if(l==="edit"||l==="update"){var v=(0,Ve.jsx)(Il.Z.TextArea,(0,a.Z)({ref:n,rows:3,onKeyPress:function(b){b.key==="Enter"&&b.stopPropagation()},placeholder:d.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")},u));return c?c(r,(0,a.Z)({mode:l},u),v):v}return null},DS=o.forwardRef(MS),$S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);lo.createElement(TS,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Ec=o.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r}=e,l=$S(e,["addon","renderExtraFooter"]);const s=o.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return o.createElement(NS,Object.assign({},l,{mode:void 0,ref:t,renderExtraFooter:s}))}),wv=(0,Go.Z)(Ec,"picker");Ec._InternalPanelDoNotUseOrYouWillBeFired=wv,Ec.RangePicker=FS,Ec._InternalPanelDoNotUseOrYouWillBeFired=wv;var qu=Ec,AS=function(t,n){var r=t.text,l=t.mode,s=t.light,c=t.label,u=t.format,d=t.render,f=t.renderFormItem,v=t.plain,h=t.fieldProps,b=t.lightLabel,C=(0,o.useState)(!1),w=(0,N.Z)(C,2),P=w[0],E=w[1],R=(0,x.YB)(),M=(h==null?void 0:h.format)||u||"HH:mm:ss",j=oo().isDayjs(r)||typeof r=="number";if(l==="read"){var z=(0,Ve.jsx)("span",{ref:n,children:r?oo()(r,j?void 0:M).format(M):"-"});return d?d(r,(0,a.Z)({mode:l},h),(0,Ve.jsx)("span",{children:z})):z}if(l==="edit"||l==="update"){var H,k=h.disabled,G=h.value,te=pc(G,M);if(s){var le;H=(0,Ve.jsx)(Et.Q,{onClick:function(){var ne;h==null||(ne=h.onOpenChange)===null||ne===void 0||ne.call(h,!0),E(!0)},style:te?{paddingInlineEnd:0}:void 0,label:c,disabled:k,value:te||P?(0,Ve.jsx)(qu,(0,a.Z)((0,a.Z)((0,a.Z)({},(0,Ne.J)(!1)),{},{format:u,ref:n},h),{},{placeholder:(le=h.placeholder)!==null&&le!==void 0?le:R.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),value:te,onOpenChange:function(ne){var ae;E(ne),h==null||(ae=h.onOpenChange)===null||ae===void 0||ae.call(h,ne)},open:P})):null,downIcon:te||P?!1:void 0,allowClear:!1,ref:b})}else H=(0,Ve.jsx)(Is.TimePicker,(0,a.Z)((0,a.Z)({ref:n,format:u,bordered:v===void 0?!0:!v},h),{},{value:te}));return f?f(r,(0,a.Z)({mode:l},h),H):H}return null},LS=function(t,n){var r=t.text,l=t.light,s=t.label,c=t.mode,u=t.lightLabel,d=t.format,f=t.render,v=t.renderFormItem,h=t.plain,b=t.fieldProps,C=(0,x.YB)(),w=(0,o.useState)(!1),P=(0,N.Z)(w,2),E=P[0],R=P[1],M=(b==null?void 0:b.format)||d||"HH:mm:ss",j=Array.isArray(r)?r:[],z=(0,N.Z)(j,2),H=z[0],k=z[1],G=oo().isDayjs(H)||typeof H=="number",te=oo().isDayjs(k)||typeof k=="number",le=H?oo()(H,G?void 0:M).format(M):"",oe=k?oo()(k,te?void 0:M).format(M):"";if(c==="read"){var ne=(0,Ve.jsxs)("div",{ref:n,children:[(0,Ve.jsx)("div",{children:le||"-"}),(0,Ve.jsx)("div",{children:oe||"-"})]});return f?f(r,(0,a.Z)({mode:c},b),(0,Ve.jsx)("span",{children:ne})):ne}if(c==="edit"||c==="update"){var ae=pc(b.value,M),ve;if(l){var Ee=b.disabled,be=b.placeholder,Re=be===void 0?[C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")]:be;ve=(0,Ve.jsx)(Et.Q,{onClick:function(){var we;b==null||(we=b.onOpenChange)===null||we===void 0||we.call(b,!0),R(!0)},style:ae?{paddingInlineEnd:0}:void 0,label:s,disabled:Ee,placeholder:Re,value:ae||E?(0,Ve.jsx)(qu.RangePicker,(0,a.Z)((0,a.Z)((0,a.Z)({},(0,Ne.J)(!1)),{},{format:d,ref:n},b),{},{placeholder:Re,value:ae,onOpenChange:function(we){var Te;R(we),b==null||(Te=b.onOpenChange)===null||Te===void 0||Te.call(b,we)},open:E})):null,downIcon:ae||E?!1:void 0,allowClear:!1,ref:u})}else ve=(0,Ve.jsx)(qu.RangePicker,(0,a.Z)((0,a.Z)((0,a.Z)({ref:n,format:d},(0,Ne.J)(h===void 0?!0:!h)),b),{},{value:ae}));return v?v(r,(0,a.Z)({mode:c},b),ve):ve}return null},jS=o.forwardRef(LS),VS=o.forwardRef(AS),HS=i(64631),kS=["radioType","renderFormItem","mode","light","label","render"],BS=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],KS=function(t,n){var r=t.radioType,l=t.renderFormItem,s=t.mode,c=t.light,u=t.label,d=t.render,f=(0,p.Z)(t,kS),v=(0,o.useContext)(it.ZP.ConfigContext),h=v.getPrefixCls,b=h("pro-field-tree-select"),C=(0,o.useRef)(null),w=(0,o.useState)(!1),P=(0,N.Z)(w,2),E=P[0],R=P[1],M=f.fieldProps,j=M.onSearch,z=M.onClear,H=M.onChange,k=M.onBlur,G=M.showSearch,te=M.autoClearSearchValue,le=M.treeData,oe=M.fetchDataOnSearch,ne=M.searchValue,ae=(0,p.Z)(M,BS),ve=(0,x.YB)(),Ee=(0,Jl.aK)((0,a.Z)((0,a.Z)({},f),{},{defaultKeyWords:ne})),be=(0,N.Z)(Ee,3),Re=be[0],pe=be[1],we=be[2],Te=(0,fe.Z)(void 0,{onChange:j,value:ne}),Ue=(0,N.Z)(Te,2),tt=Ue[0],ke=Ue[1];(0,o.useImperativeHandle)(n,function(){return(0,a.Z)((0,a.Z)({},C.current||{}),{},{fetchData:function(Lt){return we(Lt)}})});var Ot=(0,o.useMemo)(function(){if(s==="read"){var Vt=(ae==null?void 0:ae.fieldNames)||{},Lt=Vt.value,fn=Lt===void 0?"value":Lt,hn=Vt.label,Ln=hn===void 0?"label":hn,Rn=Vt.children,zn=Rn===void 0?"children":Rn,br=new Map,ca=function bn($r){if(!($r!=null&&$r.length))return br;for(var Un=$r.length,en=0;en0&&Qt!=="read"?(0,Gt.jsx)("div",{className:"".concat(Pe,"-action ").concat(Je).trim(),children:lo}):null,jr={name:Qe.name,field:qt,index:En,record:V==null||(_e=V.getFieldValue)===null||_e===void 0?void 0:_e.call(V,[ft.listName,me,qt.name].filter(function(yn){return yn!==void 0}).flat(1)),fields:Xt,operation:We,meta:Ut},hr=(0,Et.zx)(),Fn=hr.grid,qn=(kt==null?void 0:kt(zr,jr))||zr,sr=(ye==null?void 0:ye({listDom:(0,Gt.jsx)("div",{className:"".concat(Pe,"-container ").concat(de||""," ").concat(Je||"").trim(),style:(0,p.Z)({width:Fn?"100%":void 0},F),children:qn}),action:kr},jr))||(0,Gt.jsxs)("div",{className:"".concat(Pe,"-item ").concat(Je,` + `).concat(Ae===void 0&&"".concat(Pe,"-item-default"),` + `).concat(Ae?"".concat(Pe,"-item-show-label"):""),style:{display:"flex",alignItems:"flex-end"},children:[(0,Gt.jsx)("div",{className:"".concat(Pe,"-container ").concat(de||""," ").concat(Je).trim(),style:(0,p.Z)({width:Fn?"100%":void 0},F),children:qn}),kr]});return(0,Gt.jsx)(ut.Provider,{value:(0,p.Z)((0,p.Z)({},qt),{},{listName:[ft.listName,me,qt.name].filter(function(yn){return yn!==void 0}).flat(1)}),children:sr})},Pn=function(J){var _e=(0,Z.YB)(),et=J.creatorButtonProps,pt=J.prefixCls,lt=J.children,kt=J.creatorRecord,ye=J.action,Ae=J.fields,Pe=J.actionGuard,at=J.max,We=J.fieldExtraRender,st=J.meta,Wt=J.containerClassName,Dt=J.containerStyle,Xt=J.onAfterAdd,Ut=J.onAfterRemove,qt=(0,m.useContext)(Z.L_),En=qt.hashId,V=(0,m.useRef)(new Map),me=(0,m.useState)(!1),de=(0,Ie.Z)(me,2),F=de[0],ie=de[1],De=(0,m.useMemo)(function(){return Ae.map(function(dt){var Nt,Qt;if(!((Nt=V.current)!==null&&Nt!==void 0&&Nt.has(dt.key.toString()))){var ln;(ln=V.current)===null||ln===void 0||ln.set(dt.key.toString(),(0,$e.x)())}var an=(Qt=V.current)===null||Qt===void 0?void 0:Qt.get(dt.key.toString());return(0,p.Z)((0,p.Z)({},dt),{},{uuid:an})})},[Ae]),Ge=(0,m.useMemo)(function(){var dt=(0,p.Z)({},ye),Nt=De.length;return Pe!=null&&Pe.beforeAddRow?dt.add=(0,Fe.Z)((0,it.Z)().mark(function Qt(){var ln,an,In,Jn,on,vn=arguments;return(0,it.Z)().wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:for(ln=vn.length,an=new Array(ln),In=0;In0&&arguments[0]!==void 0?arguments[0]:{},He=Xe.children,Ne=Xe.Wrapper,Et=(0,g.Z)(Xe,$);return Z?(0,y.jsx)(x.Z,(0,p.Z)((0,p.Z)((0,p.Z)({gutter:8},ee),Et),{},{children:He})):Ne?(0,y.jsx)(Ne,{children:He}):He},ColWrapper:function(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},He=Xe.children,Ne=Xe.Wrapper,Et=(0,g.Z)(Xe,W),it=(0,I.useMemo)(function(){var Fe=(0,p.Z)((0,p.Z)({},Me),Et);return typeof Fe.span=="undefined"&&typeof Fe.xs=="undefined"&&(Fe.xs=24),Fe},[Et]);return Z?(0,y.jsx)(m.Z,(0,p.Z)((0,p.Z)({},it),{},{children:He})):Ne?(0,y.jsx)(Ne,{children:He}):He}}},o=function(_){var Z=(0,I.useMemo)(function(){return(0,a.Z)(_)==="object"?_:{grid:_}},[_]),ee=(0,I.useContext)(T),Me=ee.grid,je=ee.colProps;return(0,I.useMemo)(function(){return X({grid:!!(Me||Z.grid),rowProps:Z==null?void 0:Z.rowProps,colProps:(Z==null?void 0:Z.colProps)||je,Wrapper:Z==null?void 0:Z.Wrapper})},[Z==null?void 0:Z.Wrapper,Z.grid,Me,JSON.stringify([je,Z==null?void 0:Z.colProps,Z==null?void 0:Z.rowProps])])}},34994:function(D,L,i){"use strict";i.d(L,{A:function(){return K}});var a=i(1413),p=i(8232),g=i(67294),x=i(89671),m=i(9105),I=i(4942),y=i(97685),$=i(87462),W=i(50756),T=i(46976),X=function(Be,Oe){return g.createElement(T.Z,(0,$.Z)({},Be,{ref:Oe,icon:W.Z}))},o=g.forwardRef(X),N=o,_=i(21770),Z=i(48874),ee=i(28459),Me=i(42075),je=i(93967),Xe=i.n(je),He=i(66758),Ne=i(2514),Et=i(98082),it=function(Be){return(0,I.Z)({},Be.componentCls,{"&-title":{marginBlockEnd:Be.marginXL,fontWeight:"bold"},"&-container":(0,I.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(Be.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)({display:"block",width:"100%"},"".concat(Be.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(Be.componentCls,"-container"),{paddingInlineStart:16}),"".concat(Be.antCls,"-space-item,").concat(Be.antCls,"-form-item"),{width:"100%"}),"".concat(Be.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function Fe($e){return(0,Et.Xj)("ProFormGroup",function(Be){var Oe=(0,a.Z)((0,a.Z)({},Be),{},{componentCls:".".concat($e)});return[it(Oe)]})}var Ie=i(85893),re=g.forwardRef(function($e,Be){var Oe=g.useContext(He.Z),xt=Oe.groupProps,yt=(0,a.Z)((0,a.Z)({},xt),$e),mn=yt.children,Kt=yt.collapsible,Mn=yt.defaultCollapsed,jt=yt.style,Gt=yt.labelLayout,Tn=yt.title,vt=Tn===void 0?$e.label:Tn,Tt=yt.tooltip,Pn=yt.align,Mt=Pn===void 0?"start":Pn,Zn=yt.direction,rr=yt.size,Xn=rr===void 0?32:rr,gr=yt.titleStyle,ut=yt.titleRender,un=yt.spaceProps,ze=yt.extra,J=yt.autoFocus,_e=(0,_.Z)(function(){return Mn||!1},{value:$e.collapsed,onChange:$e.onCollapse}),et=(0,y.Z)(_e,2),pt=et[0],lt=et[1],kt=(0,g.useContext)(ee.ZP.ConfigContext),ye=kt.getPrefixCls,Ae=(0,Ne.zx)($e),Pe=Ae.ColWrapper,at=Ae.RowWrapper,We=ye("pro-form-group"),st=Fe(We),Wt=st.wrapSSR,Dt=st.hashId,Xt=Kt&&(0,Ie.jsx)(N,{style:{marginInlineEnd:8},rotate:pt?void 0:90}),Ut=(0,Ie.jsx)(Z.G,{label:Xt?(0,Ie.jsxs)("div",{children:[Xt,vt]}):vt,tooltip:Tt}),qt=(0,g.useCallback)(function(ie){var De=ie.children;return(0,Ie.jsx)(Me.Z,(0,a.Z)((0,a.Z)({},un),{},{className:Xe()("".concat(We,"-container ").concat(Dt),un==null?void 0:un.className),size:Xn,align:Mt,direction:Zn,style:(0,a.Z)({rowGap:0},un==null?void 0:un.style),children:De}))},[Mt,We,Zn,Dt,Xn,un]),En=ut?ut(Ut,$e):Ut,V=(0,g.useMemo)(function(){var ie=[],De=g.Children.toArray(mn).map(function(Ge,Qe){var ct;return g.isValidElement(Ge)&&Ge!==null&&Ge!==void 0&&(ct=Ge.props)!==null&&ct!==void 0&&ct.hidden?(ie.push(Ge),null):Qe===0&&g.isValidElement(Ge)&&J?g.cloneElement(Ge,(0,a.Z)((0,a.Z)({},Ge.props),{},{autoFocus:J})):Ge});return[(0,Ie.jsx)(at,{Wrapper:qt,children:De},"children"),ie.length>0?(0,Ie.jsx)("div",{style:{display:"none"},children:ie}):null]},[mn,at,qt,J]),me=(0,y.Z)(V,2),de=me[0],F=me[1];return Wt((0,Ie.jsx)(Pe,{children:(0,Ie.jsxs)("div",{className:Xe()(We,Dt,(0,I.Z)({},"".concat(We,"-twoLine"),Gt==="twoLine")),style:jt,ref:Be,children:[F,(vt||Tt||ze)&&(0,Ie.jsx)("div",{className:"".concat(We,"-title ").concat(Dt).trim(),style:gr,onClick:function(){lt(!pt)},children:ze?(0,Ie.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[En,(0,Ie.jsx)("span",{onClick:function(De){return De.stopPropagation()},children:ze})]}):En}),(0,Ie.jsx)("div",{style:{display:Kt&&pt?"none":void 0},children:de})]})}))});re.displayName="ProForm-Group";var Y=re,fe=i(62370);function K($e){return(0,Ie.jsx)(x.I,(0,a.Z)({layout:"vertical",contentRender:function(Oe,xt){return(0,Ie.jsxs)(Ie.Fragment,{children:[Oe,xt]})}},$e))}K.Group=Y,K.useForm=p.Z.useForm,K.Item=fe.Z,K.useWatch=p.Z.useWatch,K.ErrorList=p.Z.ErrorList,K.Provider=p.Z.Provider,K.useFormInstance=p.Z.useFormInstance,K.EditOrReadOnlyContext=m.A},46976:function(D,L,i){"use strict";i.d(L,{Z:function(){return En}});var a=i(87462),p=i(97685),g=i(4942),x=i(91),m=i(67294),I=i(93967),y=i.n(I),$=i(86500),W=i(1350),T=2,X=.16,o=.05,N=.05,_=.15,Z=5,ee=4,Me=[{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 je(V){var me=V.r,de=V.g,F=V.b,ie=(0,$.py)(me,de,F);return{h:ie.h*360,s:ie.s,v:ie.v}}function Xe(V){var me=V.r,de=V.g,F=V.b;return"#".concat((0,$.vq)(me,de,F,!1))}function He(V,me,de){var F=de/100,ie={r:(me.r-V.r)*F+V.r,g:(me.g-V.g)*F+V.g,b:(me.b-V.b)*F+V.b};return ie}function Ne(V,me,de){var F;return Math.round(V.h)>=60&&Math.round(V.h)<=240?F=de?Math.round(V.h)-T*me:Math.round(V.h)+T*me:F=de?Math.round(V.h)+T*me:Math.round(V.h)-T*me,F<0?F+=360:F>=360&&(F-=360),F}function Et(V,me,de){if(V.h===0&&V.s===0)return V.s;var F;return de?F=V.s-X*me:me===ee?F=V.s+X:F=V.s+o*me,F>1&&(F=1),de&&me===Z&&F>.1&&(F=.1),F<.06&&(F=.06),Number(F.toFixed(2))}function it(V,me,de){var F;return de?F=V.v+N*me:F=V.v-_*me,F>1&&(F=1),Number(F.toFixed(2))}function Fe(V){for(var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=[],F=(0,W.uA)(V),ie=Z;ie>0;ie-=1){var De=je(F),Ge=Xe((0,W.uA)({h:Ne(De,ie,!0),s:Et(De,ie,!0),v:it(De,ie,!0)}));de.push(Ge)}de.push(Xe(F));for(var Qe=1;Qe<=ee;Qe+=1){var ct=je(F),Je=Xe((0,W.uA)({h:Ne(ct,Qe),s:Et(ct,Qe),v:it(ct,Qe)}));de.push(Je)}return me.theme==="dark"?Me.map(function(ft){var dt=ft.index,Nt=ft.opacity,Qt=Xe(He((0,W.uA)(me.backgroundColor||"#141414"),(0,W.uA)(de[dt]),Nt*100));return Qt}):de}var Ie={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"},re={},Y={};Object.keys(Ie).forEach(function(V){re[V]=Fe(Ie[V]),re[V].primary=re[V][5],Y[V]=Fe(Ie[V],{theme:"dark",backgroundColor:"#141414"}),Y[V].primary=Y[V][5]});var fe=re.red,K=re.volcano,$e=re.gold,Be=re.orange,Oe=re.yellow,xt=re.lime,yt=re.green,mn=re.cyan,Kt=re.blue,Mn=re.geekblue,jt=re.purple,Gt=re.magenta,Tn=re.grey,vt=re.grey,Tt=(0,m.createContext)({}),Pn=Tt,Mt=i(1413),Zn=i(71002),rr=i(44958),Xn=i(27571),gr=i(80334);function ut(V){return V.replace(/-(.)/g,function(me,de){return de.toUpperCase()})}function un(V,me){(0,gr.ZP)(V,"[@ant-design/icons] ".concat(me))}function ze(V){return(0,Zn.Z)(V)==="object"&&typeof V.name=="string"&&typeof V.theme=="string"&&((0,Zn.Z)(V.icon)==="object"||typeof V.icon=="function")}function J(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(V).reduce(function(me,de){var F=V[de];switch(de){case"class":me.className=F,delete me.class;break;default:delete me[de],me[ut(de)]=F}return me},{})}function _e(V,me,de){return de?m.createElement(V.tag,(0,Mt.Z)((0,Mt.Z)({key:me},J(V.attrs)),de),(V.children||[]).map(function(F,ie){return _e(F,"".concat(me,"-").concat(V.tag,"-").concat(ie))})):m.createElement(V.tag,(0,Mt.Z)({key:me},J(V.attrs)),(V.children||[]).map(function(F,ie){return _e(F,"".concat(me,"-").concat(V.tag,"-").concat(ie))}))}function et(V){return Fe(V)[0]}function pt(V){return V?Array.isArray(V)?V:[V]:[]}var lt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},kt=` +.anticon { + display: inline-flex; + alignItems: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,ye=function(me){var de=(0,m.useContext)(Pn),F=de.csp,ie=de.prefixCls,De=kt;ie&&(De=De.replace(/anticon/g,ie)),(0,m.useEffect)(function(){var Ge=me.current,Qe=(0,Xn.A)(Ge);(0,rr.hq)(De,"@ant-design-icons",{prepend:!0,csp:F,attachTo:Qe})},[])},Ae=["icon","className","onClick","style","primaryColor","secondaryColor"],Pe={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function at(V){var me=V.primaryColor,de=V.secondaryColor;Pe.primaryColor=me,Pe.secondaryColor=de||et(me),Pe.calculated=!!de}function We(){return(0,Mt.Z)({},Pe)}var st=function(me){var de=me.icon,F=me.className,ie=me.onClick,De=me.style,Ge=me.primaryColor,Qe=me.secondaryColor,ct=(0,x.Z)(me,Ae),Je=m.useRef(),ft=Pe;if(Ge&&(ft={primaryColor:Ge,secondaryColor:Qe||et(Ge)}),ye(Je),un(ze(de),"icon should be icon definiton, but got ".concat(de)),!ze(de))return null;var dt=de;return dt&&typeof dt.icon=="function"&&(dt=(0,Mt.Z)((0,Mt.Z)({},dt),{},{icon:dt.icon(ft.primaryColor,ft.secondaryColor)})),_e(dt.icon,"svg-".concat(dt.name),(0,Mt.Z)((0,Mt.Z)({className:F,onClick:ie,style:De,"data-icon":dt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},ct),{},{ref:Je}))};st.displayName="IconReact",st.getTwoToneColors=We,st.setTwoToneColors=at;var Wt=st;function Dt(V){var me=pt(V),de=(0,p.Z)(me,2),F=de[0],ie=de[1];return Wt.setTwoToneColors({primaryColor:F,secondaryColor:ie})}function Xt(){var V=Wt.getTwoToneColors();return V.calculated?[V.primaryColor,V.secondaryColor]:V.primaryColor}var Ut=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Dt(Kt.primary);var qt=m.forwardRef(function(V,me){var de=V.className,F=V.icon,ie=V.spin,De=V.rotate,Ge=V.tabIndex,Qe=V.onClick,ct=V.twoToneColor,Je=(0,x.Z)(V,Ut),ft=m.useContext(Pn),dt=ft.prefixCls,Nt=dt===void 0?"anticon":dt,Qt=ft.rootClassName,ln=y()(Qt,Nt,(0,g.Z)((0,g.Z)({},"".concat(Nt,"-").concat(F.name),!!F.name),"".concat(Nt,"-spin"),!!ie||F.name==="loading"),de),an=Ge;an===void 0&&Qe&&(an=-1);var In=De?{msTransform:"rotate(".concat(De,"deg)"),transform:"rotate(".concat(De,"deg)")}:void 0,Jn=pt(ct),on=(0,p.Z)(Jn,2),vn=on[0],Nn=on[1];return m.createElement("span",(0,a.Z)({role:"img","aria-label":F.name},Je,{ref:me,tabIndex:an,onClick:Qe,className:ln}),m.createElement(Wt,{icon:F,primaryColor:vn,secondaryColor:Nn,style:In}))});qt.displayName="AntdIcon",qt.getTwoToneColor=Xt,qt.setTwoToneColor=Dt;var En=qt},73177:function(D,L,i){"use strict";i.d(L,{X:function(){return I},b:function(){return m}});var a=i(67159),p=i(51812),g=i(1977),x=i(34155),m=function(){var $;return typeof x=="undefined"?a.Z:(($=x)===null||x===void 0||(x={NODE_ENV:"production",PUBLIC_PATH:"/admin/"})===null||x===void 0?void 0:x.ANTD_VERSION)||a.Z},I=function($,W){var T=(0,g.n)(m(),"4.23.0")>-1?{open:$,onOpenChange:W}:{visible:$,onVisibleChange:W};return(0,p.Y)(T)}},31413:function(D,L,i){"use strict";i.d(L,{J:function(){return g}});var a=i(67159),p=i(1977),g=function(m){return m===void 0?{}:(0,p.n)(a.Z,"5.13.0")<=0?{bordered:m}:{variant:m?void 0:"borderless"}}},98912:function(D,L,i){"use strict";i.d(L,{Q:function(){return it}});var a=i(4942),p=i(87462),g=i(67294),x=i(1085),m=i(62914),I=function(Ie,re){return g.createElement(m.Z,(0,p.Z)({},Ie,{ref:re,icon:x.Z}))},y=g.forwardRef(I),$=y,W=i(66023),T=function(Ie,re){return g.createElement(m.Z,(0,p.Z)({},Ie,{ref:re,icon:W.Z}))},X=g.forwardRef(T),o=X,N=i(10915),_=i(28459),Z=i(93967),ee=i.n(Z),Me=i(1413),je=i(98082),Xe=function(Ie){return(0,a.Z)({},Ie.componentCls,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({display:"inline-flex",gap:Ie.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:Ie.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:Ie.colorBgTextHover},"&-active":(0,a.Z)({paddingBlock:0,paddingInline:8,backgroundColor:Ie.colorBgTextHover},"&".concat(Ie.componentCls,"-allow-clear:hover:not(").concat(Ie.componentCls,"-disabled)"),(0,a.Z)((0,a.Z)({},"".concat(Ie.componentCls,"-arrow"),{display:"none"}),"".concat(Ie.componentCls,"-close"),{display:"inline-flex"}))},"".concat(Ie.antCls,"-select"),(0,a.Z)({},"".concat(Ie.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(Ie.antCls,"-picker"),(0,a.Z)({},"".concat(Ie.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",(0,a.Z)((0,a.Z)({color:Ie.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(Ie.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:Ie.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:Ie.colorIconHover})),"&-disabled",(0,a.Z)({color:Ie.colorTextPlaceholder,cursor:"not-allowed"},"".concat(Ie.componentCls,"-icon"),{color:Ie.colorTextPlaceholder})),"&-small",(0,a.Z)((0,a.Z)((0,a.Z)({height:"24px",paddingBlock:0,paddingInline:4,fontSize:Ie.fontSizeSM,lineHeight:"24px"},"&".concat(Ie.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(Ie.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(Ie.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(Ie.lineWidth,"px solid ").concat(Ie.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:Ie.colorBgContainer}))};function He(Fe){return(0,je.Xj)("FieldLabel",function(Ie){var re=(0,Me.Z)((0,Me.Z)({},Ie),{},{componentCls:".".concat(Fe)});return[Xe(re)]})}var Ne=i(85893),Et=function(Ie,re){var Y,fe,K,$e=Ie.label,Be=Ie.onClear,Oe=Ie.value,xt=Ie.disabled,yt=Ie.onLabelClick,mn=Ie.ellipsis,Kt=Ie.placeholder,Mn=Ie.className,jt=Ie.formatter,Gt=Ie.bordered,Tn=Ie.style,vt=Ie.downIcon,Tt=Ie.allowClear,Pn=Tt===void 0?!0:Tt,Mt=Ie.valueMaxLength,Zn=Mt===void 0?41:Mt,rr=(_.ZP===null||_.ZP===void 0||(Y=_.ZP.useConfig)===null||Y===void 0?void 0:Y.call(_.ZP))||{componentSize:"middle"},Xn=rr.componentSize,gr=Xn,ut=(0,g.useContext)(_.ZP.ConfigContext),un=ut.getPrefixCls,ze=un("pro-core-field-label"),J=He(ze),_e=J.wrapSSR,et=J.hashId,pt=(0,N.YB)(),lt=(0,g.useRef)(null),kt=(0,g.useRef)(null);(0,g.useImperativeHandle)(re,function(){return{labelRef:kt,clearRef:lt}});var ye=function(We){return We.every(function(st){return typeof st=="string"})?We.join(","):We.map(function(st,Wt){var Dt=Wt===We.length-1?"":",";return typeof st=="string"?(0,Ne.jsxs)("span",{children:[st,Dt]},Wt):(0,Ne.jsxs)("span",{style:{display:"flex"},children:[st,Dt]},Wt)})},Ae=function(We){return jt?jt(We):Array.isArray(We)?ye(We):We},Pe=function(We,st){if(st!=null&&st!==""&&(!Array.isArray(st)||st.length)){var Wt,Dt,Xt=We?(0,Ne.jsxs)("span",{onClick:function(){yt==null||yt()},className:"".concat(ze,"-text"),children:[We,": "]}):"",Ut=Ae(st);if(!mn)return(0,Ne.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[Xt,Ae(st)]});var qt=function(){var me=Array.isArray(st)&&st.length>1,de=pt.getMessage("form.lightFilter.itemUnit","\u9879");return typeof Ut=="string"&&Ut.length>Zn&&me?"...".concat(st.length).concat(de):""},En=qt();return(0,Ne.jsxs)("span",{title:typeof Ut=="string"?Ut:void 0,style:{display:"inline-flex",alignItems:"center"},children:[Xt,(0,Ne.jsx)("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof Ut=="string"?Ut==null||(Wt=Ut.toString())===null||Wt===void 0||(Dt=Wt.substr)===null||Dt===void 0?void 0:Dt.call(Wt,0,Zn):Ut}),En]})}return We||Kt};return _e((0,Ne.jsxs)("span",{className:ee()(ze,et,"".concat(ze,"-").concat((fe=(K=Ie.size)!==null&&K!==void 0?K:gr)!==null&&fe!==void 0?fe:"middle"),(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(ze,"-active"),!!Oe||Oe===0),"".concat(ze,"-disabled"),xt),"".concat(ze,"-bordered"),Gt),"".concat(ze,"-allow-clear"),Pn),Mn),style:Tn,ref:kt,onClick:function(){var We;Ie==null||(We=Ie.onClick)===null||We===void 0||We.call(Ie)},children:[Pe($e,Oe),(Oe||Oe===0)&&Pn&&(0,Ne.jsx)($,{role:"button",title:pt.getMessage("form.lightFilter.clear","\u6E05\u9664"),className:ee()("".concat(ze,"-icon"),et,"".concat(ze,"-close")),onClick:function(We){xt||Be==null||Be(),We.stopPropagation()},ref:lt}),vt!==!1?vt!=null?vt:(0,Ne.jsx)(o,{className:ee()("".concat(ze,"-icon"),et,"".concat(ze,"-arrow"))}):null]}))},it=g.forwardRef(Et)},1336:function(D,L,i){"use strict";i.d(L,{M:function(){return je}});var a=i(1413),p=i(4942),g=i(28459),x=i(55241),m=i(67294),I=i(10915),y=i(14726),$=i(93967),W=i.n($),T=i(98082),X=function(He){return(0,p.Z)({},He.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(He.colorSplit)})};function o(Xe){return(0,T.Xj)("DropdownFooter",function(He){var Ne=(0,a.Z)((0,a.Z)({},He),{},{componentCls:".".concat(Xe)});return[X(Ne)]})}var N=i(85893),_=function(He){var Ne=(0,I.YB)(),Et=He.onClear,it=He.onConfirm,Fe=He.disabled,Ie=He.footerRender,re=(0,m.useContext)(g.ZP.ConfigContext),Y=re.getPrefixCls,fe=Y("pro-core-dropdown-footer"),K=o(fe),$e=K.wrapSSR,Be=K.hashId,Oe=[(0,N.jsx)(y.ZP,{style:{visibility:Et?"visible":"hidden"},type:"link",size:"small",disabled:Fe,onClick:function(mn){Et&&Et(mn),mn.stopPropagation()},children:Ne.getMessage("form.lightFilter.clear","\u6E05\u9664")},"clear"),(0,N.jsx)(y.ZP,{"data-type":"confirm",type:"primary",size:"small",onClick:it,disabled:Fe,children:Ne.getMessage("form.lightFilter.confirm","\u786E\u8BA4")},"confirm")];if(Ie===!1||(Ie==null?void 0:Ie(it,Et))===!1)return null;var xt=(Ie==null?void 0:Ie(it,Et))||Oe;return $e((0,N.jsx)("div",{className:W()(fe,Be),onClick:function(mn){return mn.target.getAttribute("data-type")!=="confirm"&&mn.stopPropagation()},children:xt}))},Z=i(73177),ee=function(He){return(0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(He.componentCls,"-label"),{cursor:"pointer"}),"".concat(He.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(He.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function Me(Xe){return(0,T.Xj)("FilterDropdown",function(He){var Ne=(0,a.Z)((0,a.Z)({},He),{},{componentCls:".".concat(Xe)});return[ee(Ne)]})}var je=function(He){var Ne=He.children,Et=He.label,it=He.footer,Fe=He.open,Ie=He.onOpenChange,re=He.disabled,Y=He.onVisibleChange,fe=He.visible,K=He.footerRender,$e=He.placement,Be=(0,m.useContext)(g.ZP.ConfigContext),Oe=Be.getPrefixCls,xt=Oe("pro-core-field-dropdown"),yt=Me(xt),mn=yt.wrapSSR,Kt=yt.hashId,Mn=(0,Z.X)(Fe||fe||!1,Ie||Y),jt=(0,m.useRef)(null);return mn((0,N.jsx)(x.Z,(0,a.Z)((0,a.Z)({placement:$e,trigger:["click"]},Mn),{},{overlayInnerStyle:{padding:0},content:(0,N.jsxs)("div",{ref:jt,className:W()("".concat(xt,"-overlay"),(0,p.Z)((0,p.Z)({},"".concat(xt,"-overlay-").concat($e),$e),"hashId",Kt)),children:[(0,N.jsx)(g.ZP,{getPopupContainer:function(){return jt.current||document.body},children:(0,N.jsx)("div",{className:"".concat(xt,"-content ").concat(Kt).trim(),children:Ne})}),it&&(0,N.jsx)(_,(0,a.Z)({disabled:re,footerRender:K},it))]}),children:(0,N.jsx)("span",{className:"".concat(xt,"-label ").concat(Kt).trim(),children:Et})})))}},48874:function(D,L,i){"use strict";i.d(L,{G:function(){return Xe}});var a=i(1413),p=i(4942),g=i(87462),x=i(67294),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},I=m,y=i(62914),$=function(Ne,Et){return x.createElement(y.Z,(0,g.Z)({},Ne,{ref:Et,icon:I}))},W=x.forwardRef($),T=W,X=i(28459),o=i(83062),N=i(93967),_=i.n(N),Z=i(98082),ee=function(Ne){return(0,p.Z)({},Ne.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:Ne.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:Ne.colorTextSecondary,fontWeight:"normal",fontSize:Ne.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function Me(He){return(0,Z.Xj)("LabelIconTip",function(Ne){var Et=(0,a.Z)((0,a.Z)({},Ne),{},{componentCls:".".concat(He)});return[ee(Et)]})}var je=i(85893),Xe=x.memo(function(He){var Ne=He.label,Et=He.tooltip,it=He.ellipsis,Fe=He.subTitle,Ie=(0,x.useContext)(X.ZP.ConfigContext),re=Ie.getPrefixCls,Y=re("pro-core-label-tip"),fe=Me(Y),K=fe.wrapSSR,$e=fe.hashId;if(!Et&&!Fe)return(0,je.jsx)(je.Fragment,{children:Ne});var Be=typeof Et=="string"||x.isValidElement(Et)?{title:Et}:Et,Oe=(Be==null?void 0:Be.icon)||(0,je.jsx)(T,{});return K((0,je.jsxs)("div",{className:_()(Y,$e),onMouseDown:function(yt){return yt.stopPropagation()},onMouseLeave:function(yt){return yt.stopPropagation()},onMouseMove:function(yt){return yt.stopPropagation()},children:[(0,je.jsx)("div",{className:_()("".concat(Y,"-title"),$e,(0,p.Z)({},"".concat(Y,"-title-ellipsis"),it)),children:Ne}),Fe&&(0,je.jsx)("div",{className:"".concat(Y,"-subtitle ").concat($e).trim(),children:Fe}),Et&&(0,je.jsx)(o.Z,(0,a.Z)((0,a.Z)({},Be),{},{children:(0,je.jsx)("span",{className:"".concat(Y,"-icon ").concat($e).trim(),children:Oe})}))]}))})},41036:function(D,L,i){"use strict";i.d(L,{J:function(){return p}});var a=i(67294),p=a.createContext({})},23312:function(D,L,i){"use strict";i.d(L,{Cl:function(){return $},lp:function(){return N}});var a=i(71002),p=i(27484),g=i.n(p),x=i(96671),m=i.n(x),I=i(88306),y=i(74763);g().extend(m());var $={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function W(_){return Object.prototype.toString.call(_)==="[object Object]"}function T(_){if(W(_)===!1)return!1;var Z=_.constructor;if(Z===void 0)return!0;var ee=Z.prototype;return!(W(ee)===!1||ee.hasOwnProperty("isPrototypeOf")===!1)}var X=function(Z){return!!(Z!=null&&Z._isAMomentObject)},o=function(Z,ee,Me){if(!ee)return Z;if(g().isDayjs(Z)||X(Z)){if(ee==="number")return Z.valueOf();if(ee==="string")return Z.format($[Me]||"YYYY-MM-DD HH:mm:ss");if(typeof ee=="string"&&ee!=="string")return Z.format(ee);if(typeof ee=="function")return ee(Z,Me)}return Z},N=function _(Z,ee,Me,je,Xe){var He={};return typeof window=="undefined"||(0,a.Z)(Z)!=="object"||(0,y.k)(Z)||Z instanceof Blob||Array.isArray(Z)?Z:(Object.keys(Z).forEach(function(Ne){var Et=Xe?[Xe,Ne].flat(1):[Ne],it=(0,I.Z)(Me,Et)||"text",Fe="text",Ie;typeof it=="string"?Fe=it:it&&(Fe=it.valueType,Ie=it.dateFormat);var re=Z[Ne];if(!((0,y.k)(re)&&je)){if(T(re)&&!Array.isArray(re)&&!g().isDayjs(re)&&!X(re)){He[Ne]=_(re,ee,Me,je,[Ne]);return}if(Array.isArray(re)){He[Ne]=re.map(function(Y,fe){return g().isDayjs(Y)||X(Y)?o(Y,Ie||ee,Fe):_(Y,ee,Me,je,[Ne,"".concat(fe)].flat(1))});return}He[Ne]=o(re,Ie||ee,Fe)}}),He)}},10178:function(D,L,i){"use strict";i.d(L,{D:function(){return m}});var a=i(74165),p=i(15861),g=i(67294),x=i(48171);function m(I,y){var $=(0,x.J)(I),W=(0,g.useRef)(),T=(0,g.useCallback)(function(){W.current&&(clearTimeout(W.current),W.current=null)},[]),X=(0,g.useCallback)((0,p.Z)((0,a.Z)().mark(function o(){var N,_,Z,ee=arguments;return(0,a.Z)().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:for(N=ee.length,_=new Array(N),Z=0;Z0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window=="undefined"||!window.crypto)return(a+=1).toFixed(0);for(var I="",y=crypto.getRandomValues(new Uint8Array(m));m--;){var $=63&y[m];I+=$<36?$.toString(36):$<62?($-26).toString(36).toUpperCase():$<63?"_":"-"}return I},g=function(){return typeof window=="undefined"?p():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():p()}},10989:function(D,L,i){"use strict";i.d(L,{MP:function(){return T},R6:function(){return $}});var a=i(71002),p=i(40411),g=i(42075),x=i(67294),m=i(85893);function I(X){var o=Object.prototype.toString.call(X).match(/^\[object (.*)\]$/)[1].toLowerCase();return o==="string"&&(0,a.Z)(X)==="object"?"object":X===null?"null":X===void 0?"undefined":o}var y=function(o){var N=o.color,_=o.children;return(0,m.jsx)(p.Z,{color:N,text:_})},$=function(o){return I(o)==="map"?o:new Map(Object.entries(o||{}))},W={Success:function(o){var N=o.children;return(0,m.jsx)(p.Z,{status:"success",text:N})},Error:function(o){var N=o.children;return(0,m.jsx)(p.Z,{status:"error",text:N})},Default:function(o){var N=o.children;return(0,m.jsx)(p.Z,{status:"default",text:N})},Processing:function(o){var N=o.children;return(0,m.jsx)(p.Z,{status:"processing",text:N})},Warning:function(o){var N=o.children;return(0,m.jsx)(p.Z,{status:"warning",text:N})},success:function(o){var N=o.children;return(0,m.jsx)(p.Z,{status:"success",text:N})},error:function(o){var N=o.children;return(0,m.jsx)(p.Z,{status:"error",text:N})},default:function(o){var N=o.children;return(0,m.jsx)(p.Z,{status:"default",text:N})},processing:function(o){var N=o.children;return(0,m.jsx)(p.Z,{status:"processing",text:N})},warning:function(o){var N=o.children;return(0,m.jsx)(p.Z,{status:"warning",text:N})}},T=function X(o,N,_){if(Array.isArray(o))return(0,m.jsx)(g.Z,{split:",",size:2,wrap:!0,children:o.map(function(He,Ne){return X(He,N,Ne)})},_);var Z=$(N);if(!Z.has(o)&&!Z.has("".concat(o)))return(o==null?void 0:o.label)||o;var ee=Z.get(o)||Z.get("".concat(o));if(!ee)return(0,m.jsx)(x.Fragment,{children:(o==null?void 0:o.label)||o},_);var Me=ee.status,je=ee.color,Xe=W[Me||"Init"];return Xe?(0,m.jsx)(Xe,{children:ee.text},_):je?(0,m.jsx)(y,{color:je,children:ee.text},_):(0,m.jsx)(x.Fragment,{children:ee.text||ee},_)}},22270:function(D,L,i){"use strict";i.d(L,{h:function(){return a}});function a(p){if(typeof p=="function"){for(var g=arguments.length,x=new Array(g>1?g-1:0),m=1;m=60&&Math.round(V.h)<=240?F=de?Math.round(V.h)-T*me:Math.round(V.h)+T*me:F=de?Math.round(V.h)+T*me:Math.round(V.h)-T*me,F<0?F+=360:F>=360&&(F-=360),F}function Et(V,me,de){if(V.h===0&&V.s===0)return V.s;var F;return de?F=V.s-X*me:me===ee?F=V.s+X:F=V.s+o*me,F>1&&(F=1),de&&me===Z&&F>.1&&(F=.1),F<.06&&(F=.06),Number(F.toFixed(2))}function it(V,me,de){var F;return de?F=V.v+N*me:F=V.v-_*me,F>1&&(F=1),Number(F.toFixed(2))}function Fe(V){for(var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=[],F=(0,W.uA)(V),ie=Z;ie>0;ie-=1){var De=je(F),Ge=Xe((0,W.uA)({h:Ne(De,ie,!0),s:Et(De,ie,!0),v:it(De,ie,!0)}));de.push(Ge)}de.push(Xe(F));for(var Qe=1;Qe<=ee;Qe+=1){var ct=je(F),Je=Xe((0,W.uA)({h:Ne(ct,Qe),s:Et(ct,Qe),v:it(ct,Qe)}));de.push(Je)}return me.theme==="dark"?Me.map(function(ft){var dt=ft.index,Nt=ft.opacity,Qt=Xe(He((0,W.uA)(me.backgroundColor||"#141414"),(0,W.uA)(de[dt]),Nt*100));return Qt}):de}var Ie={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"},re={},Y={};Object.keys(Ie).forEach(function(V){re[V]=Fe(Ie[V]),re[V].primary=re[V][5],Y[V]=Fe(Ie[V],{theme:"dark",backgroundColor:"#141414"}),Y[V].primary=Y[V][5]});var fe=re.red,K=re.volcano,$e=re.gold,Be=re.orange,Oe=re.yellow,xt=re.lime,yt=re.green,mn=re.cyan,Kt=re.blue,Mn=re.geekblue,jt=re.purple,Gt=re.magenta,Tn=re.grey,vt=re.grey,Tt=(0,m.createContext)({}),Pn=Tt,Mt=i(1413),Zn=i(71002),rr=i(44958),Xn=i(27571),gr=i(80334);function ut(V){return V.replace(/-(.)/g,function(me,de){return de.toUpperCase()})}function un(V,me){(0,gr.ZP)(V,"[@ant-design/icons] ".concat(me))}function ze(V){return(0,Zn.Z)(V)==="object"&&typeof V.name=="string"&&typeof V.theme=="string"&&((0,Zn.Z)(V.icon)==="object"||typeof V.icon=="function")}function J(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(V).reduce(function(me,de){var F=V[de];switch(de){case"class":me.className=F,delete me.class;break;default:delete me[de],me[ut(de)]=F}return me},{})}function _e(V,me,de){return de?m.createElement(V.tag,(0,Mt.Z)((0,Mt.Z)({key:me},J(V.attrs)),de),(V.children||[]).map(function(F,ie){return _e(F,"".concat(me,"-").concat(V.tag,"-").concat(ie))})):m.createElement(V.tag,(0,Mt.Z)({key:me},J(V.attrs)),(V.children||[]).map(function(F,ie){return _e(F,"".concat(me,"-").concat(V.tag,"-").concat(ie))}))}function et(V){return Fe(V)[0]}function pt(V){return V?Array.isArray(V)?V:[V]:[]}var lt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},kt=` +.anticon { + display: inline-flex; + alignItems: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,ye=function(me){var de=(0,m.useContext)(Pn),F=de.csp,ie=de.prefixCls,De=kt;ie&&(De=De.replace(/anticon/g,ie)),(0,m.useEffect)(function(){var Ge=me.current,Qe=(0,Xn.A)(Ge);(0,rr.hq)(De,"@ant-design-icons",{prepend:!0,csp:F,attachTo:Qe})},[])},Ae=["icon","className","onClick","style","primaryColor","secondaryColor"],Pe={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function at(V){var me=V.primaryColor,de=V.secondaryColor;Pe.primaryColor=me,Pe.secondaryColor=de||et(me),Pe.calculated=!!de}function We(){return(0,Mt.Z)({},Pe)}var st=function(me){var de=me.icon,F=me.className,ie=me.onClick,De=me.style,Ge=me.primaryColor,Qe=me.secondaryColor,ct=(0,x.Z)(me,Ae),Je=m.useRef(),ft=Pe;if(Ge&&(ft={primaryColor:Ge,secondaryColor:Qe||et(Ge)}),ye(Je),un(ze(de),"icon should be icon definiton, but got ".concat(de)),!ze(de))return null;var dt=de;return dt&&typeof dt.icon=="function"&&(dt=(0,Mt.Z)((0,Mt.Z)({},dt),{},{icon:dt.icon(ft.primaryColor,ft.secondaryColor)})),_e(dt.icon,"svg-".concat(dt.name),(0,Mt.Z)((0,Mt.Z)({className:F,onClick:ie,style:De,"data-icon":dt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},ct),{},{ref:Je}))};st.displayName="IconReact",st.getTwoToneColors=We,st.setTwoToneColors=at;var Wt=st;function Dt(V){var me=pt(V),de=(0,p.Z)(me,2),F=de[0],ie=de[1];return Wt.setTwoToneColors({primaryColor:F,secondaryColor:ie})}function Xt(){var V=Wt.getTwoToneColors();return V.calculated?[V.primaryColor,V.secondaryColor]:V.primaryColor}var Ut=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Dt(Kt.primary);var qt=m.forwardRef(function(V,me){var de=V.className,F=V.icon,ie=V.spin,De=V.rotate,Ge=V.tabIndex,Qe=V.onClick,ct=V.twoToneColor,Je=(0,x.Z)(V,Ut),ft=m.useContext(Pn),dt=ft.prefixCls,Nt=dt===void 0?"anticon":dt,Qt=ft.rootClassName,ln=y()(Qt,Nt,(0,g.Z)((0,g.Z)({},"".concat(Nt,"-").concat(F.name),!!F.name),"".concat(Nt,"-spin"),!!ie||F.name==="loading"),de),an=Ge;an===void 0&&Qe&&(an=-1);var In=De?{msTransform:"rotate(".concat(De,"deg)"),transform:"rotate(".concat(De,"deg)")}:void 0,Jn=pt(ct),on=(0,p.Z)(Jn,2),vn=on[0],Nn=on[1];return m.createElement("span",(0,a.Z)({role:"img","aria-label":F.name},Je,{ref:me,tabIndex:an,onClick:Qe,className:ln}),m.createElement(Wt,{icon:F,primaryColor:vn,secondaryColor:Nn,style:In}))});qt.displayName="AntdIcon",qt.getTwoToneColor=Xt,qt.setTwoToneColor=Dt;var En=qt},84567:function(D,L,i){"use strict";i.d(L,{Z:function(){return Fe}});var a=i(67294),p=i(93967),g=i.n(p),x=i(50132),m=i(45353),I=i(17415),y=i(53124),$=i(98866),W=i(35792),T=i(65223),o=a.createContext(null),N=i(63185),_=function(Ie,re){var Y={};for(var fe in Ie)Object.prototype.hasOwnProperty.call(Ie,fe)&&re.indexOf(fe)<0&&(Y[fe]=Ie[fe]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,fe=Object.getOwnPropertySymbols(Ie);K{var Y;const{prefixCls:fe,className:K,rootClassName:$e,children:Be,indeterminate:Oe=!1,style:xt,onMouseEnter:yt,onMouseLeave:mn,skipGroup:Kt=!1,disabled:Mn}=Ie,jt=_(Ie,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Gt,direction:Tn,checkbox:vt}=a.useContext(y.E_),Tt=a.useContext(o),{isFormItemInput:Pn}=a.useContext(T.aM),Mt=a.useContext($.Z),Zn=(Y=(Tt==null?void 0:Tt.disabled)||Mn)!==null&&Y!==void 0?Y:Mt,rr=a.useRef(jt.value);a.useEffect(()=>{Tt==null||Tt.registerValue(jt.value)},[]),a.useEffect(()=>{if(!Kt)return jt.value!==rr.current&&(Tt==null||Tt.cancelValue(rr.current),Tt==null||Tt.registerValue(jt.value),rr.current=jt.value),()=>Tt==null?void 0:Tt.cancelValue(jt.value)},[jt.value]);const Xn=Gt("checkbox",fe),gr=(0,W.Z)(Xn),[ut,un,ze]=(0,N.ZP)(Xn,gr),J=Object.assign({},jt);Tt&&!Kt&&(J.onChange=function(){jt.onChange&&jt.onChange.apply(jt,arguments),Tt.toggleOption&&Tt.toggleOption({label:Be,value:jt.value})},J.name=Tt.name,J.checked=Tt.value.includes(jt.value));const _e=g()(`${Xn}-wrapper`,{[`${Xn}-rtl`]:Tn==="rtl",[`${Xn}-wrapper-checked`]:J.checked,[`${Xn}-wrapper-disabled`]:Zn,[`${Xn}-wrapper-in-form-item`]:Pn},vt==null?void 0:vt.className,K,$e,ze,gr,un),et=g()({[`${Xn}-indeterminate`]:Oe},I.A,un),pt=Oe?"mixed":void 0;return ut(a.createElement(m.Z,{component:"Checkbox",disabled:Zn},a.createElement("label",{className:_e,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),xt),onMouseEnter:yt,onMouseLeave:mn},a.createElement(x.Z,Object.assign({"aria-checked":pt},J,{prefixCls:Xn,className:et,disabled:Zn,ref:re})),Be!==void 0&&a.createElement("span",null,Be))))};var Me=a.forwardRef(Z),je=i(74902),Xe=i(98423),He=function(Ie,re){var Y={};for(var fe in Ie)Object.prototype.hasOwnProperty.call(Ie,fe)&&re.indexOf(fe)<0&&(Y[fe]=Ie[fe]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,fe=Object.getOwnPropertySymbols(Ie);K{const{defaultValue:Y,children:fe,options:K=[],prefixCls:$e,className:Be,rootClassName:Oe,style:xt,onChange:yt}=Ie,mn=He(Ie,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Kt,direction:Mn}=a.useContext(y.E_),[jt,Gt]=a.useState(mn.value||Y||[]),[Tn,vt]=a.useState([]);a.useEffect(()=>{"value"in mn&&Gt(mn.value||[])},[mn.value]);const Tt=a.useMemo(()=>K.map(lt=>typeof lt=="string"||typeof lt=="number"?{label:lt,value:lt}:lt),[K]),Pn=lt=>{vt(kt=>kt.filter(ye=>ye!==lt))},Mt=lt=>{vt(kt=>[].concat((0,je.Z)(kt),[lt]))},Zn=lt=>{const kt=jt.indexOf(lt.value),ye=(0,je.Z)(jt);kt===-1?ye.push(lt.value):ye.splice(kt,1),"value"in mn||Gt(ye),yt==null||yt(ye.filter(Ae=>Tn.includes(Ae)).sort((Ae,Pe)=>{const at=Tt.findIndex(st=>st.value===Ae),We=Tt.findIndex(st=>st.value===Pe);return at-We}))},rr=Kt("checkbox",$e),Xn=`${rr}-group`,gr=(0,W.Z)(rr),[ut,un,ze]=(0,N.ZP)(rr,gr),J=(0,Xe.Z)(mn,["value","disabled"]),_e=K.length?Tt.map(lt=>a.createElement(Me,{prefixCls:rr,key:lt.value.toString(),disabled:"disabled"in lt?lt.disabled:mn.disabled,value:lt.value,checked:jt.includes(lt.value),onChange:lt.onChange,className:`${Xn}-item`,style:lt.style,title:lt.title,id:lt.id,required:lt.required},lt.label)):fe,et={toggleOption:Zn,value:jt,disabled:mn.disabled,name:mn.name,registerValue:Mt,cancelValue:Pn},pt=g()(Xn,{[`${Xn}-rtl`]:Mn==="rtl"},Be,Oe,ze,gr,un);return ut(a.createElement("div",Object.assign({className:pt,style:xt},J,{ref:re}),a.createElement(o.Provider,{value:et},_e)))});const it=Me;it.Group=Et,it.__ANT_CHECKBOX=!0;var Fe=it},63185:function(D,L,i){"use strict";i.d(L,{C2:function(){return I}});var a=i(6731),p=i(14747),g=i(45503),x=i(91945);const m=y=>{const{checkboxCls:$}=y,W=`${$}-wrapper`;return[{[`${$}-group`]:Object.assign(Object.assign({},(0,p.Wf)(y)),{display:"inline-flex",flexWrap:"wrap",columnGap:y.marginXS,[`> ${y.antCls}-row`]:{flex:1}}),[W]:Object.assign(Object.assign({},(0,p.Wf)(y)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${W}`]:{marginInlineStart:0},[`&${W}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[$]:Object.assign(Object.assign({},(0,p.Wf)(y)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:y.borderRadiusSM,alignSelf:"center",[`${$}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${$}-inner`]:Object.assign({},(0,p.oN)(y))},[`${$}-inner`]:{boxSizing:"border-box",display:"block",width:y.checkboxSize,height:y.checkboxSize,direction:"ltr",backgroundColor:y.colorBgContainer,border:`${(0,a.bf)(y.lineWidth)} ${y.lineType} ${y.colorBorder}`,borderRadius:y.borderRadiusSM,borderCollapse:"separate",transition:`all ${y.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:y.calc(y.checkboxSize).div(14).mul(5).equal(),height:y.calc(y.checkboxSize).div(14).mul(8).equal(),border:`${(0,a.bf)(y.lineWidthBold)} solid ${y.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${y.motionDurationFast} ${y.motionEaseInBack}, opacity ${y.motionDurationFast}`}},"& + span":{paddingInlineStart:y.paddingXS,paddingInlineEnd:y.paddingXS}})},{[` + ${W}:not(${W}-disabled), + ${$}:not(${$}-disabled) + `]:{[`&:hover ${$}-inner`]:{borderColor:y.colorPrimary}},[`${W}:not(${W}-disabled)`]:{[`&:hover ${$}-checked:not(${$}-disabled) ${$}-inner`]:{backgroundColor:y.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${$}-checked:not(${$}-disabled):after`]:{borderColor:y.colorPrimaryHover}}},{[`${$}-checked`]:{[`${$}-inner`]:{backgroundColor:y.colorPrimary,borderColor:y.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${y.motionDurationMid} ${y.motionEaseOutBack} ${y.motionDurationFast}`}}},[` + ${W}-checked:not(${W}-disabled), + ${$}-checked:not(${$}-disabled) + `]:{[`&:hover ${$}-inner`]:{backgroundColor:y.colorPrimaryHover,borderColor:"transparent"}}},{[$]:{"&-indeterminate":{[`${$}-inner`]:{backgroundColor:y.colorBgContainer,borderColor:y.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:y.calc(y.fontSizeLG).div(2).equal(),height:y.calc(y.fontSizeLG).div(2).equal(),backgroundColor:y.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${W}-disabled`]:{cursor:"not-allowed"},[`${$}-disabled`]:{[`&, ${$}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${$}-inner`]:{background:y.colorBgContainerDisabled,borderColor:y.colorBorder,"&:after":{borderColor:y.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:y.colorTextDisabled},[`&${$}-indeterminate ${$}-inner::after`]:{background:y.colorTextDisabled}}}]};function I(y,$){const W=(0,g.TS)($,{checkboxCls:`.${y}`,checkboxSize:$.controlInteractiveSize});return[m(W)]}L.ZP=(0,x.I$)("Checkbox",(y,$)=>{let{prefixCls:W}=$;return[I(W,y)]})},88258:function(D,L,i){"use strict";var a=i(67294),p=i(53124),g=i(32983);const x=m=>{const{componentName:I}=m,{getPrefixCls:y}=(0,a.useContext)(p.E_),$=y("empty");switch(I){case"Table":case"List":return a.createElement(g.Z,{image:g.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return a.createElement(g.Z,{image:g.Z.PRESENTED_IMAGE_SIMPLE,className:`${$}-small`});default:return a.createElement(g.Z,null)}};L.Z=x},32983:function(D,L,i){"use strict";i.d(L,{Z:function(){return He}});var a=i(93967),p=i.n(a),g=i(67294),x=i(53124),m=i(10110),I=i(10274),y=i(29691),W=()=>{const[,Ne]=(0,y.ZP)(),it=new I.C(Ne.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return g.createElement("svg",{style:it,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},g.createElement("g",{fill:"none",fillRule:"evenodd"},g.createElement("g",{transform:"translate(24 31.67)"},g.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),g.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),g.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),g.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),g.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),g.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),g.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},g.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),g.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},X=()=>{const[,Ne]=(0,y.ZP)(),{colorFill:Et,colorFillTertiary:it,colorFillQuaternary:Fe,colorBgContainer:Ie}=Ne,{borderColor:re,shadowColor:Y,contentColor:fe}=(0,g.useMemo)(()=>({borderColor:new I.C(Et).onBackground(Ie).toHexShortString(),shadowColor:new I.C(it).onBackground(Ie).toHexShortString(),contentColor:new I.C(Fe).onBackground(Ie).toHexShortString()}),[Et,it,Fe,Ie]);return g.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},g.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},g.createElement("ellipse",{fill:Y,cx:"32",cy:"33",rx:"32",ry:"7"}),g.createElement("g",{fillRule:"nonzero",stroke:re},g.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),g.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:fe}))))},o=i(91945),N=i(45503);const _=Ne=>{const{componentCls:Et,margin:it,marginXS:Fe,marginXL:Ie,fontSize:re,lineHeight:Y}=Ne;return{[Et]:{marginInline:Fe,fontSize:re,lineHeight:Y,textAlign:"center",[`${Et}-image`]:{height:Ne.emptyImgHeight,marginBottom:Fe,opacity:Ne.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Et}-description`]:{color:Ne.colorText},[`${Et}-footer`]:{marginTop:it},"&-normal":{marginBlock:Ie,color:Ne.colorTextDescription,[`${Et}-description`]:{color:Ne.colorTextDescription},[`${Et}-image`]:{height:Ne.emptyImgHeightMD}},"&-small":{marginBlock:Fe,color:Ne.colorTextDescription,[`${Et}-image`]:{height:Ne.emptyImgHeightSM}}}}};var Z=(0,o.I$)("Empty",Ne=>{const{componentCls:Et,controlHeightLG:it,calc:Fe}=Ne,Ie=(0,N.TS)(Ne,{emptyImgCls:`${Et}-img`,emptyImgHeight:Fe(it).mul(2.5).equal(),emptyImgHeightMD:it,emptyImgHeightSM:Fe(it).mul(.875).equal()});return[_(Ie)]}),ee=function(Ne,Et){var it={};for(var Fe in Ne)Object.prototype.hasOwnProperty.call(Ne,Fe)&&Et.indexOf(Fe)<0&&(it[Fe]=Ne[Fe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Fe=Object.getOwnPropertySymbols(Ne);Ie{var{className:Et,rootClassName:it,prefixCls:Fe,image:Ie=Me,description:re,children:Y,imageStyle:fe,style:K}=Ne,$e=ee(Ne,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Be,direction:Oe,empty:xt}=g.useContext(x.E_),yt=Be("empty",Fe),[mn,Kt,Mn]=Z(yt),[jt]=(0,m.Z)("Empty"),Gt=typeof re!="undefined"?re:jt==null?void 0:jt.description,Tn=typeof Gt=="string"?Gt:"empty";let vt=null;return typeof Ie=="string"?vt=g.createElement("img",{alt:Tn,src:Ie}):vt=Ie,mn(g.createElement("div",Object.assign({className:p()(Kt,Mn,yt,xt==null?void 0:xt.className,{[`${yt}-normal`]:Ie===je,[`${yt}-rtl`]:Oe==="rtl"},Et,it),style:Object.assign(Object.assign({},xt==null?void 0:xt.style),K)},$e),g.createElement("div",{className:`${yt}-image`,style:fe},vt),Gt&&g.createElement("div",{className:`${yt}-description`},Gt),Y&&g.createElement("div",{className:`${yt}-footer`},Y)))};Xe.PRESENTED_IMAGE_DEFAULT=Me,Xe.PRESENTED_IMAGE_SIMPLE=je;var He=Xe},8232:function(D,L,i){"use strict";i.d(L,{Z:function(){return ii}});var a=i(74902),p=i(93967),g=i.n(p),x=i(82225),m=i(67294),I=i(33603),y=i(65223);function $(ue){const[qe,St]=m.useState(ue);return m.useEffect(()=>{const Ht=setTimeout(()=>{St(ue)},ue.length?0:10);return()=>{clearTimeout(Ht)}},[ue]),qe}var W=i(6731),T=i(14747),X=i(50438),o=i(33507),N=i(45503),_=i(91945),ee=ue=>{const{componentCls:qe}=ue,St=`${qe}-show-help`,Ht=`${qe}-show-help-item`;return{[St]:{transition:`opacity ${ue.motionDurationSlow} ${ue.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ht]:{overflow:"hidden",transition:`height ${ue.motionDurationSlow} ${ue.motionEaseInOut}, + opacity ${ue.motionDurationSlow} ${ue.motionEaseInOut}, + transform ${ue.motionDurationSlow} ${ue.motionEaseInOut} !important`,[`&${Ht}-appear, &${Ht}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${Ht}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Me=ue=>({legend:{display:"block",width:"100%",marginBottom:ue.marginLG,padding:0,color:ue.colorTextDescription,fontSize:ue.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,W.bf)(ue.lineWidth)} ${ue.lineType} ${ue.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},[`input[type='file']:focus, + input[type='radio']:focus, + input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${(0,W.bf)(ue.controlOutlineWidth)} ${ue.controlOutline}`},output:{display:"block",paddingTop:15,color:ue.colorText,fontSize:ue.fontSize,lineHeight:ue.lineHeight}}),je=(ue,qe)=>{const{formItemCls:St}=ue;return{[St]:{[`${St}-label > label`]:{height:qe},[`${St}-control-input`]:{minHeight:qe}}}},Xe=ue=>{const{componentCls:qe}=ue;return{[ue.componentCls]:Object.assign(Object.assign(Object.assign({},(0,T.Wf)(ue)),Me(ue)),{[`${qe}-text`]:{display:"inline-block",paddingInlineEnd:ue.paddingSM},"&-small":Object.assign({},je(ue,ue.controlHeightSM)),"&-large":Object.assign({},je(ue,ue.controlHeightLG))})}},He=ue=>{const{formItemCls:qe,iconCls:St,componentCls:Ht,rootPrefixCls:tn,labelRequiredMarkColor:Cn,labelColor:Or,labelFontSize:qr,labelHeight:ia,labelColonMarginInlineStart:la,labelColonMarginInlineEnd:Yr,itemMarginBottom:Ar}=ue;return{[qe]:Object.assign(Object.assign({},(0,T.Wf)(ue)),{marginBottom:Ar,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${tn}-row`]:{display:"none"},"&-has-warning":{[`${qe}-split`]:{color:ue.colorError}},"&-has-error":{[`${qe}-split`]:{color:ue.colorWarning}},[`${qe}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ue.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:ia,color:Or,fontSize:qr,[`> ${St}`]:{fontSize:ue.fontSize,verticalAlign:"top"},[`&${qe}-required:not(${qe}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:ue.marginXXS,color:Cn,fontSize:ue.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ht}-hide-required-mark &`]:{display:"none"}},[`${qe}-optional`]:{display:"inline-block",marginInlineStart:ue.marginXXS,color:ue.colorTextDescription,[`${Ht}-hide-required-mark &`]:{display:"none"}},[`${qe}-tooltip`]:{color:ue.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ue.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:la,marginInlineEnd:Yr},[`&${qe}-no-colon::after`]:{content:'"\\a0"'}}},[`${qe}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${tn}-col-'"]):not([class*="' ${tn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ue.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[qe]:{"&-explain, &-extra":{clear:"both",color:ue.colorTextDescription,fontSize:ue.fontSize,lineHeight:ue.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ue.controlHeightSM,transition:`color ${ue.motionDurationMid} ${ue.motionEaseOut}`},"&-explain":{"&-error":{color:ue.colorError},"&-warning":{color:ue.colorWarning}}},[`&-with-help ${qe}-explain`]:{height:"auto",opacity:1},[`${qe}-feedback-icon`]:{fontSize:ue.fontSize,textAlign:"center",visibility:"visible",animationName:X.kr,animationDuration:ue.motionDurationMid,animationTimingFunction:ue.motionEaseOutBack,pointerEvents:"none","&-success":{color:ue.colorSuccess},"&-error":{color:ue.colorError},"&-warning":{color:ue.colorWarning},"&-validating":{color:ue.colorPrimary}}})}},Ne=ue=>{const{componentCls:qe,formItemCls:St}=ue;return{[`${qe}-horizontal`]:{[`${St}-label`]:{flexGrow:0},[`${St}-control`]:{flex:"1 1 0",minWidth:0},[`${St}-label[class$='-24'], ${St}-label[class*='-24 ']`]:{[`& + ${St}-control`]:{minWidth:"unset"}}}}},Et=ue=>{const{componentCls:qe,formItemCls:St}=ue;return{[`${qe}-inline`]:{display:"flex",flexWrap:"wrap",[St]:{flex:"none",marginInlineEnd:ue.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${St}-label, + > ${St}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${St}-label`]:{flex:"none"},[`${qe}-text`]:{display:"inline-block"},[`${St}-has-feedback`]:{display:"inline-block"}}}}},it=ue=>({padding:ue.verticalLabelPadding,margin:ue.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Fe=ue=>{const{componentCls:qe,formItemCls:St,rootPrefixCls:Ht}=ue;return{[`${St} ${St}-label`]:it(ue),[`${qe}:not(${qe}-inline)`]:{[St]:{flexWrap:"wrap",[`${St}-label, ${St}-control`]:{[`&:not([class*=" ${Ht}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ie=ue=>{const{componentCls:qe,formItemCls:St,rootPrefixCls:Ht}=ue;return{[`${qe}-vertical`]:{[St]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${qe}-item-control`]:{width:"100%"}}},[`${qe}-vertical ${St}-label, + .${Ht}-col-24${St}-label, + .${Ht}-col-xl-24${St}-label`]:it(ue),[`@media (max-width: ${(0,W.bf)(ue.screenXSMax)})`]:[Fe(ue),{[qe]:{[`.${Ht}-col-xs-24${St}-label`]:it(ue)}}],[`@media (max-width: ${(0,W.bf)(ue.screenSMMax)})`]:{[qe]:{[`.${Ht}-col-sm-24${St}-label`]:it(ue)}},[`@media (max-width: ${(0,W.bf)(ue.screenMDMax)})`]:{[qe]:{[`.${Ht}-col-md-24${St}-label`]:it(ue)}},[`@media (max-width: ${(0,W.bf)(ue.screenLGMax)})`]:{[qe]:{[`.${Ht}-col-lg-24${St}-label`]:it(ue)}}}},re=ue=>({labelRequiredMarkColor:ue.colorError,labelColor:ue.colorTextHeading,labelFontSize:ue.fontSize,labelHeight:ue.controlHeight,labelColonMarginInlineStart:ue.marginXXS/2,labelColonMarginInlineEnd:ue.marginXS,itemMarginBottom:ue.marginLG,verticalLabelPadding:`0 0 ${ue.paddingXS}px`,verticalLabelMargin:0}),Y=(ue,qe)=>(0,N.TS)(ue,{formItemCls:`${ue.componentCls}-item`,rootPrefixCls:qe});var fe=(0,_.I$)("Form",(ue,qe)=>{let{rootPrefixCls:St}=qe;const Ht=Y(ue,St);return[Xe(Ht),He(Ht),ee(Ht),Ne(Ht),Et(Ht),Ie(Ht),(0,o.Z)(Ht),X.kr]},re,{order:-1e3}),K=i(35792);const $e=[];function Be(ue,qe,St){let Ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ue=="string"?ue:`${qe}-${Ht}`,error:ue,errorStatus:St}}var xt=ue=>{let{help:qe,helpStatus:St,errors:Ht=$e,warnings:tn=$e,className:Cn,fieldId:Or,onVisibleChanged:qr}=ue;const{prefixCls:ia}=m.useContext(y.Rk),la=`${ia}-item-explain`,Yr=(0,K.Z)(ia),[Ar,Dr,ba]=fe(ia,Yr),ja=(0,m.useMemo)(()=>(0,I.Z)(ia),[ia]),Ma=$(Ht),xe=$(tn),ce=m.useMemo(()=>qe!=null?[Be(qe,"help",St)]:[].concat((0,a.Z)(Ma.map((ot,wt)=>Be(ot,"error","error",wt))),(0,a.Z)(xe.map((ot,wt)=>Be(ot,"warning","warning",wt)))),[qe,St,Ma,xe]),bt={};return Or&&(bt.id=`${Or}_help`),Ar(m.createElement(x.ZP,{motionDeadline:ja.motionDeadline,motionName:`${ia}-show-help`,visible:!!ce.length,onVisibleChanged:qr},ot=>{const{className:wt,style:sn}=ot;return m.createElement("div",Object.assign({},bt,{className:g()(la,wt,ba,Yr,Cn,Dr),style:sn,role:"alert"}),m.createElement(x.V4,Object.assign({keys:ce},(0,I.Z)(ia),{motionName:`${ia}-show-help-item`,component:!1}),gn=>{const{key:Dn,error:Hn,errorStatus:or,className:Yn,style:Qn}=gn;return m.createElement("div",{key:Dn,className:g()(Yn,{[`${la}-${or}`]:or}),style:Qn},Hn)}))}))},yt=i(43589),mn=i(53124),Kt=i(98866),Mn=i(98675),jt=i(97647);const Gt=ue=>typeof ue=="object"&&ue!=null&&ue.nodeType===1,Tn=(ue,qe)=>(!qe||ue!=="hidden")&&ue!=="visible"&&ue!=="clip",vt=(ue,qe)=>{if(ue.clientHeight{const tn=(Cn=>{if(!Cn.ownerDocument||!Cn.ownerDocument.defaultView)return null;try{return Cn.ownerDocument.defaultView.frameElement}catch(Or){return null}})(Ht);return!!tn&&(tn.clientHeightCnqe||Cn>ue&&Or=qe&&qr>=St?Cn-ue-Ht:Or>qe&&qrSt?Or-qe+tn:0,Pn=ue=>{const qe=ue.parentElement;return qe==null?ue.getRootNode().host||null:qe},Mt=(ue,qe)=>{var St,Ht,tn,Cn;if(typeof document=="undefined")return[];const{scrollMode:Or,block:qr,inline:ia,boundary:la,skipOverflowHiddenElements:Yr}=qe,Ar=typeof la=="function"?la:er=>er!==la;if(!Gt(ue))throw new TypeError("Invalid target");const Dr=document.scrollingElement||document.documentElement,ba=[];let ja=ue;for(;Gt(ja)&&Ar(ja);){if(ja=Pn(ja),ja===Dr){ba.push(ja);break}ja!=null&&ja===document.body&&vt(ja)&&!vt(document.documentElement)||ja!=null&&vt(ja,Yr)&&ba.push(ja)}const Ma=(Ht=(St=window.visualViewport)==null?void 0:St.width)!=null?Ht:innerWidth,xe=(Cn=(tn=window.visualViewport)==null?void 0:tn.height)!=null?Cn:innerHeight,{scrollX:ce,scrollY:bt}=window,{height:ot,width:wt,top:sn,right:gn,bottom:Dn,left:Hn}=ue.getBoundingClientRect(),{top:or,right:Yn,bottom:Qn,left:Ft}=(er=>{const _t=window.getComputedStyle(er);return{top:parseFloat(_t.scrollMarginTop)||0,right:parseFloat(_t.scrollMarginRight)||0,bottom:parseFloat(_t.scrollMarginBottom)||0,left:parseFloat(_t.scrollMarginLeft)||0}})(ue);let pn=qr==="start"||qr==="nearest"?sn-or:qr==="end"?Dn+Qn:sn+ot/2-or+Qn,Bn=ia==="center"?Hn+wt/2-Ft+Yn:ia==="end"?gn+Yn:Hn-Ft;const cr=[];for(let er=0;er=0&&Hn>=0&&Dn<=xe&&gn<=Ma&&sn>=dr&&Dn<=Sr&&Hn>=va&&gn<=ra)return cr;const Ka=getComputedStyle(_t),Ga=parseInt(Ka.borderLeftWidth,10),Gr=parseInt(Ka.borderTopWidth,10),Zr=parseInt(Ka.borderRightWidth,10),ga=parseInt(Ka.borderBottomWidth,10);let Q=0,Se=0;const Ye="offsetWidth"in _t?_t.offsetWidth-_t.clientWidth-Ga-Zr:0,nn="offsetHeight"in _t?_t.offsetHeight-_t.clientHeight-Gr-ga:0,An="offsetWidth"in _t?_t.offsetWidth===0?0:_n/_t.offsetWidth:0,kn="offsetHeight"in _t?_t.offsetHeight===0?0:$n/_t.offsetHeight:0;if(Dr===_t)Q=qr==="start"?pn:qr==="end"?pn-xe:qr==="nearest"?Tt(bt,bt+xe,xe,Gr,ga,bt+pn,bt+pn+ot,ot):pn-xe/2,Se=ia==="start"?Bn:ia==="center"?Bn-Ma/2:ia==="end"?Bn-Ma:Tt(ce,ce+Ma,Ma,Ga,Zr,ce+Bn,ce+Bn+wt,wt),Q=Math.max(0,Q+bt),Se=Math.max(0,Se+ce);else{Q=qr==="start"?pn-dr-Gr:qr==="end"?pn-Sr+ga+nn:qr==="nearest"?Tt(dr,Sr,$n,Gr,ga+nn,pn,pn+ot,ot):pn-(dr+$n/2)+nn/2,Se=ia==="start"?Bn-va-Ga:ia==="center"?Bn-(va+_n/2)+Ye/2:ia==="end"?Bn-ra+Zr+Ye:Tt(va,ra,_n,Ga,Zr+Ye,Bn,Bn+wt,wt);const{scrollLeft:xr,scrollTop:fr}=_t;Q=kn===0?0:Math.max(0,Math.min(fr+Q/kn,_t.scrollHeight-$n/kn+nn)),Se=An===0?0:Math.max(0,Math.min(xr+Se/An,_t.scrollWidth-_n/An+Ye)),pn+=fr-Q,Bn+=xr-Se}cr.push({el:_t,top:Q,left:Se})}return cr},Zn=ue=>ue===!1?{block:"end",inline:"nearest"}:(qe=>qe===Object(qe)&&Object.keys(qe).length!==0)(ue)?ue:{block:"start",inline:"nearest"};function rr(ue,qe){if(!ue.isConnected||!(tn=>{let Cn=tn;for(;Cn&&Cn.parentNode;){if(Cn.parentNode===document)return!0;Cn=Cn.parentNode instanceof ShadowRoot?Cn.parentNode.host:Cn.parentNode}return!1})(ue))return;const St=(tn=>{const Cn=window.getComputedStyle(tn);return{top:parseFloat(Cn.scrollMarginTop)||0,right:parseFloat(Cn.scrollMarginRight)||0,bottom:parseFloat(Cn.scrollMarginBottom)||0,left:parseFloat(Cn.scrollMarginLeft)||0}})(ue);if((tn=>typeof tn=="object"&&typeof tn.behavior=="function")(qe))return qe.behavior(Mt(ue,qe));const Ht=typeof qe=="boolean"||qe==null?void 0:qe.behavior;for(const{el:tn,top:Cn,left:Or}of Mt(ue,Zn(qe))){const qr=Cn-St.top+St.bottom,ia=Or-St.left+St.right;tn.scroll({top:qr,left:ia,behavior:Ht})}}const Xn=["parentNode"],gr="form_item";function ut(ue){return ue===void 0||ue===!1?[]:Array.isArray(ue)?ue:[ue]}function un(ue,qe){if(!ue.length)return;const St=ue.join("_");return qe?`${qe}_${St}`:Xn.includes(St)?`${gr}_${St}`:St}function ze(ue,qe,St,Ht,tn,Cn){let Or=Ht;return Cn!==void 0?Or=Cn:St.validating?Or="validating":ue.length?Or="error":qe.length?Or="warning":(St.touched||tn&&St.validated)&&(Or="success"),Or}function J(ue){return ut(ue).join("_")}function _e(ue){const[qe]=(0,yt.cI)(),St=m.useRef({}),Ht=m.useMemo(()=>ue!=null?ue:Object.assign(Object.assign({},qe),{__INTERNAL__:{itemRef:tn=>Cn=>{const Or=J(tn);Cn?St.current[Or]=Cn:delete St.current[Or]}},scrollToField:function(tn){let Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Or=ut(tn),qr=un(Or,Ht.__INTERNAL__.name),ia=qr?document.getElementById(qr):null;ia&&rr(ia,Object.assign({scrollMode:"if-needed",block:"nearest"},Cn))},getFieldInstance:tn=>{const Cn=J(tn);return St.current[Cn]}}),[ue,qe]);return[Ht]}var et=i(37920),pt=function(ue,qe){var St={};for(var Ht in ue)Object.prototype.hasOwnProperty.call(ue,Ht)&&qe.indexOf(Ht)<0&&(St[Ht]=ue[Ht]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Ht=Object.getOwnPropertySymbols(ue);tn{const St=m.useContext(Kt.Z),{getPrefixCls:Ht,direction:tn,form:Cn}=m.useContext(mn.E_),{prefixCls:Or,className:qr,rootClassName:ia,size:la,disabled:Yr=St,form:Ar,colon:Dr,labelAlign:ba,labelWrap:ja,labelCol:Ma,wrapperCol:xe,hideRequiredMark:ce,layout:bt="horizontal",scrollToFirstError:ot,requiredMark:wt,onFinishFailed:sn,name:gn,style:Dn,feedbackIcons:Hn,variant:or}=ue,Yn=pt(ue,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Qn=(0,Mn.Z)(la),Ft=m.useContext(et.Z),pn=(0,m.useMemo)(()=>wt!==void 0?wt:ce?!1:Cn&&Cn.requiredMark!==void 0?Cn.requiredMark:!0,[ce,wt,Cn]),Bn=Dr!=null?Dr:Cn==null?void 0:Cn.colon,cr=Ht("form",Or),er=(0,K.Z)(cr),[_t,$n,_n]=fe(cr,er),dr=g()(cr,`${cr}-${bt}`,{[`${cr}-hide-required-mark`]:pn===!1,[`${cr}-rtl`]:tn==="rtl",[`${cr}-${Qn}`]:Qn},_n,er,$n,Cn==null?void 0:Cn.className,qr,ia),[ra]=_e(Ar),{__INTERNAL__:Sr}=ra;Sr.name=gn;const va=(0,m.useMemo)(()=>({name:gn,labelAlign:ba,labelCol:Ma,labelWrap:ja,wrapperCol:xe,vertical:bt==="vertical",colon:Bn,requiredMark:pn,itemRef:Sr.itemRef,form:ra,feedbackIcons:Hn}),[gn,ba,Ma,xe,bt,Bn,pn,ra,Hn]);m.useImperativeHandle(qe,()=>ra);const Ka=(Gr,Zr)=>{if(Gr){let ga={block:"nearest"};typeof Gr=="object"&&(ga=Gr),ra.scrollToField(Zr,ga)}},Ga=Gr=>{if(sn==null||sn(Gr),Gr.errorFields.length){const Zr=Gr.errorFields[0].name;if(ot!==void 0){Ka(ot,Zr);return}Cn&&Cn.scrollToFirstError!==void 0&&Ka(Cn.scrollToFirstError,Zr)}};return _t(m.createElement(y.pg.Provider,{value:or},m.createElement(Kt.n,{disabled:Yr},m.createElement(jt.Z.Provider,{value:Qn},m.createElement(y.RV,{validateMessages:Ft},m.createElement(y.q3.Provider,{value:va},m.createElement(yt.ZP,Object.assign({id:gn},Yn,{name:gn,onFinishFailed:Ga,form:ra,style:Object.assign(Object.assign({},Cn==null?void 0:Cn.style),Dn),className:dr}))))))))};var ye=m.forwardRef(lt),Ae=i(30470),Pe=i(42550),at=i(96159),We=i(27288),st=i(50344);function Wt(ue){if(typeof ue=="function")return ue;const qe=(0,st.Z)(ue);return qe.length<=1?qe[0]:qe}const Dt=()=>{const{status:ue,errors:qe=[],warnings:St=[]}=(0,m.useContext)(y.aM);return{status:ue,errors:qe,warnings:St}};Dt.Context=y.aM;var Xt=Dt,Ut=i(75164);function qt(ue){const[qe,St]=m.useState(ue),Ht=(0,m.useRef)(null),tn=(0,m.useRef)([]),Cn=(0,m.useRef)(!1);m.useEffect(()=>(Cn.current=!1,()=>{Cn.current=!0,Ut.Z.cancel(Ht.current),Ht.current=null}),[]);function Or(qr){Cn.current||(Ht.current===null&&(tn.current=[],Ht.current=(0,Ut.Z)(()=>{Ht.current=null,St(ia=>{let la=ia;return tn.current.forEach(Yr=>{la=Yr(la)}),la})})),tn.current.push(qr))}return[qe,Or]}function En(){const{itemRef:ue}=m.useContext(y.q3),qe=m.useRef({});function St(Ht,tn){const Cn=tn&&typeof tn=="object"&&tn.ref,Or=Ht.join("_");return(qe.current.name!==Or||qe.current.originRef!==Cn)&&(qe.current.name=Or,qe.current.originRef=Cn,qe.current.ref=(0,Pe.sQ)(ue(Ht),Cn)),qe.current.ref}return St}var V=i(5110),me=i(8410),de=i(98423),F=i(92820),ie=i(21584);const De=ue=>{const{formItemCls:qe}=ue;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${qe}-control`]:{display:"flex"}}}};var Ge=(0,_.bk)(["Form","item-item"],(ue,qe)=>{let{rootPrefixCls:St}=qe;const Ht=Y(ue,St);return[De(Ht)]}),ct=ue=>{const{prefixCls:qe,status:St,wrapperCol:Ht,children:tn,errors:Cn,warnings:Or,_internalItemRender:qr,extra:ia,help:la,fieldId:Yr,marginBottom:Ar,onErrorVisibleChanged:Dr}=ue,ba=`${qe}-item`,ja=m.useContext(y.q3),Ma=Ht||ja.wrapperCol||{},xe=g()(`${ba}-control`,Ma.className),ce=m.useMemo(()=>Object.assign({},ja),[ja]);delete ce.labelCol,delete ce.wrapperCol;const bt=m.createElement("div",{className:`${ba}-control-input`},m.createElement("div",{className:`${ba}-control-input-content`},tn)),ot=m.useMemo(()=>({prefixCls:qe,status:St}),[qe,St]),wt=Ar!==null||Cn.length||Or.length?m.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},m.createElement(y.Rk.Provider,{value:ot},m.createElement(xt,{fieldId:Yr,errors:Cn,warnings:Or,help:la,helpStatus:St,className:`${ba}-explain-connected`,onVisibleChanged:Dr})),!!Ar&&m.createElement("div",{style:{width:0,height:Ar}})):null,sn={};Yr&&(sn.id=`${Yr}_extra`);const gn=ia?m.createElement("div",Object.assign({},sn,{className:`${ba}-extra`}),ia):null,Dn=qr&&qr.mark==="pro_table_render"&&qr.render?qr.render(ue,{input:bt,errorList:wt,extra:gn}):m.createElement(m.Fragment,null,bt,wt,gn);return m.createElement(y.q3.Provider,{value:ce},m.createElement(ie.Z,Object.assign({},Ma,{className:xe}),Dn),m.createElement(Ge,{prefixCls:qe}))},Je=i(87462),ft=i(36688),dt=i(93771),Nt=function(qe,St){return m.createElement(dt.Z,(0,Je.Z)({},qe,{ref:St,icon:ft.Z}))},Qt=m.forwardRef(Nt),ln=Qt,an=i(24457),In=i(10110),Jn=i(83062),on=function(ue,qe){var St={};for(var Ht in ue)Object.prototype.hasOwnProperty.call(ue,Ht)&&qe.indexOf(Ht)<0&&(St[Ht]=ue[Ht]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Ht=Object.getOwnPropertySymbols(ue);tn{let{prefixCls:qe,label:St,htmlFor:Ht,labelCol:tn,labelAlign:Cn,colon:Or,required:qr,requiredMark:ia,tooltip:la}=ue;var Yr;const[Ar]=(0,In.Z)("Form"),{vertical:Dr,labelAlign:ba,labelCol:ja,labelWrap:Ma,colon:xe}=m.useContext(y.q3);if(!St)return null;const ce=tn||ja||{},bt=Cn||ba,ot=`${qe}-item-label`,wt=g()(ot,bt==="left"&&`${ot}-left`,ce.className,{[`${ot}-wrap`]:!!Ma});let sn=St;const gn=Or===!0||xe!==!1&&Or!==!1;gn&&!Dr&&typeof St=="string"&&St.trim()!==""&&(sn=St.replace(/[:|:]\s*$/,""));const Hn=vn(la);if(Hn){const{icon:Ft=m.createElement(ln,null)}=Hn,pn=on(Hn,["icon"]),Bn=m.createElement(Jn.Z,Object.assign({},pn),m.cloneElement(Ft,{className:`${qe}-item-tooltip`,title:"",onClick:cr=>{cr.preventDefault()},tabIndex:null}));sn=m.createElement(m.Fragment,null,sn,Bn)}const or=ia==="optional",Yn=typeof ia=="function";Yn?sn=ia(sn,{required:!!qr}):or&&!qr&&(sn=m.createElement(m.Fragment,null,sn,m.createElement("span",{className:`${qe}-item-optional`,title:""},(Ar==null?void 0:Ar.optional)||((Yr=an.Z.Form)===null||Yr===void 0?void 0:Yr.optional))));const Qn=g()({[`${qe}-item-required`]:qr,[`${qe}-item-required-mark-optional`]:or||Yn,[`${qe}-item-no-colon`]:!gn});return m.createElement(ie.Z,Object.assign({},ce,{className:wt}),m.createElement("label",{htmlFor:Ht,className:Qn,title:typeof St=="string"?St:""},sn))},Mr=i(76278),vr=i(17012),zr=i(26702),nr=i(19267);const Ir={success:Mr.Z,warning:zr.Z,error:vr.Z,validating:nr.Z};function Vr(ue){let{children:qe,errors:St,warnings:Ht,hasFeedback:tn,validateStatus:Cn,prefixCls:Or,meta:qr,noStyle:ia}=ue;const la=`${Or}-item`,{feedbackIcons:Yr}=m.useContext(y.q3),Ar=ze(St,Ht,qr,null,!!tn,Cn),{isFormItemInput:Dr,status:ba,hasFeedback:ja,feedbackIcon:Ma}=m.useContext(y.aM),xe=m.useMemo(()=>{var ce;let bt;if(tn){const wt=tn!==!0&&tn.icons||Yr,sn=Ar&&((ce=wt==null?void 0:wt({status:Ar,errors:St,warnings:Ht}))===null||ce===void 0?void 0:ce[Ar]),gn=Ar&&Ir[Ar];bt=sn!==!1&&gn?m.createElement("span",{className:g()(`${la}-feedback-icon`,`${la}-feedback-icon-${Ar}`)},sn||m.createElement(gn,null)):null}const ot={status:Ar||"",errors:St,warnings:Ht,hasFeedback:!!tn,feedbackIcon:bt,isFormItemInput:!0};return ia&&(ot.status=(Ar!=null?Ar:ba)||"",ot.isFormItemInput=Dr,ot.hasFeedback=!!(tn!=null?tn:ja),ot.feedbackIcon=tn!==void 0?ot.feedbackIcon:Ma),ot},[Ar,tn,ia,Dr,ba]);return m.createElement(y.aM.Provider,{value:xe},qe)}var lo=function(ue,qe){var St={};for(var Ht in ue)Object.prototype.hasOwnProperty.call(ue,Ht)&&qe.indexOf(Ht)<0&&(St[Ht]=ue[Ht]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Ht=Object.getOwnPropertySymbols(ue);tn{if(Hn&&wt.current){const er=getComputedStyle(wt.current);Qn(parseInt(er.marginBottom,10))}},[Hn,or]);const Ft=er=>{er||Qn(null)},Bn=function(){let er=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const _t=er?sn:la.errors,$n=er?gn:la.warnings;return ze(_t,$n,la,"",!!Yr,ia)}(),cr=g()(bt,St,Ht,{[`${bt}-with-help`]:Dn||sn.length||gn.length,[`${bt}-has-feedback`]:Bn&&Yr,[`${bt}-has-success`]:Bn==="success",[`${bt}-has-warning`]:Bn==="warning",[`${bt}-has-error`]:Bn==="error",[`${bt}-is-validating`]:Bn==="validating",[`${bt}-hidden`]:Ar});return m.createElement("div",{className:cr,style:tn,ref:wt},m.createElement(F.Z,Object.assign({className:`${bt}-row`},(0,de.Z)(ce,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),m.createElement(jn,Object.assign({htmlFor:ba},ue,{requiredMark:ot,required:ja!=null?ja:Ma,prefixCls:qe})),m.createElement(ct,Object.assign({},ue,la,{errors:sn,warnings:gn,prefixCls:qe,status:Bn,help:Cn,marginBottom:Yn,onErrorVisibleChanged:Ft}),m.createElement(y.qI.Provider,{value:xe},m.createElement(Vr,{prefixCls:qe,meta:la,errors:la.errors,warnings:la.warnings,hasFeedback:Yr,validateStatus:Bn},Dr)))),!!Yn&&m.createElement("div",{className:`${bt}-margin-offset`,style:{marginBottom:-Yn}}))}const jr="__SPLIT__",hr=null;function Fn(ue,qe){const St=Object.keys(ue),Ht=Object.keys(qe);return St.length===Ht.length&&St.every(tn=>{const Cn=ue[tn],Or=qe[tn];return Cn===Or||typeof Cn=="function"||typeof Or=="function"})}const qn=m.memo(ue=>{let{children:qe}=ue;return qe},(ue,qe)=>Fn(ue.control,qe.control)&&ue.update===qe.update&&ue.childProps.length===qe.childProps.length&&ue.childProps.every((St,Ht)=>St===qe.childProps[Ht]));function sr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function yn(ue){const{name:qe,noStyle:St,className:Ht,dependencies:tn,prefixCls:Cn,shouldUpdate:Or,rules:qr,children:ia,required:la,label:Yr,messageVariables:Ar,trigger:Dr="onChange",validateTrigger:ba,hidden:ja,help:Ma}=ue,{getPrefixCls:xe}=m.useContext(mn.E_),{name:ce}=m.useContext(y.q3),bt=Wt(ia),ot=typeof bt=="function",wt=m.useContext(y.qI),{validateTrigger:sn}=m.useContext(yt.zb),gn=ba!==void 0?ba:sn,Dn=qe!=null,Hn=xe("form",Cn),or=(0,K.Z)(Hn),[Yn,Qn,Ft]=fe(Hn,or),pn=(0,We.ln)("Form.Item"),Bn=m.useContext(yt.ZM),cr=m.useRef(),[er,_t]=qt({}),[$n,_n]=(0,Ae.Z)(()=>sr()),dr=Zr=>{const ga=Bn==null?void 0:Bn.getKey(Zr.name);if(_n(Zr.destroy?sr():Zr,!0),St&&Ma!==!1&&wt){let Q=Zr.name;if(Zr.destroy)Q=cr.current||Q;else if(ga!==void 0){const[Se,Ye]=ga;Q=[Se].concat((0,a.Z)(Ye)),cr.current=Q}wt(Zr,Q)}},ra=(Zr,ga)=>{_t(Q=>{const Se=Object.assign({},Q),nn=[].concat((0,a.Z)(Zr.name.slice(0,-1)),(0,a.Z)(ga)).join(jr);return Zr.destroy?delete Se[nn]:Se[nn]=Zr,Se})},[Sr,va]=m.useMemo(()=>{const Zr=(0,a.Z)($n.errors),ga=(0,a.Z)($n.warnings);return Object.values(er).forEach(Q=>{Zr.push.apply(Zr,(0,a.Z)(Q.errors||[])),ga.push.apply(ga,(0,a.Z)(Q.warnings||[]))}),[Zr,ga]},[er,$n.errors,$n.warnings]),Ka=En();function Ga(Zr,ga,Q){return St&&!ja?m.createElement(Vr,{prefixCls:Hn,hasFeedback:ue.hasFeedback,validateStatus:ue.validateStatus,meta:$n,errors:Sr,warnings:va,noStyle:!0},Zr):m.createElement(kr,Object.assign({key:"row"},ue,{className:g()(Ht,Ft,or,Qn),prefixCls:Hn,fieldId:ga,isRequired:Q,errors:Sr,warnings:va,meta:$n,onSubItemMetaChange:ra}),Zr)}if(!Dn&&!ot&&!tn)return Yn(Ga(bt));let Gr={};return typeof Yr=="string"?Gr.label=Yr:qe&&(Gr.label=String(qe)),Ar&&(Gr=Object.assign(Object.assign({},Gr),Ar)),Yn(m.createElement(yt.gN,Object.assign({},ue,{messageVariables:Gr,trigger:Dr,validateTrigger:gn,onMetaChange:dr}),(Zr,ga,Q)=>{const Se=ut(qe).length&&ga?ga.name:[],Ye=un(Se,ce),nn=la!==void 0?la:!!(qr&&qr.some(xr=>{if(xr&&typeof xr=="object"&&xr.required&&!xr.warningOnly)return!0;if(typeof xr=="function"){const fr=xr(Q);return fr&&fr.required&&!fr.warningOnly}return!1})),An=Object.assign({},Zr);let kn=null;if(Array.isArray(bt)&&Dn)kn=bt;else if(!(ot&&(!(Or||tn)||Dn))){if(!(tn&&!ot&&!Dn))if(m.isValidElement(bt)){const xr=Object.assign(Object.assign({},bt.props),An);if(xr.id||(xr.id=Ye),Ma||Sr.length>0||va.length>0||ue.extra){const Va=[];(Ma||Sr.length>0)&&Va.push(`${Ye}_help`),ue.extra&&Va.push(`${Ye}_extra`),xr["aria-describedby"]=Va.join(" ")}Sr.length>0&&(xr["aria-invalid"]="true"),nn&&(xr["aria-required"]="true"),(0,Pe.Yr)(bt)&&(xr.ref=Ka(Se,bt)),new Set([].concat((0,a.Z)(ut(Dr)),(0,a.Z)(ut(gn)))).forEach(Va=>{xr[Va]=function(){for(var Aa,uo,po,Si,bo,Ui=arguments.length,Fi=new Array(Ui),ha=0;ha{var{prefixCls:qe,children:St}=ue,Ht=Wo(ue,["prefixCls","children"]);const{getPrefixCls:tn}=m.useContext(mn.E_),Cn=tn("form",qe),Or=m.useMemo(()=>({prefixCls:Cn,status:"error"}),[Cn]);return m.createElement(yt.aV,Object.assign({},Ht),(qr,ia,la)=>m.createElement(y.Rk.Provider,{value:Or},St(qr.map(Yr=>Object.assign(Object.assign({},Yr),{fieldKey:Yr.key})),ia,{errors:la.errors,warnings:la.warnings})))};function _a(){const{form:ue}=(0,m.useContext)(y.q3);return ue}const Ya=ye;Ya.Item=ar,Ya.List=La,Ya.ErrorList=xt,Ya.useForm=_e,Ya.useFormInstance=_a,Ya.useWatch=yt.qo,Ya.Provider=y.RV,Ya.create=()=>{};var ii=Ya},96365:function(D,L,i){"use strict";i.d(L,{Z:function(){return mn}});var a=i(67294),p=i(93967),g=i.n(p),x=i(53124),m=i(65223),I=i(47673),$=Kt=>{const{getPrefixCls:Mn,direction:jt}=(0,a.useContext)(x.E_),{prefixCls:Gt,className:Tn}=Kt,vt=Mn("input-group",Gt),Tt=Mn("input"),[Pn,Mt]=(0,I.ZP)(Tt),Zn=g()(vt,{[`${vt}-lg`]:Kt.size==="large",[`${vt}-sm`]:Kt.size==="small",[`${vt}-compact`]:Kt.compact,[`${vt}-rtl`]:jt==="rtl"},Mt,Tn),rr=(0,a.useContext)(m.aM),Xn=(0,a.useMemo)(()=>Object.assign(Object.assign({},rr),{isFormItemInput:!1}),[rr]);return Pn(a.createElement("span",{className:Zn,style:Kt.style,onMouseEnter:Kt.onMouseEnter,onMouseLeave:Kt.onMouseLeave,onFocus:Kt.onFocus,onBlur:Kt.onBlur},a.createElement(m.aM.Provider,{value:Xn},Kt.children)))},W=i(82586),T=i(87462),X=i(42003),o=i(93771),N=function(Mn,jt){return a.createElement(o.Z,(0,T.Z)({},Mn,{ref:jt,icon:X.Z}))},_=a.forwardRef(N),Z=_,ee=i(1208),Me=i(98423),je=i(42550),Xe=i(72922),He=function(Kt,Mn){var jt={};for(var Gt in Kt)Object.prototype.hasOwnProperty.call(Kt,Gt)&&Mn.indexOf(Gt)<0&&(jt[Gt]=Kt[Gt]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tn=0,Gt=Object.getOwnPropertySymbols(Kt);TnKt?a.createElement(ee.Z,null):a.createElement(Z,null),Et={click:"onClick",hover:"onMouseOver"};var Fe=a.forwardRef((Kt,Mn)=>{const{visibilityToggle:jt=!0}=Kt,Gt=typeof jt=="object"&&jt.visible!==void 0,[Tn,vt]=(0,a.useState)(()=>Gt?jt.visible:!1),Tt=(0,a.useRef)(null);a.useEffect(()=>{Gt&&vt(jt.visible)},[Gt,jt]);const Pn=(0,Xe.Z)(Tt),Mt=()=>{const{disabled:kt}=Kt;kt||(Tn&&Pn(),vt(ye=>{var Ae;const Pe=!ye;return typeof jt=="object"&&((Ae=jt.onVisibleChange)===null||Ae===void 0||Ae.call(jt,Pe)),Pe}))},Zn=kt=>{const{action:ye="click",iconRender:Ae=Ne}=Kt,Pe=Et[ye]||"",at=Ae(Tn),We={[Pe]:Mt,className:`${kt}-icon`,key:"passwordIcon",onMouseDown:st=>{st.preventDefault()},onMouseUp:st=>{st.preventDefault()}};return a.cloneElement(a.isValidElement(at)?at:a.createElement("span",null,at),We)},{className:rr,prefixCls:Xn,inputPrefixCls:gr,size:ut}=Kt,un=He(Kt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ze}=a.useContext(x.E_),J=ze("input",gr),_e=ze("input-password",Xn),et=jt&&Zn(_e),pt=g()(_e,rr,{[`${_e}-${ut}`]:!!ut}),lt=Object.assign(Object.assign({},(0,Me.Z)(un,["suffix","iconRender","visibilityToggle"])),{type:Tn?"text":"password",className:pt,prefixCls:J,suffix:et});return ut&&(lt.size=ut),a.createElement(W.Z,Object.assign({ref:(0,je.sQ)(Mn,Tt)},lt))}),Ie=i(25783),re=i(96159),Y=i(14726),fe=i(98675),K=i(4173),$e=function(Kt,Mn){var jt={};for(var Gt in Kt)Object.prototype.hasOwnProperty.call(Kt,Gt)&&Mn.indexOf(Gt)<0&&(jt[Gt]=Kt[Gt]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tn=0,Gt=Object.getOwnPropertySymbols(Kt);Tn{const{prefixCls:jt,inputPrefixCls:Gt,className:Tn,size:vt,suffix:Tt,enterButton:Pn=!1,addonAfter:Mt,loading:Zn,disabled:rr,onSearch:Xn,onChange:gr,onCompositionStart:ut,onCompositionEnd:un}=Kt,ze=$e(Kt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:J,direction:_e}=a.useContext(x.E_),et=a.useRef(!1),pt=J("input-search",jt),lt=J("input",Gt),{compactSize:kt}=(0,K.ri)(pt,_e),ye=(0,fe.Z)(de=>{var F;return(F=vt!=null?vt:kt)!==null&&F!==void 0?F:de}),Ae=a.useRef(null),Pe=de=>{de&&de.target&&de.type==="click"&&Xn&&Xn(de.target.value,de,{source:"clear"}),gr&&gr(de)},at=de=>{var F;document.activeElement===((F=Ae.current)===null||F===void 0?void 0:F.input)&&de.preventDefault()},We=de=>{var F,ie;Xn&&Xn((ie=(F=Ae.current)===null||F===void 0?void 0:F.input)===null||ie===void 0?void 0:ie.value,de,{source:"input"})},st=de=>{et.current||Zn||We(de)},Wt=typeof Pn=="boolean"?a.createElement(Ie.Z,null):null,Dt=`${pt}-button`;let Xt;const Ut=Pn||{},qt=Ut.type&&Ut.type.__ANT_BUTTON===!0;qt||Ut.type==="button"?Xt=(0,re.Tm)(Ut,Object.assign({onMouseDown:at,onClick:de=>{var F,ie;(ie=(F=Ut==null?void 0:Ut.props)===null||F===void 0?void 0:F.onClick)===null||ie===void 0||ie.call(F,de),We(de)},key:"enterButton"},qt?{className:Dt,size:ye}:{})):Xt=a.createElement(Y.ZP,{className:Dt,type:Pn?"primary":void 0,size:ye,disabled:rr,key:"enterButton",onMouseDown:at,onClick:We,loading:Zn,icon:Wt},Pn),Mt&&(Xt=[Xt,(0,re.Tm)(Mt,{key:"addonAfter"})]);const En=g()(pt,{[`${pt}-rtl`]:_e==="rtl",[`${pt}-${ye}`]:!!ye,[`${pt}-with-button`]:!!Pn},Tn),V=de=>{et.current=!0,ut==null||ut(de)},me=de=>{et.current=!1,un==null||un(de)};return a.createElement(W.Z,Object.assign({ref:(0,je.sQ)(Ae,Mn),onPressEnter:st},ze,{size:ye,onCompositionStart:V,onCompositionEnd:me,prefixCls:lt,addonAfter:Xt,suffix:Tt,onChange:Pe,className:En,disabled:rr}))}),xt=i(70006);const yt=W.Z;yt.Group=$,yt.Search=Oe,yt.TextArea=xt.Z,yt.Password=Fe;var mn=yt},38703:function(D,L,i){"use strict";i.d(L,{Z:function(){return de}});var a=i(67294),p=i(76278),g=i(35918),x=i(17012),m=i(84481),I=i(93967),y=i.n(I),$=i(98423),W=i(53124),T=i(87462),X=i(1413),o=i(91),N={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},_=function(){var ie=(0,a.useRef)([]),De=(0,a.useRef)(null);return(0,a.useEffect)(function(){var Ge=Date.now(),Qe=!1;ie.current.forEach(function(ct){if(ct){Qe=!0;var Je=ct.style;Je.transitionDuration=".3s, .3s, .3s, .06s",De.current&&Ge-De.current<100&&(Je.transitionDuration="0s, 0s")}}),Qe&&(De.current=Date.now())}),ie.current},Z=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(ie){var De=(0,X.Z)((0,X.Z)({},N),ie),Ge=De.className,Qe=De.percent,ct=De.prefixCls,Je=De.strokeColor,ft=De.strokeLinecap,dt=De.strokeWidth,Nt=De.style,Qt=De.trailColor,ln=De.trailWidth,an=De.transition,In=(0,o.Z)(De,Z);delete In.gapPosition;var Jn=Array.isArray(Qe)?Qe:[Qe],on=Array.isArray(Je)?Je:[Je],vn=_(),Nn=dt/2,jn=100-dt/2,Mr="M ".concat(ft==="round"?Nn:0,",").concat(Nn,` + L `).concat(ft==="round"?jn:100,",").concat(Nn),vr="0 0 100 ".concat(dt),zr=0;return a.createElement("svg",(0,T.Z)({className:y()("".concat(ct,"-line"),Ge),viewBox:vr,preserveAspectRatio:"none",style:Nt},In),a.createElement("path",{className:"".concat(ct,"-line-trail"),d:Mr,strokeLinecap:ft,stroke:Qt,strokeWidth:ln||dt,fillOpacity:"0"}),Jn.map(function(nr,Ir){var Vr=1;switch(ft){case"round":Vr=1-dt/100;break;case"square":Vr=1-dt/2/100;break;default:Vr=1;break}var lo={strokeDasharray:"".concat(nr*Vr,"px, 100px"),strokeDashoffset:"-".concat(zr,"px"),transition:an||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},kr=on[Ir]||on[on.length-1];return zr+=nr,a.createElement("path",{key:Ir,className:"".concat(ct,"-line-path"),d:Mr,strokeLinecap:ft,stroke:kr,strokeWidth:dt,fillOpacity:"0",ref:function(hr){vn[Ir]=hr},style:lo})}))},Me=ee,je=i(71002),Xe=i(97685),He=i(98924),Ne=0,Et=(0,He.Z)();function it(){var F;return Et?(F=Ne,Ne+=1):F="TEST_OR_SSR",F}var Fe=function(F){var ie=a.useState(),De=(0,Xe.Z)(ie,2),Ge=De[0],Qe=De[1];return a.useEffect(function(){Qe("rc_progress_".concat(it()))},[]),F||Ge},Ie=function(ie){var De=ie.bg,Ge=ie.children;return a.createElement("div",{style:{width:"100%",height:"100%",background:De}},Ge)};function re(F,ie){return Object.keys(F).map(function(De){var Ge=parseFloat(De),Qe="".concat(Math.floor(Ge*ie),"%");return"".concat(F[De]," ").concat(Qe)})}var Y=a.forwardRef(function(F,ie){var De=F.prefixCls,Ge=F.color,Qe=F.gradientId,ct=F.radius,Je=F.style,ft=F.ptg,dt=F.strokeLinecap,Nt=F.strokeWidth,Qt=F.size,ln=F.gapDegree,an=Ge&&(0,je.Z)(Ge)==="object",In=an?"#FFF":void 0,Jn=Qt/2,on=a.createElement("circle",{className:"".concat(De,"-circle-path"),r:ct,cx:Jn,cy:Jn,stroke:In,strokeLinecap:dt,strokeWidth:Nt,opacity:ft===0?0:1,style:Je,ref:ie});if(!an)return on;var vn="".concat(Qe,"-conic"),Nn=ln?"".concat(180+ln/2,"deg"):"0deg",jn=re(Ge,(360-ln)/360),Mr=re(Ge,1),vr="conic-gradient(from ".concat(Nn,", ").concat(jn.join(", "),")"),zr="linear-gradient(to ".concat(ln?"bottom":"top",", ").concat(Mr.join(", "),")");return a.createElement(a.Fragment,null,a.createElement("mask",{id:vn},on),a.createElement("foreignObject",{x:0,y:0,width:Qt,height:Qt,mask:"url(#".concat(vn,")")},a.createElement(Ie,{bg:zr},a.createElement(Ie,{bg:vr}))))}),fe=Y,K=100,$e=function(ie,De,Ge,Qe,ct,Je,ft,dt,Nt,Qt){var ln=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,an=Ge/100*360*((360-Je)/360),In=Je===0?0:{bottom:0,top:180,left:90,right:-90}[ft],Jn=(100-Qe)/100*De;Nt==="round"&&Qe!==100&&(Jn+=Qt/2,Jn>=De&&(Jn=De-.01));var on=K/2;return{stroke:typeof dt=="string"?dt:void 0,strokeDasharray:"".concat(De,"px ").concat(ie),strokeDashoffset:Jn+ln,transform:"rotate(".concat(ct+an+In,"deg)"),transformOrigin:"".concat(on,"px ").concat(on,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Be=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Oe(F){var ie=F!=null?F:[];return Array.isArray(ie)?ie:[ie]}var xt=function(ie){var De=(0,X.Z)((0,X.Z)({},N),ie),Ge=De.id,Qe=De.prefixCls,ct=De.steps,Je=De.strokeWidth,ft=De.trailWidth,dt=De.gapDegree,Nt=dt===void 0?0:dt,Qt=De.gapPosition,ln=De.trailColor,an=De.strokeLinecap,In=De.style,Jn=De.className,on=De.strokeColor,vn=De.percent,Nn=(0,o.Z)(De,Be),jn=K/2,Mr=Fe(Ge),vr="".concat(Mr,"-gradient"),zr=jn-Je/2,nr=Math.PI*2*zr,Ir=Nt>0?90+Nt/2:-90,Vr=nr*((360-Nt)/360),lo=(0,je.Z)(ct)==="object"?ct:{count:ct,space:2},kr=lo.count,jr=lo.space,hr=Oe(vn),Fn=Oe(on),qn=Fn.find(function(La){return La&&(0,je.Z)(La)==="object"}),sr=qn&&(0,je.Z)(qn)==="object",yn=sr?"butt":an,Vn=$e(nr,Vr,0,100,Ir,Nt,Qt,ln,yn,Je),ar=_(),Wo=function(){var _a=0;return hr.map(function(Ya,ii){var ue=Fn[ii]||Fn[Fn.length-1],qe=$e(nr,Vr,_a,Ya,Ir,Nt,Qt,ue,yn,Je);return _a+=Ya,a.createElement(fe,{key:ii,color:ue,ptg:Ya,radius:zr,prefixCls:Qe,gradientId:vr,style:qe,strokeLinecap:yn,strokeWidth:Je,gapDegree:Nt,ref:function(Ht){ar[ii]=Ht},size:K})}).reverse()},So=function(){var _a=Math.round(kr*(hr[0]/100)),Ya=100/kr,ii=0;return new Array(kr).fill(null).map(function(ue,qe){var St=qe<=_a-1?Fn[0]:ln,Ht=St&&(0,je.Z)(St)==="object"?"url(#".concat(vr,")"):void 0,tn=$e(nr,Vr,ii,Ya,Ir,Nt,Qt,St,"butt",Je,jr);return ii+=(Vr-tn.strokeDashoffset+jr)*100/Vr,a.createElement("circle",{key:qe,className:"".concat(Qe,"-circle-path"),r:zr,cx:jn,cy:jn,stroke:Ht,strokeWidth:Je,opacity:1,style:tn,ref:function(Or){ar[qe]=Or}})})};return a.createElement("svg",(0,T.Z)({className:y()("".concat(Qe,"-circle"),Jn),viewBox:"0 0 ".concat(K," ").concat(K),style:In,id:Ge,role:"presentation"},Nn),!kr&&a.createElement("circle",{className:"".concat(Qe,"-circle-trail"),r:zr,cx:jn,cy:jn,stroke:ln,strokeLinecap:yn,strokeWidth:ft||Je,style:Vn}),kr?So():Wo())},yt=xt,mn={Line:Me,Circle:yt},Kt=i(83062),Mn=i(78589);function jt(F){return!F||F<0?0:F>100?100:F}function Gt(F){let{success:ie,successPercent:De}=F,Ge=De;return ie&&"progress"in ie&&(Ge=ie.progress),ie&&"percent"in ie&&(Ge=ie.percent),Ge}const Tn=F=>{let{percent:ie,success:De,successPercent:Ge}=F;const Qe=jt(Gt({success:De,successPercent:Ge}));return[Qe,jt(jt(ie)-Qe)]},vt=F=>{let{success:ie={},strokeColor:De}=F;const{strokeColor:Ge}=ie;return[Ge||Mn.ez.green,De||null]},Tt=(F,ie,De)=>{var Ge,Qe,ct,Je;let ft=-1,dt=-1;if(ie==="step"){const Nt=De.steps,Qt=De.strokeWidth;typeof F=="string"||typeof F=="undefined"?(ft=F==="small"?2:14,dt=Qt!=null?Qt:8):typeof F=="number"?[ft,dt]=[F,F]:[ft=14,dt=8]=F,ft*=Nt}else if(ie==="line"){const Nt=De==null?void 0:De.strokeWidth;typeof F=="string"||typeof F=="undefined"?dt=Nt||(F==="small"?6:8):typeof F=="number"?[ft,dt]=[F,F]:[ft=-1,dt=8]=F}else(ie==="circle"||ie==="dashboard")&&(typeof F=="string"||typeof F=="undefined"?[ft,dt]=F==="small"?[60,60]:[120,120]:typeof F=="number"?[ft,dt]=[F,F]:(ft=(Qe=(Ge=F[0])!==null&&Ge!==void 0?Ge:F[1])!==null&&Qe!==void 0?Qe:120,dt=(Je=(ct=F[0])!==null&&ct!==void 0?ct:F[1])!==null&&Je!==void 0?Je:120));return[ft,dt]},Pn=3,Mt=F=>Pn/F*100;var rr=F=>{const{prefixCls:ie,trailColor:De=null,strokeLinecap:Ge="round",gapPosition:Qe,gapDegree:ct,width:Je=120,type:ft,children:dt,success:Nt,size:Qt=Je}=F,[ln,an]=Tt(Qt,"circle");let{strokeWidth:In}=F;In===void 0&&(In=Math.max(Mt(ln),6));const Jn={width:ln,height:an,fontSize:ln*.15+6},on=a.useMemo(()=>{if(ct||ct===0)return ct;if(ft==="dashboard")return 75},[ct,ft]),vn=Qe||ft==="dashboard"&&"bottom"||void 0,Nn=Object.prototype.toString.call(F.strokeColor)==="[object Object]",jn=vt({success:Nt,strokeColor:F.strokeColor}),Mr=y()(`${ie}-inner`,{[`${ie}-circle-gradient`]:Nn}),vr=a.createElement(yt,{percent:Tn(F),strokeWidth:In,trailWidth:In,strokeColor:jn,strokeLinecap:Ge,trailColor:De,prefixCls:ie,gapDegree:on,gapPosition:vn});return a.createElement("div",{className:Mr,style:Jn},ln<=20?a.createElement(Kt.Z,{title:dt},a.createElement("span",null,vr)):a.createElement(a.Fragment,null,vr,dt))},Xn=i(6731),gr=i(14747),ut=i(91945),un=i(45503);const ze="--progress-line-stroke-color",J="--progress-percent",_e=F=>{const ie=F?"100%":"-100%";return new Xn.E4(`antProgress${F?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${ie}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${ie}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},et=F=>{const{componentCls:ie,iconCls:De}=F;return{[ie]:Object.assign(Object.assign({},(0,gr.Wf)(F)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:F.fontSize},[`${ie}-outer`]:{display:"inline-block",width:"100%"},[`&${ie}-show-info`]:{[`${ie}-outer`]:{marginInlineEnd:`calc(-2em - ${(0,Xn.bf)(F.marginXS)})`,paddingInlineEnd:`calc(2em + ${(0,Xn.bf)(F.paddingXS)})`}},[`${ie}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:F.remainingColor,borderRadius:F.lineBorderRadius},[`${ie}-inner:not(${ie}-circle-gradient)`]:{[`${ie}-circle-path`]:{stroke:F.defaultColor}},[`${ie}-success-bg, ${ie}-bg`]:{position:"relative",background:F.defaultColor,borderRadius:F.lineBorderRadius,transition:`all ${F.motionDurationSlow} ${F.motionEaseInOutCirc}`},[`${ie}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ze})`]},height:"100%",width:`calc(1 / var(${J}) * 100%)`,display:"block"}},[`${ie}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:F.colorSuccess},[`${ie}-text`]:{display:"inline-block",width:"2em",marginInlineStart:F.marginXS,color:F.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[De]:{fontSize:F.fontSize}},[`&${ie}-status-active`]:{[`${ie}-bg::before`]:{position:"absolute",inset:0,backgroundColor:F.colorBgContainer,borderRadius:F.lineBorderRadius,opacity:0,animationName:_e(),animationDuration:F.progressActiveMotionDuration,animationTimingFunction:F.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${ie}-rtl${ie}-status-active`]:{[`${ie}-bg::before`]:{animationName:_e(!0)}},[`&${ie}-status-exception`]:{[`${ie}-bg`]:{backgroundColor:F.colorError},[`${ie}-text`]:{color:F.colorError}},[`&${ie}-status-exception ${ie}-inner:not(${ie}-circle-gradient)`]:{[`${ie}-circle-path`]:{stroke:F.colorError}},[`&${ie}-status-success`]:{[`${ie}-bg`]:{backgroundColor:F.colorSuccess},[`${ie}-text`]:{color:F.colorSuccess}},[`&${ie}-status-success ${ie}-inner:not(${ie}-circle-gradient)`]:{[`${ie}-circle-path`]:{stroke:F.colorSuccess}}})}},pt=F=>{const{componentCls:ie,iconCls:De}=F;return{[ie]:{[`${ie}-circle-trail`]:{stroke:F.remainingColor},[`&${ie}-circle ${ie}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${ie}-circle ${ie}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:F.circleTextColor,fontSize:F.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[De]:{fontSize:F.circleIconFontSize}},[`${ie}-circle&-status-exception`]:{[`${ie}-text`]:{color:F.colorError}},[`${ie}-circle&-status-success`]:{[`${ie}-text`]:{color:F.colorSuccess}}},[`${ie}-inline-circle`]:{lineHeight:1,[`${ie}-inner`]:{verticalAlign:"bottom"}}}},lt=F=>{const{componentCls:ie}=F;return{[ie]:{[`${ie}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:F.progressStepMinWidth,marginInlineEnd:F.progressStepMarginInlineEnd,backgroundColor:F.remainingColor,transition:`all ${F.motionDurationSlow}`,"&-active":{backgroundColor:F.defaultColor}}}}}},kt=F=>{const{componentCls:ie,iconCls:De}=F;return{[ie]:{[`${ie}-small&-line, ${ie}-small&-line ${ie}-text ${De}`]:{fontSize:F.fontSizeSM}}}},ye=F=>({circleTextColor:F.colorText,defaultColor:F.colorInfo,remainingColor:F.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${F.fontSize/F.fontSizeSM}em`});var Ae=(0,ut.I$)("Progress",F=>{const ie=F.calc(F.marginXXS).div(2).equal(),De=(0,un.TS)(F,{progressStepMarginInlineEnd:ie,progressStepMinWidth:ie,progressActiveMotionDuration:"2.4s"});return[et(De),pt(De),lt(De),kt(De)]},ye),Pe=function(F,ie){var De={};for(var Ge in F)Object.prototype.hasOwnProperty.call(F,Ge)&&ie.indexOf(Ge)<0&&(De[Ge]=F[Ge]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Ge=Object.getOwnPropertySymbols(F);Qe{let ie=[];return Object.keys(F).forEach(De=>{const Ge=parseFloat(De.replace(/%/g,""));isNaN(Ge)||ie.push({key:Ge,value:F[De]})}),ie=ie.sort((De,Ge)=>De.key-Ge.key),ie.map(De=>{let{key:Ge,value:Qe}=De;return`${Qe} ${Ge}%`}).join(", ")},We=(F,ie)=>{const{from:De=Mn.ez.blue,to:Ge=Mn.ez.blue,direction:Qe=ie==="rtl"?"to left":"to right"}=F,ct=Pe(F,["from","to","direction"]);if(Object.keys(ct).length!==0){const ft=at(ct),dt=`linear-gradient(${Qe}, ${ft})`;return{background:dt,[ze]:dt}}const Je=`linear-gradient(${Qe}, ${De}, ${Ge})`;return{background:Je,[ze]:Je}};var Wt=F=>{const{prefixCls:ie,direction:De,percent:Ge,size:Qe,strokeWidth:ct,strokeColor:Je,strokeLinecap:ft="round",children:dt,trailColor:Nt=null,success:Qt}=F,ln=Je&&typeof Je!="string"?We(Je,De):{[ze]:Je,background:Je},an=ft==="square"||ft==="butt"?0:void 0,In=Qe!=null?Qe:[-1,ct||(Qe==="small"?6:8)],[Jn,on]=Tt(In,"line",{strokeWidth:ct}),vn={backgroundColor:Nt||void 0,borderRadius:an},Nn=Object.assign(Object.assign({width:`${jt(Ge)}%`,height:on,borderRadius:an},ln),{[J]:jt(Ge)/100}),jn=Gt(F),Mr={width:`${jt(jn)}%`,height:on,borderRadius:an,backgroundColor:Qt==null?void 0:Qt.strokeColor},vr={width:Jn<0?"100%":Jn,height:on};return a.createElement(a.Fragment,null,a.createElement("div",{className:`${ie}-outer`,style:vr},a.createElement("div",{className:`${ie}-inner`,style:vn},a.createElement("div",{className:`${ie}-bg`,style:Nn}),jn!==void 0?a.createElement("div",{className:`${ie}-success-bg`,style:Mr}):null)),dt)},Xt=F=>{const{size:ie,steps:De,percent:Ge=0,strokeWidth:Qe=8,strokeColor:ct,trailColor:Je=null,prefixCls:ft,children:dt}=F,Nt=Math.round(De*(Ge/100)),Qt=ie==="small"?2:14,ln=ie!=null?ie:[Qt,Qe],[an,In]=Tt(ln,"step",{steps:De,strokeWidth:Qe}),Jn=an/De,on=new Array(De);for(let vn=0;vn{const{prefixCls:De,className:Ge,rootClassName:Qe,steps:ct,strokeColor:Je,percent:ft=0,size:dt="default",showInfo:Nt=!0,type:Qt="line",status:ln,format:an,style:In}=F,Jn=Ut(F,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),on=a.useMemo(()=>{var Fn,qn;const sr=Gt(F);return parseInt(sr!==void 0?(Fn=sr!=null?sr:0)===null||Fn===void 0?void 0:Fn.toString():(qn=ft!=null?ft:0)===null||qn===void 0?void 0:qn.toString(),10)},[ft,F.success,F.successPercent]),vn=a.useMemo(()=>!En.includes(ln)&&on>=100?"success":ln||"normal",[ln,on]),{getPrefixCls:Nn,direction:jn,progress:Mr}=a.useContext(W.E_),vr=Nn("progress",De),[zr,nr,Ir]=Ae(vr),Vr=a.useMemo(()=>{if(!Nt)return null;const Fn=Gt(F);let qn;const sr=an||(Vn=>`${Vn}%`),yn=Qt==="line";return an||vn!=="exception"&&vn!=="success"?qn=sr(jt(ft),jt(Fn)):vn==="exception"?qn=yn?a.createElement(x.Z,null):a.createElement(m.Z,null):vn==="success"&&(qn=yn?a.createElement(p.Z,null):a.createElement(g.Z,null)),a.createElement("span",{className:`${vr}-text`,title:typeof qn=="string"?qn:void 0},qn)},[Nt,ft,on,vn,Qt,vr,an]),lo=Array.isArray(Je)?Je[0]:Je,kr=typeof Je=="string"||Array.isArray(Je)?Je:void 0;let jr;Qt==="line"?jr=ct?a.createElement(Xt,Object.assign({},F,{strokeColor:kr,prefixCls:vr,steps:ct}),Vr):a.createElement(Wt,Object.assign({},F,{strokeColor:lo,prefixCls:vr,direction:jn}),Vr):(Qt==="circle"||Qt==="dashboard")&&(jr=a.createElement(rr,Object.assign({},F,{strokeColor:lo,prefixCls:vr,progressStatus:vn}),Vr));const hr=y()(vr,`${vr}-status-${vn}`,`${vr}-${Qt==="dashboard"&&"circle"||ct&&"steps"||Qt}`,{[`${vr}-inline-circle`]:Qt==="circle"&&Tt(dt,"circle")[0]<=20,[`${vr}-show-info`]:Nt,[`${vr}-${dt}`]:typeof dt=="string",[`${vr}-rtl`]:jn==="rtl"},Mr==null?void 0:Mr.className,Ge,Qe,nr,Ir);return zr(a.createElement("div",Object.assign({ref:ie,style:Object.assign(Object.assign({},Mr==null?void 0:Mr.style),In),className:hr,role:"progressbar","aria-valuenow":on},(0,$.Z)(Jn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),jr))}),de=me},83863:function(D,L,i){"use strict";i.d(L,{Z:function(){return Ma}});var a=i(67294),p=i(93967),g=i.n(p),x=i(87462),m=i(74902),I=i(4942),y=i(1413),$=i(97685),W=i(91),T=i(71002),X=i(21770),o=i(80334),N=i(8410),_=i(31131),Z=i(15105),ee=i(42550),Me=function(ce){var bt=ce.className,ot=ce.customizeIcon,wt=ce.customizeIconProps,sn=ce.children,gn=ce.onMouseDown,Dn=ce.onClick,Hn=typeof ot=="function"?ot(wt):ot;return a.createElement("span",{className:bt,onMouseDown:function(Yn){Yn.preventDefault(),gn==null||gn(Yn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Dn,"aria-hidden":!0},Hn!==void 0?Hn:a.createElement("span",{className:g()(bt.split(/\s+/).map(function(or){return"".concat(or,"-icon")}))},sn))},je=Me,Xe=function(ce,bt,ot,wt,sn){var gn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Dn=arguments.length>6?arguments[6]:void 0,Hn=arguments.length>7?arguments[7]:void 0,or=a.useMemo(function(){if((0,T.Z)(wt)==="object")return wt.clearIcon;if(sn)return sn},[wt,sn]),Yn=a.useMemo(function(){return!!(!gn&&wt&&(ot.length||Dn)&&!(Hn==="combobox"&&Dn===""))},[wt,gn,ot.length,Dn,Hn]);return{allowClear:Yn,clearIcon:a.createElement(je,{className:"".concat(ce,"-clear"),onMouseDown:bt,customizeIcon:or},"\xD7")}},He=a.createContext(null);function Ne(){return a.useContext(He)}function Et(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ce=a.useState(!1),bt=(0,$.Z)(ce,2),ot=bt[0],wt=bt[1],sn=a.useRef(null),gn=function(){window.clearTimeout(sn.current)};a.useEffect(function(){return gn},[]);var Dn=function(or,Yn){gn(),sn.current=window.setTimeout(function(){wt(or),Yn&&Yn()},xe)};return[ot,Dn,gn]}function it(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ce=a.useRef(null),bt=a.useRef(null);a.useEffect(function(){return function(){window.clearTimeout(bt.current)}},[]);function ot(wt){(wt||ce.current===null)&&(ce.current=wt),window.clearTimeout(bt.current),bt.current=window.setTimeout(function(){ce.current=null},xe)}return[function(){return ce.current},ot]}function Fe(xe,ce,bt,ot){var wt=a.useRef(null);wt.current={open:ce,triggerOpen:bt,customizedTrigger:ot},a.useEffect(function(){function sn(gn){var Dn;if(!((Dn=wt.current)!==null&&Dn!==void 0&&Dn.customizedTrigger)){var Hn=gn.target;Hn.shadowRoot&&gn.composed&&(Hn=gn.composedPath()[0]||Hn),wt.current.open&&xe().filter(function(or){return or}).every(function(or){return!or.contains(Hn)&&or!==Hn})&&wt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",sn),function(){return window.removeEventListener("mousedown",sn)}},[])}function Ie(xe){return![Z.Z.ESC,Z.Z.SHIFT,Z.Z.BACKSPACE,Z.Z.TAB,Z.Z.WIN_KEY,Z.Z.ALT,Z.Z.META,Z.Z.WIN_KEY_RIGHT,Z.Z.CTRL,Z.Z.SEMICOLON,Z.Z.EQUALS,Z.Z.CAPS_LOCK,Z.Z.CONTEXT_MENU,Z.Z.F1,Z.Z.F2,Z.Z.F3,Z.Z.F4,Z.Z.F5,Z.Z.F6,Z.Z.F7,Z.Z.F8,Z.Z.F9,Z.Z.F10,Z.Z.F11,Z.Z.F12].includes(xe)}var re=i(64217),Y=i(39983),fe=function(ce,bt){var ot,wt=ce.prefixCls,sn=ce.id,gn=ce.inputElement,Dn=ce.disabled,Hn=ce.tabIndex,or=ce.autoFocus,Yn=ce.autoComplete,Qn=ce.editable,Ft=ce.activeDescendantId,pn=ce.value,Bn=ce.maxLength,cr=ce.onKeyDown,er=ce.onMouseDown,_t=ce.onChange,$n=ce.onPaste,_n=ce.onCompositionStart,dr=ce.onCompositionEnd,ra=ce.open,Sr=ce.attrs,va=gn||a.createElement("input",null),Ka=va,Ga=Ka.ref,Gr=Ka.props,Zr=Gr.onKeyDown,ga=Gr.onChange,Q=Gr.onMouseDown,Se=Gr.onCompositionStart,Ye=Gr.onCompositionEnd,nn=Gr.style;return(0,o.Kp)(!("maxLength"in va.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),va=a.cloneElement(va,(0,y.Z)((0,y.Z)((0,y.Z)({type:"search"},Gr),{},{id:sn,ref:(0,ee.sQ)(bt,Ga),disabled:Dn,tabIndex:Hn,autoComplete:Yn||"off",autoFocus:or,className:g()("".concat(wt,"-selection-search-input"),(ot=va)===null||ot===void 0||(ot=ot.props)===null||ot===void 0?void 0:ot.className),role:"combobox","aria-expanded":ra||!1,"aria-haspopup":"listbox","aria-owns":"".concat(sn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(sn,"_list"),"aria-activedescendant":ra?Ft:void 0},Sr),{},{value:Qn?pn:"",maxLength:Bn,readOnly:!Qn,unselectable:Qn?null:"on",style:(0,y.Z)((0,y.Z)({},nn),{},{opacity:Qn?null:0}),onKeyDown:function(kn){cr(kn),Zr&&Zr(kn)},onMouseDown:function(kn){er(kn),Q&&Q(kn)},onChange:function(kn){_t(kn),ga&&ga(kn)},onCompositionStart:function(kn){_n(kn),Se&&Se(kn)},onCompositionEnd:function(kn){dr(kn),Ye&&Ye(kn)},onPaste:$n})),va},K=a.forwardRef(fe),$e=K;function Be(xe){return Array.isArray(xe)?xe:xe!==void 0?[xe]:[]}var Oe=typeof window!="undefined"&&window.document&&window.document.documentElement,xt=Oe;function yt(xe){return xe!=null}function mn(xe){return!xe&&xe!==0}function Kt(xe){return["string","number"].includes((0,T.Z)(xe))}function Mn(xe){var ce=void 0;return xe&&(Kt(xe.title)?ce=xe.title.toString():Kt(xe.label)&&(ce=xe.label.toString())),ce}function jt(xe,ce){xt?a.useLayoutEffect(xe,ce):a.useEffect(xe,ce)}function Gt(xe){var ce;return(ce=xe.key)!==null&&ce!==void 0?ce:xe.value}var Tn=function(ce){ce.preventDefault(),ce.stopPropagation()},vt=function(ce){var bt=ce.id,ot=ce.prefixCls,wt=ce.values,sn=ce.open,gn=ce.searchValue,Dn=ce.autoClearSearchValue,Hn=ce.inputRef,or=ce.placeholder,Yn=ce.disabled,Qn=ce.mode,Ft=ce.showSearch,pn=ce.autoFocus,Bn=ce.autoComplete,cr=ce.activeDescendantId,er=ce.tabIndex,_t=ce.removeIcon,$n=ce.maxTagCount,_n=ce.maxTagTextLength,dr=ce.maxTagPlaceholder,ra=dr===void 0?function(Da){return"+ ".concat(Da.length," ...")}:dr,Sr=ce.tagRender,va=ce.onToggleOpen,Ka=ce.onRemove,Ga=ce.onInputChange,Gr=ce.onInputPaste,Zr=ce.onInputKeyDown,ga=ce.onInputMouseDown,Q=ce.onInputCompositionStart,Se=ce.onInputCompositionEnd,Ye=a.useRef(null),nn=(0,a.useState)(0),An=(0,$.Z)(nn,2),kn=An[0],xr=An[1],fr=(0,a.useState)(!1),Fa=(0,$.Z)(fr,2),Va=Fa[0],Aa=Fa[1],uo="".concat(ot,"-selection"),po=sn||Qn==="multiple"&&Dn===!1||Qn==="tags"?gn:"",Si=Qn==="tags"||Qn==="multiple"&&Dn===!1||Ft&&(sn||Va);jt(function(){xr(Ye.current.scrollWidth)},[po]);var bo=function(oa,yr,xo,Bo,No){return a.createElement("span",{title:Mn(oa),className:g()("".concat(uo,"-item"),(0,I.Z)({},"".concat(uo,"-item-disabled"),xo))},a.createElement("span",{className:"".concat(uo,"-item-content")},yr),Bo&&a.createElement(je,{className:"".concat(uo,"-item-remove"),onMouseDown:Tn,onClick:No,customizeIcon:_t},"\xD7"))},Ui=function(oa,yr,xo,Bo,No){var ei=function(_i){Tn(_i),va(!sn)};return a.createElement("span",{onMouseDown:ei},Sr({label:yr,value:oa,disabled:xo,closable:Bo,onClose:No}))},Fi=function(oa){var yr=oa.disabled,xo=oa.label,Bo=oa.value,No=!Yn&&!yr,ei=xo;if(typeof _n=="number"&&(typeof xo=="string"||typeof xo=="number")){var cl=String(ei);cl.length>_n&&(ei="".concat(cl.slice(0,_n),"..."))}var _i=function(Vi){Vi&&Vi.stopPropagation(),Ka(oa)};return typeof Sr=="function"?Ui(Bo,ei,yr,No,_i):bo(oa,ei,yr,No,_i)},ha=function(oa){var yr=typeof ra=="function"?ra(oa):ra;return bo({title:yr},yr,!1)},aa=a.createElement("div",{className:"".concat(uo,"-search"),style:{width:kn},onFocus:function(){Aa(!0)},onBlur:function(){Aa(!1)}},a.createElement($e,{ref:Hn,open:sn,prefixCls:ot,id:bt,inputElement:null,disabled:Yn,autoFocus:pn,autoComplete:Bn,editable:Si,activeDescendantId:cr,value:po,onKeyDown:Zr,onMouseDown:ga,onChange:Ga,onPaste:Gr,onCompositionStart:Q,onCompositionEnd:Se,tabIndex:er,attrs:(0,re.Z)(ce,!0)}),a.createElement("span",{ref:Ye,className:"".concat(uo,"-search-mirror"),"aria-hidden":!0},po,"\xA0")),ya=a.createElement(Y.Z,{prefixCls:"".concat(uo,"-overflow"),data:wt,renderItem:Fi,renderRest:ha,suffix:aa,itemKey:Gt,maxCount:$n});return a.createElement(a.Fragment,null,ya,!wt.length&&!po&&a.createElement("span",{className:"".concat(uo,"-placeholder")},or))},Tt=vt,Pn=function(ce){var bt=ce.inputElement,ot=ce.prefixCls,wt=ce.id,sn=ce.inputRef,gn=ce.disabled,Dn=ce.autoFocus,Hn=ce.autoComplete,or=ce.activeDescendantId,Yn=ce.mode,Qn=ce.open,Ft=ce.values,pn=ce.placeholder,Bn=ce.tabIndex,cr=ce.showSearch,er=ce.searchValue,_t=ce.activeValue,$n=ce.maxLength,_n=ce.onInputKeyDown,dr=ce.onInputMouseDown,ra=ce.onInputChange,Sr=ce.onInputPaste,va=ce.onInputCompositionStart,Ka=ce.onInputCompositionEnd,Ga=ce.title,Gr=a.useState(!1),Zr=(0,$.Z)(Gr,2),ga=Zr[0],Q=Zr[1],Se=Yn==="combobox",Ye=Se||cr,nn=Ft[0],An=er||"";Se&&_t&&!ga&&(An=_t),a.useEffect(function(){Se&&Q(!1)},[Se,_t]);var kn=Yn!=="combobox"&&!Qn&&!cr?!1:!!An,xr=Ga===void 0?Mn(nn):Ga,fr=a.useMemo(function(){return nn?null:a.createElement("span",{className:"".concat(ot,"-selection-placeholder"),style:kn?{visibility:"hidden"}:void 0},pn)},[nn,kn,pn,ot]);return a.createElement(a.Fragment,null,a.createElement("span",{className:"".concat(ot,"-selection-search")},a.createElement($e,{ref:sn,prefixCls:ot,id:wt,open:Qn,inputElement:bt,disabled:gn,autoFocus:Dn,autoComplete:Hn,editable:Ye,activeDescendantId:or,value:An,onKeyDown:_n,onMouseDown:dr,onChange:function(Va){Q(!0),ra(Va)},onPaste:Sr,onCompositionStart:va,onCompositionEnd:Ka,tabIndex:Bn,attrs:(0,re.Z)(ce,!0),maxLength:Se?$n:void 0})),!Se&&nn?a.createElement("span",{className:"".concat(ot,"-selection-item"),title:xr,style:kn?{visibility:"hidden"}:void 0},nn.label):null,fr)},Mt=Pn,Zn=function(ce,bt){var ot=(0,a.useRef)(null),wt=(0,a.useRef)(!1),sn=ce.prefixCls,gn=ce.open,Dn=ce.mode,Hn=ce.showSearch,or=ce.tokenWithEnter,Yn=ce.autoClearSearchValue,Qn=ce.onSearch,Ft=ce.onSearchSubmit,pn=ce.onToggleOpen,Bn=ce.onInputKeyDown,cr=ce.domRef;a.useImperativeHandle(bt,function(){return{focus:function(An){ot.current.focus(An)},blur:function(){ot.current.blur()}}});var er=it(0),_t=(0,$.Z)(er,2),$n=_t[0],_n=_t[1],dr=function(An){var kn=An.which;(kn===Z.Z.UP||kn===Z.Z.DOWN)&&An.preventDefault(),Bn&&Bn(An),kn===Z.Z.ENTER&&Dn==="tags"&&!wt.current&&!gn&&(Ft==null||Ft(An.target.value)),Ie(kn)&&pn(!0)},ra=function(){_n(!0)},Sr=(0,a.useRef)(null),va=function(An){Qn(An,!0,wt.current)!==!1&&pn(!0)},Ka=function(){wt.current=!0},Ga=function(An){wt.current=!1,Dn!=="combobox"&&va(An.target.value)},Gr=function(An){var kn=An.target.value;if(or&&Sr.current&&/[\r\n]/.test(Sr.current)){var xr=Sr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");kn=kn.replace(xr,Sr.current)}Sr.current=null,va(kn)},Zr=function(An){var kn=An.clipboardData,xr=kn==null?void 0:kn.getData("text");Sr.current=xr||""},ga=function(An){var kn=An.target;if(kn!==ot.current){var xr=document.body.style.msTouchAction!==void 0;xr?setTimeout(function(){ot.current.focus()}):ot.current.focus()}},Q=function(An){var kn=$n();An.target!==ot.current&&!kn&&Dn!=="combobox"&&An.preventDefault(),(Dn!=="combobox"&&(!Hn||!kn)||!gn)&&(gn&&Yn!==!1&&Qn("",!0,!1),pn())},Se={inputRef:ot,onInputKeyDown:dr,onInputMouseDown:ra,onInputChange:Gr,onInputPaste:Zr,onInputCompositionStart:Ka,onInputCompositionEnd:Ga},Ye=Dn==="multiple"||Dn==="tags"?a.createElement(Tt,(0,x.Z)({},ce,Se)):a.createElement(Mt,(0,x.Z)({},ce,Se));return a.createElement("div",{ref:cr,className:"".concat(sn,"-selector"),onClick:ga,onMouseDown:Q},Ye)},rr=a.forwardRef(Zn),Xn=rr,gr=i(40228),ut=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],un=function(ce){var bt=ce===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"}}},ze=function(ce,bt){var ot=ce.prefixCls,wt=ce.disabled,sn=ce.visible,gn=ce.children,Dn=ce.popupElement,Hn=ce.animation,or=ce.transitionName,Yn=ce.dropdownStyle,Qn=ce.dropdownClassName,Ft=ce.direction,pn=Ft===void 0?"ltr":Ft,Bn=ce.placement,cr=ce.builtinPlacements,er=ce.dropdownMatchSelectWidth,_t=ce.dropdownRender,$n=ce.dropdownAlign,_n=ce.getPopupContainer,dr=ce.empty,ra=ce.getTriggerDOMNode,Sr=ce.onPopupVisibleChange,va=ce.onPopupMouseEnter,Ka=(0,W.Z)(ce,ut),Ga="".concat(ot,"-dropdown"),Gr=Dn;_t&&(Gr=_t(Dn));var Zr=a.useMemo(function(){return cr||un(er)},[cr,er]),ga=Hn?"".concat(Ga,"-").concat(Hn):or,Q=typeof er=="number",Se=a.useMemo(function(){return Q?null:er===!1?"minWidth":"width"},[er,Q]),Ye=Yn;Q&&(Ye=(0,y.Z)((0,y.Z)({},Ye),{},{width:er}));var nn=a.useRef(null);return a.useImperativeHandle(bt,function(){return{getPopupElement:function(){return nn.current}}}),a.createElement(gr.Z,(0,x.Z)({},Ka,{showAction:Sr?["click"]:[],hideAction:Sr?["click"]:[],popupPlacement:Bn||(pn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Zr,prefixCls:Ga,popupTransitionName:ga,popup:a.createElement("div",{ref:nn,onMouseEnter:va},Gr),stretch:Se,popupAlign:$n,popupVisible:sn,getPopupContainer:_n,popupClassName:g()(Qn,(0,I.Z)({},"".concat(Ga,"-empty"),dr)),popupStyle:Ye,getTriggerDOMNode:ra,onPopupVisibleChange:Sr}),gn)},J=a.forwardRef(ze),_e=J,et=i(84506);function pt(xe,ce){var bt=xe.key,ot;return"value"in xe&&(ot=xe.value),bt!=null?bt:ot!==void 0?ot:"rc-index-key-".concat(ce)}function lt(xe){return typeof xe!="undefined"&&!Number.isNaN(xe)}function kt(xe,ce){var bt=xe||{},ot=bt.label,wt=bt.value,sn=bt.options,gn=bt.groupLabel,Dn=ot||(ce?"children":"label");return{label:Dn,value:wt||"value",options:sn||"options",groupLabel:gn||Dn}}function ye(xe){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},bt=ce.fieldNames,ot=ce.childrenAsData,wt=[],sn=kt(bt,!1),gn=sn.label,Dn=sn.value,Hn=sn.options,or=sn.groupLabel;function Yn(Qn,Ft){Array.isArray(Qn)&&Qn.forEach(function(pn){if(Ft||!(Hn in pn)){var Bn=pn[Dn];wt.push({key:pt(pn,wt.length),groupOption:Ft,data:pn,label:pn[gn],value:Bn})}else{var cr=pn[or];cr===void 0&&ot&&(cr=pn.label),wt.push({key:pt(pn,wt.length),group:!0,data:pn,label:cr}),Yn(pn[Hn],!0)}})}return Yn(xe,!1),wt}function Ae(xe){var ce=(0,y.Z)({},xe);return"props"in ce||Object.defineProperty(ce,"props",{get:function(){return(0,o.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ce}}),ce}var Pe=function(ce,bt,ot){if(!bt||!bt.length)return null;var wt=!1,sn=function Dn(Hn,or){var Yn=(0,et.Z)(or),Qn=Yn[0],Ft=Yn.slice(1);if(!Qn)return[Hn];var pn=Hn.split(Qn);return wt=wt||pn.length>1,pn.reduce(function(Bn,cr){return[].concat((0,m.Z)(Bn),(0,m.Z)(Dn(cr,Ft)))},[]).filter(Boolean)},gn=sn(ce,bt);return wt?typeof ot!="undefined"?gn.slice(0,ot):gn:null},at=a.createContext(null),We=at,st=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Wt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Dt=function(ce){return ce==="tags"||ce==="multiple"},Xt=a.forwardRef(function(xe,ce){var bt,ot=xe.id,wt=xe.prefixCls,sn=xe.className,gn=xe.showSearch,Dn=xe.tagRender,Hn=xe.direction,or=xe.omitDomProps,Yn=xe.displayValues,Qn=xe.onDisplayValuesChange,Ft=xe.emptyOptions,pn=xe.notFoundContent,Bn=pn===void 0?"Not Found":pn,cr=xe.onClear,er=xe.mode,_t=xe.disabled,$n=xe.loading,_n=xe.getInputElement,dr=xe.getRawInputElement,ra=xe.open,Sr=xe.defaultOpen,va=xe.onDropdownVisibleChange,Ka=xe.activeValue,Ga=xe.onActiveValueChange,Gr=xe.activeDescendantId,Zr=xe.searchValue,ga=xe.autoClearSearchValue,Q=xe.onSearch,Se=xe.onSearchSplit,Ye=xe.tokenSeparators,nn=xe.allowClear,An=xe.suffixIcon,kn=xe.clearIcon,xr=xe.OptionList,fr=xe.animation,Fa=xe.transitionName,Va=xe.dropdownStyle,Aa=xe.dropdownClassName,uo=xe.dropdownMatchSelectWidth,po=xe.dropdownRender,Si=xe.dropdownAlign,bo=xe.placement,Ui=xe.builtinPlacements,Fi=xe.getPopupContainer,ha=xe.showAction,aa=ha===void 0?[]:ha,ya=xe.onFocus,Da=xe.onBlur,oa=xe.onKeyUp,yr=xe.onKeyDown,xo=xe.onMouseDown,Bo=(0,W.Z)(xe,st),No=Dt(er),ei=(gn!==void 0?gn:No)||er==="combobox",cl=(0,y.Z)({},Bo);Wt.forEach(function(q){delete cl[q]}),or==null||or.forEach(function(q){delete cl[q]});var _i=a.useState(!1),el=(0,$.Z)(_i,2),Vi=el[0],ti=el[1];a.useEffect(function(){ti((0,_.Z)())},[]);var Hi=a.useRef(null),ki=a.useRef(null),Go=a.useRef(null),jo=a.useRef(null),Ro=a.useRef(null),Bi=a.useRef(!1),xi=Et(),li=(0,$.Z)(xi,3),si=li[0],Xo=li[1],bl=li[2];a.useImperativeHandle(ce,function(){var q,ge;return{focus:(q=jo.current)===null||q===void 0?void 0:q.focus,blur:(ge=jo.current)===null||ge===void 0?void 0:ge.blur,scrollTo:function(B){var U;return(U=Ro.current)===null||U===void 0?void 0:U.scrollTo(B)}}});var tl=a.useMemo(function(){var q;if(er!=="combobox")return Zr;var ge=(q=Yn[0])===null||q===void 0?void 0:q.value;return typeof ge=="string"||typeof ge=="number"?String(ge):""},[Zr,er,Yn]),yl=er==="combobox"&&typeof _n=="function"&&_n()||null,wi=typeof dr=="function"&&dr(),as=(0,ee.x1)(ki,wi==null||(bt=wi.props)===null||bt===void 0?void 0:bt.ref),nl=a.useState(!1),$l=(0,$.Z)(nl,2),os=$l[0],ds=$l[1];(0,N.Z)(function(){ds(!0)},[]);var fs=(0,X.Z)(!1,{defaultValue:Sr,value:ra}),Pl=(0,$.Z)(fs,2),Xl=Pl[0],jl=Pl[1],fo=os?Xl:!1,dn=!Bn&&Ft;(_t||dn&&fo&&er==="combobox")&&(fo=!1);var Ql=dn?!1:fo,pr=a.useCallback(function(q){var ge=q!==void 0?q:!fo;_t||(jl(ge),fo!==ge&&(va==null||va(ge)))},[_t,fo,jl,va]),$a=a.useMemo(function(){return(Ye||[]).some(function(q){return[` +`,`\r +`].includes(q)})},[Ye]),Ca=a.useContext(We)||{},Wa=Ca.maxCount,Io=Ca.rawValues,Ho=function(ge,Ze,B){if(!(No&<(Wa)&&(Io==null?void 0:Io.size)>=Wa)){var U=!0,se=ge;Ga==null||Ga(null);var Ce=Pe(ge,Ye,lt(Wa)?Wa-Io.size:void 0),Le=B?null:Ce;return er!=="combobox"&&Le&&(se="",Se==null||Se(Le),pr(!1),U=!1),Q&&tl!==se&&Q(se,{source:Ze?"typing":"effect"}),U}},El=function(ge){!ge||!ge.trim()||Q(ge,{source:"submit"})};a.useEffect(function(){!fo&&!No&&er!=="combobox"&&Ho("",!1,!1)},[fo]),a.useEffect(function(){Xl&&_t&&jl(!1),_t&&!Bi.current&&Xo(!1)},[_t]);var ml=it(),Vl=(0,$.Z)(ml,2),Mi=Vl[0],Nl=Vl[1],vs=function(ge){var Ze=Mi(),B=ge.which;if(B===Z.Z.ENTER&&(er!=="combobox"&&ge.preventDefault(),fo||pr(!0)),Nl(!!tl),B===Z.Z.BACKSPACE&&!Ze&&No&&!tl&&Yn.length){for(var U=(0,m.Z)(Yn),se=null,Ce=U.length-1;Ce>=0;Ce-=1){var Le=U[Ce];if(!Le.disabled){U.splice(Ce,1),se=Le;break}}se&&Qn(U,{type:"remove",values:[se]})}for(var nt=arguments.length,Ke=new Array(nt>1?nt-1:0),Ct=1;Ct1?Ze-1:0),U=1;U1?Ce-1:0),nt=1;nt=Bn},[Dn,Bn,dr==null?void 0:dr.size]),Ye=function(aa){aa.preventDefault()},nn=function(aa){var ya;(ya=Q.current)===null||ya===void 0||ya.scrollTo(typeof aa=="number"?{index:aa}:aa)},An=function(aa){for(var ya=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Da=ga.length,oa=0;oa1&&arguments[1]!==void 0?arguments[1]:!1;Fa(aa);var Da={source:ya?"keyboard":"mouse"},oa=ga[aa];if(!oa){er(null,-1,Da);return}er(oa.value,aa,Da)};(0,a.useEffect)(function(){Va(_t!==!1?An(0):-1)},[ga.length,or]);var Aa=a.useCallback(function(ha){return dr.has(ha)&&Hn!=="combobox"},[Hn,(0,m.Z)(dr).toString(),dr.size]);(0,a.useEffect)(function(){var ha=setTimeout(function(){if(!Dn&&gn&&dr.size===1){var ya=Array.from(dr)[0],Da=ga.findIndex(function(oa){var yr=oa.data;return yr.value===ya});Da!==-1&&(Va(Da),nn(Da))}});if(gn){var aa;(aa=Q.current)===null||aa===void 0||aa.scrollTo(void 0)}return function(){return clearTimeout(ha)}},[gn,or]);var uo=function(aa){aa!==void 0&&$n(aa,{selected:!dr.has(aa)}),Dn||Yn(!1)};if(a.useImperativeHandle(bt,function(){return{onKeyDown:function(aa){var ya=aa.which,Da=aa.ctrlKey;switch(ya){case Z.Z.N:case Z.Z.P:case Z.Z.UP:case Z.Z.DOWN:{var oa=0;if(ya===Z.Z.UP?oa=-1:ya===Z.Z.DOWN?oa=1:De()&&Da&&(ya===Z.Z.N?oa=1:ya===Z.Z.P&&(oa=-1)),oa!==0){var yr=An(fr+oa,oa);nn(yr),Va(yr,!0)}break}case Z.Z.ENTER:{var xo,Bo=ga[fr];Bo&&!(Bo!=null&&(xo=Bo.data)!==null&&xo!==void 0&&xo.disabled)&&!Se?uo(Bo.value):uo(void 0),gn&&aa.preventDefault();break}case Z.Z.ESC:Yn(!1),gn&&aa.stopPropagation()}},onKeyUp:function(){},scrollTo:function(aa){nn(aa)}}}),ga.length===0)return a.createElement("div",{role:"listbox",id:"".concat(sn,"_list"),className:"".concat(Zr,"-empty"),onMouseDown:Ye},Qn);var po=Object.keys(ra).map(function(ha){return ra[ha]}),Si=function(aa){return aa.label};function bo(ha,aa){var ya=ha.group;return{role:ya?"presentation":"option",id:"".concat(sn,"_list_").concat(aa)}}var Ui=function(aa){var ya=ga[aa];if(!ya)return null;var Da=ya.data||{},oa=Da.value,yr=ya.group,xo=(0,re.Z)(Da,!0),Bo=Si(ya);return ya?a.createElement("div",(0,x.Z)({"aria-label":typeof Bo=="string"&&!yr?Bo:null},xo,{key:aa},bo(ya,aa),{"aria-selected":Aa(oa)}),oa):null},Fi={role:"listbox",id:"".concat(sn,"_list")};return a.createElement(a.Fragment,null,Sr&&a.createElement("div",(0,x.Z)({},Fi,{style:{height:0,width:0,overflow:"hidden"}}),Ui(fr-1),Ui(fr),Ui(fr+1)),a.createElement(ie.Z,{itemKey:"key",ref:Q,data:ga,height:Ka,itemHeight:Ga,fullHeight:!1,onMouseDown:Ye,onScroll:Ft,virtual:Sr,direction:va,innerProps:Sr?null:Fi},function(ha,aa){var ya=ha.group,Da=ha.groupOption,oa=ha.data,yr=ha.label,xo=ha.value,Bo=oa.key;if(ya){var No,ei=(No=oa.title)!==null&&No!==void 0?No:Qe(yr)?yr.toString():void 0;return a.createElement("div",{className:g()(Zr,"".concat(Zr,"-group"),oa.className),title:ei},yr!==void 0?yr:Bo)}var cl=oa.disabled,_i=oa.title,el=oa.children,Vi=oa.style,ti=oa.className,Hi=(0,W.Z)(oa,Ge),ki=(0,F.Z)(Hi,po),Go=Aa(xo),jo=cl||!Go&&Se,Ro="".concat(Zr,"-option"),Bi=g()(Zr,Ro,ti,(0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)({},"".concat(Ro,"-grouped"),Da),"".concat(Ro,"-active"),fr===aa&&!jo),"".concat(Ro,"-disabled"),jo),"".concat(Ro,"-selected"),Go)),xi=Si(ha),li=!_n||typeof _n=="function"||Go,si=typeof xi=="number"?xi:xi||xo,Xo=Qe(si)?si.toString():void 0;return _i!==void 0&&(Xo=_i),a.createElement("div",(0,x.Z)({},(0,re.Z)(ki),Sr?{}:bo(ha,aa),{"aria-selected":Go,className:Bi,title:Xo,onMouseMove:function(){fr===aa||jo||Va(aa)},onClick:function(){jo||uo(xo)},style:Vi}),a.createElement("div",{className:"".concat(Ro,"-content")},typeof Gr=="function"?Gr(ha,{index:aa}):si),a.isValidElement(_n)||Go,li&&a.createElement(je,{className:"".concat(Zr,"-option-state"),customizeIcon:_n,customizeIconProps:{value:xo,disabled:jo,isSelected:Go}},Go?"\u2713":null))}))},Je=a.forwardRef(ct),ft=Je,dt=function(xe,ce){var bt=a.useRef({values:new Map,options:new Map}),ot=a.useMemo(function(){var sn=bt.current,gn=sn.values,Dn=sn.options,Hn=xe.map(function(Qn){if(Qn.label===void 0){var Ft;return(0,y.Z)((0,y.Z)({},Qn),{},{label:(Ft=gn.get(Qn.value))===null||Ft===void 0?void 0:Ft.label})}return Qn}),or=new Map,Yn=new Map;return Hn.forEach(function(Qn){or.set(Qn.value,Qn),Yn.set(Qn.value,ce.get(Qn.value)||Dn.get(Qn.value))}),bt.current.values=or,bt.current.options=Yn,Hn},[xe,ce]),wt=a.useCallback(function(sn){return ce.get(sn)||bt.current.options.get(sn)},[ce]);return[ot,wt]};function Nt(xe,ce){return Be(xe).join("").toUpperCase().includes(ce)}var Qt=function(xe,ce,bt,ot,wt){return a.useMemo(function(){if(!bt||ot===!1)return xe;var sn=ce.options,gn=ce.label,Dn=ce.value,Hn=[],or=typeof ot=="function",Yn=bt.toUpperCase(),Qn=or?ot:function(pn,Bn){return wt?Nt(Bn[wt],Yn):Bn[sn]?Nt(Bn[gn!=="children"?gn:"label"],Yn):Nt(Bn[Dn],Yn)},Ft=or?function(pn){return Ae(pn)}:function(pn){return pn};return xe.forEach(function(pn){if(pn[sn]){var Bn=Qn(bt,Ft(pn));if(Bn)Hn.push(pn);else{var cr=pn[sn].filter(function(er){return Qn(bt,Ft(er))});cr.length&&Hn.push((0,y.Z)((0,y.Z)({},pn),{},(0,I.Z)({},sn,cr)))}return}Qn(bt,Ft(pn))&&Hn.push(pn)}),Hn},[xe,ot,wt,bt,ce])},ln=i(98924),an=0,In=(0,ln.Z)();function Jn(){var xe;return In?(xe=an,an+=1):xe="TEST_OR_SSR",xe}function on(xe){var ce=a.useState(),bt=(0,$.Z)(ce,2),ot=bt[0],wt=bt[1];return a.useEffect(function(){wt("rc_select_".concat(Jn()))},[]),xe||ot}var vn=i(50344),Nn=["children","value"],jn=["children"];function Mr(xe){var ce=xe,bt=ce.key,ot=ce.props,wt=ot.children,sn=ot.value,gn=(0,W.Z)(ot,Nn);return(0,y.Z)({key:bt,value:sn!==void 0?sn:bt,children:wt},gn)}function vr(xe){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,vn.Z)(xe).map(function(bt,ot){if(!a.isValidElement(bt)||!bt.type)return null;var wt=bt,sn=wt.type.isSelectOptGroup,gn=wt.key,Dn=wt.props,Hn=Dn.children,or=(0,W.Z)(Dn,jn);return ce||!sn?Mr(bt):(0,y.Z)((0,y.Z)({key:"__RC_SELECT_GRP__".concat(gn===null?ot:gn,"__"),label:gn},or),{},{options:vr(Hn)})}).filter(function(bt){return bt})}var zr=function(ce,bt,ot,wt,sn){return a.useMemo(function(){var gn=ce,Dn=!ce;Dn&&(gn=vr(bt));var Hn=new Map,or=new Map,Yn=function(pn,Bn,cr){cr&&typeof cr=="string"&&pn.set(Bn[cr],Bn)},Qn=function Ft(pn){for(var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,cr=0;cr1&&arguments[1]!==void 0?arguments[1]:!1,gn=0;gn2&&arguments[2]!==void 0?arguments[2]:{},Wa=Ca.source,Io=Wa===void 0?"keyboard":Wa;os($a),gn&&ot==="combobox"&&pr!==null&&Io==="keyboard"&&wi(String(pr))},[gn,ot]),Pl=function($a,Ca,Wa){var Io=function(){var Hl,Yi=Hi($a);return[xr?{label:Yi==null?void 0:Yi[bo.label],value:$a,key:(Hl=Yi==null?void 0:Yi.key)!==null&&Hl!==void 0?Hl:$a}:$a,Ae(Yi)]};if(Ca&&pn){var Ho=Io(),El=(0,$.Z)(Ho,2),ml=El[0],Vl=El[1];pn(ml,Vl)}else if(!Ca&&Bn&&Wa!=="clear"){var Mi=Io(),Nl=(0,$.Z)(Mi,2),vs=Nl[0],Ss=Nl[1];Bn(vs,Ss)}},Xl=Ir(function(pr,$a){var Ca,Wa=uo?$a.selected:!0;Wa?Ca=uo?[].concat((0,m.Z)(ti),[pr]):[pr]:Ca=ti.filter(function(Io){return Io.value!==pr}),Xo(Ca),Pl(pr,Wa),ot==="combobox"?wi(""):(!Dt||Ft)&&(aa(""),wi(""))}),jl=function($a,Ca){Xo($a);var Wa=Ca.type,Io=Ca.values;(Wa==="remove"||Wa==="clear")&&Io.forEach(function(Ho){Pl(Ho.value,!1,Wa)})},fo=function($a,Ca){if(aa($a),wi(null),Ca.source==="submit"){var Wa=($a||"").trim();if(Wa){var Io=Array.from(new Set([].concat((0,m.Z)(Go),[Wa])));Xo(Io),Pl(Wa,!0),aa("")}return}Ca.source!=="blur"&&(ot==="combobox"&&Xo($a),Yn==null||Yn($a))},dn=function($a){var Ca=$a;ot!=="tags"&&(Ca=$a.map(function(Io){var Ho=oa.get(Io);return Ho==null?void 0:Ho.value}).filter(function(Io){return Io!==void 0}));var Wa=Array.from(new Set([].concat((0,m.Z)(Go),(0,m.Z)(Ca))));Xo(Wa),Wa.forEach(function(Io){Pl(Io,!0)})},Ql=a.useMemo(function(){var pr=Gr!==!1&&er!==!1;return(0,y.Z)((0,y.Z)({},ya),{},{flattenOptions:si,onActiveValue:fs,defaultActiveFirstOption:ds,onSelect:Xl,menuItemSelectedIcon:Ga,rawValues:Go,fieldNames:bo,virtual:pr,direction:Zr,listHeight:Q,listItemHeight:Ye,childrenAsData:po,maxCount:Fa,optionRender:Sr})},[Fa,ya,si,fs,ds,Xl,Ga,Go,bo,Gr,er,Zr,Q,Ye,po,Sr]);return a.createElement(We.Provider,{value:Ql},a.createElement(Ut,(0,x.Z)({},Va,{id:Aa,prefixCls:sn,ref:ce,omitDomProps:hr,mode:ot,displayValues:ki,onDisplayValuesChange:jl,direction:Zr,searchValue:ha,onSearch:fo,autoClearSearchValue:Ft,onSearchSplit:dn,dropdownMatchSelectWidth:er,OptionList:ft,emptyOptions:!si.length,activeValue:yl,activeDescendantId:"".concat(Aa,"_list_").concat($l)})))}),sr=qn;sr.Option=me,sr.OptGroup=En;var yn=sr,Vn=yn,ar=i(87263),Wo=i(33603),So=i(8745),La=i(9708),_a=i(53124),Ya=i(88258),ii=i(98866),ue=i(35792),qe=i(98675),St=i(65223),Ht=i(27833),tn=i(4173),Cn=i(29691),Or=i(30307),qr=i(15030),ia=i(43277),la=i(78642),Yr=function(xe,ce){var bt={};for(var ot in xe)Object.prototype.hasOwnProperty.call(xe,ot)&&ce.indexOf(ot)<0&&(bt[ot]=xe[ot]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,ot=Object.getOwnPropertySymbols(xe);wt{var bt;const{prefixCls:ot,bordered:wt,className:sn,rootClassName:gn,getPopupContainer:Dn,popupClassName:Hn,dropdownClassName:or,listHeight:Yn=256,placement:Qn,listItemHeight:Ft,size:pn,disabled:Bn,notFoundContent:cr,status:er,builtinPlacements:_t,dropdownMatchSelectWidth:$n,popupMatchSelectWidth:_n,direction:dr,style:ra,allowClear:Sr,variant:va,dropdownStyle:Ka,transitionName:Ga,tagRender:Gr,maxCount:Zr}=xe,ga=Yr(xe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:Q,getPrefixCls:Se,renderEmpty:Ye,direction:nn,virtual:An,popupMatchSelectWidth:kn,popupOverflow:xr,select:fr}=a.useContext(_a.E_),[,Fa]=(0,Cn.ZP)(),Va=Ft!=null?Ft:Fa==null?void 0:Fa.controlHeight,Aa=Se("select",ot),uo=Se(),po=dr!=null?dr:nn,{compactSize:Si,compactItemClassnames:bo}=(0,tn.ri)(Aa,po),[Ui,Fi]=(0,Ht.Z)(va,wt),ha=(0,ue.Z)(Aa),[aa,ya,Da]=(0,qr.Z)(Aa,ha),oa=a.useMemo(()=>{const{mode:yl}=xe;if(yl!=="combobox")return yl===Ar?"combobox":yl},[xe.mode]),yr=oa==="multiple"||oa==="tags",xo=(0,la.Z)(xe.suffixIcon,xe.showArrow),Bo=(bt=_n!=null?_n:$n)!==null&&bt!==void 0?bt:kn,{status:No,hasFeedback:ei,isFormItemInput:cl,feedbackIcon:_i}=a.useContext(St.aM),el=(0,La.F)(No,er);let Vi;cr!==void 0?Vi=cr:oa==="combobox"?Vi=null:Vi=(Ye==null?void 0:Ye("Select"))||a.createElement(Ya.Z,{componentName:"Select"});const{suffixIcon:ti,itemIcon:Hi,removeIcon:ki,clearIcon:Go}=(0,ia.Z)(Object.assign(Object.assign({},ga),{multiple:yr,hasFeedback:ei,feedbackIcon:_i,showSuffixIcon:xo,prefixCls:Aa,componentName:"Select"})),jo=Sr===!0?{clearIcon:Go}:Sr,Ro=(0,F.Z)(ga,["suffixIcon","itemIcon"]),Bi=g()(Hn||or,{[`${Aa}-dropdown-${po}`]:po==="rtl"},gn,Da,ha,ya),xi=(0,qe.Z)(yl=>{var wi;return(wi=pn!=null?pn:Si)!==null&&wi!==void 0?wi:yl}),li=a.useContext(ii.Z),si=Bn!=null?Bn:li,Xo=g()({[`${Aa}-lg`]:xi==="large",[`${Aa}-sm`]:xi==="small",[`${Aa}-rtl`]:po==="rtl",[`${Aa}-${Ui}`]:Fi,[`${Aa}-in-form-item`]:cl},(0,La.Z)(Aa,el,ei),bo,fr==null?void 0:fr.className,sn,gn,Da,ha,ya),bl=a.useMemo(()=>Qn!==void 0?Qn:po==="rtl"?"bottomRight":"bottomLeft",[Qn,po]),[tl]=(0,ar.Cn)("SelectLike",Ka==null?void 0:Ka.zIndex);return aa(a.createElement(Vn,Object.assign({ref:ce,virtual:An,showSearch:fr==null?void 0:fr.showSearch},Ro,{style:Object.assign(Object.assign({},fr==null?void 0:fr.style),ra),dropdownMatchSelectWidth:Bo,transitionName:(0,Wo.m)(uo,"slide-up",Ga),builtinPlacements:(0,Or.Z)(_t,xr),listHeight:Yn,listItemHeight:Va,mode:oa,prefixCls:Aa,placement:bl,direction:po,suffixIcon:ti,menuItemSelectedIcon:Hi,removeIcon:ki,allowClear:jo,notFoundContent:Vi,className:Xo,getPopupContainer:Dn||Q,dropdownClassName:Bi,disabled:si,dropdownStyle:Object.assign(Object.assign({},Ka),{zIndex:tl}),maxCount:yr?Zr:void 0,tagRender:yr?Gr:void 0})))},ba=a.forwardRef(Dr),ja=(0,So.Z)(ba);ba.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ar,ba.Option=me,ba.OptGroup=En,ba._InternalPanelDoNotUseOrYouWillBeFired=ja;var Ma=ba},30307:function(D,L){"use strict";const i=p=>{const x={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:p==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},x),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},x),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},x),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},x),{points:["br","tr"],offset:[0,-4]})}};function a(p,g){return p||i(g)}L.Z=a},15030:function(D,L,i){"use strict";i.d(L,{Z:function(){return fe}});var a=i(14747),p=i(80110),g=i(91945),x=i(45503),m=i(67771),I=i(33297);const y=K=>{const{optionHeight:$e,optionFontSize:Be,optionLineHeight:Oe,optionPadding:xt}=K;return{position:"relative",display:"block",minHeight:$e,padding:xt,color:K.colorText,fontWeight:"normal",fontSize:Be,lineHeight:Oe,boxSizing:"border-box"}};var W=K=>{const{antCls:$e,componentCls:Be}=K,Oe=`${Be}-item`,xt=`&${$e}-slide-up-enter${$e}-slide-up-enter-active`,yt=`&${$e}-slide-up-appear${$e}-slide-up-appear-active`,mn=`&${$e}-slide-up-leave${$e}-slide-up-leave-active`,Kt=`${Be}-dropdown-placement-`;return[{[`${Be}-dropdown`]:Object.assign(Object.assign({},(0,a.Wf)(K)),{position:"absolute",top:-9999,zIndex:K.zIndexPopup,boxSizing:"border-box",padding:K.paddingXXS,overflow:"hidden",fontSize:K.fontSize,fontVariant:"initial",backgroundColor:K.colorBgElevated,borderRadius:K.borderRadiusLG,outline:"none",boxShadow:K.boxShadowSecondary,[` + ${xt}${Kt}bottomLeft, + ${yt}${Kt}bottomLeft + `]:{animationName:m.fJ},[` + ${xt}${Kt}topLeft, + ${yt}${Kt}topLeft, + ${xt}${Kt}topRight, + ${yt}${Kt}topRight + `]:{animationName:m.Qt},[`${mn}${Kt}bottomLeft`]:{animationName:m.Uw},[` + ${mn}${Kt}topLeft, + ${mn}${Kt}topRight + `]:{animationName:m.ly},"&-hidden":{display:"none"},[`${Oe}`]:Object.assign(Object.assign({},y(K)),{cursor:"pointer",transition:`background ${K.motionDurationSlow} ease`,borderRadius:K.borderRadiusSM,"&-group":{color:K.colorTextDescription,fontSize:K.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},a.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Oe}-option-disabled)`]:{backgroundColor:K.optionActiveBg},[`&-selected:not(${Oe}-option-disabled)`]:{color:K.optionSelectedColor,fontWeight:K.optionSelectedFontWeight,backgroundColor:K.optionSelectedBg,[`${Oe}-option-state`]:{color:K.colorPrimary},[`&:has(+ ${Oe}-option-selected:not(${Oe}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Oe}-option-selected:not(${Oe}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${Oe}-option-selected`]:{backgroundColor:K.colorBgContainerDisabled},color:K.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:K.calc(K.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},y(K)),{color:K.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},(0,m.oN)(K,"slide-up"),(0,m.oN)(K,"slide-down"),(0,I.Fm)(K,"move-up"),(0,I.Fm)(K,"move-down")]},T=i(16928),X=i(6731);function o(K,$e){const{componentCls:Be,inputPaddingHorizontalBase:Oe,borderRadius:xt}=K,yt=K.calc(K.controlHeight).sub(K.calc(K.lineWidth).mul(2)).equal(),mn=$e?`${Be}-${$e}`:"";return{[`${Be}-single${mn}`]:{fontSize:K.fontSize,height:K.controlHeight,[`${Be}-selector`]:Object.assign(Object.assign({},(0,a.Wf)(K,!0)),{display:"flex",borderRadius:xt,[`${Be}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Oe,insetInlineEnd:Oe,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${Be}-selection-item, + ${Be}-selection-placeholder + `]:{padding:0,lineHeight:(0,X.bf)(yt),transition:`all ${K.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Be}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Be}-selection-item:empty:after`,`${Be}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${Be}-show-arrow ${Be}-selection-item, + &${Be}-show-arrow ${Be}-selection-placeholder + `]:{paddingInlineEnd:K.showArrowPaddingInlineEnd},[`&${Be}-open ${Be}-selection-item`]:{color:K.colorTextPlaceholder},[`&:not(${Be}-customize-input)`]:{[`${Be}-selector`]:{width:"100%",height:"100%",padding:`0 ${(0,X.bf)(Oe)}`,[`${Be}-selection-search-input`]:{height:yt},"&:after":{lineHeight:(0,X.bf)(yt)}}},[`&${Be}-customize-input`]:{[`${Be}-selector`]:{"&:after":{display:"none"},[`${Be}-selection-search`]:{position:"static",width:"100%"},[`${Be}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,X.bf)(Oe)}`,"&:after":{display:"none"}}}}}}}function N(K){const{componentCls:$e}=K,Be=K.calc(K.controlPaddingHorizontalSM).sub(K.lineWidth).equal();return[o(K),o((0,x.TS)(K,{controlHeight:K.controlHeightSM,borderRadius:K.borderRadiusSM}),"sm"),{[`${$e}-single${$e}-sm`]:{[`&:not(${$e}-customize-input)`]:{[`${$e}-selection-search`]:{insetInlineStart:Be,insetInlineEnd:Be},[`${$e}-selector`]:{padding:`0 ${(0,X.bf)(Be)}`},[`&${$e}-show-arrow ${$e}-selection-search`]:{insetInlineEnd:K.calc(Be).add(K.calc(K.fontSize).mul(1.5)).equal()},[` + &${$e}-show-arrow ${$e}-selection-item, + &${$e}-show-arrow ${$e}-selection-placeholder + `]:{paddingInlineEnd:K.calc(K.fontSize).mul(1.5).equal()}}}},o((0,x.TS)(K,{controlHeight:K.singleItemHeightLG,fontSize:K.fontSizeLG,borderRadius:K.borderRadiusLG}),"lg")]}const _=K=>{const{fontSize:$e,lineHeight:Be,controlHeight:Oe,controlHeightSM:xt,controlHeightLG:yt,paddingXXS:mn,controlPaddingHorizontal:Kt,zIndexPopupBase:Mn,colorText:jt,fontWeightStrong:Gt,controlItemBgActive:Tn,controlItemBgHover:vt,colorBgContainer:Tt,colorFillSecondary:Pn,colorBgContainerDisabled:Mt,colorTextDisabled:Zn}=K,rr=Oe-mn*2,Xn=xt-mn*2,gr=yt-mn*2;return{zIndexPopup:Mn+50,optionSelectedColor:jt,optionSelectedFontWeight:Gt,optionSelectedBg:Tn,optionActiveBg:vt,optionPadding:`${(Oe-$e*Be)/2}px ${Kt}px`,optionFontSize:$e,optionLineHeight:Be,optionHeight:Oe,selectorBg:Tt,clearBg:Tt,singleItemHeightLG:yt,multipleItemBg:Pn,multipleItemBorderColor:"transparent",multipleItemHeight:rr,multipleItemHeightSM:Xn,multipleItemHeightLG:gr,multipleSelectorBgDisabled:Mt,multipleItemColorDisabled:Zn,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(K.fontSize*1.25)}},Z=(K,$e)=>{const{componentCls:Be,antCls:Oe,controlOutlineWidth:xt}=K;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{border:`${(0,X.bf)(K.lineWidth)} ${K.lineType} ${$e.borderColor}`,background:K.selectorBg},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${Oe}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{borderColor:$e.hoverBorderHover},[`${Be}-focused& ${Be}-selector`]:{borderColor:$e.activeBorderColor,boxShadow:`0 0 0 ${(0,X.bf)(xt)} ${$e.activeShadowColor}`,outline:0}}}},ee=(K,$e)=>({[`&${K.componentCls}-status-${$e.status}`]:Object.assign({},Z(K,$e))}),Me=K=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Z(K,{borderColor:K.colorBorder,hoverBorderHover:K.colorPrimaryHover,activeBorderColor:K.colorPrimary,activeShadowColor:K.controlOutline})),ee(K,{status:"error",borderColor:K.colorError,hoverBorderHover:K.colorErrorHover,activeBorderColor:K.colorError,activeShadowColor:K.colorErrorOutline})),ee(K,{status:"warning",borderColor:K.colorWarning,hoverBorderHover:K.colorWarningHover,activeBorderColor:K.colorWarning,activeShadowColor:K.colorWarningOutline})),{[`&${K.componentCls}-disabled`]:{[`&:not(${K.componentCls}-customize-input) ${K.componentCls}-selector`]:{background:K.colorBgContainerDisabled,color:K.colorTextDisabled}},[`&${K.componentCls}-multiple ${K.componentCls}-selection-item`]:{background:K.multipleItemBg,border:`${(0,X.bf)(K.lineWidth)} ${K.lineType} ${K.multipleItemBorderColor}`}})}),je=(K,$e)=>{const{componentCls:Be,antCls:Oe}=K;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{background:$e.bg,border:`${(0,X.bf)(K.lineWidth)} ${K.lineType} transparent`,color:$e.color},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${Oe}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{background:$e.hoverBg},[`${Be}-focused& ${Be}-selector`]:{background:K.selectorBg,borderColor:$e.activeBorderColor,outline:0}}}},Xe=(K,$e)=>({[`&${K.componentCls}-status-${$e.status}`]:Object.assign({},je(K,$e))}),He=K=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},je(K,{bg:K.colorFillTertiary,hoverBg:K.colorFillSecondary,activeBorderColor:K.colorPrimary,color:K.colorText})),Xe(K,{status:"error",bg:K.colorErrorBg,hoverBg:K.colorErrorBgHover,activeBorderColor:K.colorError,color:K.colorError})),Xe(K,{status:"warning",bg:K.colorWarningBg,hoverBg:K.colorWarningBgHover,activeBorderColor:K.colorWarning,color:K.colorWarning})),{[`&${K.componentCls}-disabled`]:{[`&:not(${K.componentCls}-customize-input) ${K.componentCls}-selector`]:{borderColor:K.colorBorder,background:K.colorBgContainerDisabled,color:K.colorTextDisabled}},[`&${K.componentCls}-multiple ${K.componentCls}-selection-item`]:{background:K.colorBgContainer,border:`${(0,X.bf)(K.lineWidth)} ${K.lineType} ${K.colorSplit}`}})}),Ne=K=>({"&-borderless":{[`${K.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${K.componentCls}-disabled`]:{[`&:not(${K.componentCls}-customize-input) ${K.componentCls}-selector`]:{color:K.colorTextDisabled}},[`&${K.componentCls}-multiple ${K.componentCls}-selection-item`]:{background:K.multipleItemBg,border:`${(0,X.bf)(K.lineWidth)} ${K.lineType} ${K.multipleItemBorderColor}`}}});var it=K=>({[K.componentCls]:Object.assign(Object.assign(Object.assign({},Me(K)),He(K)),Ne(K))});const Fe=K=>{const{componentCls:$e}=K;return{position:"relative",transition:`all ${K.motionDurationMid} ${K.motionEaseInOut}`,input:{cursor:"pointer"},[`${$e}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${$e}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ie=K=>{const{componentCls:$e}=K;return{[`${$e}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},re=K=>{const{antCls:$e,componentCls:Be,inputPaddingHorizontalBase:Oe,iconCls:xt}=K;return{[Be]:Object.assign(Object.assign({},(0,a.Wf)(K)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Be}-customize-input) ${Be}-selector`]:Object.assign(Object.assign({},Fe(K)),Ie(K)),[`${Be}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},a.vS),{[`> ${$e}-typography`]:{display:"inline"}}),[`${Be}-selection-placeholder`]:Object.assign(Object.assign({},a.vS),{flex:1,color:K.colorTextPlaceholder,pointerEvents:"none"}),[`${Be}-arrow`]:Object.assign(Object.assign({},(0,a.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Oe,height:K.fontSizeIcon,marginTop:K.calc(K.fontSizeIcon).mul(-1).div(2).equal(),color:K.colorTextQuaternary,fontSize:K.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${K.motionDurationSlow} ease`,[xt]:{verticalAlign:"top",transition:`transform ${K.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Be}-suffix)`]:{pointerEvents:"auto"}},[`${Be}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Be}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Oe,zIndex:1,display:"inline-block",width:K.fontSizeIcon,height:K.fontSizeIcon,marginTop:K.calc(K.fontSizeIcon).mul(-1).div(2).equal(),color:K.colorTextQuaternary,fontSize:K.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${K.motionDurationMid} ease, opacity ${K.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:K.colorTextTertiary}},"&:hover":{[`${Be}-clear`]:{opacity:1},[`${Be}-arrow:not(:last-child)`]:{opacity:0}}}),[`${Be}-has-feedback`]:{[`${Be}-clear`]:{insetInlineEnd:K.calc(Oe).add(K.fontSize).add(K.paddingXS).equal()}}}},Y=K=>{const{componentCls:$e}=K;return[{[$e]:{[`&${$e}-in-form-item`]:{width:"100%"}}},re(K),N(K),(0,T.ZP)(K),W(K),{[`${$e}-rtl`]:{direction:"rtl"}},(0,p.c)(K,{borderElCls:`${$e}-selector`,focusElCls:`${$e}-focused`})]};var fe=(0,g.I$)("Select",(K,$e)=>{let{rootPrefixCls:Be}=$e;const Oe=(0,x.TS)(K,{rootPrefixCls:Be,inputPaddingHorizontalBase:K.calc(K.paddingSM).sub(1).equal(),multipleSelectItemHeight:K.multipleItemHeight,selectHeight:K.controlHeight});return[Y(Oe),it(Oe)]},_,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},16928:function(D,L,i){"use strict";i.d(L,{_z:function(){return y},gp:function(){return m}});var a=i(6731),p=i(14747),g=i(45503);const x=2,m=X=>{const{multipleSelectItemHeight:o,paddingXXS:N,lineWidth:_}=X,Z=X.max(X.calc(N).sub(_).equal(),0),ee=X.max(X.calc(Z).sub(x).equal(),0);return{basePadding:Z,containerPadding:ee,itemHeight:(0,a.bf)(o),itemLineHeight:(0,a.bf)(X.calc(o).sub(X.calc(X.lineWidth).mul(2)).equal())}},I=X=>{const{multipleSelectItemHeight:o,selectHeight:N,lineWidth:_}=X;return X.calc(N).sub(o).div(2).sub(_).equal()},y=X=>{const{componentCls:o,iconCls:N,borderRadiusSM:_,motionDurationSlow:Z,paddingXS:ee,multipleItemColorDisabled:Me,multipleItemBorderColorDisabled:je,colorIcon:Xe,colorIconHover:He}=X;return{[`${o}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${o}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:x,borderRadius:_,cursor:"default",transition:`font-size ${Z}, line-height ${Z}, height ${Z}`,marginInlineEnd:X.calc(x).mul(2).equal(),paddingInlineStart:ee,paddingInlineEnd:X.calc(ee).div(2).equal(),[`${o}-disabled&`]:{color:Me,borderColor:je,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:X.calc(ee).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,p.Ro)()),{display:"inline-flex",alignItems:"center",color:Xe,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${N}`]:{verticalAlign:"-0.2em"},"&:hover":{color:He}})}}}},$=(X,o)=>{const{componentCls:N}=X,_=`${N}-selection-overflow`,Z=X.multipleSelectItemHeight,ee=I(X),Me=o?`${N}-${o}`:"",je=m(X);return{[`${N}-multiple${Me}`]:Object.assign(Object.assign({},y(X)),{[`${N}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:je.basePadding,paddingBlock:je.containerPadding,borderRadius:X.borderRadius,[`${N}-disabled&`]:{background:X.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,a.bf)(x)} 0`,lineHeight:(0,a.bf)(Z),visibility:"hidden",content:'"\\a0"'}},[`${N}-selection-item`]:{height:je.itemHeight,lineHeight:(0,a.bf)(je.itemLineHeight)},[`${_}-item + ${_}-item`]:{[`${N}-selection-search`]:{marginInlineStart:0}},[`${_}-item-suffix`]:{height:"100%"},[`${N}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:X.calc(X.inputPaddingHorizontalBase).sub(ee).equal(),[` + &-input, + &-mirror + `]:{height:Z,fontFamily:X.fontFamily,lineHeight:(0,a.bf)(Z),transition:`all ${X.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${N}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:X.inputPaddingHorizontalBase,insetInlineEnd:X.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${X.motionDurationSlow}`}})}};function W(X,o){const{componentCls:N}=X,_=o?`${N}-${o}`:"",Z={[`${N}-multiple${_}`]:{fontSize:X.fontSize,[`${N}-selector`]:{[`${N}-show-search&`]:{cursor:"text"}},[` + &${N}-show-arrow ${N}-selector, + &${N}-allow-clear ${N}-selector + `]:{paddingInlineEnd:X.calc(X.fontSizeIcon).add(X.controlPaddingHorizontal).equal()}}};return[$(X,o),Z]}const T=X=>{const{componentCls:o}=X,N=(0,g.TS)(X,{selectHeight:X.controlHeightSM,multipleSelectItemHeight:X.multipleItemHeightSM,borderRadius:X.borderRadiusSM,borderRadiusSM:X.borderRadiusXS}),_=(0,g.TS)(X,{fontSize:X.fontSizeLG,selectHeight:X.controlHeightLG,multipleSelectItemHeight:X.multipleItemHeightLG,borderRadius:X.borderRadiusLG,borderRadiusSM:X.borderRadius});return[W(X),W(N,"sm"),{[`${o}-multiple${o}-sm`]:{[`${o}-selection-placeholder`]:{insetInline:X.calc(X.controlPaddingHorizontalSM).sub(X.lineWidth).equal()},[`${o}-selection-search`]:{marginInlineStart:2}}},W(_,"lg")]};L.ZP=T},43277:function(D,L,i){"use strict";i.d(L,{Z:function(){return $}});var a=i(67294),p=i(35918),g=i(17012),x=i(84481),m=i(13622),I=i(19267),y=i(25783);function $(W){let{suffixIcon:T,clearIcon:X,menuItemSelectedIcon:o,removeIcon:N,loading:_,multiple:Z,hasFeedback:ee,prefixCls:Me,showSuffixIcon:je,feedbackIcon:Xe,showArrow:He,componentName:Ne}=W;const Et=X!=null?X:a.createElement(g.Z,null),it=Y=>T===null&&!ee&&!He?null:a.createElement(a.Fragment,null,je!==!1&&Y,ee&&Xe);let Fe=null;if(T!==void 0)Fe=it(T);else if(_)Fe=it(a.createElement(I.Z,{spin:!0}));else{const Y=`${Me}-suffix`;Fe=fe=>{let{open:K,showSearch:$e}=fe;return it(K&&$e?a.createElement(y.Z,{className:Y}):a.createElement(m.Z,{className:Y}))}}let Ie=null;o!==void 0?Ie=o:Z?Ie=a.createElement(p.Z,null):Ie=null;let re=null;return N!==void 0?re=N:re=a.createElement(x.Z,null),{clearIcon:Et,suffixIcon:Fe,itemIcon:Ie,removeIcon:re}}},78642:function(D,L,i){"use strict";i.d(L,{Z:function(){return a}});function a(p,g){return g!==void 0?g:p!==null}},64631:function(D,L,i){"use strict";i.d(L,{Z:function(){return Il}});var a=i(67294),p=i(93967),g=i.n(p),x=i(87462),m=i(74902),I=i(1413),y=i(97685),$=i(91),W=i(71002),T=i(4942),X=i(21770),o=i(80334),N=i(8410),_=i(31131),Z=i(15105),ee=i(42550),Me=function(A){var he=A.className,S=A.customizeIcon,q=A.customizeIconProps,ge=A.children,Ze=A.onMouseDown,B=A.onClick,U=typeof S=="function"?S(q):S;return a.createElement("span",{className:he,onMouseDown:function(Ce){Ce.preventDefault(),Ze==null||Ze(Ce)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:B,"aria-hidden":!0},U!==void 0?U:a.createElement("span",{className:g()(he.split(/\s+/).map(function(se){return"".concat(se,"-icon")}))},ge))},je=Me,Xe=function(A,he,S,q,ge){var Ze=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,B=arguments.length>6?arguments[6]:void 0,U=arguments.length>7?arguments[7]:void 0,se=a.useMemo(function(){if((0,W.Z)(q)==="object")return q.clearIcon;if(ge)return ge},[q,ge]),Ce=a.useMemo(function(){return!!(!Ze&&q&&(S.length||B)&&!(U==="combobox"&&B===""))},[q,Ze,S.length,B,U]);return{allowClear:Ce,clearIcon:a.createElement(je,{className:"".concat(A,"-clear"),onMouseDown:he,customizeIcon:se},"\xD7")}},He=a.createContext(null);function Ne(){return a.useContext(He)}function Et(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,A=a.useState(!1),he=(0,y.Z)(A,2),S=he[0],q=he[1],ge=a.useRef(null),Ze=function(){window.clearTimeout(ge.current)};a.useEffect(function(){return Ze},[]);var B=function(se,Ce){Ze(),ge.current=window.setTimeout(function(){q(se),Ce&&Ce()},O)};return[S,B,Ze]}function it(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,A=a.useRef(null),he=a.useRef(null);a.useEffect(function(){return function(){window.clearTimeout(he.current)}},[]);function S(q){(q||A.current===null)&&(A.current=q),window.clearTimeout(he.current),he.current=window.setTimeout(function(){A.current=null},O)}return[function(){return A.current},S]}function Fe(O,A,he,S){var q=a.useRef(null);q.current={open:A,triggerOpen:he,customizedTrigger:S},a.useEffect(function(){function ge(Ze){var B;if(!((B=q.current)!==null&&B!==void 0&&B.customizedTrigger)){var U=Ze.target;U.shadowRoot&&Ze.composed&&(U=Ze.composedPath()[0]||U),q.current.open&&O().filter(function(se){return se}).every(function(se){return!se.contains(U)&&se!==U})&&q.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ge),function(){return window.removeEventListener("mousedown",ge)}},[])}function Ie(O){return![Z.Z.ESC,Z.Z.SHIFT,Z.Z.BACKSPACE,Z.Z.TAB,Z.Z.WIN_KEY,Z.Z.ALT,Z.Z.META,Z.Z.WIN_KEY_RIGHT,Z.Z.CTRL,Z.Z.SEMICOLON,Z.Z.EQUALS,Z.Z.CAPS_LOCK,Z.Z.CONTEXT_MENU,Z.Z.F1,Z.Z.F2,Z.Z.F3,Z.Z.F4,Z.Z.F5,Z.Z.F6,Z.Z.F7,Z.Z.F8,Z.Z.F9,Z.Z.F10,Z.Z.F11,Z.Z.F12].includes(O)}var re=i(64217),Y=i(39983),fe=function(A,he){var S,q=A.prefixCls,ge=A.id,Ze=A.inputElement,B=A.disabled,U=A.tabIndex,se=A.autoFocus,Ce=A.autoComplete,Le=A.editable,nt=A.activeDescendantId,Ke=A.value,Ct=A.maxLength,Zt=A.onKeyDown,rt=A.onMouseDown,Yt=A.onChange,On=A.onPaste,rn=A.onCompositionStart,xn=A.onCompositionEnd,cn=A.open,Sn=A.attrs,tr=Ze||a.createElement("input",null),Rr=tr,Lr=Rr.ref,wr=Rr.props,Cr=wr.onKeyDown,Pr=wr.onChange,sa=wr.onMouseDown,_r=wr.onCompositionStart,Ea=wr.onCompositionEnd,Br=wr.style;return(0,o.Kp)(!("maxLength"in tr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),tr=a.cloneElement(tr,(0,I.Z)((0,I.Z)((0,I.Z)({type:"search"},wr),{},{id:ge,ref:(0,ee.sQ)(he,Lr),disabled:B,tabIndex:U,autoComplete:Ce||"off",autoFocus:se,className:g()("".concat(q,"-selection-search-input"),(S=tr)===null||S===void 0||(S=S.props)===null||S===void 0?void 0:S.className),role:"combobox","aria-expanded":cn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ge,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ge,"_list"),"aria-activedescendant":cn?nt:void 0},Sn),{},{value:Le?Ke:"",maxLength:Ct,readOnly:!Le,unselectable:Le?null:"on",style:(0,I.Z)((0,I.Z)({},Br),{},{opacity:Le?null:0}),onKeyDown:function(Nr){Zt(Nr),Cr&&Cr(Nr)},onMouseDown:function(Nr){rt(Nr),sa&&sa(Nr)},onChange:function(Nr){Yt(Nr),Pr&&Pr(Nr)},onCompositionStart:function(Nr){rn(Nr),_r&&_r(Nr)},onCompositionEnd:function(Nr){xn(Nr),Ea&&Ea(Nr)},onPaste:On})),tr},K=a.forwardRef(fe),$e=K;function Be(O){return Array.isArray(O)?O:O!==void 0?[O]:[]}var Oe=typeof window!="undefined"&&window.document&&window.document.documentElement,xt=Oe;function yt(O){return O!=null}function mn(O){return!O&&O!==0}function Kt(O){return["string","number"].includes((0,W.Z)(O))}function Mn(O){var A=void 0;return O&&(Kt(O.title)?A=O.title.toString():Kt(O.label)&&(A=O.label.toString())),A}function jt(O,A){xt?a.useLayoutEffect(O,A):a.useEffect(O,A)}function Gt(O){var A;return(A=O.key)!==null&&A!==void 0?A:O.value}var Tn=function(A){A.preventDefault(),A.stopPropagation()},vt=function(A){var he=A.id,S=A.prefixCls,q=A.values,ge=A.open,Ze=A.searchValue,B=A.autoClearSearchValue,U=A.inputRef,se=A.placeholder,Ce=A.disabled,Le=A.mode,nt=A.showSearch,Ke=A.autoFocus,Ct=A.autoComplete,Zt=A.activeDescendantId,rt=A.tabIndex,Yt=A.removeIcon,On=A.maxTagCount,rn=A.maxTagTextLength,xn=A.maxTagPlaceholder,cn=xn===void 0?function(Ia){return"+ ".concat(Ia.length," ...")}:xn,Sn=A.tagRender,tr=A.onToggleOpen,Rr=A.onRemove,Lr=A.onInputChange,wr=A.onInputPaste,Cr=A.onInputKeyDown,Pr=A.onInputMouseDown,sa=A.onInputCompositionStart,_r=A.onInputCompositionEnd,Ea=a.useRef(null),Br=(0,a.useState)(0),ur=(0,y.Z)(Br,2),Nr=ur[0],yo=ur[1],wo=(0,a.useState)(!1),ni=(0,y.Z)(wo,2),Oo=ni[0],Vo=ni[1],Xa="".concat(S,"-selection"),eo=ge||Le==="multiple"&&B===!1||Le==="tags"?Ze:"",hi=Le==="tags"||Le==="multiple"&&B===!1||nt&&(ge||Oo);jt(function(){yo(Ea.current.scrollWidth)},[eo]);var to=function(Qr,Ra,pa,vo,za){return a.createElement("span",{title:Mn(Qr),className:g()("".concat(Xa,"-item"),(0,T.Z)({},"".concat(Xa,"-item-disabled"),pa))},a.createElement("span",{className:"".concat(Xa,"-item-content")},Ra),vo&&a.createElement(je,{className:"".concat(Xa,"-item-remove"),onMouseDown:Tn,onClick:za,customizeIcon:Yt},"\xD7"))},pi=function(Qr,Ra,pa,vo,za){var co=function(ko){Tn(ko),tr(!ge)};return a.createElement("span",{onMouseDown:co},Sn({label:Ra,value:Qr,disabled:pa,closable:vo,onClose:za}))},To=function(Qr){var Ra=Qr.disabled,pa=Qr.label,vo=Qr.value,za=!Ce&&!Ra,co=pa;if(typeof rn=="number"&&(typeof pa=="string"||typeof pa=="number")){var Pi=String(co);Pi.length>rn&&(co="".concat(Pi.slice(0,rn),"..."))}var ko=function(mo){mo&&mo.stopPropagation(),Rr(Qr)};return typeof Sn=="function"?pi(vo,co,Ra,za,ko):to(Qr,co,Ra,za,ko)},Xr=function(Qr){var Ra=typeof cn=="function"?cn(Qr):cn;return to({title:Ra},Ra,!1)},Tr=a.createElement("div",{className:"".concat(Xa,"-search"),style:{width:Nr},onFocus:function(){Vo(!0)},onBlur:function(){Vo(!1)}},a.createElement($e,{ref:U,open:ge,prefixCls:S,id:he,inputElement:null,disabled:Ce,autoFocus:Ke,autoComplete:Ct,editable:hi,activeDescendantId:Zt,value:eo,onKeyDown:Cr,onMouseDown:Pr,onChange:Lr,onPaste:wr,onCompositionStart:sa,onCompositionEnd:_r,tabIndex:rt,attrs:(0,re.Z)(A,!0)}),a.createElement("span",{ref:Ea,className:"".concat(Xa,"-search-mirror"),"aria-hidden":!0},eo,"\xA0")),Na=a.createElement(Y.Z,{prefixCls:"".concat(Xa,"-overflow"),data:q,renderItem:To,renderRest:Xr,suffix:Tr,itemKey:Gt,maxCount:On});return a.createElement(a.Fragment,null,Na,!q.length&&!eo&&a.createElement("span",{className:"".concat(Xa,"-placeholder")},se))},Tt=vt,Pn=function(A){var he=A.inputElement,S=A.prefixCls,q=A.id,ge=A.inputRef,Ze=A.disabled,B=A.autoFocus,U=A.autoComplete,se=A.activeDescendantId,Ce=A.mode,Le=A.open,nt=A.values,Ke=A.placeholder,Ct=A.tabIndex,Zt=A.showSearch,rt=A.searchValue,Yt=A.activeValue,On=A.maxLength,rn=A.onInputKeyDown,xn=A.onInputMouseDown,cn=A.onInputChange,Sn=A.onInputPaste,tr=A.onInputCompositionStart,Rr=A.onInputCompositionEnd,Lr=A.title,wr=a.useState(!1),Cr=(0,y.Z)(wr,2),Pr=Cr[0],sa=Cr[1],_r=Ce==="combobox",Ea=_r||Zt,Br=nt[0],ur=rt||"";_r&&Yt&&!Pr&&(ur=Yt),a.useEffect(function(){_r&&sa(!1)},[_r,Yt]);var Nr=Ce!=="combobox"&&!Le&&!Zt?!1:!!ur,yo=Lr===void 0?Mn(Br):Lr,wo=a.useMemo(function(){return Br?null:a.createElement("span",{className:"".concat(S,"-selection-placeholder"),style:Nr?{visibility:"hidden"}:void 0},Ke)},[Br,Nr,Ke,S]);return a.createElement(a.Fragment,null,a.createElement("span",{className:"".concat(S,"-selection-search")},a.createElement($e,{ref:ge,prefixCls:S,id:q,open:Le,inputElement:he,disabled:Ze,autoFocus:B,autoComplete:U,editable:Ea,activeDescendantId:se,value:ur,onKeyDown:rn,onMouseDown:xn,onChange:function(Oo){sa(!0),cn(Oo)},onPaste:Sn,onCompositionStart:tr,onCompositionEnd:Rr,tabIndex:Ct,attrs:(0,re.Z)(A,!0),maxLength:_r?On:void 0})),!_r&&Br?a.createElement("span",{className:"".concat(S,"-selection-item"),title:yo,style:Nr?{visibility:"hidden"}:void 0},Br.label):null,wo)},Mt=Pn,Zn=function(A,he){var S=(0,a.useRef)(null),q=(0,a.useRef)(!1),ge=A.prefixCls,Ze=A.open,B=A.mode,U=A.showSearch,se=A.tokenWithEnter,Ce=A.autoClearSearchValue,Le=A.onSearch,nt=A.onSearchSubmit,Ke=A.onToggleOpen,Ct=A.onInputKeyDown,Zt=A.domRef;a.useImperativeHandle(he,function(){return{focus:function(ur){S.current.focus(ur)},blur:function(){S.current.blur()}}});var rt=it(0),Yt=(0,y.Z)(rt,2),On=Yt[0],rn=Yt[1],xn=function(ur){var Nr=ur.which;(Nr===Z.Z.UP||Nr===Z.Z.DOWN)&&ur.preventDefault(),Ct&&Ct(ur),Nr===Z.Z.ENTER&&B==="tags"&&!q.current&&!Ze&&(nt==null||nt(ur.target.value)),Ie(Nr)&&Ke(!0)},cn=function(){rn(!0)},Sn=(0,a.useRef)(null),tr=function(ur){Le(ur,!0,q.current)!==!1&&Ke(!0)},Rr=function(){q.current=!0},Lr=function(ur){q.current=!1,B!=="combobox"&&tr(ur.target.value)},wr=function(ur){var Nr=ur.target.value;if(se&&Sn.current&&/[\r\n]/.test(Sn.current)){var yo=Sn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Nr=Nr.replace(yo,Sn.current)}Sn.current=null,tr(Nr)},Cr=function(ur){var Nr=ur.clipboardData,yo=Nr==null?void 0:Nr.getData("text");Sn.current=yo||""},Pr=function(ur){var Nr=ur.target;if(Nr!==S.current){var yo=document.body.style.msTouchAction!==void 0;yo?setTimeout(function(){S.current.focus()}):S.current.focus()}},sa=function(ur){var Nr=On();ur.target!==S.current&&!Nr&&B!=="combobox"&&ur.preventDefault(),(B!=="combobox"&&(!U||!Nr)||!Ze)&&(Ze&&Ce!==!1&&Le("",!0,!1),Ke())},_r={inputRef:S,onInputKeyDown:xn,onInputMouseDown:cn,onInputChange:wr,onInputPaste:Cr,onInputCompositionStart:Rr,onInputCompositionEnd:Lr},Ea=B==="multiple"||B==="tags"?a.createElement(Tt,(0,x.Z)({},A,_r)):a.createElement(Mt,(0,x.Z)({},A,_r));return a.createElement("div",{ref:Zt,className:"".concat(ge,"-selector"),onClick:Pr,onMouseDown:sa},Ea)},rr=a.forwardRef(Zn),Xn=rr,gr=i(40228),ut=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],un=function(A){var he=A===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:he,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:he,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:he,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:he,adjustY:1},htmlRegion:"scroll"}}},ze=function(A,he){var S=A.prefixCls,q=A.disabled,ge=A.visible,Ze=A.children,B=A.popupElement,U=A.animation,se=A.transitionName,Ce=A.dropdownStyle,Le=A.dropdownClassName,nt=A.direction,Ke=nt===void 0?"ltr":nt,Ct=A.placement,Zt=A.builtinPlacements,rt=A.dropdownMatchSelectWidth,Yt=A.dropdownRender,On=A.dropdownAlign,rn=A.getPopupContainer,xn=A.empty,cn=A.getTriggerDOMNode,Sn=A.onPopupVisibleChange,tr=A.onPopupMouseEnter,Rr=(0,$.Z)(A,ut),Lr="".concat(S,"-dropdown"),wr=B;Yt&&(wr=Yt(B));var Cr=a.useMemo(function(){return Zt||un(rt)},[Zt,rt]),Pr=U?"".concat(Lr,"-").concat(U):se,sa=typeof rt=="number",_r=a.useMemo(function(){return sa?null:rt===!1?"minWidth":"width"},[rt,sa]),Ea=Ce;sa&&(Ea=(0,I.Z)((0,I.Z)({},Ea),{},{width:rt}));var Br=a.useRef(null);return a.useImperativeHandle(he,function(){return{getPopupElement:function(){return Br.current}}}),a.createElement(gr.Z,(0,x.Z)({},Rr,{showAction:Sn?["click"]:[],hideAction:Sn?["click"]:[],popupPlacement:Ct||(Ke==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Cr,prefixCls:Lr,popupTransitionName:Pr,popup:a.createElement("div",{ref:Br,onMouseEnter:tr},wr),stretch:_r,popupAlign:On,popupVisible:ge,getPopupContainer:rn,popupClassName:g()(Le,(0,T.Z)({},"".concat(Lr,"-empty"),xn)),popupStyle:Ea,getTriggerDOMNode:cn,onPopupVisibleChange:Sn}),Ze)},J=a.forwardRef(ze),_e=J,et=i(84506);function pt(O,A){var he=O.key,S;return"value"in O&&(S=O.value),he!=null?he:S!==void 0?S:"rc-index-key-".concat(A)}function lt(O){return typeof O!="undefined"&&!Number.isNaN(O)}function kt(O,A){var he=O||{},S=he.label,q=he.value,ge=he.options,Ze=he.groupLabel,B=S||(A?"children":"label");return{label:B,value:q||"value",options:ge||"options",groupLabel:Ze||B}}function ye(O){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=A.fieldNames,S=A.childrenAsData,q=[],ge=kt(he,!1),Ze=ge.label,B=ge.value,U=ge.options,se=ge.groupLabel;function Ce(Le,nt){Array.isArray(Le)&&Le.forEach(function(Ke){if(nt||!(U in Ke)){var Ct=Ke[B];q.push({key:pt(Ke,q.length),groupOption:nt,data:Ke,label:Ke[Ze],value:Ct})}else{var Zt=Ke[se];Zt===void 0&&S&&(Zt=Ke.label),q.push({key:pt(Ke,q.length),group:!0,data:Ke,label:Zt}),Ce(Ke[U],!0)}})}return Ce(O,!1),q}function Ae(O){var A=(0,I.Z)({},O);return"props"in A||Object.defineProperty(A,"props",{get:function(){return(0,o.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),A}}),A}var Pe=function(A,he,S){if(!he||!he.length)return null;var q=!1,ge=function B(U,se){var Ce=(0,et.Z)(se),Le=Ce[0],nt=Ce.slice(1);if(!Le)return[U];var Ke=U.split(Le);return q=q||Ke.length>1,Ke.reduce(function(Ct,Zt){return[].concat((0,m.Z)(Ct),(0,m.Z)(B(Zt,nt)))},[]).filter(Boolean)},Ze=ge(A,he);return q?typeof S!="undefined"?Ze.slice(0,S):Ze:null},at=a.createContext(null),We=at,st=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Wt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Dt=function(A){return A==="tags"||A==="multiple"},Xt=a.forwardRef(function(O,A){var he,S=O.id,q=O.prefixCls,ge=O.className,Ze=O.showSearch,B=O.tagRender,U=O.direction,se=O.omitDomProps,Ce=O.displayValues,Le=O.onDisplayValuesChange,nt=O.emptyOptions,Ke=O.notFoundContent,Ct=Ke===void 0?"Not Found":Ke,Zt=O.onClear,rt=O.mode,Yt=O.disabled,On=O.loading,rn=O.getInputElement,xn=O.getRawInputElement,cn=O.open,Sn=O.defaultOpen,tr=O.onDropdownVisibleChange,Rr=O.activeValue,Lr=O.onActiveValueChange,wr=O.activeDescendantId,Cr=O.searchValue,Pr=O.autoClearSearchValue,sa=O.onSearch,_r=O.onSearchSplit,Ea=O.tokenSeparators,Br=O.allowClear,ur=O.suffixIcon,Nr=O.clearIcon,yo=O.OptionList,wo=O.animation,ni=O.transitionName,Oo=O.dropdownStyle,Vo=O.dropdownClassName,Xa=O.dropdownMatchSelectWidth,eo=O.dropdownRender,hi=O.dropdownAlign,to=O.placement,pi=O.builtinPlacements,To=O.getPopupContainer,Xr=O.showAction,Tr=Xr===void 0?[]:Xr,Na=O.onFocus,Ia=O.onBlur,Qr=O.onKeyUp,Ra=O.onKeyDown,pa=O.onMouseDown,vo=(0,$.Z)(O,st),za=Dt(rt),co=(Ze!==void 0?Ze:za)||rt==="combobox",Pi=(0,I.Z)({},vo);Wt.forEach(function(ho){delete Pi[ho]}),se==null||se.forEach(function(ho){delete Pi[ho]});var ko=a.useState(!1),Co=(0,y.Z)(ko,2),mo=Co[0],so=Co[1];a.useEffect(function(){so((0,_.Z)())},[]);var ci=a.useRef(null),go=a.useRef(null),Fr=a.useRef(null),Fo=a.useRef(null),Zo=a.useRef(null),Yo=a.useRef(!1),ui=Et(),rl=(0,y.Z)(ui,3),zo=rl[0],Ei=rl[1],Uo=rl[2];a.useImperativeHandle(A,function(){var ho,Ja;return{focus:(ho=Fo.current)===null||ho===void 0?void 0:ho.focus,blur:(Ja=Fo.current)===null||Ja===void 0?void 0:Ja.blur,scrollTo:function(pl){var Oi;return(Oi=Zo.current)===null||Oi===void 0?void 0:Oi.scrollTo(pl)}}});var Qo=a.useMemo(function(){var ho;if(rt!=="combobox")return Cr;var Ja=(ho=Ce[0])===null||ho===void 0?void 0:ho.value;return typeof Ja=="string"||typeof Ja=="number"?String(Ja):""},[Cr,rt,Ce]),Ol=rt==="combobox"&&typeof rn=="function"&&rn()||null,Ai=typeof xn=="function"&&xn(),ql=(0,ee.x1)(go,Ai==null||(he=Ai.props)===null||he===void 0?void 0:he.ref),gl=a.useState(!1),Gi=(0,y.Z)(gl,2),Di=Gi[0],ms=Gi[1];(0,N.Z)(function(){ms(!0)},[]);var ls=(0,X.Z)(!1,{defaultValue:Sn,value:cn}),dl=(0,y.Z)(ls,2),_l=dl[0],ri=dl[1],bi=Di?_l:!1,ss=!Ct&&nt;(Yt||ss&&bi&&rt==="combobox")&&(bi=!1);var hl=ss?!1:bi,Ur=a.useCallback(function(ho){var Ja=ho!==void 0?ho:!bi;Yt||(ri(Ja),bi!==Ja&&(tr==null||tr(Ja)))},[Yt,bi,ri,tr]),Ta=a.useMemo(function(){return(Ea||[]).some(function(ho){return[` +`,`\r +`].includes(ho)})},[Ea]),wa=a.useContext(We)||{},Qa=wa.maxCount,Mo=wa.rawValues,Do=function(Ja,Xi,pl){if(!(za&<(Qa)&&(Mo==null?void 0:Mo.size)>=Qa)){var Oi=!0,il=Ja;Lr==null||Lr(null);var Kl=Pe(Ja,Ea,lt(Qa)?Qa-Mo.size:void 0),Wl=pl?null:Kl;return rt!=="combobox"&&Wl&&(il="",_r==null||_r(Wl),Ur(!1),Oi=!1),sa&&Qo!==il&&sa(il,{source:Xi?"typing":"effect"}),Oi}},fl=function(Ja){!Ja||!Ja.trim()||sa(Ja,{source:"submit"})};a.useEffect(function(){!bi&&!za&&rt!=="combobox"&&Do("",!1,!1)},[bi]),a.useEffect(function(){_l&&Yt&&ri(!1),Yt&&!Yo.current&&Ei(!1)},[Yt]);var Cl=it(),Zl=(0,y.Z)(Cl,2),$i=Zl[0],Fl=Zl[1],no=function(Ja){var Xi=$i(),pl=Ja.which;if(pl===Z.Z.ENTER&&(rt!=="combobox"&&Ja.preventDefault(),bi||Ur(!0)),Fl(!!Qo),pl===Z.Z.BACKSPACE&&!Xi&&za&&!Qo&&Ce.length){for(var Oi=(0,m.Z)(Ce),il=null,Kl=Oi.length-1;Kl>=0;Kl-=1){var Wl=Oi[Kl];if(!Wl.disabled){Oi.splice(Kl,1),il=Wl;break}}il&&Le(Oi,{type:"remove",values:[il]})}for(var Sl=arguments.length,cs=new Array(Sl>1?Sl-1:0),ns=1;ns1?Xi-1:0),Oi=1;Oi1?Kl-1:0),Sl=1;Sl=Ct},[B,Ct,xn==null?void 0:xn.size]),Ea=function(Tr){Tr.preventDefault()},Br=function(Tr){var Na;(Na=sa.current)===null||Na===void 0||Na.scrollTo(typeof Tr=="number"?{index:Tr}:Tr)},ur=function(Tr){for(var Na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ia=Pr.length,Qr=0;Qr1&&arguments[1]!==void 0?arguments[1]:!1;ni(Tr);var Ia={source:Na?"keyboard":"mouse"},Qr=Pr[Tr];if(!Qr){rt(null,-1,Ia);return}rt(Qr.value,Tr,Ia)};(0,a.useEffect)(function(){Oo(Yt!==!1?ur(0):-1)},[Pr.length,se]);var Vo=a.useCallback(function(Xr){return xn.has(Xr)&&U!=="combobox"},[U,(0,m.Z)(xn).toString(),xn.size]);(0,a.useEffect)(function(){var Xr=setTimeout(function(){if(!B&&Ze&&xn.size===1){var Na=Array.from(xn)[0],Ia=Pr.findIndex(function(Qr){var Ra=Qr.data;return Ra.value===Na});Ia!==-1&&(Oo(Ia),Br(Ia))}});if(Ze){var Tr;(Tr=sa.current)===null||Tr===void 0||Tr.scrollTo(void 0)}return function(){return clearTimeout(Xr)}},[Ze,se]);var Xa=function(Tr){Tr!==void 0&&On(Tr,{selected:!xn.has(Tr)}),B||Ce(!1)};if(a.useImperativeHandle(he,function(){return{onKeyDown:function(Tr){var Na=Tr.which,Ia=Tr.ctrlKey;switch(Na){case Z.Z.N:case Z.Z.P:case Z.Z.UP:case Z.Z.DOWN:{var Qr=0;if(Na===Z.Z.UP?Qr=-1:Na===Z.Z.DOWN?Qr=1:De()&&Ia&&(Na===Z.Z.N?Qr=1:Na===Z.Z.P&&(Qr=-1)),Qr!==0){var Ra=ur(wo+Qr,Qr);Br(Ra),Oo(Ra,!0)}break}case Z.Z.ENTER:{var pa,vo=Pr[wo];vo&&!(vo!=null&&(pa=vo.data)!==null&&pa!==void 0&&pa.disabled)&&!_r?Xa(vo.value):Xa(void 0),Ze&&Tr.preventDefault();break}case Z.Z.ESC:Ce(!1),Ze&&Tr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Tr){Br(Tr)}}}),Pr.length===0)return a.createElement("div",{role:"listbox",id:"".concat(ge,"_list"),className:"".concat(Cr,"-empty"),onMouseDown:Ea},Le);var eo=Object.keys(cn).map(function(Xr){return cn[Xr]}),hi=function(Tr){return Tr.label};function to(Xr,Tr){var Na=Xr.group;return{role:Na?"presentation":"option",id:"".concat(ge,"_list_").concat(Tr)}}var pi=function(Tr){var Na=Pr[Tr];if(!Na)return null;var Ia=Na.data||{},Qr=Ia.value,Ra=Na.group,pa=(0,re.Z)(Ia,!0),vo=hi(Na);return Na?a.createElement("div",(0,x.Z)({"aria-label":typeof vo=="string"&&!Ra?vo:null},pa,{key:Tr},to(Na,Tr),{"aria-selected":Vo(Qr)}),Qr):null},To={role:"listbox",id:"".concat(ge,"_list")};return a.createElement(a.Fragment,null,Sn&&a.createElement("div",(0,x.Z)({},To,{style:{height:0,width:0,overflow:"hidden"}}),pi(wo-1),pi(wo),pi(wo+1)),a.createElement(ie.Z,{itemKey:"key",ref:sa,data:Pr,height:Rr,itemHeight:Lr,fullHeight:!1,onMouseDown:Ea,onScroll:nt,virtual:Sn,direction:tr,innerProps:Sn?null:To},function(Xr,Tr){var Na=Xr.group,Ia=Xr.groupOption,Qr=Xr.data,Ra=Xr.label,pa=Xr.value,vo=Qr.key;if(Na){var za,co=(za=Qr.title)!==null&&za!==void 0?za:Qe(Ra)?Ra.toString():void 0;return a.createElement("div",{className:g()(Cr,"".concat(Cr,"-group"),Qr.className),title:co},Ra!==void 0?Ra:vo)}var Pi=Qr.disabled,ko=Qr.title,Co=Qr.children,mo=Qr.style,so=Qr.className,ci=(0,$.Z)(Qr,Ge),go=(0,F.Z)(ci,eo),Fr=Vo(pa),Fo=Pi||!Fr&&_r,Zo="".concat(Cr,"-option"),Yo=g()(Cr,Zo,so,(0,T.Z)((0,T.Z)((0,T.Z)((0,T.Z)({},"".concat(Zo,"-grouped"),Ia),"".concat(Zo,"-active"),wo===Tr&&!Fo),"".concat(Zo,"-disabled"),Fo),"".concat(Zo,"-selected"),Fr)),ui=hi(Xr),rl=!rn||typeof rn=="function"||Fr,zo=typeof ui=="number"?ui:ui||pa,Ei=Qe(zo)?zo.toString():void 0;return ko!==void 0&&(Ei=ko),a.createElement("div",(0,x.Z)({},(0,re.Z)(go),Sn?{}:to(Xr,Tr),{"aria-selected":Fr,className:Yo,title:Ei,onMouseMove:function(){wo===Tr||Fo||Oo(Tr)},onClick:function(){Fo||Xa(pa)},style:mo}),a.createElement("div",{className:"".concat(Zo,"-content")},typeof wr=="function"?wr(Xr,{index:Tr}):zo),a.isValidElement(rn)||Fr,rl&&a.createElement(je,{className:"".concat(Cr,"-option-state"),customizeIcon:rn,customizeIconProps:{value:pa,disabled:Fo,isSelected:Fr}},Fr?"\u2713":null))}))},Je=a.forwardRef(ct),ft=Je,dt=function(O,A){var he=a.useRef({values:new Map,options:new Map}),S=a.useMemo(function(){var ge=he.current,Ze=ge.values,B=ge.options,U=O.map(function(Le){if(Le.label===void 0){var nt;return(0,I.Z)((0,I.Z)({},Le),{},{label:(nt=Ze.get(Le.value))===null||nt===void 0?void 0:nt.label})}return Le}),se=new Map,Ce=new Map;return U.forEach(function(Le){se.set(Le.value,Le),Ce.set(Le.value,A.get(Le.value)||B.get(Le.value))}),he.current.values=se,he.current.options=Ce,U},[O,A]),q=a.useCallback(function(ge){return A.get(ge)||he.current.options.get(ge)},[A]);return[S,q]};function Nt(O,A){return Be(O).join("").toUpperCase().includes(A)}var Qt=function(O,A,he,S,q){return a.useMemo(function(){if(!he||S===!1)return O;var ge=A.options,Ze=A.label,B=A.value,U=[],se=typeof S=="function",Ce=he.toUpperCase(),Le=se?S:function(Ke,Ct){return q?Nt(Ct[q],Ce):Ct[ge]?Nt(Ct[Ze!=="children"?Ze:"label"],Ce):Nt(Ct[B],Ce)},nt=se?function(Ke){return Ae(Ke)}:function(Ke){return Ke};return O.forEach(function(Ke){if(Ke[ge]){var Ct=Le(he,nt(Ke));if(Ct)U.push(Ke);else{var Zt=Ke[ge].filter(function(rt){return Le(he,nt(rt))});Zt.length&&U.push((0,I.Z)((0,I.Z)({},Ke),{},(0,T.Z)({},ge,Zt)))}return}Le(he,nt(Ke))&&U.push(Ke)}),U},[O,S,q,he,A])},ln=i(98924),an=0,In=(0,ln.Z)();function Jn(){var O;return In?(O=an,an+=1):O="TEST_OR_SSR",O}function on(O){var A=a.useState(),he=(0,y.Z)(A,2),S=he[0],q=he[1];return a.useEffect(function(){q("rc_select_".concat(Jn()))},[]),O||S}var vn=i(50344),Nn=["children","value"],jn=["children"];function Mr(O){var A=O,he=A.key,S=A.props,q=S.children,ge=S.value,Ze=(0,$.Z)(S,Nn);return(0,I.Z)({key:he,value:ge!==void 0?ge:he,children:q},Ze)}function vr(O){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,vn.Z)(O).map(function(he,S){if(!a.isValidElement(he)||!he.type)return null;var q=he,ge=q.type.isSelectOptGroup,Ze=q.key,B=q.props,U=B.children,se=(0,$.Z)(B,jn);return A||!ge?Mr(he):(0,I.Z)((0,I.Z)({key:"__RC_SELECT_GRP__".concat(Ze===null?S:Ze,"__"),label:Ze},se),{},{options:vr(U)})}).filter(function(he){return he})}var zr=function(A,he,S,q,ge){return a.useMemo(function(){var Ze=A,B=!A;B&&(Ze=vr(he));var U=new Map,se=new Map,Ce=function(Ke,Ct,Zt){Zt&&typeof Zt=="string"&&Ke.set(Ct[Zt],Ct)},Le=function nt(Ke){for(var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Zt=0;Zt1&&arguments[1]!==void 0?arguments[1]:!1,Ze=0;Ze2&&arguments[2]!==void 0?arguments[2]:{},Qa=wa.source,Mo=Qa===void 0?"keyboard":Qa;Di(Ta),Ze&&S==="combobox"&&Ur!==null&&Mo==="keyboard"&&Ai(String(Ur))},[Ze,S]),dl=function(Ta,wa,Qa){var Mo=function(){var ka,ai=ci(Ta);return[yo?{label:ai==null?void 0:ai[to.label],value:Ta,key:(ka=ai==null?void 0:ai.key)!==null&&ka!==void 0?ka:Ta}:Ta,Ae(ai)]};if(wa&&Ke){var Do=Mo(),fl=(0,y.Z)(Do,2),Cl=fl[0],Zl=fl[1];Ke(Cl,Zl)}else if(!wa&&Ct&&Qa!=="clear"){var $i=Mo(),Fl=(0,y.Z)($i,2),no=Fl[0],ao=Fl[1];Ct(no,ao)}},_l=Ir(function(Ur,Ta){var wa,Qa=Xa?Ta.selected:!0;Qa?wa=Xa?[].concat((0,m.Z)(so),[Ur]):[Ur]:wa=so.filter(function(Mo){return Mo.value!==Ur}),Ei(wa),dl(Ur,Qa),S==="combobox"?Ai(""):(!Dt||nt)&&(Tr(""),Ai(""))}),ri=function(Ta,wa){Ei(Ta);var Qa=wa.type,Mo=wa.values;(Qa==="remove"||Qa==="clear")&&Mo.forEach(function(Do){dl(Do.value,!1,Qa)})},bi=function(Ta,wa){if(Tr(Ta),Ai(null),wa.source==="submit"){var Qa=(Ta||"").trim();if(Qa){var Mo=Array.from(new Set([].concat((0,m.Z)(Fr),[Qa])));Ei(Mo),dl(Qa,!0),Tr("")}return}wa.source!=="blur"&&(S==="combobox"&&Ei(Ta),Ce==null||Ce(Ta))},ss=function(Ta){var wa=Ta;S!=="tags"&&(wa=Ta.map(function(Mo){var Do=Qr.get(Mo);return Do==null?void 0:Do.value}).filter(function(Mo){return Mo!==void 0}));var Qa=Array.from(new Set([].concat((0,m.Z)(Fr),(0,m.Z)(wa))));Ei(Qa),Qa.forEach(function(Mo){dl(Mo,!0)})},hl=a.useMemo(function(){var Ur=wr!==!1&&rt!==!1;return(0,I.Z)((0,I.Z)({},Na),{},{flattenOptions:zo,onActiveValue:ls,defaultActiveFirstOption:ms,onSelect:_l,menuItemSelectedIcon:Lr,rawValues:Fr,fieldNames:to,virtual:Ur,direction:Cr,listHeight:sa,listItemHeight:Ea,childrenAsData:eo,maxCount:ni,optionRender:Sn})},[ni,Na,zo,ls,ms,_l,Lr,Fr,to,wr,rt,Cr,sa,Ea,eo,Sn]);return a.createElement(We.Provider,{value:hl},a.createElement(Ut,(0,x.Z)({},Oo,{id:Vo,prefixCls:ge,ref:A,omitDomProps:hr,mode:S,displayValues:go,onDisplayValuesChange:ri,direction:Cr,searchValue:Xr,onSearch:bi,autoClearSearchValue:nt,onSearchSplit:ss,dropdownMatchSelectWidth:rt,OptionList:ft,emptyOptions:!zo.length,activeValue:Ol,activeDescendantId:"".concat(Vo,"_list_").concat(Gi)})))}),sr=qn;sr.Option=me,sr.OptGroup=En;var yn=null,Vn=null;function ar(O,A){return O[A]}function Wo(O,A){var he=new Set;return O.forEach(function(S){A.has(S)||he.add(S)}),he}function So(O){var A=O||{},he=A.disabled,S=A.disableCheckbox,q=A.checkable;return!!(he||S)||q===!1}function La(O,A,he,S){for(var q=new Set(O),ge=new Set,Ze=0;Ze<=he;Ze+=1){var B=A.get(Ze)||new Set;B.forEach(function(Le){var nt=Le.key,Ke=Le.node,Ct=Le.children,Zt=Ct===void 0?[]:Ct;q.has(nt)&&!S(Ke)&&Zt.filter(function(rt){return!S(rt.node)}).forEach(function(rt){q.add(rt.key)})})}for(var U=new Set,se=he;se>=0;se-=1){var Ce=A.get(se)||new Set;Ce.forEach(function(Le){var nt=Le.parent,Ke=Le.node;if(!(S(Ke)||!Le.parent||U.has(Le.parent.key))){if(S(Le.parent.node)){U.add(nt.key);return}var Ct=!0,Zt=!1;(nt.children||[]).filter(function(rt){return!S(rt.node)}).forEach(function(rt){var Yt=rt.key,On=q.has(Yt);Ct&&!On&&(Ct=!1),!Zt&&(On||ge.has(Yt))&&(Zt=!0)}),Ct&&q.add(nt.key),Zt&&ge.add(nt.key),U.add(nt.key)}})}return{checkedKeys:Array.from(q),halfCheckedKeys:Array.from(Wo(ge,q))}}function _a(O,A,he,S,q){for(var ge=new Set(O),Ze=new Set(A),B=0;B<=S;B+=1){var U=he.get(B)||new Set;U.forEach(function(nt){var Ke=nt.key,Ct=nt.node,Zt=nt.children,rt=Zt===void 0?[]:Zt;!ge.has(Ke)&&!Ze.has(Ke)&&!q(Ct)&&rt.filter(function(Yt){return!q(Yt.node)}).forEach(function(Yt){ge.delete(Yt.key)})})}Ze=new Set;for(var se=new Set,Ce=S;Ce>=0;Ce-=1){var Le=he.get(Ce)||new Set;Le.forEach(function(nt){var Ke=nt.parent,Ct=nt.node;if(!(q(Ct)||!nt.parent||se.has(nt.parent.key))){if(q(nt.parent.node)){se.add(Ke.key);return}var Zt=!0,rt=!1;(Ke.children||[]).filter(function(Yt){return!q(Yt.node)}).forEach(function(Yt){var On=Yt.key,rn=ge.has(On);Zt&&!rn&&(Zt=!1),!rt&&(rn||Ze.has(On))&&(rt=!0)}),Zt||ge.delete(Ke.key),rt&&Ze.add(Ke.key),se.add(Ke.key)}})}return{checkedKeys:Array.from(ge),halfCheckedKeys:Array.from(Wo(Ze,ge))}}function Ya(O,A,he,S){var q=[],ge;S?ge=S:ge=So;var Ze=new Set(O.filter(function(Ce){var Le=!!ar(he,Ce);return Le||q.push(Ce),Le})),B=new Map,U=0;Object.keys(he).forEach(function(Ce){var Le=he[Ce],nt=Le.level,Ke=B.get(nt);Ke||(Ke=new Set,B.set(nt,Ke)),Ke.add(Le),U=Math.max(U,nt)}),(0,o.ZP)(!q.length,"Tree missing follow keys: ".concat(q.slice(0,100).map(function(Ce){return"'".concat(Ce,"'")}).join(", ")));var se;return A===!0?se=La(Ze,B,U,ge):se=_a(Ze,A.halfCheckedKeys,B,U,ge),se}var ii=function(O){var A=a.useRef({valueLabels:new Map});return a.useMemo(function(){var he=A.current.valueLabels,S=new Map,q=O.map(function(ge){var Ze,B=ge.value,U=(Ze=ge.label)!==null&&Ze!==void 0?Ze:he.get(B);return S.set(B,U),(0,I.Z)((0,I.Z)({},ge),{},{label:U})});return A.current.valueLabels=S,[q]},[O])},ue=function(O,A,he,S){return a.useMemo(function(){var q=O.map(function(U){var se=U.value;return se}),ge=A.map(function(U){var se=U.value;return se}),Ze=q.filter(function(U){return!S[U]});if(he){var B=Ya(q,!0,S);q=B.checkedKeys,ge=B.halfCheckedKeys}return[Array.from(new Set([].concat((0,m.Z)(Ze),(0,m.Z)(q)))),ge]},[O,A,he,S])},qe=["children"];function St(O,A){return"".concat(O,"-").concat(A)}function Ht(O){return O&&O.type&&O.type.isTreeNode}function tn(O,A){return O!=null?O:A}function Cn(O){var A=O||{},he=A.title,S=A._title,q=A.key,ge=A.children,Ze=he||"title";return{title:Ze,_title:S||[Ze],key:q||"key",children:ge||"children"}}function Or(O,A){var he=new Map;function S(q){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(q||[]).forEach(function(Ze){var B=Ze[A.key],U=Ze[A.children];warning(B!=null,"Tree node must have a certain key: [".concat(ge).concat(B,"]"));var se=String(B);warning(!he.has(se)||B===null||B===void 0,"Same 'key' exist in the Tree: ".concat(se)),he.set(se,!0),S(U,"".concat(ge).concat(se," > "))})}S(O)}function qr(O){function A(he){var S=(0,vn.Z)(he);return S.map(function(q){if(!Ht(q))return(0,o.ZP)(!q,"Tree/TreeNode can only accept TreeNode as children."),null;var ge=q.key,Ze=q.props,B=Ze.children,U=(0,$.Z)(Ze,qe),se=(0,I.Z)({key:ge},U),Ce=A(B);return Ce.length&&(se.children=Ce),se}).filter(function(q){return q})}return A(O)}function ia(O,A,he){var S=Cn(he),q=S._title,ge=S.key,Ze=S.children,B=new Set(A===!0?[]:A),U=[];function se(Ce){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ce.map(function(nt,Ke){for(var Ct=St(Le?Le.pos:"0",Ke),Zt=tn(nt[ge],Ct),rt,Yt=0;Yt1&&arguments[1]!==void 0?arguments[1]:{},he=A.initWrapper,S=A.processEntity,q=A.onProcessFinished,ge=A.externalGetKey,Ze=A.childrenPropName,B=A.fieldNames,U=arguments.length>2?arguments[2]:void 0,se=ge||U,Ce={},Le={},nt={posEntities:Ce,keyEntities:Le};return he&&(nt=he(nt)||nt),la(O,function(Ke){var Ct=Ke.node,Zt=Ke.index,rt=Ke.pos,Yt=Ke.key,On=Ke.parentPos,rn=Ke.level,xn=Ke.nodes,cn={node:Ct,nodes:xn,index:Zt,key:Yt,pos:rt,level:rn},Sn=tn(Yt,rt);Ce[rt]=cn,Le[Sn]=cn,cn.parent=Ce[On],cn.parent&&(cn.parent.children=cn.parent.children||[],cn.parent.children.push(cn)),S&&S(cn,nt)},{externalGetKey:se,childrenPropName:Ze,fieldNames:B}),q&&q(nt),nt}function Ar(O,A){var he=A.expandedKeys,S=A.selectedKeys,q=A.loadedKeys,ge=A.loadingKeys,Ze=A.checkedKeys,B=A.halfCheckedKeys,U=A.dragOverNodeKey,se=A.dropPosition,Ce=A.keyEntities,Le=ar(Ce,O),nt={eventKey:O,expanded:he.indexOf(O)!==-1,selected:S.indexOf(O)!==-1,loaded:q.indexOf(O)!==-1,loading:ge.indexOf(O)!==-1,checked:Ze.indexOf(O)!==-1,halfChecked:B.indexOf(O)!==-1,pos:String(Le?Le.pos:""),dragOver:U===O&&se===0,dragOverGapTop:U===O&&se===-1,dragOverGapBottom:U===O&&se===1};return nt}function Dr(O){var A=O.data,he=O.expanded,S=O.selected,q=O.checked,ge=O.loaded,Ze=O.loading,B=O.halfChecked,U=O.dragOver,se=O.dragOverGapTop,Ce=O.dragOverGapBottom,Le=O.pos,nt=O.active,Ke=O.eventKey,Ct=(0,I.Z)((0,I.Z)({},A),{},{expanded:he,selected:S,checked:q,loaded:ge,loading:Ze,halfChecked:B,dragOver:U,dragOverGapTop:se,dragOverGapBottom:Ce,pos:Le,active:nt,key:Ke});return"props"in Ct||Object.defineProperty(Ct,"props",{get:function(){return(0,o.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),O}}),Ct}var ba=function(O,A){return a.useMemo(function(){var he=Yr(O,{fieldNames:A,initWrapper:function(q){return(0,I.Z)((0,I.Z)({},q),{},{valueEntities:new Map})},processEntity:function(q,ge){var Ze=q.node[A.value];if(!1)var B;ge.valueEntities.set(Ze,q)}});return he},[O,A])},ja=function(){return null},Ma=ja,xe=["children","value"];function ce(O){return(0,vn.Z)(O).map(function(A){if(!a.isValidElement(A)||!A.type)return null;var he=A,S=he.key,q=he.props,ge=q.children,Ze=q.value,B=(0,$.Z)(q,xe),U=(0,I.Z)({key:S,value:Ze},B),se=ce(ge);return se.length&&(U.children=se),U}).filter(function(A){return A})}function bt(O){if(!O)return O;var A=(0,I.Z)({},O);return"props"in A||Object.defineProperty(A,"props",{get:function(){return(0,o.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),A}}),A}function ot(O,A,he,S,q,ge){var Ze=null,B=null;function U(){function se(Ce){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Ce.map(function(Ke,Ct){var Zt="".concat(Le,"-").concat(Ct),rt=Ke[ge.value],Yt=he.includes(rt),On=se(Ke[ge.children]||[],Zt,Yt),rn=a.createElement(Ma,Ke,On.map(function(cn){return cn.node}));if(A===rt&&(Ze=rn),Yt){var xn={pos:Zt,node:rn,children:On};return nt||B.push(xn),xn}return null}).filter(function(Ke){return Ke})}B||(B=[],se(S),B.sort(function(Ce,Le){var nt=Ce.node.props.value,Ke=Le.node.props.value,Ct=he.indexOf(nt),Zt=he.indexOf(Ke);return Ct-Zt}))}Object.defineProperty(O,"triggerNode",{get:function(){return(0,o.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),U(),Ze}}),Object.defineProperty(O,"allCheckedNodes",{get:function(){return(0,o.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),U(),q?B:B.map(function(Ce){var Le=Ce.node;return Le})}})}var wt=function(O,A,he){var S=he.treeNodeFilterProp,q=he.filterTreeNode,ge=he.fieldNames,Ze=ge.children;return a.useMemo(function(){if(!A||q===!1)return O;var B;if(typeof q=="function")B=q;else{var U=A.toUpperCase();B=function(Le,nt){var Ke=nt[S];return String(Ke).toUpperCase().includes(U)}}function se(Ce){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ce.reduce(function(nt,Ke){var Ct=Ke[Ze],Zt=Le||B(A,bt(Ke)),rt=se(Ct||[],Zt);return(Zt||rt.length)&&nt.push((0,I.Z)((0,I.Z)({},Ke),{},(0,T.Z)({isLeaf:void 0},Ze,rt))),nt},[])}return se(O)},[O,A,Ze,S,q])};function sn(O){var A=a.useRef();A.current=O;var he=a.useCallback(function(){return A.current.apply(A,arguments)},[]);return he}function gn(O,A){var he=A.id,S=A.pId,q=A.rootPId,ge={},Ze=[],B=O.map(function(U){var se=(0,I.Z)({},U),Ce=se[he];return ge[Ce]=se,se.key=se.key||Ce,se});return B.forEach(function(U){var se=U[S],Ce=ge[se];Ce&&(Ce.children=Ce.children||[],Ce.children.push(U)),(se===q||!Ce&&q===null)&&Ze.push(U)}),Ze}function Dn(O,A,he){return a.useMemo(function(){return O?he?gn(O,(0,I.Z)({id:"id",pId:"pId",rootPId:null},he!==!0?he:{})):O:ce(A)},[A,he,O])}var Hn=a.createContext(null),or=Hn,Yn=i(15671),Qn=i(43144),Ft=i(97326),pn=i(32531),Bn=i(29388),cr=a.createContext(null);function er(O){var A=O.dropPosition,he=O.dropLevelOffset,S=O.indent,q={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(A){case-1:q.top=0,q.left=-he*S;break;case 1:q.bottom=0,q.left=-he*S;break;case 0:q.bottom=0,q.left=S;break}return a.createElement("div",{style:q})}var _t=i(36459),$n=i(82225),_n=function(A){for(var he=A.prefixCls,S=A.level,q=A.isStart,ge=A.isEnd,Ze="".concat(he,"-indent-unit"),B=[],U=0;U0&&arguments[0]!==void 0?arguments[0]:[],A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],he=O.length,S=A.length;if(Math.abs(he-S)!==1)return{add:!1,key:null};function q(ge,Ze){var B=new Map;ge.forEach(function(se){B.set(se,!0)});var U=Ze.filter(function(se){return!B.has(se)});return U.length===1?U[0]:null}return he ").concat(A);return A}var Fi=a.forwardRef(function(O,A){var he=O.prefixCls,S=O.data,q=O.selectable,ge=O.checkable,Ze=O.expandedKeys,B=O.selectedKeys,U=O.checkedKeys,se=O.loadedKeys,Ce=O.loadingKeys,Le=O.halfCheckedKeys,nt=O.keyEntities,Ke=O.disabled,Ct=O.dragging,Zt=O.dragOverNodeKey,rt=O.dropPosition,Yt=O.motion,On=O.height,rn=O.itemHeight,xn=O.virtual,cn=O.focusable,Sn=O.activeItem,tr=O.focused,Rr=O.tabIndex,Lr=O.onKeyDown,wr=O.onFocus,Cr=O.onBlur,Pr=O.onActiveChange,sa=O.onListChangeStart,_r=O.onListChangeEnd,Ea=(0,$.Z)(O,xr),Br=a.useRef(null),ur=a.useRef(null);a.useImperativeHandle(A,function(){return{scrollTo:function(mo){Br.current.scrollTo(mo)},getIndentWidth:function(){return ur.current.offsetWidth}}});var Nr=a.useState(Ze),yo=(0,y.Z)(Nr,2),wo=yo[0],ni=yo[1],Oo=a.useState(S),Vo=(0,y.Z)(Oo,2),Xa=Vo[0],eo=Vo[1],hi=a.useState(S),to=(0,y.Z)(hi,2),pi=to[0],To=to[1],Xr=a.useState([]),Tr=(0,y.Z)(Xr,2),Na=Tr[0],Ia=Tr[1],Qr=a.useState(null),Ra=(0,y.Z)(Qr,2),pa=Ra[0],vo=Ra[1],za=a.useRef(S);za.current=S;function co(){var Co=za.current;eo(Co),To(Co),Ia([]),vo(null),_r()}(0,N.Z)(function(){ni(Ze);var Co=An(wo,Ze);if(Co.key!==null)if(Co.add){var mo=Xa.findIndex(function(Zo){var Yo=Zo.key;return Yo===Co.key}),so=Si(kn(Xa,S,Co.key),xn,On,rn),ci=Xa.slice();ci.splice(mo+1,0,po),To(ci),Ia(so),vo("show")}else{var go=S.findIndex(function(Zo){var Yo=Zo.key;return Yo===Co.key}),Fr=Si(kn(S,Xa,Co.key),xn,On,rn),Fo=S.slice();Fo.splice(go+1,0,po),To(Fo),Ia(Fr),vo("hide")}else Xa!==S&&(eo(S),To(S))},[Ze,S]),a.useEffect(function(){Ct||co()},[Ct]);var Pi=Yt?pi:S,ko={expandedKeys:Ze,selectedKeys:B,loadedKeys:se,loadingKeys:Ce,checkedKeys:U,halfCheckedKeys:Le,dragOverNodeKey:Zt,dropPosition:rt,keyEntities:nt};return a.createElement(a.Fragment,null,tr&&Sn&&a.createElement("span",{style:fr,"aria-live":"assertive"},Ui(Sn)),a.createElement("div",null,a.createElement("input",{style:fr,disabled:cn===!1||Ke,tabIndex:cn!==!1?Rr:null,onKeyDown:Lr,onFocus:wr,onBlur:Cr,value:"",onChange:Fa,"aria-label":"for screen reader"})),a.createElement("div",{className:"".concat(he,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},a.createElement("div",{className:"".concat(he,"-indent")},a.createElement("div",{ref:ur,className:"".concat(he,"-indent-unit")}))),a.createElement(ie.Z,(0,x.Z)({},Ea,{data:Pi,itemKey:bo,height:On,fullHeight:!1,virtual:xn,itemHeight:rn,prefixCls:"".concat(he,"-list"),ref:Br,onVisibleChange:function(mo,so){var ci=new Set(mo),go=so.filter(function(Fr){return!ci.has(Fr)});go.some(function(Fr){return bo(Fr)===Va})&&co()}}),function(Co){var mo=Co.pos,so=Object.assign({},((0,_t.Z)(Co.data),Co.data)),ci=Co.title,go=Co.key,Fr=Co.isStart,Fo=Co.isEnd,Zo=tn(go,mo);delete so.key,delete so.children;var Yo=Ar(Zo,ko);return a.createElement(nn,(0,x.Z)({},so,Yo,{title:ci,active:!!Sn&&go===Sn.key,pos:mo,data:Co.data,isStart:Fr,isEnd:Fo,motion:Yt,motionNodes:go===Va?Na:null,motionType:pa,onMotionStart:sa,onMotionEnd:co,treeNodeRequiredProps:ko,onMouseMove:function(){Pr(null)}}))}))});Fi.displayName="NodeList";var ha=Fi,aa=null;function ya(O,A){if(!O)return[];var he=O.slice(),S=he.indexOf(A);return S>=0&&he.splice(S,1),he}function Da(O,A){var he=(O||[]).slice();return he.indexOf(A)===-1&&he.push(A),he}function oa(O){return O.split("-")}function yr(O,A){var he=[],S=ar(A,O);function q(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ge.forEach(function(Ze){var B=Ze.key,U=Ze.children;he.push(B),q(U)})}return q(S.children),he}function xo(O){if(O.parent){var A=oa(O.pos);return Number(A[A.length-1])===O.parent.children.length-1}return!1}function Bo(O){var A=oa(O.pos);return Number(A[A.length-1])===0}function No(O,A,he,S,q,ge,Ze,B,U,se){var Ce,Le=O.clientX,nt=O.clientY,Ke=O.target.getBoundingClientRect(),Ct=Ke.top,Zt=Ke.height,rt=(se==="rtl"?-1:1)*(((q==null?void 0:q.x)||0)-Le),Yt=(rt-12)/S,On=U.filter(function(Br){var ur;return(ur=B[Br])===null||ur===void 0||(ur=ur.children)===null||ur===void 0?void 0:ur.length}),rn=ar(B,he.props.eventKey);if(nt-1.5?ge({dragNode:sa,dropNode:_r,dropPosition:1})?wr=1:Ea=!1:ge({dragNode:sa,dropNode:_r,dropPosition:0})?wr=0:ge({dragNode:sa,dropNode:_r,dropPosition:1})?wr=1:Ea=!1:ge({dragNode:sa,dropNode:_r,dropPosition:1})?wr=1:Ea=!1,{dropPosition:wr,dropLevelOffset:Cr,dropTargetKey:rn.key,dropTargetPos:rn.pos,dragOverNodeKey:Lr,dropContainerKey:wr===0?null:((Ce=rn.parent)===null||Ce===void 0?void 0:Ce.key)||null,dropAllowed:Ea}}function ei(O,A){if(O){var he=A.multiple;return he?O.slice():O.length?[O[0]]:O}}var cl=function(A){return A};function _i(O,A){if(!O)return[];var he=A||{},S=he.processProps,q=S===void 0?cl:S,ge=Array.isArray(O)?O:[O];return ge.map(function(Ze){var B=Ze.children,U=_objectWithoutProperties(Ze,aa),se=_i(B,A);return React.createElement(TreeNode,_extends({key:U.key},q(U)),se)})}function el(O){if(!O)return null;var A;if(Array.isArray(O))A={checkedKeys:O,halfCheckedKeys:void 0};else if((0,W.Z)(O)==="object")A={checkedKeys:O.checked||void 0,halfCheckedKeys:O.halfChecked||void 0};else return(0,o.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return A}function Vi(O,A){var he=new Set;function S(q){if(!he.has(q)){var ge=ar(A,q);if(ge){he.add(q);var Ze=ge.parent,B=ge.node;B.disabled||Ze&&S(Ze.key)}}}return(O||[]).forEach(function(q){S(q)}),(0,m.Z)(he)}var ti=10,Hi=function(O){(0,pn.Z)(he,O);var A=(0,Bn.Z)(he);function he(){var S;(0,Yn.Z)(this,he);for(var q=arguments.length,ge=new Array(q),Ze=0;Ze2&&arguments[2]!==void 0?arguments[2]:!1,Le=S.state,nt=Le.dragChildrenKeys,Ke=Le.dropPosition,Ct=Le.dropTargetKey,Zt=Le.dropTargetPos,rt=Le.dropAllowed;if(rt){var Yt=S.props.onDrop;if(S.setState({dragOverNodeKey:null}),S.cleanDragState(),Ct!==null){var On=(0,I.Z)((0,I.Z)({},Ar(Ct,S.getTreeNodeRequiredProps())),{},{active:((se=S.getActiveItem())===null||se===void 0?void 0:se.key)===Ct,data:ar(S.state.keyEntities,Ct).node}),rn=nt.indexOf(Ct)!==-1;(0,o.ZP)(!rn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var xn=oa(Zt),cn={event:B,node:Dr(On),dragNode:S.dragNode?Dr(S.dragNode.props):null,dragNodesKeys:[S.dragNode.props.eventKey].concat(nt),dropToGap:Ke!==0,dropPosition:Ke+Number(xn[xn.length-1])};Ce||Yt==null||Yt(cn),S.dragNode=null}}}),(0,T.Z)((0,Ft.Z)(S),"cleanDragState",function(){var B=S.state.draggingNodeKey;B!==null&&S.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),S.dragStartMousePosition=null,S.currentMouseOverDroppableNodeKey=null}),(0,T.Z)((0,Ft.Z)(S),"triggerExpandActionExpand",function(B,U){var se=S.state,Ce=se.expandedKeys,Le=se.flattenNodes,nt=U.expanded,Ke=U.key,Ct=U.isLeaf;if(!(Ct||B.shiftKey||B.metaKey||B.ctrlKey)){var Zt=Le.filter(function(Yt){return Yt.key===Ke})[0],rt=Dr((0,I.Z)((0,I.Z)({},Ar(Ke,S.getTreeNodeRequiredProps())),{},{data:Zt.data}));S.setExpandedKeys(nt?ya(Ce,Ke):Da(Ce,Ke)),S.onNodeExpand(B,rt)}}),(0,T.Z)((0,Ft.Z)(S),"onNodeClick",function(B,U){var se=S.props,Ce=se.onClick,Le=se.expandAction;Le==="click"&&S.triggerExpandActionExpand(B,U),Ce==null||Ce(B,U)}),(0,T.Z)((0,Ft.Z)(S),"onNodeDoubleClick",function(B,U){var se=S.props,Ce=se.onDoubleClick,Le=se.expandAction;Le==="doubleClick"&&S.triggerExpandActionExpand(B,U),Ce==null||Ce(B,U)}),(0,T.Z)((0,Ft.Z)(S),"onNodeSelect",function(B,U){var se=S.state.selectedKeys,Ce=S.state,Le=Ce.keyEntities,nt=Ce.fieldNames,Ke=S.props,Ct=Ke.onSelect,Zt=Ke.multiple,rt=U.selected,Yt=U[nt.key],On=!rt;On?Zt?se=Da(se,Yt):se=[Yt]:se=ya(se,Yt);var rn=se.map(function(xn){var cn=ar(Le,xn);return cn?cn.node:null}).filter(function(xn){return xn});S.setUncontrolledState({selectedKeys:se}),Ct==null||Ct(se,{event:"select",selected:On,node:U,selectedNodes:rn,nativeEvent:B.nativeEvent})}),(0,T.Z)((0,Ft.Z)(S),"onNodeCheck",function(B,U,se){var Ce=S.state,Le=Ce.keyEntities,nt=Ce.checkedKeys,Ke=Ce.halfCheckedKeys,Ct=S.props,Zt=Ct.checkStrictly,rt=Ct.onCheck,Yt=U.key,On,rn={event:"check",node:U,checked:se,nativeEvent:B.nativeEvent};if(Zt){var xn=se?Da(nt,Yt):ya(nt,Yt),cn=ya(Ke,Yt);On={checked:xn,halfChecked:cn},rn.checkedNodes=xn.map(function(Cr){return ar(Le,Cr)}).filter(function(Cr){return Cr}).map(function(Cr){return Cr.node}),S.setUncontrolledState({checkedKeys:xn})}else{var Sn=Ya([].concat((0,m.Z)(nt),[Yt]),!0,Le),tr=Sn.checkedKeys,Rr=Sn.halfCheckedKeys;if(!se){var Lr=new Set(tr);Lr.delete(Yt);var wr=Ya(Array.from(Lr),{checked:!1,halfCheckedKeys:Rr},Le);tr=wr.checkedKeys,Rr=wr.halfCheckedKeys}On=tr,rn.checkedNodes=[],rn.checkedNodesPositions=[],rn.halfCheckedKeys=Rr,tr.forEach(function(Cr){var Pr=ar(Le,Cr);if(Pr){var sa=Pr.node,_r=Pr.pos;rn.checkedNodes.push(sa),rn.checkedNodesPositions.push({node:sa,pos:_r})}}),S.setUncontrolledState({checkedKeys:tr},!1,{halfCheckedKeys:Rr})}rt==null||rt(On,rn)}),(0,T.Z)((0,Ft.Z)(S),"onNodeLoad",function(B){var U=B.key,se=new Promise(function(Ce,Le){S.setState(function(nt){var Ke=nt.loadedKeys,Ct=Ke===void 0?[]:Ke,Zt=nt.loadingKeys,rt=Zt===void 0?[]:Zt,Yt=S.props,On=Yt.loadData,rn=Yt.onLoad;if(!On||Ct.indexOf(U)!==-1||rt.indexOf(U)!==-1)return null;var xn=On(B);return xn.then(function(){var cn=S.state.loadedKeys,Sn=Da(cn,U);rn==null||rn(Sn,{event:"load",node:B}),S.setUncontrolledState({loadedKeys:Sn}),S.setState(function(tr){return{loadingKeys:ya(tr.loadingKeys,U)}}),Ce()}).catch(function(cn){if(S.setState(function(tr){return{loadingKeys:ya(tr.loadingKeys,U)}}),S.loadingRetryTimes[U]=(S.loadingRetryTimes[U]||0)+1,S.loadingRetryTimes[U]>=ti){var Sn=S.state.loadedKeys;(0,o.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),S.setUncontrolledState({loadedKeys:Da(Sn,U)}),Ce()}Le(cn)}),{loadingKeys:Da(rt,U)}})});return se.catch(function(){}),se}),(0,T.Z)((0,Ft.Z)(S),"onNodeMouseEnter",function(B,U){var se=S.props.onMouseEnter;se==null||se({event:B,node:U})}),(0,T.Z)((0,Ft.Z)(S),"onNodeMouseLeave",function(B,U){var se=S.props.onMouseLeave;se==null||se({event:B,node:U})}),(0,T.Z)((0,Ft.Z)(S),"onNodeContextMenu",function(B,U){var se=S.props.onRightClick;se&&(B.preventDefault(),se({event:B,node:U}))}),(0,T.Z)((0,Ft.Z)(S),"onFocus",function(){var B=S.props.onFocus;S.setState({focused:!0});for(var U=arguments.length,se=new Array(U),Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:!1,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!S.destroyed){var Ce=!1,Le=!0,nt={};Object.keys(B).forEach(function(Ke){if(Ke in S.props){Le=!1;return}Ce=!0,nt[Ke]=B[Ke]}),Ce&&(!U||Le)&&S.setState((0,I.Z)((0,I.Z)({},nt),se))}}),(0,T.Z)((0,Ft.Z)(S),"scrollTo",function(B){S.listRef.current.scrollTo(B)}),S}return(0,Qn.Z)(he,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var q=this.props,ge=q.activeKey,Ze=q.itemScrollOffset,B=Ze===void 0?0:Ze;ge!==void 0&&ge!==this.state.activeKey&&(this.setState({activeKey:ge}),ge!==null&&this.scrollTo({key:ge,offset:B}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var q=this.state,ge=q.focused,Ze=q.flattenNodes,B=q.keyEntities,U=q.draggingNodeKey,se=q.activeKey,Ce=q.dropLevelOffset,Le=q.dropContainerKey,nt=q.dropTargetKey,Ke=q.dropPosition,Ct=q.dragOverNodeKey,Zt=q.indent,rt=this.props,Yt=rt.prefixCls,On=rt.className,rn=rt.style,xn=rt.showLine,cn=rt.focusable,Sn=rt.tabIndex,tr=Sn===void 0?0:Sn,Rr=rt.selectable,Lr=rt.showIcon,wr=rt.icon,Cr=rt.switcherIcon,Pr=rt.draggable,sa=rt.checkable,_r=rt.checkStrictly,Ea=rt.disabled,Br=rt.motion,ur=rt.loadData,Nr=rt.filterTreeNode,yo=rt.height,wo=rt.itemHeight,ni=rt.virtual,Oo=rt.titleRender,Vo=rt.dropIndicatorRender,Xa=rt.onContextMenu,eo=rt.onScroll,hi=rt.direction,to=rt.rootClassName,pi=rt.rootStyle,To=(0,re.Z)(this.props,{aria:!0,data:!0}),Xr;return Pr&&((0,W.Z)(Pr)==="object"?Xr=Pr:typeof Pr=="function"?Xr={nodeDraggable:Pr}:Xr={}),a.createElement(cr.Provider,{value:{prefixCls:Yt,selectable:Rr,showIcon:Lr,icon:wr,switcherIcon:Cr,draggable:Xr,draggingNodeKey:U,checkable:sa,checkStrictly:_r,disabled:Ea,keyEntities:B,dropLevelOffset:Ce,dropContainerKey:Le,dropTargetKey:nt,dropPosition:Ke,dragOverNodeKey:Ct,indent:Zt,direction:hi,dropIndicatorRender:Vo,loadData:ur,filterTreeNode:Nr,titleRender:Oo,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},a.createElement("div",{role:"tree",className:g()(Yt,On,to,(0,T.Z)((0,T.Z)((0,T.Z)({},"".concat(Yt,"-show-line"),xn),"".concat(Yt,"-focused"),ge),"".concat(Yt,"-active-focused"),se!==null)),style:pi},a.createElement(ha,(0,x.Z)({ref:this.listRef,prefixCls:Yt,style:rn,data:Ze,disabled:Ea,selectable:Rr,checkable:!!sa,motion:Br,dragging:U!==null,height:yo,itemHeight:wo,virtual:ni,focusable:cn,focused:ge,tabIndex:tr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Xa,onScroll:eo},this.getTreeNodeRequiredProps(),To))))}}],[{key:"getDerivedStateFromProps",value:function(q,ge){var Ze=ge.prevProps,B={prevProps:q};function U(Sn){return!Ze&&Sn in q||Ze&&Ze[Sn]!==q[Sn]}var se,Ce=ge.fieldNames;if(U("fieldNames")&&(Ce=Cn(q.fieldNames),B.fieldNames=Ce),U("treeData")?se=q.treeData:U("children")&&((0,o.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),se=qr(q.children)),se){B.treeData=se;var Le=Yr(se,{fieldNames:Ce});B.keyEntities=(0,I.Z)((0,T.Z)({},Va,uo),Le.keyEntities)}var nt=B.keyEntities||ge.keyEntities;if(U("expandedKeys")||Ze&&U("autoExpandParent"))B.expandedKeys=q.autoExpandParent||!Ze&&q.defaultExpandParent?Vi(q.expandedKeys,nt):q.expandedKeys;else if(!Ze&&q.defaultExpandAll){var Ke=(0,I.Z)({},nt);delete Ke[Va],B.expandedKeys=Object.keys(Ke).map(function(Sn){return Ke[Sn].key})}else!Ze&&q.defaultExpandedKeys&&(B.expandedKeys=q.autoExpandParent||q.defaultExpandParent?Vi(q.defaultExpandedKeys,nt):q.defaultExpandedKeys);if(B.expandedKeys||delete B.expandedKeys,se||B.expandedKeys){var Ct=ia(se||ge.treeData,B.expandedKeys||ge.expandedKeys,Ce);B.flattenNodes=Ct}if(q.selectable&&(U("selectedKeys")?B.selectedKeys=ei(q.selectedKeys,q):!Ze&&q.defaultSelectedKeys&&(B.selectedKeys=ei(q.defaultSelectedKeys,q))),q.checkable){var Zt;if(U("checkedKeys")?Zt=el(q.checkedKeys)||{}:!Ze&&q.defaultCheckedKeys?Zt=el(q.defaultCheckedKeys)||{}:se&&(Zt=el(q.checkedKeys)||{checkedKeys:ge.checkedKeys,halfCheckedKeys:ge.halfCheckedKeys}),Zt){var rt=Zt,Yt=rt.checkedKeys,On=Yt===void 0?[]:Yt,rn=rt.halfCheckedKeys,xn=rn===void 0?[]:rn;if(!q.checkStrictly){var cn=Ya(On,!0,nt);On=cn.checkedKeys,xn=cn.halfCheckedKeys}B.checkedKeys=On,B.halfCheckedKeys=xn}}return U("loadedKeys")&&(B.loadedKeys=q.loadedKeys),B}}]),he}(a.Component);(0,T.Z)(Hi,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:er,allowDrop:function(){return!0},expandAction:!1}),(0,T.Z)(Hi,"TreeNode",Zr);var ki=Hi,Go=ki,jo=a.createContext(null),Ro=jo;function Bi(O){return Array.isArray(O)?O:O!==void 0?[O]:[]}function xi(O){var A=O||{},he=A.label,S=A.value,q=A.children,ge=S||"value";return{_title:he?[he]:["title","label"],value:ge,key:ge,children:q||"children"}}function li(O){return!O||O.disabled||O.disableCheckbox||O.checkable===!1}function si(O,A){var he=[];function S(q){q.forEach(function(ge){var Ze=ge[A.children];Ze&&(he.push(ge[A.value]),S(Ze))})}return S(O),he}function Xo(O){return O==null}var bl={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},tl=function(A,he){var S=Ne(),q=S.prefixCls,ge=S.multiple,Ze=S.searchValue,B=S.toggleOpen,U=S.open,se=S.notFoundContent,Ce=a.useContext(Ro),Le=Ce.virtual,nt=Ce.listHeight,Ke=Ce.listItemHeight,Ct=Ce.listItemScrollOffset,Zt=Ce.treeData,rt=Ce.fieldNames,Yt=Ce.onSelect,On=Ce.dropdownMatchSelectWidth,rn=Ce.treeExpandAction,xn=Ce.treeTitleRender,cn=a.useContext(or),Sn=cn.checkable,tr=cn.checkedKeys,Rr=cn.halfCheckedKeys,Lr=cn.treeExpandedKeys,wr=cn.treeDefaultExpandAll,Cr=cn.treeDefaultExpandedKeys,Pr=cn.onTreeExpand,sa=cn.treeIcon,_r=cn.showTreeIcon,Ea=cn.switcherIcon,Br=cn.treeLine,ur=cn.treeNodeFilterProp,Nr=cn.loadData,yo=cn.treeLoadedKeys,wo=cn.treeMotion,ni=cn.onTreeLoad,Oo=cn.keyEntities,Vo=a.useRef(),Xa=(0,de.Z)(function(){return Zt},[U,Zt],function(go,Fr){return Fr[0]&&go[1]!==Fr[1]}),eo=a.useState(null),hi=(0,y.Z)(eo,2),to=hi[0],pi=hi[1],To=Oo[to],Xr=a.useMemo(function(){return Sn?{checked:tr,halfChecked:Rr}:null},[Sn,tr,Rr]);a.useEffect(function(){if(U&&!ge&&tr.length){var go;(go=Vo.current)===null||go===void 0||go.scrollTo({key:tr[0]}),pi(tr[0])}},[U]);var Tr=String(Ze).toLowerCase(),Na=function(Fr){return Tr?String(Fr[ur]).toLowerCase().includes(Tr):!1},Ia=a.useState(Cr),Qr=(0,y.Z)(Ia,2),Ra=Qr[0],pa=Qr[1],vo=a.useState(null),za=(0,y.Z)(vo,2),co=za[0],Pi=za[1],ko=a.useMemo(function(){return Lr?(0,m.Z)(Lr):Ze?co:Ra},[Ra,co,Lr,Ze]);a.useEffect(function(){Ze&&Pi(si(Zt,rt))},[Ze]);var Co=function(Fr){pa(Fr),Pi(Fr),Pr&&Pr(Fr)},mo=function(Fr){Fr.preventDefault()},so=function(Fr,Fo){var Zo=Fo.node;Sn&&li(Zo)||(Yt(Zo.key,{selected:!tr.includes(Zo.key)}),ge||B(!1))};if(a.useImperativeHandle(he,function(){var go;return{scrollTo:(go=Vo.current)===null||go===void 0?void 0:go.scrollTo,onKeyDown:function(Fo){var Zo,Yo=Fo.which;switch(Yo){case Z.Z.UP:case Z.Z.DOWN:case Z.Z.LEFT:case Z.Z.RIGHT:(Zo=Vo.current)===null||Zo===void 0||Zo.onKeyDown(Fo);break;case Z.Z.ENTER:{if(To){var ui=(To==null?void 0:To.node)||{},rl=ui.selectable,zo=ui.value;rl!==!1&&so(null,{node:{key:to},selected:!tr.includes(zo)})}break}case Z.Z.ESC:B(!1)}},onKeyUp:function(){}}}),Xa.length===0)return a.createElement("div",{role:"listbox",className:"".concat(q,"-empty"),onMouseDown:mo},se);var ci={fieldNames:rt};return yo&&(ci.loadedKeys=yo),ko&&(ci.expandedKeys=ko),a.createElement("div",{onMouseDown:mo},To&&U&&a.createElement("span",{style:bl,"aria-live":"assertive"},To.node.value),a.createElement(Go,(0,x.Z)({ref:Vo,focusable:!1,prefixCls:"".concat(q,"-tree"),treeData:Xa,height:nt,itemHeight:Ke,itemScrollOffset:Ct,virtual:Le!==!1&&On!==!1,multiple:ge,icon:sa,showIcon:_r,switcherIcon:Ea,showLine:Br,loadData:Ze?null:Nr,motion:wo,activeKey:to,checkable:Sn,checkStrictly:!0,checkedKeys:Xr,selectedKeys:Sn?[]:tr,defaultExpandAll:wr,titleRender:xn},ci,{onActiveChange:pi,onSelect:so,onCheck:so,onExpand:Co,onLoad:ni,filterTreeNode:Na,expandAction:rn})))},yl=a.forwardRef(tl),wi=yl,as="SHOW_ALL",nl="SHOW_PARENT",$l="SHOW_CHILD";function os(O,A,he,S){var q=new Set(O);return A===$l?O.filter(function(ge){var Ze=he[ge];return!(Ze&&Ze.children&&Ze.children.some(function(B){var U=B.node;return q.has(U[S.value])})&&Ze.children.every(function(B){var U=B.node;return li(U)||q.has(U[S.value])}))}):A===nl?O.filter(function(ge){var Ze=he[ge],B=Ze?Ze.parent:null;return!(B&&!li(B.node)&&q.has(B.key))}):O}function ds(O){var A=O.searchPlaceholder,he=O.treeCheckStrictly,S=O.treeCheckable,q=O.labelInValue,ge=O.value,Ze=O.multiple;warning(!A,"`searchPlaceholder` has been removed."),he&&q===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(q||he)&&warning(toArray(ge).every(function(B){return B&&_typeof(B)==="object"&&"value"in B}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),he||Ze||S?warning(!ge||Array.isArray(ge),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(ge),"`value` should not be array when `TreeSelect` is single mode.")}var fs=null,Pl=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender"];function Xl(O){return!O||(0,W.Z)(O)!=="object"}var jl=a.forwardRef(function(O,A){var he=O.id,S=O.prefixCls,q=S===void 0?"rc-tree-select":S,ge=O.value,Ze=O.defaultValue,B=O.onChange,U=O.onSelect,se=O.onDeselect,Ce=O.searchValue,Le=O.inputValue,nt=O.onSearch,Ke=O.autoClearSearchValue,Ct=Ke===void 0?!0:Ke,Zt=O.filterTreeNode,rt=O.treeNodeFilterProp,Yt=rt===void 0?"value":rt,On=O.showCheckedStrategy,rn=O.treeNodeLabelProp,xn=O.multiple,cn=O.treeCheckable,Sn=O.treeCheckStrictly,tr=O.labelInValue,Rr=O.fieldNames,Lr=O.treeDataSimpleMode,wr=O.treeData,Cr=O.children,Pr=O.loadData,sa=O.treeLoadedKeys,_r=O.onTreeLoad,Ea=O.treeDefaultExpandAll,Br=O.treeExpandedKeys,ur=O.treeDefaultExpandedKeys,Nr=O.onTreeExpand,yo=O.treeExpandAction,wo=O.virtual,ni=O.listHeight,Oo=ni===void 0?200:ni,Vo=O.listItemHeight,Xa=Vo===void 0?20:Vo,eo=O.listItemScrollOffset,hi=eo===void 0?0:eo,to=O.onDropdownVisibleChange,pi=O.dropdownMatchSelectWidth,To=pi===void 0?!0:pi,Xr=O.treeLine,Tr=O.treeIcon,Na=O.showTreeIcon,Ia=O.switcherIcon,Qr=O.treeMotion,Ra=O.treeTitleRender,pa=(0,$.Z)(O,Pl),vo=on(he),za=cn&&!Sn,co=cn||Sn,Pi=Sn||tr,ko=co||xn,Co=(0,X.Z)(Ze,{value:ge}),mo=(0,y.Z)(Co,2),so=mo[0],ci=mo[1],go=a.useMemo(function(){return cn?On||$l:as},[On,cn]),Fr=a.useMemo(function(){return xi(Rr)},[JSON.stringify(Rr)]),Fo=(0,X.Z)("",{value:Ce!==void 0?Ce:Le,postState:function(ao){return ao||""}}),Zo=(0,y.Z)(Fo,2),Yo=Zo[0],ui=Zo[1],rl=function(ao){ui(ao),nt==null||nt(ao)},zo=Dn(wr,Cr,Lr),Ei=ba(zo,Fr),Uo=Ei.keyEntities,Qo=Ei.valueEntities,Ol=a.useCallback(function(no){var ao=[],ro=[];return no.forEach(function(ka){Qo.has(ka)?ro.push(ka):ao.push(ka)}),{missingRawValues:ao,existRawValues:ro}},[Qo]),Ai=wt(zo,Yo,{fieldNames:Fr,treeNodeFilterProp:Yt,filterTreeNode:Zt}),ql=a.useCallback(function(no){if(no){if(rn)return no[rn];for(var ao=Fr._title,ro=0;ro{const{componentCls:A,treePrefixCls:he,colorBgElevated:S}=O,q=`.${he}`;return[{[`${A}-dropdown`]:[{padding:`${(0,kl.bf)(O.paddingXS)} ${(0,kl.bf)(O.calc(O.paddingXS).div(2).equal())}`},(0,Ds.Yk)(he,(0,Ve.TS)(O,{colorBgContainer:S})),{[q]:{borderRadius:0,[`${q}-list-holder-inner`]:{alignItems:"stretch",[`${q}-treenode`]:{[`${q}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Jl.C2)(`${he}-checkbox`,O),{"&-rtl":{direction:"rtl",[`${q}-switcher${q}-switcher_close`]:{[`${q}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},ul=null;function $s(O,A,he){return(0,oc.I$)("TreeSelect",S=>{const q=(0,Ve.TS)(S,{treePrefixCls:A});return[ic(q)]},Ds.TM)(O,he)}var is=function(O,A){var he={};for(var S in O)Object.prototype.hasOwnProperty.call(O,S)&&A.indexOf(S)<0&&(he[S]=O[S]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,S=Object.getOwnPropertySymbols(O);q{var he,{prefixCls:S,size:q,disabled:ge,bordered:Ze=!0,className:B,rootClassName:U,treeCheckable:se,multiple:Ce,listHeight:Le=256,listItemHeight:nt=26,placement:Ke,notFoundContent:Ct,switcherIcon:Zt,treeLine:rt,getPopupContainer:Yt,popupClassName:On,dropdownClassName:rn,treeIcon:xn=!1,transitionName:cn,choiceTransitionName:Sn="",status:tr,treeExpandAction:Rr,builtinPlacements:Lr,dropdownMatchSelectWidth:wr,popupMatchSelectWidth:Cr,allowClear:Pr,variant:sa,dropdownStyle:_r,tagRender:Ea}=O,Br=is(O,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]);const{getPopupContainer:ur,getPrefixCls:Nr,renderEmpty:yo,direction:wo,virtual:ni,popupMatchSelectWidth:Oo,popupOverflow:Vo}=a.useContext(Io.E_),Xa=Nr(),eo=Nr("select",S),hi=Nr("select-tree",S),to=Nr("tree-select",S),{compactSize:pi,compactItemClassnames:To}=(0,Yi.ri)(eo,wo),Xr=(0,ml.Z)(eo),Tr=(0,ml.Z)(to),[Na,Ia,Qr]=(0,Ss.Z)(eo,Xr),[Ra]=$s(to,hi,Tr),[pa,vo]=(0,Nl.Z)(sa,Ze),za=g()(On||rn,`${to}-dropdown`,{[`${to}-dropdown-rtl`]:wo==="rtl"},U,Qr,Xr,Tr,Ia),co=!!(se||Ce),Pi=(0,Hl.Z)(Br.suffixIcon,Br.showArrow),ko=(he=Cr!=null?Cr:wr)!==null&&he!==void 0?he:Oo,{status:Co,hasFeedback:mo,isFormItemInput:so,feedbackIcon:ci}=a.useContext(Mi.aM),go=(0,Wa.F)(Co,tr),{suffixIcon:Fr,removeIcon:Fo,clearIcon:Zo}=(0,Ms.Z)(Object.assign(Object.assign({},Br),{multiple:co,showSuffixIcon:Pi,hasFeedback:mo,feedbackIcon:ci,prefixCls:eo,componentName:"TreeSelect"})),Yo=Pr===!0?{clearIcon:Zo}:Pr;let ui;Ct!==void 0?ui=Ct:ui=(yo==null?void 0:yo("Select"))||a.createElement(Ho.Z,{componentName:"Select"});const rl=(0,F.Z)(Br,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),zo=a.useMemo(()=>Ke!==void 0?Ke:wo==="rtl"?"bottomRight":"bottomLeft",[Ke,wo]),Ei=(0,Vl.Z)(Gi=>{var Di;return(Di=q!=null?q:pi)!==null&&Di!==void 0?Di:Gi}),Uo=a.useContext(El.Z),Qo=ge!=null?ge:Uo,Ol=g()(!S&&to,{[`${eo}-lg`]:Ei==="large",[`${eo}-sm`]:Ei==="small",[`${eo}-rtl`]:wo==="rtl",[`${eo}-${pa}`]:vo,[`${eo}-in-form-item`]:so},(0,Wa.Z)(eo,go,mo),To,B,U,Qr,Xr,Tr,Ia),Ai=Gi=>a.createElement(ac.Z,{prefixCls:hi,switcherIcon:Zt,treeNodeProps:Gi,showLine:rt}),[ql]=(0,pr.Cn)("SelectLike",_r==null?void 0:_r.zIndex),gl=a.createElement(Ql,Object.assign({virtual:ni,disabled:Qo},rl,{dropdownMatchSelectWidth:ko,builtinPlacements:(0,vs.Z)(Lr,Vo),ref:A,prefixCls:eo,className:Ol,listHeight:Le,listItemHeight:nt,treeCheckable:se&&a.createElement("span",{className:`${eo}-tree-checkbox-inner`}),treeLine:!!rt,suffixIcon:Fr,multiple:co,placement:zo,removeIcon:Fo,allowClear:Yo,switcherIcon:Ai,showTreeIcon:xn,notFoundContent:ui,getPopupContainer:Yt||ur,treeMotion:null,dropdownClassName:za,dropdownStyle:Object.assign(Object.assign({},_r),{zIndex:ql}),choiceTransitionName:(0,$a.m)(Xa,"",Sn),transitionName:(0,$a.m)(Xa,"slide-up",cn),treeExpandAction:Rr,tagRender:co?Ea:void 0}));return Na(Ra(gl))},Tl=a.forwardRef(Ns),lc=(0,Ca.Z)(Tl);Tl.TreeNode=Ma,Tl.SHOW_ALL=as,Tl.SHOW_PARENT=nl,Tl.SHOW_CHILD=$l,Tl._InternalPanelDoNotUseOrYouWillBeFired=lc;var Il=Tl},32157:function(D,L,i){"use strict";i.d(L,{TM:function(){return N},Yk:function(){return o}});var a=i(6731),p=i(63185),g=i(14747),x=i(33507),m=i(45503),I=i(91945);const y=new a.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),$=(Z,ee)=>({[`.${Z}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ee.motionDurationSlow}`}}}),W=(Z,ee)=>({[`.${Z}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ee.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,a.bf)(ee.lineWidthBold)} solid ${ee.colorPrimary}`,borderRadius:"50%",content:'""'}}}),T=(Z,ee)=>{const{treeCls:Me,treeNodeCls:je,treeNodePadding:Xe,titleHeight:He,nodeSelectedBg:Ne,nodeHoverBg:Et}=ee,it=ee.paddingXS;return{[Me]:Object.assign(Object.assign({},(0,g.Wf)(ee)),{background:ee.colorBgContainer,borderRadius:ee.borderRadius,transition:`background-color ${ee.motionDurationSlow}`,[`&${Me}-rtl`]:{[`${Me}-switcher`]:{"&_close":{[`${Me}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Me}-active-focused)`]:Object.assign({},(0,g.oN)(ee)),[`${Me}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Me}-block-node`]:{[`${Me}-list-holder-inner`]:{alignItems:"stretch",[`${Me}-node-content-wrapper`]:{flex:"auto"},[`${je}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Xe,insetInlineStart:0,border:`1px solid ${ee.colorPrimary}`,opacity:0,animationName:y,animationDuration:ee.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${je}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${(0,a.bf)(Xe)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Me}-node-content-wrapper`]:{color:ee.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Me}-node-content-wrapper`]:{background:ee.controlItemBgHover},[`&:not(${je}-disabled).filter-node ${Me}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${Me}-draggable-icon`]:{flexShrink:0,width:He,lineHeight:`${(0,a.bf)(He)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${ee.motionDurationSlow}`,[`${je}:hover &`]:{opacity:.45}},[`&${je}-disabled`]:{[`${Me}-draggable-icon`]:{visibility:"hidden"}}}},[`${Me}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:He}},[`${Me}-draggable-icon`]:{visibility:"hidden"},[`${Me}-switcher`]:Object.assign(Object.assign({},$(Z,ee)),{position:"relative",flex:"none",alignSelf:"stretch",width:He,margin:0,lineHeight:`${(0,a.bf)(He)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${ee.motionDurationSlow}`,borderRadius:ee.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${Me}-switcher-noop):hover`]:{backgroundColor:ee.colorBgTextHover},"&_close":{[`${Me}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:ee.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ee.calc(He).div(2).equal(),bottom:ee.calc(Xe).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${ee.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ee.calc(ee.calc(He).div(2).equal()).mul(.8).equal(),height:ee.calc(He).div(2).equal(),borderBottom:`1px solid ${ee.colorBorder}`,content:'""'}}}),[`${Me}-checkbox`]:{top:"initial",marginInlineEnd:it,alignSelf:"flex-start",marginTop:ee.marginXXS},[`${Me}-node-content-wrapper, ${Me}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:He,margin:0,padding:`0 ${(0,a.bf)(ee.calc(ee.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${(0,a.bf)(He)}`,background:"transparent",borderRadius:ee.borderRadius,cursor:"pointer",transition:`all ${ee.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Et},[`&${Me}-node-selected`]:{backgroundColor:Ne},[`${Me}-iconEle`]:{display:"inline-block",width:He,height:He,lineHeight:`${(0,a.bf)(He)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Me}-unselectable ${Me}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Me}-node-content-wrapper`]:Object.assign({lineHeight:`${(0,a.bf)(He)}`,userSelect:"none"},W(Z,ee)),[`${je}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${ee.colorPrimary}`}},"&-show-line":{[`${Me}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ee.calc(He).div(2).equal(),bottom:ee.calc(Xe).mul(-1).equal(),borderInlineEnd:`1px solid ${ee.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Me}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${je}-leaf-last`]:{[`${Me}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${(0,a.bf)(ee.calc(He).div(2).equal())} !important`}}}}})}},X=Z=>{const{treeCls:ee,treeNodeCls:Me,treeNodePadding:je,directoryNodeSelectedBg:Xe,directoryNodeSelectedColor:He}=Z;return{[`${ee}${ee}-directory`]:{[Me]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:je,insetInlineStart:0,transition:`background-color ${Z.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Z.controlItemBgHover}},"> *":{zIndex:1},[`${ee}-switcher`]:{transition:`color ${Z.motionDurationMid}`},[`${ee}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${ee}-node-selected`]:{color:He,background:"transparent"}},"&-selected":{[` + &:hover::before, + &::before + `]:{background:Xe},[`${ee}-switcher`]:{color:He},[`${ee}-node-content-wrapper`]:{color:He,background:"transparent"}}}}}},o=(Z,ee)=>{const Me=`.${Z}`,je=`${Me}-treenode`,Xe=ee.calc(ee.paddingXS).div(2).equal(),He=(0,m.TS)(ee,{treeCls:Me,treeNodeCls:je,treeNodePadding:Xe});return[T(Z,He),X(He)]},N=Z=>{const{controlHeightSM:ee}=Z;return{titleHeight:ee,nodeHoverBg:Z.controlItemBgHover,nodeSelectedBg:Z.controlItemBgActive}},_=Z=>{const{colorTextLightSolid:ee,colorPrimary:Me}=Z;return Object.assign(Object.assign({},N(Z)),{directoryNodeSelectedColor:ee,directoryNodeSelectedBg:Me})};L.ZP=(0,I.I$)("Tree",(Z,ee)=>{let{prefixCls:Me}=ee;return[{[Z.componentCls]:(0,p.C2)(`${Me}-checkbox`,Z)},o(Me,Z),(0,x.Z)(Z)]},_)},77632:function(D,L,i){"use strict";i.d(L,{Z:function(){return Ie}});var a=i(67294),p=i(87462),g={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},x=g,m=i(93771),I=function(Y,fe){return a.createElement(m.Z,(0,p.Z)({},Y,{ref:fe,icon:x}))},y=a.forwardRef(I),$=y,W=i(5309),T=i(19267),X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},o=X,N=function(Y,fe){return a.createElement(m.Z,(0,p.Z)({},Y,{ref:fe,icon:o}))},_=a.forwardRef(N),Z=_,ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Me=ee,je=function(Y,fe){return a.createElement(m.Z,(0,p.Z)({},Y,{ref:fe,icon:Me}))},Xe=a.forwardRef(je),He=Xe,Ne=i(93967),Et=i.n(Ne),it=i(96159),Ie=re=>{const{prefixCls:Y,switcherIcon:fe,treeNodeProps:K,showLine:$e}=re,{isLeaf:Be,expanded:Oe,loading:xt}=K;if(xt)return a.createElement(T.Z,{className:`${Y}-switcher-loading-icon`});let yt;if($e&&typeof $e=="object"&&(yt=$e.showLeafIcon),Be){if(!$e)return null;if(typeof yt!="boolean"&&yt){const Mn=typeof yt=="function"?yt(K):yt,jt=`${Y}-switcher-line-custom-icon`;return a.isValidElement(Mn)?(0,it.Tm)(Mn,{className:Et()(Mn.props.className||"",jt)}):Mn}return yt?a.createElement(W.Z,{className:`${Y}-switcher-line-icon`}):a.createElement("span",{className:`${Y}-switcher-leaf-line`})}const mn=`${Y}-switcher-icon`,Kt=typeof fe=="function"?fe(K):fe;return a.isValidElement(Kt)?(0,it.Tm)(Kt,{className:Et()(Kt.props.className||"",mn)}):Kt!==void 0?Kt:$e?Oe?a.createElement(Z,{className:`${Y}-switcher-line-icon`}):a.createElement(He,{className:`${Y}-switcher-line-icon`}):a.createElement($,{className:mn})}},1208:function(D,L,i){"use strict";var a=i(87462),p=i(67294),g=i(5717),x=i(93771),m=function($,W){return p.createElement(x.Z,(0,a.Z)({},$,{ref:W,icon:g.Z}))},I=p.forwardRef(m);L.Z=I},5309:function(D,L,i){"use strict";i.d(L,{Z:function(){return $}});var a=i(87462),p=i(67294),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},x=g,m=i(93771),I=function(T,X){return p.createElement(m.Z,(0,a.Z)({},T,{ref:X,icon:x}))},y=p.forwardRef(I),$=y},25783:function(D,L,i){"use strict";var a=i(87462),p=i(67294),g=i(509),x=i(93771),m=function($,W){return p.createElement(x.Z,(0,a.Z)({},$,{ref:W,icon:g.Z}))},I=p.forwardRef(m);L.Z=I},59542:function(D){(function(L,i){D.exports=i()})(this,function(){"use strict";var L="day";return function(i,a,p){var g=function(I){return I.add(4-I.isoWeekday(),L)},x=a.prototype;x.isoWeekYear=function(){return g(this).year()},x.isoWeek=function(I){if(!this.$utils().u(I))return this.add(7*(I-this.isoWeek()),L);var y,$,W,T,X=g(this),o=(y=this.isoWeekYear(),$=this.$u,W=($?p.utc:p)().year(y).startOf("year"),T=4-W.isoWeekday(),W.isoWeekday()>4&&(T+=7),W.add(T,L));return X.diff(o,"week")+1},x.isoWeekday=function(I){return this.$utils().u(I)?this.day()||7:this.day(this.day()%7?I:I-7)};var m=x.startOf;x.startOf=function(I,y){var $=this.$utils(),W=!!$.u(y)||y;return $.p(I)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):m.bind(this)(I,y)}}})},96671:function(D){(function(L,i){D.exports=i()})(this,function(){"use strict";var L="month",i="quarter";return function(a,p){var g=p.prototype;g.quarter=function(I){return this.$utils().u(I)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(I-1))};var x=g.add;g.add=function(I,y){return I=Number(I),this.$utils().p(y)===i?this.add(3*I,L):x.bind(this)(I,y)};var m=g.startOf;g.startOf=function(I,y){var $=this.$utils(),W=!!$.u(y)||y;if($.p(I)===i){var T=this.quarter()-1;return W?this.month(3*T).startOf(L).startOf("day"):this.month(3*T+2).endOf(L).endOf("day")}return m.bind(this)(I,y)}}})},84110:function(D){(function(L,i){D.exports=i()})(this,function(){"use strict";return function(L,i,a){L=L||{};var p=i.prototype,g={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function x(I,y,$,W){return p.fromToBase(I,y,$,W)}a.en.relativeTime=g,p.fromToBase=function(I,y,$,W,T){for(var X,o,N,_=$.$locale().relativeTime||g,Z=L.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],ee=Z.length,Me=0;Me0,Xe<=je.r||!je.r){Xe<=1&&Me>0&&(je=Z[Me-1]);var He=_[je.l];T&&(Xe=T(""+Xe)),o=typeof He=="string"?He.replace("%d",Xe):He(Xe,y,je.l,N);break}}if(y)return o;var Ne=N?_.future:_.past;return typeof Ne=="function"?Ne(o):Ne.replace("%s",o)},p.to=function(I,y){return x(I,y,this,!0)},p.from=function(I,y){return x(I,y,this)};var m=function(I){return I.$u?a.utc():a()};p.toNow=function(I){return this.to(m(this),I)},p.fromNow=function(I){return this.from(m(this),I)}}})},72378:function(D,L,i){D=i.nmd(D);var a=200,p="__lodash_hash_undefined__",g=800,x=16,m=9007199254740991,I="[object Arguments]",y="[object Array]",$="[object AsyncFunction]",W="[object Boolean]",T="[object Date]",X="[object Error]",o="[object Function]",N="[object GeneratorFunction]",_="[object Map]",Z="[object Number]",ee="[object Null]",Me="[object Object]",je="[object Proxy]",Xe="[object RegExp]",He="[object Set]",Ne="[object String]",Et="[object Undefined]",it="[object WeakMap]",Fe="[object ArrayBuffer]",Ie="[object DataView]",re="[object Float32Array]",Y="[object Float64Array]",fe="[object Int8Array]",K="[object Int16Array]",$e="[object Int32Array]",Be="[object Uint8Array]",Oe="[object Uint8ClampedArray]",xt="[object Uint16Array]",yt="[object Uint32Array]",mn=/[\\^$.*+?()[\]{}|]/g,Kt=/^\[object .+?Constructor\]$/,Mn=/^(?:0|[1-9]\d*)$/,jt={};jt[re]=jt[Y]=jt[fe]=jt[K]=jt[$e]=jt[Be]=jt[Oe]=jt[xt]=jt[yt]=!0,jt[I]=jt[y]=jt[Fe]=jt[W]=jt[Ie]=jt[T]=jt[X]=jt[o]=jt[_]=jt[Z]=jt[Me]=jt[Xe]=jt[He]=jt[Ne]=jt[it]=!1;var Gt=typeof i.g=="object"&&i.g&&i.g.Object===Object&&i.g,Tn=typeof self=="object"&&self&&self.Object===Object&&self,vt=Gt||Tn||Function("return this")(),Tt=L&&!L.nodeType&&L,Pn=Tt&&!0&&D&&!D.nodeType&&D,Mt=Pn&&Pn.exports===Tt,Zn=Mt&&Gt.process,rr=function(){try{var Q=Pn&&Pn.require&&Pn.require("util").types;return Q||Zn&&Zn.binding&&Zn.binding("util")}catch(Se){}}(),Xn=rr&&rr.isTypedArray;function gr(Q,Se,Ye){switch(Ye.length){case 0:return Q.call(Se);case 1:return Q.call(Se,Ye[0]);case 2:return Q.call(Se,Ye[0],Ye[1]);case 3:return Q.call(Se,Ye[0],Ye[1],Ye[2])}return Q.apply(Se,Ye)}function ut(Q,Se){for(var Ye=-1,nn=Array(Q);++Ye-1}function Nn(Q,Se){var Ye=this.__data__,nn=Vn(Ye,Q);return nn<0?(++this.size,Ye.push([Q,Se])):Ye[nn][1]=Se,this}an.prototype.clear=In,an.prototype.delete=Jn,an.prototype.get=on,an.prototype.has=vn,an.prototype.set=Nn;function jn(Q){var Se=-1,Ye=Q==null?0:Q.length;for(this.clear();++Se1?Ye[An-1]:void 0,xr=An>2?Ye[2]:void 0;for(kn=Q.length>3&&typeof kn=="function"?(An--,kn):void 0,xr&&xe(Ye[0],Ye[1],xr)&&(kn=An<3?void 0:kn,An=1),Se=Object(Se);++nn-1&&Q%1==0&&Q0){if(++Se>=g)return arguments[0]}else Se=0;return Q.apply(void 0,arguments)}}function Yn(Q){if(Q!=null){try{return kt.call(Q)}catch(Se){}try{return Q+""}catch(Se){}}return""}function Qn(Q,Se){return Q===Se||Q!==Q&&Se!==Se}var Ft=La(function(){return arguments}())?La:function(Q){return dr(Q)&&ye.call(Q,"callee")&&!En.call(Q,"callee")},pn=Array.isArray;function Bn(Q){return Q!=null&&$n(Q.length)&&!_t(Q)}function cr(Q){return dr(Q)&&Bn(Q)}var er=F||ga;function _t(Q){if(!_n(Q))return!1;var Se=So(Q);return Se==o||Se==N||Se==$||Se==je}function $n(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=m}function _n(Q){var Se=typeof Q;return Q!=null&&(Se=="object"||Se=="function")}function dr(Q){return Q!=null&&typeof Q=="object"}function ra(Q){if(!dr(Q)||So(Q)!=Me)return!1;var Se=Ut(Q);if(Se===null)return!0;var Ye=ye.call(Se,"constructor")&&Se.constructor;return typeof Ye=="function"&&Ye instanceof Ye&&kt.call(Ye)==at}var Sr=Xn?un(Xn):Ya;function va(Q){return ia(Q,Ka(Q))}function Ka(Q){return Bn(Q)?qn(Q,!0):ii(Q)}var Ga=la(function(Q,Se,Ye){ue(Q,Se,Ye)});function Gr(Q){return function(){return Q}}function Zr(Q){return Q}function ga(){return!1}D.exports=Ga},49323:function(D){var L=NaN,i="[object Symbol]",a=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,g=/^0b[01]+$/i,x=/^0o[0-7]+$/i,m=parseInt,I=Object.prototype,y=I.toString;function $(o){var N=typeof o;return!!o&&(N=="object"||N=="function")}function W(o){return!!o&&typeof o=="object"}function T(o){return typeof o=="symbol"||W(o)&&y.call(o)==i}function X(o){if(typeof o=="number")return o;if(T(o))return L;if($(o)){var N=typeof o.valueOf=="function"?o.valueOf():o;o=$(N)?N+"":N}if(typeof o!="string")return o===0?o:+o;o=o.replace(a,"");var _=g.test(o);return _||x.test(o)?m(o.slice(2),_?2:8):p.test(o)?L:+o}D.exports=X},18552:function(D,L,i){var a=i(10852),p=i(55639),g=a(p,"DataView");D.exports=g},1989:function(D,L,i){var a=i(51789),p=i(80401),g=i(57667),x=i(21327),m=i(81866);function I(y){var $=-1,W=y==null?0:y.length;for(this.clear();++$1?I[$-1]:void 0,T=$>2?I[2]:void 0;for(W=x.length>3&&typeof W=="function"?($--,W):void 0,T&&p(I[0],I[1],T)&&(W=$<3?void 0:W,$=1),m=Object(m);++y<$;){var X=I[y];X&&x(m,X,y,W)}return m})}D.exports=g},99291:function(D,L,i){var a=i(98612);function p(g,x){return function(m,I){if(m==null)return m;if(!a(m))return g(m,I);for(var y=m.length,$=x?y:-1,W=Object(m);(x?$--:++$_))return!1;var ee=o.get(y),Me=o.get($);if(ee&&Me)return ee==$&&Me==y;var je=-1,Xe=!0,He=W&m?new a:void 0;for(o.set(y,$),o.set($,y);++je<_;){var Ne=y[je],Et=$[je];if(T)var it=N?T(Et,Ne,je,$,y,o):T(Ne,Et,je,y,$,o);if(it!==void 0){if(it)continue;Xe=!1;break}if(He){if(!p($,function(Fe,Ie){if(!g(He,Ie)&&(Ne===Fe||X(Ne,Fe,W,T,o)))return He.push(Ie)})){Xe=!1;break}}else if(!(Ne===Et||X(Ne,Et,W,T,o))){Xe=!1;break}}return o.delete(y),o.delete($),Xe}D.exports=I},18351:function(D,L,i){var a=i(62705),p=i(11149),g=i(77813),x=i(67114),m=i(68776),I=i(21814),y=1,$=2,W="[object Boolean]",T="[object Date]",X="[object Error]",o="[object Map]",N="[object Number]",_="[object RegExp]",Z="[object Set]",ee="[object String]",Me="[object Symbol]",je="[object ArrayBuffer]",Xe="[object DataView]",He=a?a.prototype:void 0,Ne=He?He.valueOf:void 0;function Et(it,Fe,Ie,re,Y,fe,K){switch(Ie){case Xe:if(it.byteLength!=Fe.byteLength||it.byteOffset!=Fe.byteOffset)return!1;it=it.buffer,Fe=Fe.buffer;case je:return!(it.byteLength!=Fe.byteLength||!fe(new p(it),new p(Fe)));case W:case T:case N:return g(+it,+Fe);case X:return it.name==Fe.name&&it.message==Fe.message;case _:case ee:return it==Fe+"";case o:var $e=m;case Z:var Be=re&y;if($e||($e=I),it.size!=Fe.size&&!Be)return!1;var Oe=K.get(it);if(Oe)return Oe==Fe;re|=$,K.set(it,Fe);var xt=x($e(it),$e(Fe),re,Y,fe,K);return K.delete(it),xt;case Me:if(Ne)return Ne.call(it)==Ne.call(Fe)}return!1}D.exports=Et},16096:function(D,L,i){var a=i(58234),p=1,g=Object.prototype,x=g.hasOwnProperty;function m(I,y,$,W,T,X){var o=$&p,N=a(I),_=N.length,Z=a(y),ee=Z.length;if(_!=ee&&!o)return!1;for(var Me=_;Me--;){var je=N[Me];if(!(o?je in y:x.call(y,je)))return!1}var Xe=X.get(I),He=X.get(y);if(Xe&&He)return Xe==y&&He==I;var Ne=!0;X.set(I,y),X.set(y,I);for(var Et=o;++Me<_;){je=N[Me];var it=I[je],Fe=y[je];if(W)var Ie=o?W(Fe,it,je,y,I,X):W(it,Fe,je,I,y,X);if(!(Ie===void 0?it===Fe||T(it,Fe,$,W,X):Ie)){Ne=!1;break}Et||(Et=je=="constructor")}if(Ne&&!Et){var re=I.constructor,Y=y.constructor;re!=Y&&"constructor"in I&&"constructor"in y&&!(typeof re=="function"&&re instanceof re&&typeof Y=="function"&&Y instanceof Y)&&(Ne=!1)}return X.delete(I),X.delete(y),Ne}D.exports=m},58234:function(D,L,i){var a=i(68866),p=i(99551),g=i(3674);function x(m){return a(m,g,p)}D.exports=x},46904:function(D,L,i){var a=i(68866),p=i(51442),g=i(81704);function x(m){return a(m,g,p)}D.exports=x},45050:function(D,L,i){var a=i(37019);function p(g,x){var m=g.__data__;return a(x)?m[typeof x=="string"?"string":"hash"]:m.map}D.exports=p},1499:function(D,L,i){var a=i(89162),p=i(3674);function g(x){for(var m=p(x),I=m.length;I--;){var y=m[I],$=x[y];m[I]=[y,$,a($)]}return m}D.exports=g},10852:function(D,L,i){var a=i(28458),p=i(47801);function g(x,m){var I=p(x,m);return a(I)?I:void 0}D.exports=g},85924:function(D,L,i){var a=i(5569),p=a(Object.getPrototypeOf,Object);D.exports=p},99551:function(D,L,i){var a=i(34963),p=i(70479),g=Object.prototype,x=g.propertyIsEnumerable,m=Object.getOwnPropertySymbols,I=m?function(y){return y==null?[]:(y=Object(y),a(m(y),function($){return x.call(y,$)}))}:p;D.exports=I},51442:function(D,L,i){var a=i(62488),p=i(85924),g=i(99551),x=i(70479),m=Object.getOwnPropertySymbols,I=m?function(y){for(var $=[];y;)a($,g(y)),y=p(y);return $}:x;D.exports=I},64160:function(D,L,i){var a=i(18552),p=i(57071),g=i(53818),x=i(58525),m=i(70577),I=i(44239),y=i(80346),$="[object Map]",W="[object Object]",T="[object Promise]",X="[object Set]",o="[object WeakMap]",N="[object DataView]",_=y(a),Z=y(p),ee=y(g),Me=y(x),je=y(m),Xe=I;(a&&Xe(new a(new ArrayBuffer(1)))!=N||p&&Xe(new p)!=$||g&&Xe(g.resolve())!=T||x&&Xe(new x)!=X||m&&Xe(new m)!=o)&&(Xe=function(He){var Ne=I(He),Et=Ne==W?He.constructor:void 0,it=Et?y(Et):"";if(it)switch(it){case _:return N;case Z:return $;case ee:return T;case Me:return X;case je:return o}return Ne}),D.exports=Xe},47801:function(D){function L(i,a){return i==null?void 0:i[a]}D.exports=L},222:function(D,L,i){var a=i(71811),p=i(35694),g=i(1469),x=i(65776),m=i(41780),I=i(40327);function y($,W,T){W=a(W,$);for(var X=-1,o=W.length,N=!1;++X-1&&p%1==0&&p-1}D.exports=p},54705:function(D,L,i){var a=i(18470);function p(g,x){var m=this.__data__,I=a(m,g);return I<0?(++this.size,m.push([g,x])):m[I][1]=x,this}D.exports=p},24785:function(D,L,i){var a=i(1989),p=i(38407),g=i(57071);function x(){this.size=0,this.__data__={hash:new a,map:new(g||p),string:new a}}D.exports=x},11285:function(D,L,i){var a=i(45050);function p(g){var x=a(this,g).delete(g);return this.size-=x?1:0,x}D.exports=p},96e3:function(D,L,i){var a=i(45050);function p(g){return a(this,g).get(g)}D.exports=p},49916:function(D,L,i){var a=i(45050);function p(g){return a(this,g).has(g)}D.exports=p},95265:function(D,L,i){var a=i(45050);function p(g,x){var m=a(this,g),I=m.size;return m.set(g,x),this.size+=m.size==I?0:1,this}D.exports=p},68776:function(D){function L(i){var a=-1,p=Array(i.size);return i.forEach(function(g,x){p[++a]=[x,g]}),p}D.exports=L},42634:function(D){function L(i,a){return function(p){return p==null?!1:p[i]===a&&(a!==void 0||i in Object(p))}}D.exports=L},24523:function(D,L,i){var a=i(15644),p=500;function g(x){var m=a(x,function(y){return I.size===p&&I.clear(),y}),I=m.cache;return m}D.exports=g},94536:function(D,L,i){var a=i(10852),p=a(Object,"create");D.exports=p},86916:function(D,L,i){var a=i(5569),p=a(Object.keys,Object);D.exports=p},33498:function(D){function L(i){var a=[];if(i!=null)for(var p in Object(i))a.push(p);return a}D.exports=L},31167:function(D,L,i){D=i.nmd(D);var a=i(31957),p=L&&!L.nodeType&&L,g=p&&!0&&D&&!D.nodeType&&D,x=g&&g.exports===p,m=x&&a.process,I=function(){try{var y=g&&g.require&&g.require("util").types;return y||m&&m.binding&&m.binding("util")}catch($){}}();D.exports=I},5569:function(D){function L(i,a){return function(p){return i(a(p))}}D.exports=L},45357:function(D,L,i){var a=i(96874),p=Math.max;function g(x,m,I){return m=p(m===void 0?x.length-1:m,0),function(){for(var y=arguments,$=-1,W=p(y.length-m,0),T=Array(W);++$0){if(++x>=L)return arguments[0]}else x=0;return g.apply(void 0,arguments)}}D.exports=p},37465:function(D,L,i){var a=i(38407);function p(){this.__data__=new a,this.size=0}D.exports=p},63779:function(D){function L(i){var a=this.__data__,p=a.delete(i);return this.size=a.size,p}D.exports=L},67599:function(D){function L(i){return this.__data__.get(i)}D.exports=L},44758:function(D){function L(i){return this.__data__.has(i)}D.exports=L},34309:function(D,L,i){var a=i(38407),p=i(57071),g=i(83369),x=200;function m(I,y){var $=this.__data__;if($ instanceof a){var W=$.__data__;if(!p||W.length=W||Be<0||Xe&&Oe>=N}function Ie(){var $e=p();if(Fe($e))return re($e);Z=setTimeout(Ie,it($e))}function re($e){return Z=void 0,He&&X?Ne($e):(X=o=void 0,_)}function Y(){Z!==void 0&&clearTimeout(Z),Me=0,X=ee=o=Z=void 0}function fe(){return Z===void 0?_:re(p())}function K(){var $e=p(),Be=Fe($e);if(X=arguments,o=this,ee=$e,Be){if(Z===void 0)return Et(ee);if(Xe)return clearTimeout(Z),Z=setTimeout(Ie,W),Ne(ee)}return Z===void 0&&(Z=setTimeout(Ie,W)),_}return K.cancel=Y,K.flush=fe,K}D.exports=y},66073:function(D,L,i){D.exports=i(84486)},77813:function(D){function L(i,a){return i===a||i!==i&&a!==a}D.exports=L},84486:function(D,L,i){var a=i(77412),p=i(89881),g=i(54290),x=i(1469);function m(I,y){var $=x(I)?a:p;return $(I,g(y))}D.exports=m},2525:function(D,L,i){var a=i(47816),p=i(54290);function g(x,m){return x&&a(x,p(m))}D.exports=g},27361:function(D,L,i){var a=i(97786);function p(g,x,m){var I=g==null?void 0:a(g,x);return I===void 0?m:I}D.exports=p},79095:function(D,L,i){var a=i(13),p=i(222);function g(x,m){return x!=null&&p(x,m,a)}D.exports=g},6557:function(D){function L(i){return i}D.exports=L},35694:function(D,L,i){var a=i(9454),p=i(37005),g=Object.prototype,x=g.hasOwnProperty,m=g.propertyIsEnumerable,I=a(function(){return arguments}())?a:function(y){return p(y)&&x.call(y,"callee")&&!m.call(y,"callee")};D.exports=I},98612:function(D,L,i){var a=i(23560),p=i(41780);function g(x){return x!=null&&p(x.length)&&!a(x)}D.exports=g},29246:function(D,L,i){var a=i(98612),p=i(37005);function g(x){return p(x)&&a(x)}D.exports=g},44144:function(D,L,i){D=i.nmd(D);var a=i(55639),p=i(95062),g=L&&!L.nodeType&&L,x=g&&!0&&D&&!D.nodeType&&D,m=x&&x.exports===g,I=m?a.Buffer:void 0,y=I?I.isBuffer:void 0,$=y||p;D.exports=$},23560:function(D,L,i){var a=i(44239),p=i(13218),g="[object AsyncFunction]",x="[object Function]",m="[object GeneratorFunction]",I="[object Proxy]";function y($){if(!p($))return!1;var W=a($);return W==x||W==m||W==g||W==I}D.exports=y},41780:function(D){var L=9007199254740991;function i(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=L}D.exports=i},56688:function(D,L,i){var a=i(25588),p=i(51717),g=i(31167),x=g&&g.isMap,m=x?p(x):a;D.exports=m},13218:function(D){function L(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}D.exports=L},68630:function(D,L,i){var a=i(44239),p=i(85924),g=i(37005),x="[object Object]",m=Function.prototype,I=Object.prototype,y=m.toString,$=I.hasOwnProperty,W=y.call(Object);function T(X){if(!g(X)||a(X)!=x)return!1;var o=p(X);if(o===null)return!0;var N=$.call(o,"constructor")&&o.constructor;return typeof N=="function"&&N instanceof N&&y.call(N)==W}D.exports=T},72928:function(D,L,i){var a=i(29221),p=i(51717),g=i(31167),x=g&&g.isSet,m=x?p(x):a;D.exports=m},47037:function(D,L,i){var a=i(44239),p=i(1469),g=i(37005),x="[object String]";function m(I){return typeof I=="string"||!p(I)&&g(I)&&a(I)==x}D.exports=m},36719:function(D,L,i){var a=i(38749),p=i(51717),g=i(31167),x=g&&g.isTypedArray,m=x?p(x):a;D.exports=m},3674:function(D,L,i){var a=i(14636),p=i(280),g=i(98612);function x(m){return g(m)?a(m):p(m)}D.exports=x},81704:function(D,L,i){var a=i(14636),p=i(10313),g=i(98612);function x(m){return g(m)?a(m,!0):p(m)}D.exports=x},35161:function(D,L,i){var a=i(29932),p=i(67206),g=i(69199),x=i(1469);function m(I,y){var $=x(I)?a:g;return $(I,p(y,3))}D.exports=m},15644:function(D,L,i){var a=i(83369),p="Expected a function";function g(x,m){if(typeof x!="function"||m!=null&&typeof m!="function")throw new TypeError(p);var I=function(){var y=arguments,$=m?m.apply(this,y):y[0],W=I.cache;if(W.has($))return W.get($);var T=x.apply(this,y);return I.cache=W.set($,T)||W,T};return I.cache=new(g.Cache||a),I}g.Cache=a,D.exports=g},82492:function(D,L,i){var a=i(42980),p=i(21463),g=p(function(x,m,I){a(x,m,I)});D.exports=g},7771:function(D,L,i){var a=i(55639),p=function(){return a.Date.now()};D.exports=p},39601:function(D,L,i){var a=i(40371),p=i(79152),g=i(15403),x=i(40327);function m(I){return g(I)?a(x(I)):p(I)}D.exports=m},70479:function(D){function L(){return[]}D.exports=L},95062:function(D){function L(){return!1}D.exports=L},23493:function(D,L,i){var a=i(23279),p=i(13218),g="Expected a function";function x(m,I,y){var $=!0,W=!0;if(typeof m!="function")throw new TypeError(g);return p(y)&&($="leading"in y?!!y.leading:$,W="trailing"in y?!!y.trailing:W),a(m,I,{leading:$,maxWait:I,trailing:W})}D.exports=x},14841:function(D,L,i){var a=i(27561),p=i(13218),g=i(33448),x=0/0,m=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,y=/^0o[0-7]+$/i,$=parseInt;function W(T){if(typeof T=="number")return T;if(g(T))return x;if(p(T)){var X=typeof T.valueOf=="function"?T.valueOf():T;T=p(X)?X+"":X}if(typeof T!="string")return T===0?T:+T;T=a(T);var o=I.test(T);return o||y.test(T)?$(T.slice(2),o?2:8):m.test(T)?x:+T}D.exports=W},59881:function(D,L,i){var a=i(98363),p=i(81704);function g(x){return a(x,p(x))}D.exports=g},64019:function(D,L,i){"use strict";i.d(L,{Z:function(){return p}});var a=i(73935);function p(g,x,m,I){var y=a.unstable_batchedUpdates?function(W){a.unstable_batchedUpdates(m,W)}:m;return g!=null&&g.addEventListener&&g.addEventListener(x,y,I),{remove:function(){g!=null&&g.removeEventListener&&g.removeEventListener(x,y,I)}}}},27678:function(D,L,i){"use strict";i.d(L,{g1:function(){return X},os:function(){return N}});var a=/margin|padding|width|height|max|min|offset/,p={left:!0,top:!0},g={cssFloat:1,styleFloat:1,float:1};function x(_){return _.nodeType===1?_.ownerDocument.defaultView.getComputedStyle(_,null):{}}function m(_,Z,ee){if(Z=Z.toLowerCase(),ee==="auto"){if(Z==="height")return _.offsetHeight;if(Z==="width")return _.offsetWidth}return Z in p||(p[Z]=a.test(Z)),p[Z]?parseFloat(ee)||0:ee}function I(_,Z){var ee=arguments.length,Me=x(_);return Z=g[Z]?"cssFloat"in _.style?"cssFloat":"styleFloat":Z,ee===1?Me:m(_,Z,Me[Z]||_.style[Z])}function y(_,Z,ee){var Me=arguments.length;if(Z=g[Z]?"cssFloat"in _.style?"cssFloat":"styleFloat":Z,Me===3)return typeof ee=="number"&&a.test(Z)&&(ee="".concat(ee,"px")),_.style[Z]=ee,ee;for(var je in Z)Z.hasOwnProperty(je)&&y(_,je,Z[je]);return x(_)}function $(_){return _===document.body?document.documentElement.clientWidth:_.offsetWidth}function W(_){return _===document.body?window.innerHeight||document.documentElement.clientHeight:_.offsetHeight}function T(){var _=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Z=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:_,height:Z}}function X(){var _=document.documentElement.clientWidth,Z=window.innerHeight||document.documentElement.clientHeight;return{width:_,height:Z}}function o(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function N(_){var Z=_.getBoundingClientRect(),ee=document.documentElement;return{left:Z.left+(window.pageXOffset||ee.scrollLeft)-(ee.clientLeft||document.body.clientLeft||0),top:Z.top+(window.pageYOffset||ee.scrollTop)-(ee.clientTop||document.body.clientTop||0)}}},85344:function(D,L,i){"use strict";i.d(L,{Z:function(){return gr}});var a=i(87462),p=i(1413),g=i(71002),x=i(97685),m=i(4942),I=i(91),y=i(67294),$=i(73935),W=i(93967),T=i.n(W),X=i(9220),o=y.forwardRef(function(ut,un){var ze=ut.height,J=ut.offsetY,_e=ut.offsetX,et=ut.children,pt=ut.prefixCls,lt=ut.onInnerResize,kt=ut.innerProps,ye=ut.rtl,Ae=ut.extra,Pe={},at={display:"flex",flexDirection:"column"};return J!==void 0&&(Pe={height:ze,position:"relative",overflow:"hidden"},at=(0,p.Z)((0,p.Z)({},at),{},(0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)({transform:"translateY(".concat(J,"px)")},ye?"marginRight":"marginLeft",-_e),"position","absolute"),"left",0),"right",0),"top",0))),y.createElement("div",{style:Pe},y.createElement(X.Z,{onResize:function(st){var Wt=st.offsetHeight;Wt&<&<()}},y.createElement("div",(0,a.Z)({style:at,className:T()((0,m.Z)({},"".concat(pt,"-holder-inner"),pt)),ref:un},kt),et,Ae)))});o.displayName="Filler";var N=o,_=i(75164);function Z(ut,un){var ze="touches"in ut?ut.touches[0]:ut;return ze[un?"pageX":"pageY"]}var ee=y.forwardRef(function(ut,un){var ze=ut.prefixCls,J=ut.rtl,_e=ut.scrollOffset,et=ut.scrollRange,pt=ut.onStartMove,lt=ut.onStopMove,kt=ut.onScroll,ye=ut.horizontal,Ae=ut.spinSize,Pe=ut.containerSize,at=ut.style,We=ut.thumbStyle,st=y.useState(!1),Wt=(0,x.Z)(st,2),Dt=Wt[0],Xt=Wt[1],Ut=y.useState(null),qt=(0,x.Z)(Ut,2),En=qt[0],V=qt[1],me=y.useState(null),de=(0,x.Z)(me,2),F=de[0],ie=de[1],De=!J,Ge=y.useRef(),Qe=y.useRef(),ct=y.useState(!1),Je=(0,x.Z)(ct,2),ft=Je[0],dt=Je[1],Nt=y.useRef(),Qt=function(){clearTimeout(Nt.current),dt(!0),Nt.current=setTimeout(function(){dt(!1)},3e3)},ln=et-Pe||0,an=Pe-Ae||0,In=y.useMemo(function(){if(_e===0||ln===0)return 0;var nr=_e/ln;return nr*an},[_e,ln,an]),Jn=function(Ir){Ir.stopPropagation(),Ir.preventDefault()},on=y.useRef({top:In,dragging:Dt,pageY:En,startTop:F});on.current={top:In,dragging:Dt,pageY:En,startTop:F};var vn=function(Ir){Xt(!0),V(Z(Ir,ye)),ie(on.current.top),pt(),Ir.stopPropagation(),Ir.preventDefault()};y.useEffect(function(){var nr=function(kr){kr.preventDefault()},Ir=Ge.current,Vr=Qe.current;return Ir.addEventListener("touchstart",nr),Vr.addEventListener("touchstart",vn),function(){Ir.removeEventListener("touchstart",nr),Vr.removeEventListener("touchstart",vn)}},[]);var Nn=y.useRef();Nn.current=ln;var jn=y.useRef();jn.current=an,y.useEffect(function(){if(Dt){var nr,Ir=function(kr){var jr=on.current,hr=jr.dragging,Fn=jr.pageY,qn=jr.startTop;if(_.Z.cancel(nr),hr){var sr=Z(kr,ye)-Fn,yn=qn;!De&&ye?yn-=sr:yn+=sr;var Vn=Nn.current,ar=jn.current,Wo=ar?yn/ar:0,So=Math.ceil(Wo*Vn);So=Math.max(So,0),So=Math.min(So,Vn),nr=(0,_.Z)(function(){kt(So,ye)})}},Vr=function(){Xt(!1),lt()};return window.addEventListener("mousemove",Ir),window.addEventListener("touchmove",Ir),window.addEventListener("mouseup",Vr),window.addEventListener("touchend",Vr),function(){window.removeEventListener("mousemove",Ir),window.removeEventListener("touchmove",Ir),window.removeEventListener("mouseup",Vr),window.removeEventListener("touchend",Vr),_.Z.cancel(nr)}}},[Dt]),y.useEffect(function(){Qt()},[_e]),y.useImperativeHandle(un,function(){return{delayHidden:Qt}});var Mr="".concat(ze,"-scrollbar"),vr={position:"absolute",visibility:ft?null:"hidden"},zr={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return ye?(vr.height=8,vr.left=0,vr.right=0,vr.bottom=0,zr.height="100%",zr.width=Ae,De?zr.left=In:zr.right=In):(vr.width=8,vr.top=0,vr.bottom=0,De?vr.right=0:vr.left=0,zr.width="100%",zr.height=Ae,zr.top=In),y.createElement("div",{ref:Ge,className:T()(Mr,(0,m.Z)((0,m.Z)((0,m.Z)({},"".concat(Mr,"-horizontal"),ye),"".concat(Mr,"-vertical"),!ye),"".concat(Mr,"-visible"),ft)),style:(0,p.Z)((0,p.Z)({},vr),at),onMouseDown:Jn,onMouseMove:Qt},y.createElement("div",{ref:Qe,className:T()("".concat(Mr,"-thumb"),(0,m.Z)({},"".concat(Mr,"-thumb-moving"),Dt)),style:(0,p.Z)((0,p.Z)({},zr),We),onMouseDown:vn}))}),Me=ee;function je(ut){var un=ut.children,ze=ut.setRef,J=y.useCallback(function(_e){ze(_e)},[]);return y.cloneElement(un,{ref:J})}function Xe(ut,un,ze,J,_e,et,pt){var lt=pt.getKey;return ut.slice(un,ze+1).map(function(kt,ye){var Ae=un+ye,Pe=et(kt,Ae,{style:{width:J}}),at=lt(kt);return y.createElement(je,{key:at,setRef:function(st){return _e(kt,st)}},Pe)})}var He=i(34203),Ne=i(15671),Et=i(43144),it=function(){function ut(){(0,Ne.Z)(this,ut),(0,m.Z)(this,"maps",void 0),(0,m.Z)(this,"id",0),this.maps=Object.create(null)}return(0,Et.Z)(ut,[{key:"set",value:function(ze,J){this.maps[ze]=J,this.id+=1}},{key:"get",value:function(ze){return this.maps[ze]}}]),ut}(),Fe=it;function Ie(ut,un,ze){var J=y.useState(0),_e=(0,x.Z)(J,2),et=_e[0],pt=_e[1],lt=(0,y.useRef)(new Map),kt=(0,y.useRef)(new Fe),ye=(0,y.useRef)();function Ae(){_.Z.cancel(ye.current)}function Pe(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ae();var st=function(){lt.current.forEach(function(Dt,Xt){if(Dt&&Dt.offsetParent){var Ut=(0,He.Z)(Dt),qt=Ut.offsetHeight;kt.current.get(Xt)!==qt&&kt.current.set(Xt,Ut.offsetHeight)}}),pt(function(Dt){return Dt+1})};We?st():ye.current=(0,_.Z)(st)}function at(We,st){var Wt=ut(We),Dt=lt.current.get(Wt);st?(lt.current.set(Wt,st),Pe()):lt.current.delete(Wt),!Dt!=!st&&(st?un==null||un(We):ze==null||ze(We))}return(0,y.useEffect)(function(){return Ae},[]),[at,Pe,kt.current,et]}var re=i(8410),Y=i(56790),fe=10;function K(ut,un,ze,J,_e,et,pt,lt){var kt=y.useRef(),ye=y.useState(null),Ae=(0,x.Z)(ye,2),Pe=Ae[0],at=Ae[1];return(0,re.Z)(function(){if(Pe&&Pe.times=0;Je-=1){var ft=_e(un[Je]),dt=ze.get(ft);if(dt===void 0){Ut=!0;break}if(ct-=dt,ct<=0)break}switch(V){case"top":En=de-Dt;break;case"bottom":En=F-Xt+Dt;break;default:{var Nt=ut.current.scrollTop,Qt=Nt+Xt;deQt&&(qt="bottom")}}En!==null&&pt(En),En!==Pe.lastTop&&(Ut=!0)}Ut&&at((0,p.Z)((0,p.Z)({},Pe),{},{times:Pe.times+1,targetAlign:qt,lastTop:En}))}},[Pe,ut.current]),function(We){if(We==null){lt();return}if(_.Z.cancel(kt.current),typeof We=="number")pt(We);else if(We&&(0,g.Z)(We)==="object"){var st,Wt=We.align;"index"in We?st=We.index:st=un.findIndex(function(Ut){return _e(Ut)===We.key});var Dt=We.offset,Xt=Dt===void 0?0:Dt;at({times:0,index:st,offset:Xt,originAlign:Wt})}}}function $e(ut,un,ze,J){var _e=ze-ut,et=un-ze,pt=Math.min(_e,et)*2;if(J<=pt){var lt=Math.floor(J/2);return J%2?ze+lt+1:ze-lt}return _e>et?ze-(J-et):ze+(J-_e)}function Be(ut,un,ze){var J=ut.length,_e=un.length,et,pt;if(J===0&&_e===0)return null;J<_e?(et=ut,pt=un):(et=un,pt=ut);var lt={__EMPTY_ITEM__:!0};function kt(st){return st!==void 0?ze(st):lt}for(var ye=null,Ae=Math.abs(J-_e)!==1,Pe=0;Pe1&&arguments[1]!==void 0?arguments[1]:!1,kt=pt<0&&et.current.top||pt>0&&et.current.bottom;return lt&&kt?(clearTimeout(J.current),ze.current=!1):(!kt||ze.current)&&_e(),!ze.current&&kt}};function Kt(ut,un,ze,J,_e){var et=(0,y.useRef)(0),pt=(0,y.useRef)(null),lt=(0,y.useRef)(null),kt=(0,y.useRef)(!1),ye=mn(un,ze);function Ae(Dt,Xt){_.Z.cancel(pt.current),et.current+=Xt,lt.current=Xt,!ye(Xt)&&(yt||Dt.preventDefault(),pt.current=(0,_.Z)(function(){var Ut=kt.current?10:1;_e(et.current*Ut),et.current=0}))}function Pe(Dt,Xt){_e(Xt,!0),yt||Dt.preventDefault()}var at=(0,y.useRef)(null),We=(0,y.useRef)(null);function st(Dt){if(ut){_.Z.cancel(We.current),We.current=(0,_.Z)(function(){at.current=null},2);var Xt=Dt.deltaX,Ut=Dt.deltaY,qt=Dt.shiftKey,En=Xt,V=Ut;(at.current==="sx"||!at.current&&qt&&Ut&&!Xt)&&(En=Ut,V=0,at.current="sx");var me=Math.abs(En),de=Math.abs(V);at.current===null&&(at.current=J&&me>de?"x":"y"),at.current==="y"?Ae(Dt,V):Pe(Dt,En)}}function Wt(Dt){ut&&(kt.current=Dt.detail===lt.current)}return[st,Wt]}var Mn=14/15;function jt(ut,un,ze){var J=(0,y.useRef)(!1),_e=(0,y.useRef)(0),et=(0,y.useRef)(null),pt=(0,y.useRef)(null),lt,kt=function(at){if(J.current){var We=Math.ceil(at.touches[0].pageY),st=_e.current-We;_e.current=We,ze(st)&&at.preventDefault(),clearInterval(pt.current),pt.current=setInterval(function(){st*=Mn,(!ze(st,!0)||Math.abs(st)<=.1)&&clearInterval(pt.current)},16)}},ye=function(){J.current=!1,lt()},Ae=function(at){lt(),at.touches.length===1&&!J.current&&(J.current=!0,_e.current=Math.ceil(at.touches[0].pageY),et.current=at.target,et.current.addEventListener("touchmove",kt),et.current.addEventListener("touchend",ye))};lt=function(){et.current&&(et.current.removeEventListener("touchmove",kt),et.current.removeEventListener("touchend",ye))},(0,re.Z)(function(){return ut&&un.current.addEventListener("touchstart",Ae),function(){var Pe;(Pe=un.current)===null||Pe===void 0||Pe.removeEventListener("touchstart",Ae),lt(),clearInterval(pt.current)}},[ut])}var Gt=20;function Tn(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ze=ut/un*ut;return isNaN(ze)&&(ze=0),ze=Math.max(ze,Gt),Math.floor(ze)}function vt(ut,un,ze,J){var _e=y.useMemo(function(){return[new Map,[]]},[ut,ze.id,J]),et=(0,x.Z)(_e,2),pt=et[0],lt=et[1],kt=function(Ae){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ae,at=pt.get(Ae),We=pt.get(Pe);if(at===void 0||We===void 0)for(var st=ut.length,Wt=lt.length;Wtet||!!Wt),Ge=st==="rtl",Qe=T()(J,(0,m.Z)({},"".concat(J,"-rtl"),Ge),_e),ct=Ae||Pn,Je=(0,y.useRef)(),ft=(0,y.useRef)(),dt=(0,y.useState)(0),Nt=(0,x.Z)(dt,2),Qt=Nt[0],ln=Nt[1],an=(0,y.useState)(0),In=(0,x.Z)(an,2),Jn=In[0],on=In[1],vn=(0,y.useState)(!1),Nn=(0,x.Z)(vn,2),jn=Nn[0],Mr=Nn[1],vr=function(){Mr(!0)},zr=function(){Mr(!1)},nr=y.useCallback(function(_t){return typeof at=="function"?at(_t):_t==null?void 0:_t[at]},[at]),Ir={getKey:nr};function Vr(_t){ln(function($n){var _n;typeof _t=="function"?_n=_t($n):_n=_t;var dr=Ar(_n);return Je.current.scrollTop=dr,dr})}var lo=(0,y.useRef)({start:0,end:ct.length}),kr=(0,y.useRef)(),jr=Oe(ct,nr),hr=(0,x.Z)(jr,1),Fn=hr[0];kr.current=Fn;var qn=Ie(nr,null,null),sr=(0,x.Z)(qn,4),yn=sr[0],Vn=sr[1],ar=sr[2],Wo=sr[3],So=y.useMemo(function(){if(!ie)return{scrollHeight:void 0,start:0,end:ct.length-1,offset:void 0};if(!De){var _t;return{scrollHeight:((_t=ft.current)===null||_t===void 0?void 0:_t.offsetHeight)||0,start:0,end:ct.length-1,offset:void 0}}for(var $n=0,_n,dr,ra,Sr=ct.length,va=0;va=Qt&&_n===void 0&&(_n=va,dr=$n),Zr>Qt+et&&ra===void 0&&(ra=va),$n=Zr}return _n===void 0&&(_n=0,dr=0,ra=Math.ceil(et/pt)),ra===void 0&&(ra=ct.length-1),ra=Math.min(ra+1,ct.length-1),{scrollHeight:$n,start:_n,end:ra,offset:dr}},[De,ie,Qt,ct,Wo,et]),La=So.scrollHeight,_a=So.start,Ya=So.end,ii=So.offset;lo.current.start=_a,lo.current.end=Ya;var ue=y.useState({width:0,height:et}),qe=(0,x.Z)(ue,2),St=qe[0],Ht=qe[1],tn=function($n){Ht({width:$n.width||$n.offsetWidth,height:$n.height||$n.offsetHeight})},Cn=(0,y.useRef)(),Or=(0,y.useRef)(),qr=y.useMemo(function(){return Tn(St.width,Wt)},[St.width,Wt]),ia=y.useMemo(function(){return Tn(St.height,La)},[St.height,La]),la=La-et,Yr=(0,y.useRef)(la);Yr.current=la;function Ar(_t){var $n=_t;return Number.isNaN(Yr.current)||($n=Math.min($n,Yr.current)),$n=Math.max($n,0),$n}var Dr=Qt<=0,ba=Qt>=la,ja=mn(Dr,ba),Ma=function(){return{x:Ge?-Jn:Jn,y:Qt}},xe=(0,y.useRef)(Ma()),ce=(0,Y.zX)(function(){if(qt){var _t=Ma();(xe.current.x!==_t.x||xe.current.y!==_t.y)&&(qt(_t),xe.current=_t)}});function bt(_t,$n){var _n=_t;$n?((0,$.flushSync)(function(){on(_n)}),ce()):Vr(_n)}function ot(_t){var $n=_t.currentTarget.scrollTop;$n!==Qt&&Vr($n),Ut==null||Ut(_t),ce()}var wt=function($n){var _n=$n,dr=Wt-St.width;return _n=Math.max(_n,0),_n=Math.min(_n,dr),_n},sn=(0,Y.zX)(function(_t,$n){$n?((0,$.flushSync)(function(){on(function(_n){var dr=_n+(Ge?-_t:_t);return wt(dr)})}),ce()):Vr(function(_n){var dr=_n+_t;return dr})}),gn=Kt(ie,Dr,ba,!!Wt,sn),Dn=(0,x.Z)(gn,2),Hn=Dn[0],or=Dn[1];jt(ie,Je,function(_t,$n){return ja(_t,$n)?!1:(Hn({preventDefault:function(){},deltaY:_t}),!0)}),(0,re.Z)(function(){function _t(_n){ie&&_n.preventDefault()}var $n=Je.current;return $n.addEventListener("wheel",Hn),$n.addEventListener("DOMMouseScroll",or),$n.addEventListener("MozMousePixelScroll",_t),function(){$n.removeEventListener("wheel",Hn),$n.removeEventListener("DOMMouseScroll",or),$n.removeEventListener("MozMousePixelScroll",_t)}},[ie]),(0,re.Z)(function(){Wt&&on(function(_t){return wt(_t)})},[St.width,Wt]);var Yn=function(){var $n,_n;($n=Cn.current)===null||$n===void 0||$n.delayHidden(),(_n=Or.current)===null||_n===void 0||_n.delayHidden()},Qn=K(Je,ct,ar,pt,nr,function(){return Vn(!0)},Vr,Yn);y.useImperativeHandle(un,function(){return{getScrollInfo:Ma,scrollTo:function($n){function _n(dr){return dr&&(0,g.Z)(dr)==="object"&&("left"in dr||"top"in dr)}_n($n)?($n.left!==void 0&&on(wt($n.left)),Qn($n.top)):Qn($n)}}}),(0,re.Z)(function(){if(En){var _t=ct.slice(_a,Ya+1);En(_t,ct)}},[_a,Ya,ct]);var Ft=vt(ct,nr,ar,pt),pn=me==null?void 0:me({start:_a,end:Ya,virtual:De,offsetX:Jn,offsetY:ii,rtl:Ge,getSize:Ft}),Bn=Xe(ct,_a,Ya,Wt,yn,Pe,Ir),cr=null;et&&(cr=(0,p.Z)((0,m.Z)({},kt?"height":"maxHeight",et),Mt),ie&&(cr.overflowY="hidden",Wt&&(cr.overflowX="hidden"),jn&&(cr.pointerEvents="none")));var er={};return Ge&&(er.dir="rtl"),y.createElement("div",(0,a.Z)({style:(0,p.Z)((0,p.Z)({},ye),{},{position:"relative"}),className:Qe},er,F),y.createElement(X.Z,{onResize:tn},y.createElement(Xt,{className:"".concat(J,"-holder"),style:cr,ref:Je,onScroll:ot,onMouseEnter:Yn},y.createElement(N,{prefixCls:J,height:La,offsetX:Jn,offsetY:ii,scrollWidth:Wt,onInnerResize:Vn,ref:ft,innerProps:V,rtl:Ge,extra:pn},Bn))),De&&La>et&&y.createElement(Me,{ref:Cn,prefixCls:J,scrollOffset:Qt,scrollRange:La,rtl:Ge,onScroll:bt,onStartMove:vr,onStopMove:zr,spinSize:ia,containerSize:St.height,style:de==null?void 0:de.verticalScrollBar,thumbStyle:de==null?void 0:de.verticalScrollBarThumb}),De&&Wt>St.width&&y.createElement(Me,{ref:Or,prefixCls:J,scrollOffset:Jn,scrollRange:Wt,rtl:Ge,onScroll:bt,onStartMove:vr,onStopMove:zr,spinSize:qr,containerSize:St.width,horizontal:!0,style:de==null?void 0:de.horizontalScrollBar,thumbStyle:de==null?void 0:de.horizontalScrollBarThumb}))}var rr=y.forwardRef(Zn);rr.displayName="List";var Xn=rr,gr=Xn},24754:function(D,L,i){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.autoprefix=void 0;var a=i(2525),p=x(a),g=Object.assign||function(y){for(var $=1;$1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){y(N,o);function N(){var _,Z,ee,Me;m(this,N);for(var je=arguments.length,Xe=Array(je),He=0;He1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){y(N,o);function N(){var _,Z,ee,Me;m(this,N);for(var je=arguments.length,Xe=Array(je),He=0;He0&&arguments[0]!==void 0?arguments[0]:[],N=[];return(0,$.default)(o,function(_){Array.isArray(_)?X(_).map(function(Z){return N.push(Z)}):(0,I.default)(_)?(0,x.default)(_,function(Z,ee){Z===!0&&N.push(ee),N.push(ee+"-"+Z)}):(0,p.default)(_)&&N.push(_)}),N};L.default=T},79941:function(D,L,i){"use strict";var a;a={value:!0},a=a=a=a=a=void 0;var p=i(14147),g=_(p),x=i(18556),m=_(x),I=i(24754),y=_(I),$=i(91765),W=_($),T=i(36002),X=_(T),o=i(57742),N=_(o);function _(ee){return ee&&ee.__esModule?ee:{default:ee}}a=W.default,a=W.default,a=X.default,a=N.default;var Z=a=function(Me){for(var je=arguments.length,Xe=Array(je>1?je-1:0),He=1;He1&&arguments[1]!==void 0?arguments[1]:!0;x[y]=$};return p===0&&m("first-child"),p===g-1&&m("last-child"),(p===0||p%2===0)&&m("even"),Math.abs(p%2)===1&&m("odd"),m("nth-child",p),x};L.default=i},18556:function(D,L,i){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.mergeClasses=void 0;var a=i(2525),p=I(a),g=i(50361),x=I(g),m=Object.assign||function($){for(var W=1;W1&&arguments[1]!==void 0?arguments[1]:[],X=W.default&&(0,x.default)(W.default)||{};return T.map(function(o){var N=W[o];return N&&(0,p.default)(N,function(_,Z){X[Z]||(X[Z]={}),X[Z]=m({},X[Z],N[Z])}),o}),X};L.default=y},87668:function(D,L){"use strict";const{hasOwnProperty:i}=Object.prototype,a=_();a.configure=_,a.stringify=a,a.default=a,L.stringify=a,L.configure=_,D.exports=a;const p=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function g(Z){return Z.length<5e3&&!p.test(Z)?`"${Z}"`:JSON.stringify(Z)}function x(Z){if(Z.length>200)return Z.sort();for(let ee=1;eeMe;)Z[je]=Z[je-1],je--;Z[je]=Me}return Z}const m=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function I(Z){return m.call(Z)!==void 0&&Z.length!==0}function y(Z,ee,Me){Z.length= 1`)}return Me===void 0?1/0:Me}function X(Z){return Z===1?"1 item":`${Z} items`}function o(Z){const ee=new Set;for(const Me of Z)(typeof Me=="string"||typeof Me=="number")&&ee.add(String(Me));return ee}function N(Z){if(i.call(Z,"strict")){const ee=Z.strict;if(typeof ee!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(ee)return Me=>{let je=`Object can not safely be stringified. Received type ${typeof Me}`;throw typeof Me!="function"&&(je+=` (${Me.toString()})`),new Error(je)}}}function _(Z){Z=Iv({},Z);const ee=N(Z);ee&&(Z.bigint===void 0&&(Z.bigint=!1),"circularValue"in Z||(Z.circularValue=Error));const Me=$(Z),je=W(Z,"bigint"),Xe=W(Z,"deterministic"),He=T(Z,"maximumDepth"),Ne=T(Z,"maximumBreadth");function Et(Y,fe,K,$e,Be,Oe){let xt=fe[Y];switch(typeof xt=="object"&&xt!==null&&typeof xt.toJSON=="function"&&(xt=xt.toJSON(Y)),xt=$e.call(fe,Y,xt),typeof xt){case"string":return g(xt);case"object":{if(xt===null)return"null";if(K.indexOf(xt)!==-1)return Me;let yt="",mn=",";const Kt=Oe;if(Array.isArray(xt)){if(xt.length===0)return"[]";if(HeNe){const Zn=xt.length-Ne-1;yt+=`${mn}"... ${X(Zn)} not stringified"`}return Be!==""&&(yt+=` +${Kt}`),K.pop(),`[${yt}]`}let Mn=Object.keys(xt);const jt=Mn.length;if(jt===0)return"{}";if(HeNe){const Tt=jt-Ne;yt+=`${Tn}"...":${Gt}"${X(Tt)} not stringified"`,Tn=mn}return Be!==""&&Tn.length>1&&(yt=` +${Oe}${yt} +${Kt}`),K.pop(),`{${yt}}`}case"number":return isFinite(xt)?String(xt):ee?ee(xt):"null";case"boolean":return xt===!0?"true":"false";case"undefined":return;case"bigint":if(je)return String(xt);default:return ee?ee(xt):void 0}}function it(Y,fe,K,$e,Be,Oe){switch(typeof fe=="object"&&fe!==null&&typeof fe.toJSON=="function"&&(fe=fe.toJSON(Y)),typeof fe){case"string":return g(fe);case"object":{if(fe===null)return"null";if(K.indexOf(fe)!==-1)return Me;const xt=Oe;let yt="",mn=",";if(Array.isArray(fe)){if(fe.length===0)return"[]";if(HeNe){const vt=fe.length-Ne-1;yt+=`${mn}"... ${X(vt)} not stringified"`}return Be!==""&&(yt+=` +${xt}`),K.pop(),`[${yt}]`}K.push(fe);let Kt="";Be!==""&&(Oe+=Be,mn=`, +${Oe}`,Kt=" ");let Mn="";for(const jt of $e){const Gt=it(jt,fe[jt],K,$e,Be,Oe);Gt!==void 0&&(yt+=`${Mn}${g(jt)}:${Kt}${Gt}`,Mn=mn)}return Be!==""&&Mn.length>1&&(yt=` +${Oe}${yt} +${xt}`),K.pop(),`{${yt}}`}case"number":return isFinite(fe)?String(fe):ee?ee(fe):"null";case"boolean":return fe===!0?"true":"false";case"undefined":return;case"bigint":if(je)return String(fe);default:return ee?ee(fe):void 0}}function Fe(Y,fe,K,$e,Be){switch(typeof fe){case"string":return g(fe);case"object":{if(fe===null)return"null";if(typeof fe.toJSON=="function"){if(fe=fe.toJSON(Y),typeof fe!="object")return Fe(Y,fe,K,$e,Be);if(fe===null)return"null"}if(K.indexOf(fe)!==-1)return Me;const Oe=Be;if(Array.isArray(fe)){if(fe.length===0)return"[]";if(HeNe){const Mt=fe.length-Ne-1;Gt+=`${Tn}"... ${X(Mt)} not stringified"`}return Gt+=` +${Oe}`,K.pop(),`[${Gt}]`}let xt=Object.keys(fe);const yt=xt.length;if(yt===0)return"{}";if(HeNe){const Gt=yt-Ne;Kt+=`${Mn}"...": "${X(Gt)} not stringified"`,Mn=mn}return Mn!==""&&(Kt=` +${Be}${Kt} +${Oe}`),K.pop(),`{${Kt}}`}case"number":return isFinite(fe)?String(fe):ee?ee(fe):"null";case"boolean":return fe===!0?"true":"false";case"undefined":return;case"bigint":if(je)return String(fe);default:return ee?ee(fe):void 0}}function Ie(Y,fe,K){switch(typeof fe){case"string":return g(fe);case"object":{if(fe===null)return"null";if(typeof fe.toJSON=="function"){if(fe=fe.toJSON(Y),typeof fe!="object")return Ie(Y,fe,K);if(fe===null)return"null"}if(K.indexOf(fe)!==-1)return Me;let $e="";if(Array.isArray(fe)){if(fe.length===0)return"[]";if(HeNe){const jt=fe.length-Ne-1;$e+=`,"... ${X(jt)} not stringified"`}return K.pop(),`[${$e}]`}let Be=Object.keys(fe);const Oe=Be.length;if(Oe===0)return"{}";if(HeNe){const mn=Oe-Ne;$e+=`${xt}"...":"${X(mn)} not stringified"`}return K.pop(),`{${$e}}`}case"number":return isFinite(fe)?String(fe):ee?ee(fe):"null";case"boolean":return fe===!0?"true":"false";case"undefined":return;case"bigint":if(je)return String(fe);default:return ee?ee(fe):void 0}}function re(Y,fe,K){if(arguments.length>1){let $e="";if(typeof K=="number"?$e=" ".repeat(Math.min(K,10)):typeof K=="string"&&($e=K.slice(0,10)),fe!=null){if(typeof fe=="function")return Et("",{"":Y},[],fe,$e,"");if(Array.isArray(fe))return it("",Y,[],o(fe),$e,"")}if($e.length!==0)return Fe("",Y,[],$e,"")}return Ie("",Y,[])}return re}},36459:function(D,L,i){"use strict";i.d(L,{Z:function(){return a}});function a(p){if(p==null)throw new TypeError("Cannot destructure "+p)}}}]); diff --git a/starter/src/main/resources/templates/admin/831.704fe47f.async.js b/starter/src/main/resources/templates/admin/831.704fe47f.async.js new file mode 100644 index 0000000000..b06b5ed475 --- /dev/null +++ b/starter/src/main/resources/templates/admin/831.704fe47f.async.js @@ -0,0 +1,3 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[831],{94149:function(ee,W,e){e.d(W,{Z:function(){return D}});var o=e(1413),f=e(67294),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},F=T,b=e(89099),z=function(g,B){return f.createElement(b.Z,(0,o.Z)((0,o.Z)({},g),{},{ref:B,icon:F}))},L=f.forwardRef(z),D=L},24454:function(ee,W,e){e.d(W,{Z:function(){return D}});var o=e(1413),f=e(67294),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},F=T,b=e(89099),z=function(g,B){return f.createElement(b.Z,(0,o.Z)((0,o.Z)({},g),{},{ref:B,icon:F}))},L=f.forwardRef(z),D=L},16434:function(ee,W,e){var o=e(1413),f=e(74165),T=e(15861),F=e(91),b=e(97685),z=e(8232),L=e(96365),D=e(14726),P=e(67294),g=e(90789),B=e(85893),X=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],p=P.forwardRef(function(S,m){var y=z.Z.useFormInstance(),M=(0,P.useState)(S.countDown||60),d=(0,b.Z)(M,2),i=d[0],I=d[1],O=(0,P.useState)(!1),U=(0,b.Z)(O,2),A=U[0],j=U[1],N=(0,P.useState)(),h=(0,b.Z)(N,2),V=h[0],C=h[1],oe=S.rules,ne=S.name,J=S.phoneName,H=S.fieldProps,w=S.onTiming,$=S.captchaTextRender,n=$===void 0?function(r,v){return r?"".concat(v," \u79D2\u540E\u91CD\u65B0\u83B7\u53D6"):"\u83B7\u53D6\u9A8C\u8BC1\u7801"}:$,t=S.captchaProps,a=(0,F.Z)(S,X),l=function(){var r=(0,T.Z)((0,f.Z)().mark(function v(u){return(0,f.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.prev=0,C(!0),E.next=4,a.onGetCaptcha(u);case 4:C(!1),j(!0),E.next=13;break;case 8:E.prev=8,E.t0=E.catch(0),j(!1),C(!1),console.log(E.t0);case 13:case"end":return E.stop()}},v,null,[[0,8]])}));return function(u){return r.apply(this,arguments)}}();return(0,P.useImperativeHandle)(m,function(){return{startTiming:function(){return j(!0)},endTiming:function(){return j(!1)}}}),(0,P.useEffect)(function(){var r=0,v=S.countDown;return A&&(r=window.setInterval(function(){I(function(u){return u<=1?(j(!1),clearInterval(r),v||60):u-1})},1e3)),function(){return clearInterval(r)}},[A]),(0,P.useEffect)(function(){w&&w(i)},[i,w]),(0,B.jsxs)("div",{style:(0,o.Z)((0,o.Z)({},H==null?void 0:H.style),{},{display:"flex",alignItems:"center"}),ref:m,children:[(0,B.jsx)(L.Z,(0,o.Z)((0,o.Z)({},H),{},{style:(0,o.Z)({flex:1,transition:"width .3s",marginRight:8},H==null?void 0:H.style)})),(0,B.jsx)(D.ZP,(0,o.Z)((0,o.Z)({style:{display:"block"},disabled:A,loading:V},t),{},{onClick:(0,T.Z)((0,f.Z)().mark(function r(){var v;return(0,f.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(c.prev=0,!J){c.next=9;break}return c.next=4,y.validateFields([J].flat(1));case 4:return v=y.getFieldValue([J].flat(1)),c.next=7,l(v);case 7:c.next=11;break;case 9:return c.next=11,l("");case 11:c.next=16;break;case 13:c.prev=13,c.t0=c.catch(0),console.log(c.t0);case 16:case"end":return c.stop()}},r,null,[[0,13]])})),children:n(A,i)}))]})}),Y=(0,g.G)(p);W.Z=Y},5966:function(ee,W,e){var o=e(97685),f=e(1413),T=e(91),F=e(21770),b=e(8232),z=e(55241),L=e(97435),D=e(67294),P=e(64791),g=e(85893),B=["fieldProps","proFieldProps"],X=["fieldProps","proFieldProps"],p="text",Y=function(d){var i=d.fieldProps,I=d.proFieldProps,O=(0,T.Z)(d,B);return(0,g.jsx)(P.Z,(0,f.Z)({valueType:p,fieldProps:i,filedConfig:{valueType:p},proFieldProps:I},O))},S=function(d){var i=(0,F.Z)(d.open||!1,{value:d.open,onChange:d.onOpenChange}),I=(0,o.Z)(i,2),O=I[0],U=I[1];return(0,g.jsx)(b.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(j){var N,h=j.getFieldValue(d.name||[]);return(0,g.jsx)(z.Z,(0,f.Z)((0,f.Z)({getPopupContainer:function(C){return C&&C.parentNode?C.parentNode:C},onOpenChange:U,content:(0,g.jsxs)("div",{style:{padding:"4px 0"},children:[(N=d.statusRender)===null||N===void 0?void 0:N.call(d,h),d.strengthText?(0,g.jsx)("div",{style:{marginTop:10},children:(0,g.jsx)("span",{children:d.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},d.popoverProps),{},{open:O,children:d.children}))}})},m=function(d){var i=d.fieldProps,I=d.proFieldProps,O=(0,T.Z)(d,X),U=(0,D.useState)(!1),A=(0,o.Z)(U,2),j=A[0],N=A[1];return i!=null&&i.statusRender&&O.name?(0,g.jsx)(S,{name:O.name,statusRender:i==null?void 0:i.statusRender,popoverProps:i==null?void 0:i.popoverProps,strengthText:i==null?void 0:i.strengthText,open:j,onOpenChange:N,children:(0,g.jsx)("div",{children:(0,g.jsx)(P.Z,(0,f.Z)({valueType:"password",fieldProps:(0,f.Z)((0,f.Z)({},(0,L.Z)(i,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(V){var C;i==null||(C=i.onBlur)===null||C===void 0||C.call(i,V),N(!1)},onClick:function(V){var C;i==null||(C=i.onClick)===null||C===void 0||C.call(i,V),N(!0)}}),proFieldProps:I,filedConfig:{valueType:p}},O))})}):(0,g.jsx)(P.Z,(0,f.Z)({valueType:"password",fieldProps:i,proFieldProps:I,filedConfig:{valueType:p}},O))},y=Y;y.Password=m,y.displayName="ProFormComponent",W.Z=y},68262:function(ee,W,e){e.d(W,{U:function(){return S}});var o=e(1413),f=e(91),T=e(10915),F=e(28459),b=e(93967),z=e.n(b),L=e(67294),D=e(34994),P=e(4942),g=e(98082),B=function(y){return(0,P.Z)((0,P.Z)({},y.componentCls,{"&-container":{display:"flex",flex:"1",flexDirection:"column",height:"100%",paddingInline:32,paddingBlock:24,overflow:"auto",background:"inherit"},"&-top":{textAlign:"center"},"&-header":{display:"flex",alignItems:"center",justifyContent:"center",height:"44px",lineHeight:"44px",a:{textDecoration:"none"}},"&-title":{position:"relative",insetBlockStart:"2px",color:"@heading-color",fontWeight:"600",fontSize:"33px"},"&-logo":{width:"44px",height:"44px",marginInlineEnd:"16px",verticalAlign:"top",img:{width:"100%"}},"&-desc":{marginBlockStart:"12px",marginBlockEnd:"40px",color:y.colorTextSecondary,fontSize:y.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),"@media (min-width: @screen-md-min)",(0,P.Z)({},"".concat(y.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function X(m){return(0,g.Xj)("LoginForm",function(y){var M=(0,o.Z)((0,o.Z)({},y),{},{componentCls:".".concat(m)});return[B(M)]})}var p=e(85893),Y=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function S(m){var y,M=m.logo,d=m.message,i=m.contentStyle,I=m.title,O=m.subTitle,U=m.actions,A=m.children,j=m.containerStyle,N=m.otherStyle,h=(0,f.Z)(m,Y),V=(0,T.YB)(),C=h.submitter===!1?!1:(0,o.Z)((0,o.Z)({searchConfig:{submitText:V.getMessage("loginForm.submitText","\u767B\u5F55")}},h.submitter),{},{submitButtonProps:(0,o.Z)({size:"large",style:{width:"100%"}},(y=h.submitter)===null||y===void 0?void 0:y.submitButtonProps),render:function(a,l){var r,v=l.pop();if(typeof(h==null||(r=h.submitter)===null||r===void 0?void 0:r.render)=="function"){var u,c;return h==null||(u=h.submitter)===null||u===void 0||(c=u.render)===null||c===void 0?void 0:c.call(u,a,l)}return v}}),oe=(0,L.useContext)(F.ZP.ConfigContext),ne=oe.getPrefixCls("pro-form-login"),J=X(ne),H=J.wrapSSR,w=J.hashId,$=function(a){return"".concat(ne,"-").concat(a," ").concat(w)},n=(0,L.useMemo)(function(){return M?typeof M=="string"?(0,p.jsx)("img",{src:M}):M:null},[M]);return H((0,p.jsxs)("div",{className:z()($("container"),w),style:j,children:[(0,p.jsxs)("div",{className:"".concat($("top")," ").concat(w).trim(),children:[I||n?(0,p.jsxs)("div",{className:"".concat($("header")),children:[n?(0,p.jsx)("span",{className:$("logo"),children:n}):null,I?(0,p.jsx)("span",{className:$("title"),children:I}):null]}):null,O?(0,p.jsx)("div",{className:$("desc"),children:O}):null]}),(0,p.jsxs)("div",{className:$("main"),style:(0,o.Z)({width:328},i),children:[(0,p.jsxs)(D.A,(0,o.Z)((0,o.Z)({isKeyPressSubmit:!0},h),{},{submitter:C,children:[d,A]})),U?(0,p.jsx)("div",{className:$("main-other"),style:N,children:U}):null]})]}))}},38925:function(ee,W,e){e.d(W,{Z:function(){return $}});var o=e(67294),f=e(76278),T=e(17012),F=e(84481),b=e(26702),z=e(1558),L=e(93967),D=e.n(L),P=e(82225),g=e(64217),B=e(96159),X=e(53124),p=e(6731),Y=e(14747),S=e(91945);const m=(n,t,a,l,r)=>({background:n,border:`${(0,p.bf)(l.lineWidth)} ${l.lineType} ${t}`,[`${r}-icon`]:{color:a}}),y=n=>{const{componentCls:t,motionDurationSlow:a,marginXS:l,marginSM:r,fontSize:v,fontSizeLG:u,lineHeight:c,borderRadiusLG:E,motionEaseInOutCirc:K,withDescriptionIconSize:Q,colorText:te,colorTextHeading:k,withDescriptionPadding:x,defaultPadding:_}=n;return{[t]:Object.assign(Object.assign({},(0,Y.Wf)(n)),{position:"relative",display:"flex",alignItems:"center",padding:_,wordWrap:"break-word",borderRadius:E,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:l,lineHeight:0},["&-description"]:{display:"none",fontSize:v,lineHeight:c},"&-message":{color:k},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${a} ${K}, opacity ${a} ${K}, + padding-top ${a} ${K}, padding-bottom ${a} ${K}, + margin-bottom ${a} ${K}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:x,[`${t}-icon`]:{marginInlineEnd:r,fontSize:Q,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:l,color:k,fontSize:u},[`${t}-description`]:{display:"block",color:te}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},M=n=>{const{componentCls:t,colorSuccess:a,colorSuccessBorder:l,colorSuccessBg:r,colorWarning:v,colorWarningBorder:u,colorWarningBg:c,colorError:E,colorErrorBorder:K,colorErrorBg:Q,colorInfo:te,colorInfoBorder:k,colorInfoBg:x}=n;return{[t]:{"&-success":m(r,l,a,n,t),"&-info":m(x,k,te,n,t),"&-warning":m(c,u,v,n,t),"&-error":Object.assign(Object.assign({},m(Q,K,E,n,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},d=n=>{const{componentCls:t,iconCls:a,motionDurationMid:l,marginXS:r,fontSizeIcon:v,colorIcon:u,colorIconHover:c}=n;return{[t]:{["&-action"]:{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:v,lineHeight:(0,p.bf)(v),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${a}-close`]:{color:u,transition:`color ${l}`,"&:hover":{color:c}}},"&-close-text":{color:u,transition:`color ${l}`,"&:hover":{color:c}}}}},i=n=>({withDescriptionIconSize:n.fontSizeHeading3,defaultPadding:`${n.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${n.paddingMD}px ${n.paddingContentHorizontalLG}px`});var I=(0,S.I$)("Alert",n=>[y(n),M(n),d(n)],i),O=function(n,t){var a={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&t.indexOf(l)<0&&(a[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,l=Object.getOwnPropertySymbols(n);r{const{icon:t,prefixCls:a,type:l}=n,r=U[l]||null;return t?(0,B.wm)(t,o.createElement("span",{className:`${a}-icon`},t),()=>({className:D()(`${a}-icon`,{[t.props.className]:t.props.className})})):o.createElement(r,{className:`${a}-icon`})},j=n=>{const{isClosable:t,prefixCls:a,closeIcon:l,handleClose:r,ariaProps:v}=n,u=l===!0||l===void 0?o.createElement(F.Z,null):l;return t?o.createElement("button",Object.assign({type:"button",onClick:r,className:`${a}-close-icon`,tabIndex:0},v),u):null};var h=n=>{const{description:t,prefixCls:a,message:l,banner:r,className:v,rootClassName:u,style:c,onMouseEnter:E,onMouseLeave:K,onClick:Q,afterClose:te,showIcon:k,closable:x,closeText:_,closeIcon:q,action:re}=n,ce=O(n,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[le,de]=o.useState(!1),ue=o.useRef(null),{getPrefixCls:ve,direction:me,alert:s}=o.useContext(X.E_),Z=ve("alert",a),[fe,ge,pe]=I(Z),he=R=>{var G;de(!0),(G=n.onClose)===null||G===void 0||G.call(n,R)},ae=o.useMemo(()=>n.type!==void 0?n.type:r?"warning":"info",[n.type,r]),Ce=o.useMemo(()=>typeof x=="object"&&x.closeIcon||_?!0:typeof x=="boolean"?x:q!==!1&&q!==null&&q!==void 0?!0:!!(s!=null&&s.closable),[_,q,x,s==null?void 0:s.closable]),ie=r&&k===void 0?!0:k,Pe=D()(Z,`${Z}-${ae}`,{[`${Z}-with-description`]:!!t,[`${Z}-no-icon`]:!ie,[`${Z}-banner`]:!!r,[`${Z}-rtl`]:me==="rtl"},s==null?void 0:s.className,v,u,pe,ge),ye=(0,g.Z)(ce,{aria:!0,data:!0}),Ee=o.useMemo(()=>{var R,G;return typeof x=="object"&&x.closeIcon?x.closeIcon:_||(q!==void 0?q:typeof(s==null?void 0:s.closable)=="object"&&(!((R=s==null?void 0:s.closable)===null||R===void 0)&&R.closeIcon)?(G=s==null?void 0:s.closable)===null||G===void 0?void 0:G.closeIcon:s==null?void 0:s.closeIcon)},[q,x,_,s==null?void 0:s.closeIcon]),xe=o.useMemo(()=>{const R=x!=null?x:s==null?void 0:s.closable;if(typeof R=="object"){const{closeIcon:G}=R;return O(R,["closeIcon"])}return{}},[x,s==null?void 0:s.closable]);return fe(o.createElement(P.ZP,{visible:!le,motionName:`${Z}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:R=>({maxHeight:R.offsetHeight}),onLeaveEnd:te},R=>{let{className:G,style:se}=R;return o.createElement("div",Object.assign({ref:ue,"data-show":!le,className:D()(Pe,G),style:Object.assign(Object.assign(Object.assign({},s==null?void 0:s.style),c),se),onMouseEnter:E,onMouseLeave:K,onClick:Q,role:"alert"},ye),ie?o.createElement(A,{description:t,icon:n.icon,prefixCls:Z,type:ae}):null,o.createElement("div",{className:`${Z}-content`},l?o.createElement("div",{className:`${Z}-message`},l):null,t?o.createElement("div",{className:`${Z}-description`},t):null),re?o.createElement("div",{className:`${Z}-action`},re):null,o.createElement(j,{isClosable:Ce,prefixCls:Z,closeIcon:Ee,handleClose:he,ariaProps:xe}))}))},V=e(15671),C=e(43144),oe=e(53640),ne=e(32531),H=function(n){(0,ne.Z)(t,n);function t(){var a;return(0,V.Z)(this,t),a=(0,oe.Z)(this,t,arguments),a.state={error:void 0,info:{componentStack:""}},a}return(0,C.Z)(t,[{key:"componentDidCatch",value:function(l,r){this.setState({error:l,info:r})}},{key:"render",value:function(){const{message:l,description:r,children:v}=this.props,{error:u,info:c}=this.state,E=c&&c.componentStack?c.componentStack:null,K=typeof l=="undefined"?(u||"").toString():l,Q=typeof r=="undefined"?E:r;return u?o.createElement(h,{type:"error",message:K,description:o.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},Q)}):v}}]),t}(o.Component);const w=h;w.ErrorBoundary=H;var $=w}}]); diff --git a/starter/src/main/resources/templates/admin/846.f86a8207.async.js b/starter/src/main/resources/templates/admin/846.f86a8207.async.js deleted file mode 100644 index d0c8063eee..0000000000 --- a/starter/src/main/resources/templates/admin/846.f86a8207.async.js +++ /dev/null @@ -1,324 +0,0 @@ -var dw=Object.defineProperty;var Wf=Object.getOwnPropertySymbols;var fw=Object.prototype.hasOwnProperty,vw=Object.prototype.propertyIsEnumerable;var Uf=(F,k,i)=>k in F?dw(F,k,{enumerable:!0,configurable:!0,writable:!0,value:i}):F[k]=i,Yf=(F,k)=>{for(var i in k||(k={}))fw.call(k,i)&&Uf(F,i,k[i]);if(Wf)for(var i of Wf(k))vw.call(k,i)&&Uf(F,i,k[i]);return F};(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[846],{47046:function(F,k){"use strict";var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};k.Z=i},42003:function(F,k){"use strict";var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};k.Z=i},5717:function(F,k){"use strict";var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};k.Z=i},42110:function(F,k){"use strict";var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};k.Z=i},53439:function(F,k,i){"use strict";i.d(k,{ZP:function(){return pt},NA:function(){return Ee},aK:function(){return ut}});var s=i(1413),y=i(91),x=i(97685),I=i(71002),S=i(74902),M=i(4942),R=i(10915),A=i(98082),V=i(19043),q=i(75661),me=i(48171),o=i(74138),w=i(21770),Y=i(27068),H=i(67294),te=i(51280);function we(Ie){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,nt=arguments.length>2?arguments[2]:void 0,ue=(0,H.useState)(Ie),Ne=(0,x.Z)(ue,2),Oe=Ne[0],Je=Ne[1],_e=(0,te.d)(Ie);return(0,H.useEffect)(function(){var rt=setTimeout(function(){Je(_e.current)},X);return function(){return clearTimeout(rt)}},nt?[X].concat((0,S.Z)(nt)):void 0),Oe}var Xe=i(31413),tt=i(28459),ke=i(75081),Ce=i(81758),it=i(87462),ft=i(509),pe=i(92593),he=function(X,nt){return H.createElement(pe.Z,(0,it.Z)({},X,{ref:nt,icon:ft.Z}))},_=H.forwardRef(he),D=_,se=i(98912),Le=i(83863),Ge=i(96365),Rt=i(93967),de=i.n(Rt),St=i(50344),Ct=i(85893),Wt=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp","optionLabelProp","valueMaxLength"],Ft=function(X,nt){return(0,I.Z)(nt)!=="object"?X[nt]||nt:X[nt==null?void 0:nt.value]||nt.label},an=function(X,nt){var ue=X.label,Ne=X.prefixCls,Oe=X.onChange,Je=X.value,_e=X.mode,rt=X.children,Ze=X.defaultValue,xt=X.size,$e=X.showSearch,mt=X.disabled,jt=X.style,kt=X.className,At=X.bordered,wt=X.options,Gt=X.onSearch,cn=X.allowClear,j=X.labelInValue,ie=X.fieldNames,ce=X.lightLabel,T=X.labelTrigger,G=X.optionFilterProp,ve=X.optionLabelProp,Re=ve===void 0?"":ve,Me=X.valueMaxLength,$t=Me===void 0?41:Me,lt=(0,y.Z)(X,Wt),yt=X.placeholder,dt=yt===void 0?ue:yt,Nt=ie||{},Xt=Nt.label,zt=Xt===void 0?"label":Xt,Ut=Nt.value,dn=Ut===void 0?"value":Ut,wn=(0,H.useContext)(tt.ZP.ConfigContext),Vt=wn.getPrefixCls,Jt=Vt("pro-field-select-light-select"),ln=(0,H.useState)(!1),tn=(0,x.Z)(ln,2),Xn=tn[0],tr=tn[1],ar=(0,H.useState)(""),An=(0,x.Z)(ar,2),jn=An[0],Dn=An[1],Un=(0,A.Xj)("LightSelect",function(qn){return(0,M.Z)({},".".concat(Jt),(0,M.Z)((0,M.Z)({},"".concat(qn.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),"&.".concat(Jt,"-searchable"),(0,M.Z)({},"".concat(qn.antCls,"-select"),{width:"200px","&-selector":{height:28}})))}),lr=Un.wrapSSR,mr=Un.hashId,_n=(0,H.useMemo)(function(){var qn={};return wt==null||wt.forEach(function(gn){var bn=gn[Re]||gn[zt],dr=gn[dn];qn[dr]=bn||dr}),qn},[zt,wt,dn,Re]),Tn=(0,H.useMemo)(function(){return Reflect.has(lt,"open")?lt==null?void 0:lt.open:Xn},[Xn,lt]),Mn=Array.isArray(Je)?Je.map(function(qn){return Ft(_n,qn)}):Ft(_n,Je);return lr((0,Ct.jsxs)("div",{className:de()(Jt,mr,(0,M.Z)({},"".concat(Jt,"-searchable"),$e),"".concat(Jt,"-container-").concat(lt.placement||"bottomLeft"),kt),style:jt,onClick:function(gn){var bn;if(!mt){var dr=ce==null||(bn=ce.current)===null||bn===void 0||(bn=bn.labelRef)===null||bn===void 0||(bn=bn.current)===null||bn===void 0?void 0:bn.contains(gn.target);dr&&tr(!Xn)}},children:[(0,Ct.jsx)(Le.Z,(0,s.Z)((0,s.Z)((0,s.Z)({popupMatchSelectWidth:!1},lt),{},{allowClear:cn,value:Je,mode:_e,labelInValue:j,size:xt,disabled:mt,onChange:function(gn,bn){Oe==null||Oe(gn,bn),_e!=="multiple"&&tr(!1)}},(0,Xe.J)(At)),{},{showSearch:$e,onSearch:Gt,style:jt,dropdownRender:function(gn){return(0,Ct.jsxs)("div",{ref:nt,children:[$e&&(0,Ct.jsx)("div",{style:{margin:"4px 8px"},children:(0,Ct.jsx)(Ge.Z,{value:jn,allowClear:!!cn,onChange:function(dr){Dn(dr.target.value),Gt==null||Gt(dr.target.value)},onKeyDown:function(dr){dr.stopPropagation()},style:{width:"100%"},prefix:(0,Ct.jsx)(D,{})})}),gn]})},open:Tn,onDropdownVisibleChange:function(gn){var bn;gn||Dn(""),T||tr(gn),lt==null||(bn=lt.onDropdownVisibleChange)===null||bn===void 0||bn.call(lt,gn)},prefixCls:Ne,options:Gt||!jn?wt:wt==null?void 0:wt.filter(function(qn){var gn,bn;return G?(0,St.Z)(qn[G]).join("").toLowerCase().includes(jn):((gn=String(qn[zt]))===null||gn===void 0||(gn=gn.toLowerCase())===null||gn===void 0?void 0:gn.includes(jn==null?void 0:jn.toLowerCase()))||((bn=qn[dn])===null||bn===void 0||(bn=bn.toString())===null||bn===void 0||(bn=bn.toLowerCase())===null||bn===void 0?void 0:bn.includes(jn==null?void 0:jn.toLowerCase()))})})),(0,Ct.jsx)(se.Q,{ellipsis:!0,label:ue,placeholder:dt,disabled:mt,bordered:At,allowClear:!!cn,value:Mn||(Je==null?void 0:Je.label)||Je,onClear:function(){Oe==null||Oe(void 0,void 0)},ref:ce,valueMaxLength:$t})]}))},bt=H.forwardRef(an),Et=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue"],Pt=["className","optionType"],Se=function(X,nt){var ue=X.optionItemRender,Ne=X.mode,Oe=X.onSearch,Je=X.onFocus,_e=X.onChange,rt=X.autoClearSearchValue,Ze=rt===void 0?!0:rt,xt=X.searchOnFocus,$e=xt===void 0?!1:xt,mt=X.resetAfterSelect,jt=mt===void 0?!1:mt,kt=X.fetchDataOnSearch,At=kt===void 0?!0:kt,wt=X.optionFilterProp,Gt=wt===void 0?"label":wt,cn=X.optionLabelProp,j=cn===void 0?"label":cn,ie=X.className,ce=X.disabled,T=X.options,G=X.fetchData,ve=X.resetData,Re=X.prefixCls,Me=X.onClear,$t=X.searchValue,lt=X.showSearch,yt=X.fieldNames,dt=X.defaultSearchValue,Nt=(0,y.Z)(X,Et),Xt=yt||{},zt=Xt.label,Ut=zt===void 0?"label":zt,dn=Xt.value,wn=dn===void 0?"value":dn,Vt=Xt.options,Jt=Vt===void 0?"options":Vt,ln=(0,H.useState)($t!=null?$t:dt),tn=(0,x.Z)(ln,2),Xn=tn[0],tr=tn[1],ar=(0,H.useRef)();(0,H.useImperativeHandle)(nt,function(){return ar.current}),(0,H.useEffect)(function(){if(Nt.autoFocus){var _n;ar==null||(_n=ar.current)===null||_n===void 0||_n.focus()}},[Nt.autoFocus]),(0,H.useEffect)(function(){tr($t)},[$t]);var An=(0,H.useContext)(tt.ZP.ConfigContext),jn=An.getPrefixCls,Dn=jn("pro-filed-search-select",Re),Un=de()(Dn,ie,(0,M.Z)({},"".concat(Dn,"-disabled"),ce)),lr=function(Tn,Mn){return Array.isArray(Tn)&&Array.isArray(Mn)&&Tn.length>0?Tn.map(function(qn,gn){var bn=Mn==null?void 0:Mn[gn],dr=(bn==null?void 0:bn["data-item"])||{};return(0,s.Z)((0,s.Z)({},dr),qn)}):[]},mr=function _n(Tn){return Tn.map(function(Mn,qn){var gn,bn=Mn,dr=bn.className,ca=bn.optionType,ga=(0,y.Z)(bn,Pt),Tr=Mn[Ut],cr=Mn[wn],nr=(gn=Mn[Jt])!==null&&gn!==void 0?gn:[];return ca==="optGroup"||Mn.options?(0,s.Z)((0,s.Z)({label:Tr},ga),{},{data_title:Tr,title:Tr,key:cr!=null?cr:Tr==null?void 0:Tr.toString(),children:_n(nr)}):(0,s.Z)((0,s.Z)({title:Tr},ga),{},{data_title:Tr,value:cr!=null?cr:qn,key:cr!=null?cr:Tr==null?void 0:Tr.toString(),"data-item":Mn,className:"".concat(Dn,"-option ").concat(dr||"").trim(),label:(ue==null?void 0:ue(Mn))||Tr})})};return(0,Ct.jsx)(Le.Z,(0,s.Z)((0,s.Z)({ref:ar,className:Un,allowClear:!0,autoClearSearchValue:Ze,disabled:ce,mode:Ne,showSearch:lt,searchValue:Xn,optionFilterProp:Gt,optionLabelProp:j,onClear:function(){Me==null||Me(),G(void 0),lt&&tr(void 0)}},Nt),{},{filterOption:Nt.filterOption==!1?!1:function(_n,Tn){var Mn,qn,gn;return Nt.filterOption&&typeof Nt.filterOption=="function"?Nt.filterOption(_n,(0,s.Z)((0,s.Z)({},Tn),{},{label:Tn==null?void 0:Tn.data_title})):!!(Tn!=null&&(Mn=Tn.data_title)!==null&&Mn!==void 0&&Mn.toString().toLowerCase().includes(_n.toLowerCase())||Tn!=null&&(qn=Tn.label)!==null&&qn!==void 0&&qn.toString().toLowerCase().includes(_n.toLowerCase())||Tn!=null&&(gn=Tn.value)!==null&&gn!==void 0&&gn.toString().toLowerCase().includes(_n.toLowerCase()))},onSearch:lt?function(_n){At&&G(_n),Oe==null||Oe(_n),tr(_n)}:void 0,onChange:function(Tn,Mn){lt&&Ze&&(G(void 0),Oe==null||Oe(""),tr(void 0));for(var qn=arguments.length,gn=new Array(qn>2?qn-2:0),bn=2;bn=60&&Math.round(j.h)<=240?T=ce?Math.round(j.h)-q*ie:Math.round(j.h)+q*ie:T=ce?Math.round(j.h)+q*ie:Math.round(j.h)-q*ie,T<0?T+=360:T>=360&&(T-=360),T}function it(j,ie,ce){if(j.h===0&&j.s===0)return j.s;var T;return ce?T=j.s-me*ie:ie===te?T=j.s+me:T=j.s+o*ie,T>1&&(T=1),ce&&ie===H&&T>.1&&(T=.1),T<.06&&(T=.06),Number(T.toFixed(2))}function ft(j,ie,ce){var T;return ce?T=j.v+w*ie:T=j.v-Y*ie,T>1&&(T=1),Number(T.toFixed(2))}function pe(j){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=[],T=(0,V.uA)(j),G=H;G>0;G-=1){var ve=Xe(T),Re=tt((0,V.uA)({h:Ce(ve,G,!0),s:it(ve,G,!0),v:ft(ve,G,!0)}));ce.push(Re)}ce.push(tt(T));for(var Me=1;Me<=te;Me+=1){var $t=Xe(T),lt=tt((0,V.uA)({h:Ce($t,Me),s:it($t,Me),v:ft($t,Me)}));ce.push(lt)}return ie.theme==="dark"?we.map(function(yt){var dt=yt.index,Nt=yt.opacity,Xt=tt(ke((0,V.uA)(ie.backgroundColor||"#141414"),(0,V.uA)(ce[dt]),Nt*100));return Xt}):ce}var he={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"},_={},D={};Object.keys(he).forEach(function(j){_[j]=pe(he[j]),_[j].primary=_[j][5],D[j]=pe(he[j],{theme:"dark",backgroundColor:"#141414"}),D[j].primary=D[j][5]});var se=_.red,Le=_.volcano,Ge=_.gold,Rt=_.orange,de=_.yellow,St=_.lime,Ct=_.green,Wt=_.cyan,Ft=_.blue,an=_.geekblue,bt=_.purple,Et=_.magenta,Pt=_.grey,Se=_.grey,ze=(0,S.createContext)({}),Qe=ze,Ae=i(1413),Pe=i(71002),be=i(44958),Ee=i(27571),ut=i(80334);function We(j){return j.replace(/-(.)/g,function(ie,ce){return ce.toUpperCase()})}function pt(j,ie){(0,ut.ZP)(j,"[@ant-design/icons] ".concat(ie))}function Ie(j){return(0,Pe.Z)(j)==="object"&&typeof j.name=="string"&&typeof j.theme=="string"&&((0,Pe.Z)(j.icon)==="object"||typeof j.icon=="function")}function X(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(j).reduce(function(ie,ce){var T=j[ce];switch(ce){case"class":ie.className=T,delete ie.class;break;default:delete ie[ce],ie[We(ce)]=T}return ie},{})}function nt(j,ie,ce){return ce?S.createElement(j.tag,(0,Ae.Z)((0,Ae.Z)({key:ie},X(j.attrs)),ce),(j.children||[]).map(function(T,G){return nt(T,"".concat(ie,"-").concat(j.tag,"-").concat(G))})):S.createElement(j.tag,(0,Ae.Z)({key:ie},X(j.attrs)),(j.children||[]).map(function(T,G){return nt(T,"".concat(ie,"-").concat(j.tag,"-").concat(G))}))}function ue(j){return pe(j)[0]}function Ne(j){return j?Array.isArray(j)?j:[j]:[]}var Oe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Je=` -.anticon { - display: inline-flex; - alignItems: center; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,_e=function(ie){var ce=(0,S.useContext)(Qe),T=ce.csp,G=ce.prefixCls,ve=Je;G&&(ve=ve.replace(/anticon/g,G)),(0,S.useEffect)(function(){var Re=ie.current,Me=(0,Ee.A)(Re);(0,be.hq)(ve,"@ant-design-icons",{prepend:!0,csp:T,attachTo:Me})},[])},rt=["icon","className","onClick","style","primaryColor","secondaryColor"],Ze={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function xt(j){var ie=j.primaryColor,ce=j.secondaryColor;Ze.primaryColor=ie,Ze.secondaryColor=ce||ue(ie),Ze.calculated=!!ce}function $e(){return(0,Ae.Z)({},Ze)}var mt=function(ie){var ce=ie.icon,T=ie.className,G=ie.onClick,ve=ie.style,Re=ie.primaryColor,Me=ie.secondaryColor,$t=(0,I.Z)(ie,rt),lt=S.useRef(),yt=Ze;if(Re&&(yt={primaryColor:Re,secondaryColor:Me||ue(Re)}),_e(lt),pt(Ie(ce),"icon should be icon definiton, but got ".concat(ce)),!Ie(ce))return null;var dt=ce;return dt&&typeof dt.icon=="function"&&(dt=(0,Ae.Z)((0,Ae.Z)({},dt),{},{icon:dt.icon(yt.primaryColor,yt.secondaryColor)})),nt(dt.icon,"svg-".concat(dt.name),(0,Ae.Z)((0,Ae.Z)({className:T,onClick:G,style:ve,"data-icon":dt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},$t),{},{ref:lt}))};mt.displayName="IconReact",mt.getTwoToneColors=$e,mt.setTwoToneColors=xt;var jt=mt;function kt(j){var ie=Ne(j),ce=(0,y.Z)(ie,2),T=ce[0],G=ce[1];return jt.setTwoToneColors({primaryColor:T,secondaryColor:G})}function At(){var j=jt.getTwoToneColors();return j.calculated?[j.primaryColor,j.secondaryColor]:j.primaryColor}var wt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];kt(Ft.primary);var Gt=S.forwardRef(function(j,ie){var ce=j.className,T=j.icon,G=j.spin,ve=j.rotate,Re=j.tabIndex,Me=j.onClick,$t=j.twoToneColor,lt=(0,I.Z)(j,wt),yt=S.useContext(Qe),dt=yt.prefixCls,Nt=dt===void 0?"anticon":dt,Xt=yt.rootClassName,zt=R()(Xt,Nt,(0,x.Z)((0,x.Z)({},"".concat(Nt,"-").concat(T.name),!!T.name),"".concat(Nt,"-spin"),!!G||T.name==="loading"),ce),Ut=Re;Ut===void 0&&Me&&(Ut=-1);var dn=ve?{msTransform:"rotate(".concat(ve,"deg)"),transform:"rotate(".concat(ve,"deg)")}:void 0,wn=Ne($t),Vt=(0,y.Z)(wn,2),Jt=Vt[0],ln=Vt[1];return S.createElement("span",(0,s.Z)({role:"img","aria-label":T.name},lt,{ref:ie,tabIndex:Ut,onClick:Me,className:zt}),S.createElement(jt,{icon:T,primaryColor:Jt,secondaryColor:ln,style:dn}))});Gt.displayName="AntdIcon",Gt.getTwoToneColor=At,Gt.setTwoToneColor=kt;var cn=Gt},78733:function(F,k,i){"use strict";i.d(k,{I:function(){return nt}});var s=i(97685),y=i(4942),x=i(1413),I=i(74165),S=i(15861),M=i(91),R=i(10915),A=i(22270),V=i(48171),q=i(26369),me=i(60249),o=i(41036),w=i(21770),Y=i(75661),H=i(67294),te=i(81758),we=0;function Xe(ue){var Ne=(0,H.useRef)(null),Oe=(0,H.useState)(function(){return ue.proFieldKey?ue.proFieldKey.toString():(we+=1,we.toString())}),Je=(0,s.Z)(Oe,1),_e=Je[0],rt=(0,H.useRef)(_e),Ze=function(){var jt=(0,S.Z)((0,I.Z)().mark(function kt(){var At,wt,Gt,cn;return(0,I.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return(At=Ne.current)===null||At===void 0||At.abort(),Gt=new AbortController,Ne.current=Gt,ie.next=5,Promise.race([(wt=ue.request)===null||wt===void 0?void 0:wt.call(ue,ue.params,ue),new Promise(function(ce,T){var G;(G=Ne.current)===null||G===void 0||(G=G.signal)===null||G===void 0||G.addEventListener("abort",function(){T(new Error("aborted"))})})]);case 5:return cn=ie.sent,ie.abrupt("return",cn);case 7:case"end":return ie.stop()}},kt)}));return function(){return jt.apply(this,arguments)}}();(0,H.useEffect)(function(){return function(){we+=1}},[]);var xt=(0,te.ZP)([rt.current,ue.params],Ze,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),$e=xt.data,mt=xt.error;return[$e||mt]}var tt=i(98082),ke=i(74902),Ce=i(71002),it=i(72378),ft=i.n(it),pe=i(88306),he=i(8880),_=i(74763),D=i(92210);function se(ue){return(0,Ce.Z)(ue)!=="object"?!1:ue===null?!0:!(H.isValidElement(ue)||ue.constructor===RegExp||ue instanceof Map||ue instanceof Set||ue instanceof HTMLElement||ue instanceof Blob||ue instanceof File||Array.isArray(ue))}var Le=function(Ne,Oe){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,_e=Object.keys(Oe).reduce(function(xt,$e){var mt=Oe[$e];return(0,_.k)(mt)||(xt[$e]=mt),xt},{});if(Object.keys(_e).length<1||typeof window=="undefined"||(0,Ce.Z)(Ne)!=="object"||(0,_.k)(Ne)||Ne instanceof Blob)return Ne;var rt=Array.isArray(Ne)?[]:{},Ze=function xt($e,mt){var jt=Array.isArray($e),kt=jt?[]:{};return $e==null||$e===void 0?kt:(Object.keys($e).forEach(function(At){var wt=function T(G,ve){return Array.isArray(G)&&G.forEach(function(Re,Me){if(Re){var $t=ve==null?void 0:ve[Me];typeof Re=="function"&&(ve[Me]=Re(ve,At,$e)),(0,Ce.Z)(Re)==="object"&&!Array.isArray(Re)&&Object.keys(Re).forEach(function(lt){var yt=$t==null?void 0:$t[lt];if(typeof Re[lt]=="function"&&yt){var dt=Re[lt]($t[lt],At,$e);$t[lt]=(0,Ce.Z)(dt)==="object"?dt[lt]:dt}else(0,Ce.Z)(Re[lt])==="object"&&Array.isArray(Re[lt])&&yt&&T(Re[lt],yt)}),(0,Ce.Z)(Re)==="object"&&Array.isArray(Re)&&$t&&T(Re,$t)}}),At},Gt=mt?[mt,At].flat(1):[At].flat(1),cn=$e[At],j=(0,pe.Z)(_e,Gt),ie=function(){var G,ve,Re=!1;if(typeof j=="function"){ve=j==null?void 0:j(cn,At,$e);var Me=(0,Ce.Z)(ve);Me!=="object"&&Me!=="undefined"?(G=At,Re=!0):G=ve}else G=wt(j,cn);if(Array.isArray(G)){kt=(0,he.Z)(kt,G,cn);return}(0,Ce.Z)(G)==="object"&&!Array.isArray(rt)?rt=ft()(rt,G):(0,Ce.Z)(G)==="object"&&Array.isArray(rt)?kt=(0,x.Z)((0,x.Z)({},kt),G):(G!==null||G!==void 0)&&(kt=(0,he.Z)(kt,[G],Re?ve:cn))};if(j&&typeof j=="function"&&ie(),typeof window!="undefined"){if(se(cn)){var ce=xt(cn,Gt);if(Object.keys(ce).length<1)return;kt=(0,he.Z)(kt,[At],ce);return}ie()}}),Je?kt:$e)};return rt=Array.isArray(Ne)&&Array.isArray(rt)?(0,ke.Z)(Ze(Ne)):(0,D.T)({},Ze(Ne),rt),rt},Ge=i(23312),Rt=i(45095),de=i(8232),St=i(28459),Ct=i(75081),Wt=i(93967),Ft=i.n(Wt),an=i(97435),bt=i(80334),Et=i(66758),Pt=i(14726),Se=i(85893),ze=function(Ne){var Oe=(0,R.YB)(),Je=de.Z.useFormInstance();if(Ne.render===!1)return null;var _e=Ne.onSubmit,rt=Ne.render,Ze=Ne.onReset,xt=Ne.searchConfig,$e=xt===void 0?{}:xt,mt=Ne.submitButtonProps,jt=Ne.resetButtonProps,kt=tt.Ow.useToken(),At=kt.token,wt=function(){Je.submit(),_e==null||_e()},Gt=function(){Je.resetFields(),Ze==null||Ze()},cn=$e.submitText,j=cn===void 0?Oe.getMessage("tableForm.submit","\u63D0\u4EA4"):cn,ie=$e.resetText,ce=ie===void 0?Oe.getMessage("tableForm.reset","\u91CD\u7F6E"):ie,T=[];jt!==!1&&T.push((0,H.createElement)(Pt.ZP,(0,x.Z)((0,x.Z)({},(0,an.Z)(jt,["preventDefault"])),{},{key:"rest",onClick:function(Re){var Me;jt!=null&&jt.preventDefault||Gt(),jt==null||(Me=jt.onClick)===null||Me===void 0||Me.call(jt,Re)}}),ce)),mt!==!1&&T.push((0,H.createElement)(Pt.ZP,(0,x.Z)((0,x.Z)({type:"primary"},(0,an.Z)(mt||{},["preventDefault"])),{},{key:"submit",onClick:function(Re){var Me;mt!=null&&mt.preventDefault||wt(),mt==null||(Me=mt.onClick)===null||Me===void 0||Me.call(mt,Re)}}),j));var G=rt?rt((0,x.Z)((0,x.Z)({},Ne),{},{form:Je,submit:wt,reset:Gt}),T):T;return G?Array.isArray(G)?(G==null?void 0:G.length)<1?null:(G==null?void 0:G.length)===1?G[0]:(0,Se.jsx)("div",{style:{display:"flex",gap:At.marginXS,alignItems:"center"},children:G}):G:null},Qe=ze,Ae=i(55895),Pe=i(2514),be=i(9105),Ee=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],ut=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],We=function(Ne,Oe,Je){return Ne===!0?Oe:(0,A.h)(Ne,Oe,Je)},pt=function(Ne){return!Ne||Array.isArray(Ne)?Ne:[Ne]};function Ie(ue){var Ne,Oe=ue.children,Je=ue.contentRender,_e=ue.submitter,rt=ue.fieldProps,Ze=ue.formItemProps,xt=ue.groupProps,$e=ue.transformKey,mt=ue.formRef,jt=ue.onInit,kt=ue.form,At=ue.loading,wt=ue.formComponentType,Gt=ue.extraUrlParams,cn=Gt===void 0?{}:Gt,j=ue.syncToUrl,ie=ue.onUrlSearchChange,ce=ue.onReset,T=ue.omitNil,G=T===void 0?!0:T,ve=ue.isKeyPressSubmit,Re=ue.autoFocusFirstInput,Me=Re===void 0?!0:Re,$t=ue.grid,lt=ue.rowProps,yt=ue.colProps,dt=(0,M.Z)(ue,Ee),Nt=de.Z.useFormInstance(),Xt=(St.ZP===null||St.ZP===void 0||(Ne=St.ZP.useConfig)===null||Ne===void 0?void 0:Ne.call(St.ZP))||{componentSize:"middle"},zt=Xt.componentSize,Ut=(0,H.useRef)(kt||Nt),dn=(0,Pe.zx)({grid:$t,rowProps:lt}),wn=dn.RowWrapper,Vt=(0,V.J)(function(){return Nt}),Jt=(0,H.useMemo)(function(){return{getFieldsFormatValue:function(jn){var Dn;return $e((Dn=Vt())===null||Dn===void 0?void 0:Dn.getFieldsValue(jn),G)},getFieldFormatValue:function(){var jn,Dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Un=pt(Dn);if(!Un)throw new Error("nameList is require");var lr=(jn=Vt())===null||jn===void 0?void 0:jn.getFieldValue(Un),mr=Un?(0,he.Z)({},Un,lr):lr;return(0,pe.Z)($e(mr,G,Un),Un)},getFieldFormatValueObject:function(jn){var Dn,Un=pt(jn),lr=(Dn=Vt())===null||Dn===void 0?void 0:Dn.getFieldValue(Un),mr=Un?(0,he.Z)({},Un,lr):lr;return $e(mr,G,Un)},validateFieldsReturnFormatValue:function(){var An=(0,S.Z)((0,I.Z)().mark(function Dn(Un){var lr,mr,_n;return(0,I.Z)().wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:if(!(!Array.isArray(Un)&&Un)){Mn.next=2;break}throw new Error("nameList must be array");case 2:return Mn.next=4,(lr=Vt())===null||lr===void 0?void 0:lr.validateFields(Un);case 4:return mr=Mn.sent,_n=$e(mr,G),Mn.abrupt("return",_n||{});case 7:case"end":return Mn.stop()}},Dn)}));function jn(Dn){return An.apply(this,arguments)}return jn}()}},[G,$e]),ln=(0,H.useMemo)(function(){return H.Children.toArray(Oe).map(function(An,jn){return jn===0&&H.isValidElement(An)&&Me?H.cloneElement(An,(0,x.Z)((0,x.Z)({},An.props),{},{autoFocus:Me})):An})},[Me,Oe]),tn=(0,H.useMemo)(function(){return typeof _e=="boolean"||!_e?{}:_e},[_e]),Xn=(0,H.useMemo)(function(){if(_e!==!1)return(0,Se.jsx)(Qe,(0,x.Z)((0,x.Z)({},tn),{},{onReset:function(){var jn,Dn,Un=$e((jn=Ut.current)===null||jn===void 0?void 0:jn.getFieldsValue(),G);if(tn==null||(Dn=tn.onReset)===null||Dn===void 0||Dn.call(tn,Un),ce==null||ce(Un),j){var lr,mr=Object.keys($e((lr=Ut.current)===null||lr===void 0?void 0:lr.getFieldsValue(),!1)).reduce(function(_n,Tn){return(0,x.Z)((0,x.Z)({},_n),{},(0,y.Z)({},Tn,Un[Tn]||void 0))},cn);ie(We(j,mr||{},"set"))}},submitButtonProps:(0,x.Z)({loading:At},tn.submitButtonProps)}),"submitter")},[_e,tn,At,$e,G,ce,j,cn,ie]),tr=(0,H.useMemo)(function(){var An=$t?(0,Se.jsx)(wn,{children:ln}):ln;return Je?Je(An,Xn,Ut.current):An},[$t,wn,ln,Je,Xn]),ar=(0,q.D)(ue.initialValues);return(0,H.useEffect)(function(){if(!(j||!ue.initialValues||!ar||dt.request)){var An=(0,me.A)(ue.initialValues,ar);(0,bt.ET)(An,"initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ? : null "),(0,bt.ET)(An,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[ue.initialValues]),(0,H.useImperativeHandle)(mt,function(){return(0,x.Z)((0,x.Z)({},Ut.current),Jt)},[Jt,Ut.current]),(0,H.useEffect)(function(){var An,jn,Dn=$e((An=Ut.current)===null||An===void 0||(jn=An.getFieldsValue)===null||jn===void 0?void 0:jn.call(An,!0),G);jt==null||jt(Dn,(0,x.Z)((0,x.Z)({},Ut.current),Jt))},[]),(0,Se.jsx)(o.J.Provider,{value:(0,x.Z)((0,x.Z)({},Jt),{},{formRef:Ut}),children:(0,Se.jsx)(St.ZP,{componentSize:dt.size||zt,children:(0,Se.jsxs)(Pe._p.Provider,{value:{grid:$t,colProps:yt},children:[dt.component!==!1&&(0,Se.jsx)("input",{type:"text",style:{display:"none"}}),tr]})})})}var X=0;function nt(ue){var Ne=ue.extraUrlParams,Oe=Ne===void 0?{}:Ne,Je=ue.syncToUrl,_e=ue.isKeyPressSubmit,rt=ue.syncToUrlAsImportant,Ze=rt===void 0?!1:rt,xt=ue.syncToInitialValues,$e=xt===void 0?!0:xt,mt=ue.children,jt=ue.contentRender,kt=ue.submitter,At=ue.fieldProps,wt=ue.proFieldProps,Gt=ue.formItemProps,cn=ue.groupProps,j=ue.dateFormatter,ie=j===void 0?"string":j,ce=ue.formRef,T=ue.onInit,G=ue.form,ve=ue.formComponentType,Re=ue.onReset,Me=ue.grid,$t=ue.rowProps,lt=ue.colProps,yt=ue.omitNil,dt=yt===void 0?!0:yt,Nt=ue.request,Xt=ue.params,zt=ue.initialValues,Ut=ue.formKey,dn=Ut===void 0?X:Ut,wn=ue.readonly,Vt=ue.onLoadingChange,Jt=ue.loading,ln=(0,M.Z)(ue,ut),tn=(0,H.useRef)({}),Xn=(0,w.Z)(!1,{onChange:Vt,value:Jt}),tr=(0,s.Z)(Xn,2),ar=tr[0],An=tr[1],jn=(0,Rt.l)({},{disabled:!Je}),Dn=(0,s.Z)(jn,2),Un=Dn[0],lr=Dn[1],mr=(0,H.useRef)((0,Y.x)());(0,H.useEffect)(function(){X+=0},[]);var _n=Xe({request:Nt,params:Xt,proFieldKey:dn}),Tn=(0,s.Z)(_n,1),Mn=Tn[0],qn=(0,H.useContext)(St.ZP.ConfigContext),gn=qn.getPrefixCls,bn=gn("pro-form"),dr=(0,tt.Xj)("ProForm",function(un){return(0,y.Z)({},".".concat(bn),(0,y.Z)({},"> div:not(".concat(un.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),ca=dr.wrapSSR,ga=dr.hashId,Tr=(0,H.useState)(function(){return Je?We(Je,Un,"get"):{}}),cr=(0,s.Z)(Tr,2),nr=cr[0],na=cr[1],le=(0,H.useRef)({}),st=(0,H.useRef)({}),Mt=(0,V.J)(function(un,Nn,kn){return Le((0,Ge.lp)(un,ie,st.current,Nn,kn),le.current,Nn)});(0,H.useEffect)(function(){$e||na({})},[$e]),(0,H.useEffect)(function(){Je&&lr(We(Je,(0,x.Z)((0,x.Z)({},Un),Oe),"set"))},[Oe,Je]);var Dt=(0,H.useMemo)(function(){if(typeof window!="undefined"&&ve&&["DrawerForm"].includes(ve))return function(un){return un.parentNode||document.body}},[ve]),on=(0,V.J)((0,S.Z)((0,I.Z)().mark(function un(){var Nn,kn,er,br,Sr,fr;return(0,I.Z)().wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:if(ln.onFinish){ur.next=2;break}return ur.abrupt("return");case 2:if(!ar){ur.next=4;break}return ur.abrupt("return");case 4:return An(!0),ur.prev=5,er=tn==null||(Nn=tn.current)===null||Nn===void 0||(kn=Nn.getFieldsFormatValue)===null||kn===void 0?void 0:kn.call(Nn),ur.next=9,ln.onFinish(er);case 9:Je&&(fr=Object.keys(tn==null||(br=tn.current)===null||br===void 0||(Sr=br.getFieldsFormatValue)===null||Sr===void 0?void 0:Sr.call(br,void 0,!1)).reduce(function(Pr,zr){var ra;return(0,x.Z)((0,x.Z)({},Pr),{},(0,y.Z)({},zr,(ra=er[zr])!==null&&ra!==void 0?ra:void 0))},Oe),Object.keys(Un).forEach(function(Pr){fr[Pr]!==!1&&fr[Pr]!==0&&!fr[Pr]&&(fr[Pr]=void 0)}),lr(We(Je,fr,"set"))),An(!1),ur.next=17;break;case 13:ur.prev=13,ur.t0=ur.catch(5),console.log(ur.t0),An(!1);case 17:case"end":return ur.stop()}},un,null,[[5,13]])})));return(0,H.useImperativeHandle)(ce,function(){return tn.current},[!Mn]),!Mn&&ue.request?(0,Se.jsx)("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:(0,Se.jsx)(Ct.Z,{})}):ca((0,Se.jsx)(be.A.Provider,{value:{mode:ue.readonly?"read":"edit"},children:(0,Se.jsx)(R._Y,{needDeps:!0,children:(0,Se.jsx)(Et.Z.Provider,{value:{formRef:tn,fieldProps:At,proFieldProps:wt,formItemProps:Gt,groupProps:cn,formComponentType:ve,getPopupContainer:Dt,formKey:mr.current,setFieldValueType:function(Nn,kn){var er=kn.valueType,br=er===void 0?"text":er,Sr=kn.dateFormat,fr=kn.transform;Array.isArray(Nn)&&(le.current=(0,he.Z)(le.current,Nn,fr),st.current=(0,he.Z)(st.current,Nn,{valueType:br,dateFormat:Sr}))}},children:(0,Se.jsx)(Ae.J.Provider,{value:{},children:(0,Se.jsx)(de.Z,(0,x.Z)((0,x.Z)({onKeyPress:function(Nn){if(_e&&Nn.key==="Enter"){var kn;(kn=tn.current)===null||kn===void 0||kn.submit()}},autoComplete:"off",form:G},(0,an.Z)(ln,["labelWidth","autoFocusFirstInput"])),{},{initialValues:Ze?(0,x.Z)((0,x.Z)((0,x.Z)({},zt),Mn),nr):(0,x.Z)((0,x.Z)((0,x.Z)({},nr),zt),Mn),onValuesChange:function(Nn,kn){var er;ln==null||(er=ln.onValuesChange)===null||er===void 0||er.call(ln,Mt(Nn,!!dt),Mt(kn,!!dt))},className:Ft()(ue.className,bn,ga),onFinish:on,children:(0,Se.jsx)(Ie,(0,x.Z)((0,x.Z)({transformKey:Mt,autoComplete:"off",loading:ar,onUrlSearchChange:lr},ue),{},{formRef:tn,initialValues:(0,x.Z)((0,x.Z)({},zt),Mn)}))}))})})})}))}},9105:function(F,k,i){"use strict";i.d(k,{A:function(){return y}});var s=i(67294),y=s.createContext({mode:"edit"})},90789:function(F,k,i){"use strict";i.d(k,{G:function(){return _}});var s=i(4942),y=i(97685),x=i(1413),I=i(91),S=i(74138),M=i(51812),R=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function A(D){var se={};return R.forEach(function(Le){D[Le]!==void 0&&(se[Le]=D[Le])}),se}var V=i(53914),q=i(48171),me=i(93967),o=i.n(me),w=i(43589),Y=i(80334),H=i(67294),te=i(66758),we=i(62370),Xe=i(97462),tt=i(2514),ke=i(85893),Ce=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],it=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],ft=Symbol("ProFormComponent"),pe={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},he=["switch","radioButton","radio","rate"];function _(D,se){D.displayName="ProFormComponent";var Le=function(de){var St=(0,x.Z)((0,x.Z)({},de==null?void 0:de.filedConfig),se)||{},Ct=St.valueType,Wt=St.customLightMode,Ft=St.lightFilterLabelFormatter,an=St.valuePropName,bt=an===void 0?"value":an,Et=St.ignoreWidth,Pt=St.defaultProps,Se=(0,I.Z)(St,Ce),ze=(0,x.Z)((0,x.Z)({},Pt),de),Qe=ze.label,Ae=ze.tooltip,Pe=ze.placeholder,be=ze.width,Ee=ze.bordered,ut=ze.messageVariables,We=ze.ignoreFormItem,pt=ze.transform,Ie=ze.convertValue,X=ze.readonly,nt=ze.allowClear,ue=ze.colSize,Ne=ze.getFormItemProps,Oe=ze.getFieldProps,Je=ze.filedConfig,_e=ze.cacheForSwr,rt=ze.proFieldProps,Ze=(0,I.Z)(ze,it),xt=Ct||Ze.valueType,$e=(0,H.useMemo)(function(){return Et||he.includes(xt)},[Et,xt]),mt=(0,H.useState)(),jt=(0,y.Z)(mt,2),kt=jt[1],At=(0,H.useState)(),wt=(0,y.Z)(At,2),Gt=wt[0],cn=wt[1],j=H.useContext(te.Z),ie=(0,S.Z)(function(){return{formItemProps:Ne==null?void 0:Ne(),fieldProps:Oe==null?void 0:Oe()}},[Oe,Ne,Ze.dependenciesValues,Gt]),ce=(0,S.Z)(function(){var Vt=(0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)({},We?(0,M.Y)({value:Ze.value}):{}),{},{placeholder:Pe,disabled:de.disabled},j.fieldProps),ie.fieldProps),Ze.fieldProps);return Vt.style=(0,M.Y)(Vt==null?void 0:Vt.style),Vt},[We,Ze.value,Ze.fieldProps,Pe,de.disabled,j.fieldProps,ie.fieldProps]),T=A(Ze),G=(0,S.Z)(function(){return(0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)({},j.formItemProps),T),ie.formItemProps),Ze.formItemProps)},[ie.formItemProps,j.formItemProps,Ze.formItemProps,T]),ve=(0,S.Z)(function(){return(0,x.Z)((0,x.Z)({messageVariables:ut},Se),G)},[Se,G,ut]);(0,Y.ET)(!Ze.defaultValue,"\u8BF7\u4E0D\u8981\u5728 Form \u4E2D\u4F7F\u7528 defaultXXX\u3002\u5982\u679C\u9700\u8981\u9ED8\u8BA4\u503C\u8BF7\u4F7F\u7528 initialValues \u548C initialValue\u3002");var Re=(0,H.useContext)(w.zb),Me=Re.prefixName,$t=(0,S.Z)(function(){var Vt,Jt=ve==null?void 0:ve.name;Array.isArray(Jt)&&(Jt=Jt.join("_")),Array.isArray(Me)&&Jt&&(Jt="".concat(Me.join("."),".").concat(Jt));var ln=Jt&&"form-".concat((Vt=j.formKey)!==null&&Vt!==void 0?Vt:"","-field-").concat(Jt);return ln},[(0,V.ZP)(ve==null?void 0:ve.name),Me,j.formKey]),lt=(0,q.J)(function(){var Vt;Ne||Oe?cn([]):Ze.renderFormItem&&kt([]);for(var Jt=arguments.length,ln=new Array(Jt),tn=0;tn5&&arguments[5]!==void 0?arguments[5]:!1,c=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,f=o.useMemo(function(){if((0,x.Z)(a)==="object")return a.clearIcon;if(l)return l},[a,l]),v=o.useMemo(function(){return!!(!d&&a&&(n.length||c)&&!(u==="combobox"&&c===""))},[a,d,n.length,c,u]);return{allowClear:v,clearIcon:o.createElement(Wt,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:f},"\xD7")}},an=o.createContext(null);function bt(){return o.useContext(an)}function Et(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=o.useState(!1),r=(0,w.Z)(t,2),n=r[0],a=r[1],l=o.useRef(null),d=function(){window.clearTimeout(l.current)};o.useEffect(function(){return d},[]);var c=function(f,v){d(),l.current=window.setTimeout(function(){a(f),v&&v()},e)};return[n,c,d]}function Pt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=o.useRef(null),r=o.useRef(null);o.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}function Se(e,t,r,n){var a=o.useRef(null);a.current={open:t,triggerOpen:r,customizedTrigger:n},o.useEffect(function(){function l(d){var c;if(!((c=a.current)!==null&&c!==void 0&&c.customizedTrigger)){var u=d.target;u.shadowRoot&&d.composed&&(u=d.composedPath()[0]||u),a.current.open&&e().filter(function(f){return f}).every(function(f){return!f.contains(u)&&f!==u})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}function ze(e){return![de.Z.ESC,de.Z.SHIFT,de.Z.BACKSPACE,de.Z.TAB,de.Z.WIN_KEY,de.Z.ALT,de.Z.META,de.Z.WIN_KEY_RIGHT,de.Z.CTRL,de.Z.SEMICOLON,de.Z.EQUALS,de.Z.CAPS_LOCK,de.Z.CONTEXT_MENU,de.Z.F1,de.Z.F2,de.Z.F3,de.Z.F4,de.Z.F5,de.Z.F6,de.Z.F7,de.Z.F8,de.Z.F9,de.Z.F10,de.Z.F11,de.Z.F12].includes(e)}var Qe=i(64217),Ae=i(39983),Pe=function(t,r){var n,a=t.prefixCls,l=t.id,d=t.inputElement,c=t.disabled,u=t.tabIndex,f=t.autoFocus,v=t.autoComplete,m=t.editable,g=t.activeDescendantId,h=t.value,b=t.maxLength,C=t.onKeyDown,p=t.onMouseDown,P=t.onChange,E=t.onPaste,O=t.onCompositionStart,$=t.onCompositionEnd,Z=t.open,N=t.attrs,L=d||o.createElement("input",null),K=L,U=K.ref,W=K.props,B=W.onKeyDown,z=W.onChange,J=W.onMouseDown,ae=W.onCompositionStart,ne=W.onCompositionEnd,oe=W.style;return(0,Le.Kp)(!("maxLength"in L.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),L=o.cloneElement(L,(0,s.Z)((0,s.Z)((0,s.Z)({type:"search"},W),{},{id:l,ref:(0,St.sQ)(r,U),disabled:c,tabIndex:u,autoComplete:v||"off",autoFocus:f,className:_()("".concat(a,"-selection-search-input"),(n=L)===null||n===void 0||(n=n.props)===null||n===void 0?void 0:n.className),role:"combobox","aria-expanded":Z||!1,"aria-haspopup":"listbox","aria-owns":"".concat(l,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(l,"_list"),"aria-activedescendant":Z?g:void 0},N),{},{value:m?h:"",maxLength:b,readOnly:!m,unselectable:m?null:"on",style:(0,s.Z)((0,s.Z)({},oe),{},{opacity:m?null:0}),onKeyDown:function(ee){C(ee),B&&B(ee)},onMouseDown:function(ee){p(ee),J&&J(ee)},onChange:function(ee){P(ee),z&&z(ee)},onCompositionStart:function(ee){O(ee),ae&&ae(ee)},onCompositionEnd:function(ee){$(ee),ne&&ne(ee)},onPaste:E})),L},be=o.forwardRef(Pe),Ee=be;function ut(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var We=typeof window!="undefined"&&window.document&&window.document.documentElement,pt=We;function Ie(e){return e!=null}function X(e){return!e&&e!==0}function nt(e){return["string","number"].includes((0,x.Z)(e))}function ue(e){var t=void 0;return e&&(nt(e.title)?t=e.title.toString():nt(e.label)&&(t=e.label.toString())),t}function Ne(e,t){pt?o.useLayoutEffect(e,t):o.useEffect(e,t)}function Oe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Je=function(t){t.preventDefault(),t.stopPropagation()},_e=function(t){var r=t.id,n=t.prefixCls,a=t.values,l=t.open,d=t.searchValue,c=t.autoClearSearchValue,u=t.inputRef,f=t.placeholder,v=t.disabled,m=t.mode,g=t.showSearch,h=t.autoFocus,b=t.autoComplete,C=t.activeDescendantId,p=t.tabIndex,P=t.removeIcon,E=t.maxTagCount,O=t.maxTagTextLength,$=t.maxTagPlaceholder,Z=$===void 0?function(je){return"+ ".concat(je.length," ...")}:$,N=t.tagRender,L=t.onToggleOpen,K=t.onRemove,U=t.onInputChange,W=t.onInputPaste,B=t.onInputKeyDown,z=t.onInputMouseDown,J=t.onInputCompositionStart,ae=t.onInputCompositionEnd,ne=o.useRef(null),oe=(0,o.useState)(0),Q=(0,w.Z)(oe,2),ee=Q[0],fe=Q[1],xe=(0,o.useState)(!1),He=(0,w.Z)(xe,2),ge=He[0],et=He[1],Ue="".concat(n,"-selection"),at=l||m==="multiple"&&c===!1||m==="tags"?d:"",vt=m==="tags"||m==="multiple"&&c===!1||g&&(l||ge);Ne(function(){fe(ne.current.scrollWidth)},[at]);var Ve=function(Te,Ye,qe,Zt,It){return o.createElement("span",{title:ue(Te),className:_()("".concat(Ue,"-item"),(0,D.Z)({},"".concat(Ue,"-item-disabled"),qe))},o.createElement("span",{className:"".concat(Ue,"-item-content")},Ye),Zt&&o.createElement(Wt,{className:"".concat(Ue,"-item-remove"),onMouseDown:Je,onClick:It,customizeIcon:P},"\xD7"))},ct=function(Te,Ye,qe,Zt,It){var Lt=function(Yt){Je(Yt),L(!l)};return o.createElement("span",{onMouseDown:Lt},N({label:Ye,value:Te,disabled:qe,closable:Zt,onClose:It}))},ht=function(Te){var Ye=Te.disabled,qe=Te.label,Zt=Te.value,It=!v&&!Ye,Lt=qe;if(typeof O=="number"&&(typeof qe=="string"||typeof qe=="number")){var Kt=String(Lt);Kt.length>O&&(Lt="".concat(Kt.slice(0,O),"..."))}var Yt=function(Cn){Cn&&Cn.stopPropagation(),K(Te)};return typeof N=="function"?ct(Zt,Lt,Ye,It,Yt):Ve(Te,Lt,Ye,It,Yt)},De=function(Te){var Ye=typeof Z=="function"?Z(Te):Z;return Ve({title:Ye},Ye,!1)},ye=o.createElement("div",{className:"".concat(Ue,"-search"),style:{width:ee},onFocus:function(){et(!0)},onBlur:function(){et(!1)}},o.createElement(Ee,{ref:u,open:l,prefixCls:n,id:r,inputElement:null,disabled:v,autoFocus:h,autoComplete:b,editable:vt,activeDescendantId:C,value:at,onKeyDown:B,onMouseDown:z,onChange:U,onPaste:W,onCompositionStart:J,onCompositionEnd:ae,tabIndex:p,attrs:(0,Qe.Z)(t,!0)}),o.createElement("span",{ref:ne,className:"".concat(Ue,"-search-mirror"),"aria-hidden":!0},at,"\xA0")),Ke=o.createElement(Ae.Z,{prefixCls:"".concat(Ue,"-overflow"),data:a,renderItem:ht,renderRest:De,suffix:ye,itemKey:Oe,maxCount:E});return o.createElement(o.Fragment,null,Ke,!a.length&&!at&&o.createElement("span",{className:"".concat(Ue,"-placeholder")},f))},rt=_e,Ze=function(t){var r=t.inputElement,n=t.prefixCls,a=t.id,l=t.inputRef,d=t.disabled,c=t.autoFocus,u=t.autoComplete,f=t.activeDescendantId,v=t.mode,m=t.open,g=t.values,h=t.placeholder,b=t.tabIndex,C=t.showSearch,p=t.searchValue,P=t.activeValue,E=t.maxLength,O=t.onInputKeyDown,$=t.onInputMouseDown,Z=t.onInputChange,N=t.onInputPaste,L=t.onInputCompositionStart,K=t.onInputCompositionEnd,U=t.title,W=o.useState(!1),B=(0,w.Z)(W,2),z=B[0],J=B[1],ae=v==="combobox",ne=ae||C,oe=g[0],Q=p||"";ae&&P&&!z&&(Q=P),o.useEffect(function(){ae&&J(!1)},[ae,P]);var ee=v!=="combobox"&&!m&&!C?!1:!!Q,fe=U===void 0?ue(oe):U,xe=o.useMemo(function(){return oe?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:ee?{visibility:"hidden"}:void 0},h)},[oe,ee,h,n]);return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(Ee,{ref:l,prefixCls:n,id:a,open:m,inputElement:r,disabled:d,autoFocus:c,autoComplete:u,editable:ne,activeDescendantId:f,value:Q,onKeyDown:O,onMouseDown:$,onChange:function(ge){J(!0),Z(ge)},onPaste:N,onCompositionStart:L,onCompositionEnd:K,tabIndex:b,attrs:(0,Qe.Z)(t,!0),maxLength:ae?E:void 0})),!ae&&oe?o.createElement("span",{className:"".concat(n,"-selection-item"),title:fe,style:ee?{visibility:"hidden"}:void 0},oe.label):null,xe)},xt=Ze,$e=function(t,r){var n=(0,o.useRef)(null),a=(0,o.useRef)(!1),l=t.prefixCls,d=t.open,c=t.mode,u=t.showSearch,f=t.tokenWithEnter,v=t.autoClearSearchValue,m=t.onSearch,g=t.onSearchSubmit,h=t.onToggleOpen,b=t.onInputKeyDown,C=t.domRef;o.useImperativeHandle(r,function(){return{focus:function(Q){n.current.focus(Q)},blur:function(){n.current.blur()}}});var p=Pt(0),P=(0,w.Z)(p,2),E=P[0],O=P[1],$=function(Q){var ee=Q.which;(ee===de.Z.UP||ee===de.Z.DOWN)&&Q.preventDefault(),b&&b(Q),ee===de.Z.ENTER&&c==="tags"&&!a.current&&!d&&(g==null||g(Q.target.value)),ze(ee)&&h(!0)},Z=function(){O(!0)},N=(0,o.useRef)(null),L=function(Q){m(Q,!0,a.current)!==!1&&h(!0)},K=function(){a.current=!0},U=function(Q){a.current=!1,c!=="combobox"&&L(Q.target.value)},W=function(Q){var ee=Q.target.value;if(f&&N.current&&/[\r\n]/.test(N.current)){var fe=N.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ee=ee.replace(fe,N.current)}N.current=null,L(ee)},B=function(Q){var ee=Q.clipboardData,fe=ee==null?void 0:ee.getData("text");N.current=fe||""},z=function(Q){var ee=Q.target;if(ee!==n.current){var fe=document.body.style.msTouchAction!==void 0;fe?setTimeout(function(){n.current.focus()}):n.current.focus()}},J=function(Q){var ee=E();Q.target!==n.current&&!ee&&c!=="combobox"&&Q.preventDefault(),(c!=="combobox"&&(!u||!ee)||!d)&&(d&&v!==!1&&m("",!0,!1),h())},ae={inputRef:n,onInputKeyDown:$,onInputMouseDown:Z,onInputChange:W,onInputPaste:B,onInputCompositionStart:K,onInputCompositionEnd:U},ne=c==="multiple"||c==="tags"?o.createElement(rt,(0,Y.Z)({},t,ae)):o.createElement(xt,(0,Y.Z)({},t,ae));return o.createElement("div",{ref:C,className:"".concat(l,"-selector"),onClick:z,onMouseDown:J},ne)},mt=o.forwardRef($e),jt=mt,kt=i(40228),At=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],wt=function(t){var r=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"}}},Gt=function(t,r){var n=t.prefixCls,a=t.disabled,l=t.visible,d=t.children,c=t.popupElement,u=t.animation,f=t.transitionName,v=t.dropdownStyle,m=t.dropdownClassName,g=t.direction,h=g===void 0?"ltr":g,b=t.placement,C=t.builtinPlacements,p=t.dropdownMatchSelectWidth,P=t.dropdownRender,E=t.dropdownAlign,O=t.getPopupContainer,$=t.empty,Z=t.getTriggerDOMNode,N=t.onPopupVisibleChange,L=t.onPopupMouseEnter,K=(0,y.Z)(t,At),U="".concat(n,"-dropdown"),W=c;P&&(W=P(c));var B=o.useMemo(function(){return C||wt(p)},[C,p]),z=u?"".concat(U,"-").concat(u):f,J=typeof p=="number",ae=o.useMemo(function(){return J?null:p===!1?"minWidth":"width"},[p,J]),ne=v;J&&(ne=(0,s.Z)((0,s.Z)({},ne),{},{width:p}));var oe=o.useRef(null);return o.useImperativeHandle(r,function(){return{getPopupElement:function(){return oe.current}}}),o.createElement(kt.Z,(0,Y.Z)({},K,{showAction:N?["click"]:[],hideAction:N?["click"]:[],popupPlacement:b||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:B,prefixCls:U,popupTransitionName:z,popup:o.createElement("div",{ref:oe,onMouseEnter:L},W),stretch:ae,popupAlign:E,popupVisible:l,getPopupContainer:O,popupClassName:_()(m,(0,D.Z)({},"".concat(U,"-empty"),$)),popupStyle:ne,getTriggerDOMNode:Z,onPopupVisibleChange:N}),d)},cn=o.forwardRef(Gt),j=cn,ie=i(84506);function ce(e,t){var r=e.key,n;return"value"in e&&(n=e.value),r!=null?r:n!==void 0?n:"rc-index-key-".concat(t)}function T(e){return typeof e!="undefined"&&!Number.isNaN(e)}function G(e,t){var r=e||{},n=r.label,a=r.value,l=r.options,d=r.groupLabel,c=n||(t?"children":"label");return{label:c,value:a||"value",options:l||"options",groupLabel:d||c}}function ve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,a=[],l=G(r,!1),d=l.label,c=l.value,u=l.options,f=l.groupLabel;function v(m,g){Array.isArray(m)&&m.forEach(function(h){if(g||!(u in h)){var b=h[c];a.push({key:ce(h,a.length),groupOption:g,data:h,label:h[d],value:b})}else{var C=h[f];C===void 0&&n&&(C=h.label),a.push({key:ce(h,a.length),group:!0,data:h,label:C}),v(h[u],!0)}})}return v(e,!1),a}function Re(e){var t=(0,s.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,Le.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Me=function(t,r,n){if(!r||!r.length)return null;var a=!1,l=function c(u,f){var v=(0,ie.Z)(f),m=v[0],g=v.slice(1);if(!m)return[u];var h=u.split(m);return a=a||h.length>1,h.reduce(function(b,C){return[].concat((0,pe.Z)(b),(0,pe.Z)(c(C,g)))},[]).filter(Boolean)},d=l(t,r);return a?typeof n!="undefined"?d.slice(0,n):d:null},$t=o.createContext(null),lt=$t,yt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],dt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Nt=function(t){return t==="tags"||t==="multiple"},Xt=o.forwardRef(function(e,t){var r,n=e.id,a=e.prefixCls,l=e.className,d=e.showSearch,c=e.tagRender,u=e.direction,f=e.omitDomProps,v=e.displayValues,m=e.onDisplayValuesChange,g=e.emptyOptions,h=e.notFoundContent,b=h===void 0?"Not Found":h,C=e.onClear,p=e.mode,P=e.disabled,E=e.loading,O=e.getInputElement,$=e.getRawInputElement,Z=e.open,N=e.defaultOpen,L=e.onDropdownVisibleChange,K=e.activeValue,U=e.onActiveValueChange,W=e.activeDescendantId,B=e.searchValue,z=e.autoClearSearchValue,J=e.onSearch,ae=e.onSearchSplit,ne=e.tokenSeparators,oe=e.allowClear,Q=e.suffixIcon,ee=e.clearIcon,fe=e.OptionList,xe=e.animation,He=e.transitionName,ge=e.dropdownStyle,et=e.dropdownClassName,Ue=e.dropdownMatchSelectWidth,at=e.dropdownRender,vt=e.dropdownAlign,Ve=e.placement,ct=e.builtinPlacements,ht=e.getPopupContainer,De=e.showAction,ye=De===void 0?[]:De,Ke=e.onFocus,je=e.onBlur,Te=e.onKeyUp,Ye=e.onKeyDown,qe=e.onMouseDown,Zt=(0,y.Z)(e,yt),It=Nt(p),Lt=(d!==void 0?d:It)||p==="combobox",Kt=(0,s.Z)({},Zt);dt.forEach(function(Rn){delete Kt[Rn]}),f==null||f.forEach(function(Rn){delete Kt[Rn]});var Yt=o.useState(!1),en=(0,w.Z)(Yt,2),Cn=en[0],Ot=en[1];o.useEffect(function(){Ot((0,Rt.Z)())},[]);var pn=o.useRef(null),Bt=o.useRef(null),ot=o.useRef(null),Tt=o.useRef(null),_t=o.useRef(null),Qt=o.useRef(!1),Sn=Et(),hn=(0,w.Z)(Sn,3),Fn=hn[0],nn=hn[1],rn=hn[2];o.useImperativeHandle(t,function(){var Rn,yn;return{focus:(Rn=Tt.current)===null||Rn===void 0?void 0:Rn.focus,blur:(yn=Tt.current)===null||yn===void 0?void 0:yn.blur,scrollTo:function(Br){var Cr;return(Cr=_t.current)===null||Cr===void 0?void 0:Cr.scrollTo(Br)}}});var In=o.useMemo(function(){var Rn;if(p!=="combobox")return B;var yn=(Rn=v[0])===null||Rn===void 0?void 0:Rn.value;return typeof yn=="string"||typeof yn=="number"?String(yn):""},[B,p,v]),Gn=p==="combobox"&&typeof O=="function"&&O()||null,En=typeof $=="function"&&$(),kr=(0,St.x1)(Bt,En==null||(r=En.props)===null||r===void 0?void 0:r.ref),Fr=o.useState(!1),Mr=(0,w.Z)(Fr,2),ta=Mr[0],Qr=Mr[1];(0,Ge.Z)(function(){Qr(!0)},[]);var Ln=(0,se.Z)(!1,{defaultValue:N,value:Z}),xn=(0,w.Z)(Ln,2),Bn=xn[0],Pn=xn[1],$n=ta?Bn:!1,Ur=!b&&g;(P||Ur&&$n&&p==="combobox")&&($n=!1);var Or=Ur?!1:$n,Ht=o.useCallback(function(Rn){var yn=Rn!==void 0?Rn:!$n;P||(Pn(yn),$n!==yn&&(L==null||L(yn)))},[P,$n,Pn,L]),sn=o.useMemo(function(){return(ne||[]).some(function(Rn){return[` -`,`\r -`].includes(Rn)})},[ne]),qt=o.useContext(lt)||{},vn=qt.maxCount,Vn=qt.rawValues,zn=function(yn,Nr,Br){if(!(It&&T(vn)&&(Vn==null?void 0:Vn.size)>=vn)){var Cr=!0,Ar=yn;U==null||U(null);var Kn=Me(yn,ne,T(vn)?vn-Vn.size:void 0),Hn=Br?null:Kn;return p!=="combobox"&&Hn&&(Ar="",ae==null||ae(Hn),Ht(!1),Cr=!1),J&&In!==Ar&&J(Ar,{source:Nr?"typing":"effect"}),Cr}},Jr=function(yn){!yn||!yn.trim()||J(yn,{source:"submit"})};o.useEffect(function(){!$n&&!It&&p!=="combobox"&&zn("",!1,!1)},[$n]),o.useEffect(function(){Bn&&P&&Pn(!1),P&&!Qt.current&&nn(!1)},[P]);var _r=Pt(),ua=(0,w.Z)(_r,2),Wn=ua[0],rr=ua[1],mn=function(yn){var Nr=Wn(),Br=yn.which;if(Br===de.Z.ENTER&&(p!=="combobox"&&yn.preventDefault(),$n||Ht(!0)),rr(!!In),Br===de.Z.BACKSPACE&&!Nr&&It&&!In&&v.length){for(var Cr=(0,pe.Z)(v),Ar=null,Kn=Cr.length-1;Kn>=0;Kn-=1){var Hn=Cr[Kn];if(!Hn.disabled){Cr.splice(Kn,1),Ar=Hn;break}}Ar&&m(Cr,{type:"remove",values:[Ar]})}for(var Yr=arguments.length,va=new Array(Yr>1?Yr-1:0),ya=1;ya1?Nr-1:0),Cr=1;Cr1?Kn-1:0),Yr=1;Yr=b},[c,b,$==null?void 0:$.size]),ne=function(ye){ye.preventDefault()},oe=function(ye){var Ke;(Ke=J.current)===null||Ke===void 0||Ke.scrollTo(typeof ye=="number"?{index:ye}:ye)},Q=function(ye){for(var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,je=z.length,Te=0;Te1&&arguments[1]!==void 0?arguments[1]:!1;He(ye);var je={source:Ke?"keyboard":"mouse"},Te=z[ye];if(!Te){p(null,-1,je);return}p(Te.value,ye,je)};(0,o.useEffect)(function(){ge(P!==!1?Q(0):-1)},[z.length,f]);var et=o.useCallback(function(De){return $.has(De)&&u!=="combobox"},[u,(0,pe.Z)($).toString(),$.size]);(0,o.useEffect)(function(){var De=setTimeout(function(){if(!c&&d&&$.size===1){var Ke=Array.from($)[0],je=z.findIndex(function(Te){var Ye=Te.data;return Ye.value===Ke});je!==-1&&(ge(je),oe(je))}});if(d){var ye;(ye=J.current)===null||ye===void 0||ye.scrollTo(void 0)}return function(){return clearTimeout(De)}},[d,f]);var Ue=function(ye){ye!==void 0&&E(ye,{selected:!$.has(ye)}),c||v(!1)};if(o.useImperativeHandle(r,function(){return{onKeyDown:function(ye){var Ke=ye.which,je=ye.ctrlKey;switch(Ke){case de.Z.N:case de.Z.P:case de.Z.UP:case de.Z.DOWN:{var Te=0;if(Ke===de.Z.UP?Te=-1:Ke===de.Z.DOWN?Te=1:Xn()&&je&&(Ke===de.Z.N?Te=1:Ke===de.Z.P&&(Te=-1)),Te!==0){var Ye=Q(xe+Te,Te);oe(Ye),ge(Ye,!0)}break}case de.Z.ENTER:{var qe,Zt=z[xe];Zt&&!(Zt!=null&&(qe=Zt.data)!==null&&qe!==void 0&&qe.disabled)&&!ae?Ue(Zt.value):Ue(void 0),d&&ye.preventDefault();break}case de.Z.ESC:v(!1),d&&ye.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ye){oe(ye)}}}),z.length===0)return o.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(B,"-empty"),onMouseDown:ne},m);var at=Object.keys(Z).map(function(De){return Z[De]}),vt=function(ye){return ye.label};function Ve(De,ye){var Ke=De.group;return{role:Ke?"presentation":"option",id:"".concat(l,"_list_").concat(ye)}}var ct=function(ye){var Ke=z[ye];if(!Ke)return null;var je=Ke.data||{},Te=je.value,Ye=Ke.group,qe=(0,Qe.Z)(je,!0),Zt=vt(Ke);return Ke?o.createElement("div",(0,Y.Z)({"aria-label":typeof Zt=="string"&&!Ye?Zt:null},qe,{key:ye},Ve(Ke,ye),{"aria-selected":et(Te)}),Te):null},ht={role:"listbox",id:"".concat(l,"_list")};return o.createElement(o.Fragment,null,N&&o.createElement("div",(0,Y.Z)({},ht,{style:{height:0,width:0,overflow:"hidden"}}),ct(xe-1),ct(xe),ct(xe+1)),o.createElement(tn.Z,{itemKey:"key",ref:J,data:z,height:K,itemHeight:U,fullHeight:!1,onMouseDown:ne,onScroll:g,virtual:N,direction:L,innerProps:N?null:ht},function(De,ye){var Ke=De.group,je=De.groupOption,Te=De.data,Ye=De.label,qe=De.value,Zt=Te.key;if(Ke){var It,Lt=(It=Te.title)!==null&&It!==void 0?It:ar(Ye)?Ye.toString():void 0;return o.createElement("div",{className:_()(B,"".concat(B,"-group"),Te.className),title:Lt},Ye!==void 0?Ye:Zt)}var Kt=Te.disabled,Yt=Te.title,en=Te.children,Cn=Te.style,Ot=Te.className,pn=(0,y.Z)(Te,tr),Bt=(0,ln.Z)(pn,at),ot=et(qe),Tt=Kt||!ot&&ae,_t="".concat(B,"-option"),Qt=_()(B,_t,Ot,(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(_t,"-grouped"),je),"".concat(_t,"-active"),xe===ye&&!Tt),"".concat(_t,"-disabled"),Tt),"".concat(_t,"-selected"),ot)),Sn=vt(De),hn=!O||typeof O=="function"||ot,Fn=typeof Sn=="number"?Sn:Sn||qe,nn=ar(Fn)?Fn.toString():void 0;return Yt!==void 0&&(nn=Yt),o.createElement("div",(0,Y.Z)({},(0,Qe.Z)(Bt),N?{}:Ve(De,ye),{"aria-selected":ot,className:Qt,title:nn,onMouseMove:function(){xe===ye||Tt||ge(ye)},onClick:function(){Tt||Ue(qe)},style:Cn}),o.createElement("div",{className:"".concat(_t,"-content")},typeof W=="function"?W(De,{index:ye}):Fn),o.isValidElement(O)||ot,hn&&o.createElement(Wt,{className:"".concat(B,"-option-state"),customizeIcon:O,customizeIconProps:{value:qe,disabled:Tt,isSelected:ot}},ot?"\u2713":null))}))},jn=o.forwardRef(An),Dn=jn,Un=function(e,t){var r=o.useRef({values:new Map,options:new Map}),n=o.useMemo(function(){var l=r.current,d=l.values,c=l.options,u=e.map(function(m){if(m.label===void 0){var g;return(0,s.Z)((0,s.Z)({},m),{},{label:(g=d.get(m.value))===null||g===void 0?void 0:g.label})}return m}),f=new Map,v=new Map;return u.forEach(function(m){f.set(m.value,m),v.set(m.value,t.get(m.value)||c.get(m.value))}),r.current.values=f,r.current.options=v,u},[e,t]),a=o.useCallback(function(l){return t.get(l)||r.current.options.get(l)},[t]);return[n,a]};function lr(e,t){return ut(e).join("").toUpperCase().includes(t)}var mr=function(e,t,r,n,a){return o.useMemo(function(){if(!r||n===!1)return e;var l=t.options,d=t.label,c=t.value,u=[],f=typeof n=="function",v=r.toUpperCase(),m=f?n:function(h,b){return a?lr(b[a],v):b[l]?lr(b[d!=="children"?d:"label"],v):lr(b[c],v)},g=f?function(h){return Re(h)}:function(h){return h};return e.forEach(function(h){if(h[l]){var b=m(r,g(h));if(b)u.push(h);else{var C=h[l].filter(function(p){return m(r,g(p))});C.length&&u.push((0,s.Z)((0,s.Z)({},h),{},(0,D.Z)({},l,C)))}return}m(r,g(h))&&u.push(h)}),u},[e,n,a,r,t])},_n=i(98924),Tn=0,Mn=(0,_n.Z)();function qn(){var e;return Mn?(e=Tn,Tn+=1):e="TEST_OR_SSR",e}function gn(e){var t=o.useState(),r=(0,w.Z)(t,2),n=r[0],a=r[1];return o.useEffect(function(){a("rc_select_".concat(qn()))},[]),e||n}var bn=i(50344),dr=["children","value"],ca=["children"];function ga(e){var t=e,r=t.key,n=t.props,a=n.children,l=n.value,d=(0,y.Z)(n,dr);return(0,s.Z)({key:r,value:l!==void 0?l:r,children:a},d)}function Tr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,bn.Z)(e).map(function(r,n){if(!o.isValidElement(r)||!r.type)return null;var a=r,l=a.type.isSelectOptGroup,d=a.key,c=a.props,u=c.children,f=(0,y.Z)(c,ca);return t||!l?ga(r):(0,s.Z)((0,s.Z)({key:"__RC_SELECT_GRP__".concat(d===null?n:d,"__"),label:d},f),{},{options:Tr(u)})}).filter(function(r){return r})}var cr=function(t,r,n,a,l){return o.useMemo(function(){var d=t,c=!t;c&&(d=Tr(r));var u=new Map,f=new Map,v=function(h,b,C){C&&typeof C=="string"&&h.set(b[C],b)},m=function g(h){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=0;C1&&arguments[1]!==void 0?arguments[1]:!1,d=0;d2&&arguments[2]!==void 0?arguments[2]:{},vn=qt.source,Vn=vn===void 0?"keyboard":vn;ta(sn),d&&n==="combobox"&&Ht!==null&&Vn==="keyboard"&&En(String(Ht))},[d,n]),xn=function(sn,qt,vn){var Vn=function(){var or,hr=pn(sn);return[fe?{label:hr==null?void 0:hr[Ve.label],value:sn,key:(or=hr==null?void 0:hr.key)!==null&&or!==void 0?or:sn}:sn,Re(hr)]};if(qt&&h){var zn=Vn(),Jr=(0,w.Z)(zn,2),_r=Jr[0],ua=Jr[1];h(_r,ua)}else if(!qt&&b&&vn!=="clear"){var Wn=Vn(),rr=(0,w.Z)(Wn,2),mn=rr[0],Yn=rr[1];b(mn,Yn)}},Bn=na(function(Ht,sn){var qt,vn=Ue?sn.selected:!0;vn?qt=Ue?[].concat((0,pe.Z)(Ot),[Ht]):[Ht]:qt=Ot.filter(function(Vn){return Vn.value!==Ht}),nn(qt),xn(Ht,vn),n==="combobox"?En(""):(!Nt||g)&&(ye(""),En(""))}),Pn=function(sn,qt){nn(sn);var vn=qt.type,Vn=qt.values;(vn==="remove"||vn==="clear")&&Vn.forEach(function(zn){xn(zn.value,!1,vn)})},$n=function(sn,qt){if(ye(sn),En(null),qt.source==="submit"){var vn=(sn||"").trim();if(vn){var Vn=Array.from(new Set([].concat((0,pe.Z)(ot),[vn])));nn(Vn),xn(vn,!0),ye("")}return}qt.source!=="blur"&&(n==="combobox"&&nn(sn),v==null||v(sn))},Ur=function(sn){var qt=sn;n!=="tags"&&(qt=sn.map(function(Vn){var zn=Te.get(Vn);return zn==null?void 0:zn.value}).filter(function(Vn){return Vn!==void 0}));var vn=Array.from(new Set([].concat((0,pe.Z)(ot),(0,pe.Z)(qt))));nn(vn),vn.forEach(function(Vn){xn(Vn,!0)})},Or=o.useMemo(function(){var Ht=W!==!1&&p!==!1;return(0,s.Z)((0,s.Z)({},Ke),{},{flattenOptions:Fn,onActiveValue:Ln,defaultActiveFirstOption:Qr,onSelect:Bn,menuItemSelectedIcon:U,rawValues:ot,fieldNames:Ve,virtual:Ht,direction:B,listHeight:J,listItemHeight:ne,childrenAsData:at,maxCount:He,optionRender:N})},[He,Ke,Fn,Ln,Qr,Bn,U,ot,Ve,W,p,B,J,ne,at,N]);return o.createElement(lt.Provider,{value:Or},o.createElement(zt,(0,Y.Z)({},ge,{id:et,prefixCls:l,ref:t,omitDomProps:on,mode:n,displayValues:Bt,onDisplayValuesChange:Pn,direction:B,searchValue:De,onSearch:$n,autoClearSearchValue:g,onSearchSplit:Ur,dropdownMatchSelectWidth:p,OptionList:Dn,emptyOptions:!Fn.length,activeValue:Gn,activeDescendantId:"".concat(et,"_list_").concat(Mr)})))}),kn=Nn;kn.Option=Vt,kn.OptGroup=dn;var er=null,br=null,Sr=i(66680),fr=o.createContext(null),Kr=fr,ur="__rc_cascader_search_mark__",Pr=function(t,r,n){var a=n.label;return r.some(function(l){return String(l[a]).toLowerCase().includes(t.toLowerCase())})},zr=function(t,r,n,a){return r.map(function(l){return l[a.label]}).join(" / ")},ra=function(e,t,r,n,a,l){var d=a.filter,c=d===void 0?Pr:d,u=a.render,f=u===void 0?zr:u,v=a.limit,m=v===void 0?50:v,g=a.sort;return o.useMemo(function(){var h=[];if(!e)return[];function b(C,p){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;C.forEach(function(E){if(!(!g&&m!==!1&&m>0&&h.length>=m)){var O=[].concat((0,pe.Z)(p),[E]),$=E[r.children],Z=P||E.disabled;if((!$||$.length===0||l)&&c(e,O,{label:r.label})){var N;h.push((0,s.Z)((0,s.Z)({},E),{},(N={disabled:Z},(0,D.Z)(N,r.label,f(e,O,n,r)),(0,D.Z)(N,ur,O),(0,D.Z)(N,r.children,void 0),N)))}$&&b(E[r.children],O,Z)}})}return b(t,[]),g&&h.sort(function(C,p){return g(C[ur],p[ur],e,r)}),m!==!1&&m>0?h.slice(0,m):h},[e,t,r,n,f,l,c,g,m])},Wr="__RC_CASCADER_SPLIT__",sr="SHOW_PARENT",wr="SHOW_CHILD";function gr(e){return e.join(Wr)}function Er(e){return e.map(gr)}function Gr(e){return e.split(Wr)}function oa(e){var t=e||{},r=t.label,n=t.value,a=t.children,l=n||"value";return{label:r||"label",value:l,key:l,children:a||"children"}}function aa(e,t){var r,n;return(r=e.isLeaf)!==null&&r!==void 0?r:!((n=e[t.children])!==null&&n!==void 0&&n.length)}function wa(e){var t=e.parentElement;if(t){var r=e.offsetTop-t.offsetTop;r-t.scrollTop<0?t.scrollTo({top:r}):r+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:r+e.offsetHeight-t.offsetHeight})}}function Ca(e,t){return e.map(function(r){var n;return(n=r[ur])===null||n===void 0?void 0:n.map(function(a){return a[t.value]})})}function ha(e){return Array.isArray(e)&&Array.isArray(e[0])}function Ea(e){return e?ha(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function ia(e,t,r){var n=new Set(e),a=t();return e.filter(function(l){var d=a[l],c=d?d.parent:null,u=d?d.children:null;return d&&d.node.disabled?!0:r===wr?!(u&&u.some(function(f){return f.key&&n.has(f.key)})):!(c&&!c.node.disabled&&n.has(c.key))})}function Zr(e,t,r){for(var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=t,l=[],d=function(){var f,v,m,g=e[c],h=(f=a)===null||f===void 0?void 0:f.findIndex(function(C){var p=C[r.value];return n?String(p)===String(g):p===g}),b=h!==-1?(v=a)===null||v===void 0?void 0:v[h]:null;l.push({value:(m=b==null?void 0:b[r.value])!==null&&m!==void 0?m:g,index:h,option:b}),a=b==null?void 0:b[r.children]},c=0;c1&&arguments[1]!==void 0?arguments[1]:"";(a||[]).forEach(function(d){var c=d[t.key],u=d[t.children];warning(c!=null,"Tree node must have a certain key: [".concat(l).concat(c,"]"));var f=String(c);warning(!r.has(f)||c===null||c===void 0,"Same 'key' exist in the Tree: ".concat(f)),r.set(f,!0),n(u,"".concat(l).concat(f," > "))})}n(e)}function Ua(e){function t(r){var n=toArray(r);return n.map(function(a){if(!Ra(a))return warning(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var l=a.key,d=a.props,c=d.children,u=_objectWithoutProperties(d,$r),f=_objectSpread({key:l},u),v=t(c);return v.length&&(f.children=v),f}).filter(function(a){return a})}return t(e)}function Ya(e,t,r){var n=$a(r),a=n._title,l=n.key,d=n.children,c=new Set(t===!0?[]:t),u=[];function f(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(g,h){for(var b=xa(m?m.pos:"0",h),C=Ma(g[l],b),p,P=0;P1&&arguments[1]!==void 0?arguments[1]:{},r=t.initWrapper,n=t.processEntity,a=t.onProcessFinished,l=t.externalGetKey,d=t.childrenPropName,c=t.fieldNames,u=arguments.length>2?arguments[2]:void 0,f=l||u,v={},m={},g={posEntities:v,keyEntities:m};return r&&(g=r(g)||g),Ga(e,function(h){var b=h.node,C=h.index,p=h.pos,P=h.key,E=h.parentPos,O=h.level,$=h.nodes,Z={node:b,nodes:$,index:C,key:P,pos:p,level:O},N=Ma(P,p);v[p]=Z,m[N]=Z,Z.parent=v[E],Z.parent&&(Z.parent.children=Z.parent.children||[],Z.parent.children.push(Z)),n&&n(Z,g)},{externalGetKey:f,childrenPropName:d,fieldNames:c}),a&&a(g),g}function Lr(e,t){var r=t.expandedKeys,n=t.selectedKeys,a=t.loadedKeys,l=t.loadingKeys,d=t.checkedKeys,c=t.halfCheckedKeys,u=t.dragOverNodeKey,f=t.dropPosition,v=t.keyEntities,m=getEntity(v,e),g={eventKey:e,expanded:r.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:l.indexOf(e)!==-1,checked:d.indexOf(e)!==-1,halfChecked:c.indexOf(e)!==-1,pos:String(m?m.pos:""),dragOver:u===e&&f===0,dragOverGapTop:u===e&&f===-1,dragOverGapBottom:u===e&&f===1};return g}function da(e){var t=e.data,r=e.expanded,n=e.selected,a=e.checked,l=e.loaded,d=e.loading,c=e.halfChecked,u=e.dragOver,f=e.dragOverGapTop,v=e.dragOverGapBottom,m=e.pos,g=e.active,h=e.eventKey,b=_objectSpread(_objectSpread({},t),{},{expanded:r,selected:n,checked:a,loaded:l,loading:d,halfChecked:c,dragOver:u,dragOverGapTop:f,dragOverGapBottom:v,pos:m,active:g,key:h});return"props"in b||Object.defineProperty(b,"props",{get:function(){return warning(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),b}var re=function(e,t){var r=o.useRef({options:null,info:null}),n=o.useCallback(function(){return r.current.options!==e&&(r.current.options=e,r.current.info=ba(e,{fieldNames:t,initWrapper:function(l){return(0,s.Z)((0,s.Z)({},l),{},{pathKeyEntities:{}})},processEntity:function(l,d){var c=l.nodes.map(function(u){return u[t.value]}).join(Wr);d.pathKeyEntities[c]=l,l.key=c}})),r.current.info.pathKeyEntities},[t,e]);return n};function Fe(e,t){var r=o.useMemo(function(){return t||[]},[t]),n=re(r,e),a=o.useCallback(function(l){var d=n();return l.map(function(c){var u=d[c].nodes;return u.map(function(f){return f[e.value]})})},[n,e]);return[r,n,a]}function gt(e){return o.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&(0,x.Z)(e)==="object"&&(t=(0,s.Z)((0,s.Z)({},t),e)),t.limit<=0&&delete t.limit,[!0,t]},[e])}function On(e,t){return e[t]}function pr(e,t){var r=new Set;return e.forEach(function(n){t.has(n)||r.add(n)}),r}function Rr(e){var t=e||{},r=t.disabled,n=t.disableCheckbox,a=t.checkable;return!!(r||n)||a===!1}function vr(e,t,r,n){for(var a=new Set(e),l=new Set,d=0;d<=r;d+=1){var c=t.get(d)||new Set;c.forEach(function(m){var g=m.key,h=m.node,b=m.children,C=b===void 0?[]:b;a.has(g)&&!n(h)&&C.filter(function(p){return!n(p.node)}).forEach(function(p){a.add(p.key)})})}for(var u=new Set,f=r;f>=0;f-=1){var v=t.get(f)||new Set;v.forEach(function(m){var g=m.parent,h=m.node;if(!(n(h)||!m.parent||u.has(m.parent.key))){if(n(m.parent.node)){u.add(g.key);return}var b=!0,C=!1;(g.children||[]).filter(function(p){return!n(p.node)}).forEach(function(p){var P=p.key,E=a.has(P);b&&!E&&(b=!1),!C&&(E||l.has(P))&&(C=!0)}),b&&a.add(g.key),C&&l.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(pr(l,a))}}function yr(e,t,r,n,a){for(var l=new Set(e),d=new Set(t),c=0;c<=n;c+=1){var u=r.get(c)||new Set;u.forEach(function(g){var h=g.key,b=g.node,C=g.children,p=C===void 0?[]:C;!l.has(h)&&!d.has(h)&&!a(b)&&p.filter(function(P){return!a(P.node)}).forEach(function(P){l.delete(P.key)})})}d=new Set;for(var f=new Set,v=n;v>=0;v-=1){var m=r.get(v)||new Set;m.forEach(function(g){var h=g.parent,b=g.node;if(!(a(b)||!g.parent||f.has(g.parent.key))){if(a(g.parent.node)){f.add(h.key);return}var C=!0,p=!1;(h.children||[]).filter(function(P){return!a(P.node)}).forEach(function(P){var E=P.key,O=l.has(E);C&&!O&&(C=!1),!p&&(O||d.has(E))&&(p=!0)}),C||l.delete(h.key),p&&d.add(h.key),f.add(h.key)}})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(pr(d,l))}}function ea(e,t,r,n){var a=[],l;n?l=n:l=Rr;var d=new Set(e.filter(function(v){var m=!!On(r,v);return m||a.push(v),m})),c=new Map,u=0;Object.keys(r).forEach(function(v){var m=r[v],g=m.level,h=c.get(g);h||(h=new Set,c.set(g,h)),h.add(m),u=Math.max(u,g)}),(0,Le.ZP)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(v){return"'".concat(v,"'")}).join(", ")));var f;return t===!0?f=vr(d,c,u,l):f=yr(d,t.halfCheckedKeys,c,u,l),f}function ma(e,t,r,n,a,l,d,c){return function(u){if(!e)t(u);else{var f=gr(u),v=Er(r),m=Er(n),g=v.includes(f),h=a.some(function(N){return gr(N)===f}),b=r,C=a;if(h&&!g)C=a.filter(function(N){return gr(N)!==f});else{var p=g?v.filter(function(N){return N!==f}):[].concat((0,pe.Z)(v),[f]),P=l(),E;if(g){var O=ea(p,{checked:!1,halfCheckedKeys:m},P);E=O.checkedKeys}else{var $=ea(p,!0,P);E=$.checkedKeys}var Z=ia(E,l,c);b=d(Z)}t([].concat((0,pe.Z)(C),(0,pe.Z)(b)))}}}function Ia(e,t,r,n,a){return o.useMemo(function(){var l=a(t),d=(0,w.Z)(l,2),c=d[0],u=d[1];if(!e||!t.length)return[c,[],u];var f=Er(c),v=r(),m=ea(f,!0,v),g=m.checkedKeys,h=m.halfCheckedKeys;return[n(g),n(h),u]},[e,t,r,n,a])}var io=o.memo(function(e){var t=e.children;return t},function(e,t){return!t.open}),uo=io;function So(e){var t,r=e.prefixCls,n=e.checked,a=e.halfChecked,l=e.disabled,d=e.onClick,c=e.disableCheckbox,u=o.useContext(Kr),f=u.checkable,v=typeof f!="boolean"?f:null;return o.createElement("span",{className:_()("".concat(r),(t={},(0,D.Z)(t,"".concat(r,"-checked"),n),(0,D.Z)(t,"".concat(r,"-indeterminate"),!n&&a),(0,D.Z)(t,"".concat(r,"-disabled"),l||c),t)),onClick:d},v)}var fo="__cascader_fix_label__";function Ki(e){var t=e.prefixCls,r=e.multiple,n=e.options,a=e.activeValue,l=e.prevValuePath,d=e.onToggleOpen,c=e.onSelect,u=e.onActive,f=e.checkedSet,v=e.halfCheckedSet,m=e.loadingKeys,g=e.isSelectable,h=e.searchValue,b="".concat(t,"-menu"),C="".concat(t,"-menu-item"),p=o.useContext(Kr),P=p.fieldNames,E=p.changeOnSelect,O=p.expandTrigger,$=p.expandIcon,Z=p.loadingIcon,N=p.dropdownMenuColumnStyle,L=p.optionRender,K=O==="hover",U=o.useMemo(function(){return n.map(function(W){var B,z=W.disabled,J=W.disableCheckbox,ae=W[ur],ne=(B=W[fo])!==null&&B!==void 0?B:W[P.label],oe=W[P.value],Q=aa(W,P),ee=ae?ae.map(function(et){return et[P.value]}):[].concat((0,pe.Z)(l),[oe]),fe=gr(ee),xe=m.includes(fe),He=f.has(fe),ge=v.has(fe);return{disabled:z,label:ne,value:oe,isLeaf:Q,isLoading:xe,checked:He,halfChecked:ge,option:W,disableCheckbox:J,fullPath:ee,fullPathKey:fe}})},[n,f,P,v,m,l]);return o.createElement("ul",{className:b,role:"menu"},U.map(function(W){var B,z=W.disabled,J=W.label,ae=W.value,ne=W.isLeaf,oe=W.isLoading,Q=W.checked,ee=W.halfChecked,fe=W.option,xe=W.fullPath,He=W.fullPathKey,ge=W.disableCheckbox,et=function(){if(!(z||h)){var Ve=(0,pe.Z)(xe);K&&ne&&Ve.pop(),u(Ve)}},Ue=function(){g(fe)&&c(xe,ne)},at;return typeof fe.title=="string"?at=fe.title:typeof J=="string"&&(at=J),o.createElement("li",{key:He,className:_()(C,(B={},(0,D.Z)(B,"".concat(C,"-expand"),!ne),(0,D.Z)(B,"".concat(C,"-active"),a===ae||a===He),(0,D.Z)(B,"".concat(C,"-disabled"),z),(0,D.Z)(B,"".concat(C,"-loading"),oe),B)),style:N,role:"menuitemcheckbox",title:at,"aria-checked":Q,"data-path-key":He,onClick:function(){et(),!ge&&(!r||ne)&&Ue()},onDoubleClick:function(){E&&d(!1)},onMouseEnter:function(){K&&et()},onMouseDown:function(Ve){Ve.preventDefault()}},r&&o.createElement(So,{prefixCls:"".concat(t,"-checkbox"),checked:Q,halfChecked:ee,disabled:z||ge,disableCheckbox:ge,onClick:function(Ve){ge||(Ve.stopPropagation(),Ue())}}),o.createElement("div",{className:"".concat(C,"-content")},L?L(fe):J),!oe&&$&&!ne&&o.createElement("div",{className:"".concat(C,"-expand-icon")},$),oe&&Z&&o.createElement("div",{className:"".concat(C,"-loading-icon")},Z))}))}var Ci=function(e,t){var r=o.useContext(Kr),n=r.values,a=n[0],l=o.useState([]),d=(0,w.Z)(l,2),c=d[0],u=d[1];return o.useEffect(function(){t&&!e&&u(a||[])},[t,a]),[c,u]},Qo=function(e,t,r,n,a,l,d){var c=d.direction,u=d.searchValue,f=d.toggleOpen,v=d.open,m=c==="rtl",g=o.useMemo(function(){for(var N=-1,L=t,K=[],U=[],W=n.length,B=Ca(t,r),z=function(Q){var ee=L.findIndex(function(fe,xe){return(B[xe]?gr(B[xe]):fe[r.value])===n[Q]});if(ee===-1)return 1;N=ee,K.push(N),U.push(n[Q]),L=L[N][r.children]},J=0;J1){var L=b.slice(0,-1);E(L)}else f(!1)},Z=function(){var L,K=((L=p[C])===null||L===void 0?void 0:L[r.children])||[],U=K.find(function(B){return!B.disabled});if(U){var W=[].concat((0,pe.Z)(b),[U[r.value]]);E(W)}};o.useImperativeHandle(e,function(){return{onKeyDown:function(L){var K=L.which;switch(K){case de.Z.UP:case de.Z.DOWN:{var U=0;K===de.Z.UP?U=-1:K===de.Z.DOWN&&(U=1),U!==0&&O(U);break}case de.Z.LEFT:{if(u)break;m?Z():$();break}case de.Z.RIGHT:{if(u)break;m?$():Z();break}case de.Z.BACKSPACE:{u||$();break}case de.Z.ENTER:{if(b.length){var W=p[C],B=(W==null?void 0:W[ur])||[];B.length?l(B.map(function(z){return z[r.value]}),B[B.length-1]):l(b,p[C])}break}case de.Z.ESC:f(!1),v&&L.stopPropagation()}},onKeyUp:function(){}}})},Gf=o.forwardRef(function(e,t){var r,n,a,l=e.prefixCls,d=e.multiple,c=e.searchValue,u=e.toggleOpen,f=e.notFoundContent,v=e.direction,m=e.open,g=o.useRef(),h=v==="rtl",b=o.useContext(Kr),C=b.options,p=b.values,P=b.halfValues,E=b.fieldNames,O=b.changeOnSelect,$=b.onSelect,Z=b.searchOptions,N=b.dropdownPrefixCls,L=b.loadData,K=b.expandTrigger,U=N||l,W=o.useState([]),B=(0,w.Z)(W,2),z=B[0],J=B[1],ae=function(je){if(!(!L||c)){var Te=Zr(je,C,E),Ye=Te.map(function(It){var Lt=It.option;return Lt}),qe=Ye[Ye.length-1];if(qe&&!aa(qe,E)){var Zt=gr(je);J(function(It){return[].concat((0,pe.Z)(It),[Zt])}),L(Ye)}}};o.useEffect(function(){z.length&&z.forEach(function(Ke){var je=Gr(Ke),Te=Zr(je,C,E,!0).map(function(qe){var Zt=qe.option;return Zt}),Ye=Te[Te.length-1];(!Ye||Ye[E.children]||aa(Ye,E))&&J(function(qe){return qe.filter(function(Zt){return Zt!==Ke})})})},[C,z,E]);var ne=o.useMemo(function(){return new Set(Er(p))},[p]),oe=o.useMemo(function(){return new Set(Er(P))},[P]),Q=Ci(d,m),ee=(0,w.Z)(Q,2),fe=ee[0],xe=ee[1],He=function(je){xe(je),ae(je)},ge=function(je){var Te=je.disabled,Ye=aa(je,E);return!Te&&(Ye||O||d)},et=function(je,Te){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;$(je),!d&&(Te||O&&(K==="hover"||Ye))&&u(!1)},Ue=o.useMemo(function(){return c?Z:C},[c,Z,C]),at=o.useMemo(function(){for(var Ke=[{options:Ue}],je=Ue,Te=Ca(je,E),Ye=function(){var It=fe[qe],Lt=je.find(function(Yt,en){return(Te[en]?gr(Te[en]):Yt[E.value])===It}),Kt=Lt==null?void 0:Lt[E.children];if(!(Kt!=null&&Kt.length))return 1;je=Kt,Ke.push({options:Kt})},qe=0;qe":P,O=r.loadingIcon,$=r.direction,Z=r.notFoundContent,N=Z===void 0?"Not Found":Z,L=!!u,K=(0,Xr.C8)(f,{value:v,postState:Ea}),U=(0,w.Z)(K,2),W=U[0],B=U[1],z=o.useMemo(function(){return oa(m)},[JSON.stringify(m)]),J=Fe(z,c),ae=(0,w.Z)(J,3),ne=ae[0],oe=ae[1],Q=ae[2],ee=la(ne,z),fe=Ia(L,W,oe,Q,ee),xe=(0,w.Z)(fe,3),He=xe[0],ge=xe[1],et=xe[2],Ue=(0,Xr.zX)(function(De){if(B(De),h){var ye=Ea(De),Ke=ye.map(function(Ye){return Zr(Ye,ne,z).map(function(qe){return qe.option})}),je=L?ye:ye[0],Te=L?Ke:Ke[0];h(je,Te)}}),at=ma(L,Ue,He,ge,et,oe,Q,b),vt=(0,Xr.zX)(function(De){at(De)}),Ve=o.useMemo(function(){return{options:ne,fieldNames:z,values:He,halfValues:ge,changeOnSelect:g,onSelect:vt,checkable:u,searchOptions:[],dropdownPrefixCls:null,loadData:C,expandTrigger:p,expandIcon:E,loadingIcon:O,dropdownMenuColumnStyle:null}},[ne,z,He,ge,g,vt,u,C,p,E,O]),ct="".concat(a,"-panel"),ht=!ne.length;return o.createElement(Kr.Provider,{value:Ve},o.createElement("div",{className:_()(ct,(t={},(0,D.Z)(t,"".concat(ct,"-rtl"),$==="rtl"),(0,D.Z)(t,"".concat(ct,"-empty"),ht),t),d),style:l},ht?N:o.createElement(Gs,{prefixCls:a,searchValue:null,multiple:L,toggleOpen:Jf,open:!0,direction:$})))}function mw(e){var t=e.onPopupVisibleChange,r=e.popupVisible,n=e.popupClassName,a=e.popupPlacement;warning(!t,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(r===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(n===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(a===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function gw(e,t){if(e){var r=function n(a){for(var l=0;l":ne,Q=e.loadingIcon,ee=e.children,fe=e.dropdownMatchSelectWidth,xe=fe===void 0?!1:fe,He=e.showCheckedStrategy,ge=He===void 0?sr:He,et=e.optionRender,Ue=(0,y.Z)(e,_f),at=gn(r),vt=!!m,Ve=(0,se.Z)(d,{value:c,postState:Ea}),ct=(0,w.Z)(Ve,2),ht=ct[0],De=ct[1],ye=o.useMemo(function(){return oa(l)},[JSON.stringify(l)]),Ke=Fe(ye,E),je=(0,w.Z)(Ke,3),Te=je[0],Ye=je[1],qe=je[2],Zt=(0,se.Z)("",{value:b,postState:function(Pn){return Pn||""}}),It=(0,w.Z)(Zt,2),Lt=It[0],Kt=It[1],Yt=function(Pn,$n){Kt(Pn),$n.source!=="blur"&&C&&C(Pn)},en=gt(p),Cn=(0,w.Z)(en,2),Ot=Cn[0],pn=Cn[1],Bt=ra(Lt,Te,ye,O||a,pn,u),ot=la(Te,ye),Tt=Ia(vt,ht,Ye,qe,ot),_t=(0,w.Z)(Tt,3),Qt=_t[0],Sn=_t[1],hn=_t[2],Fn=o.useMemo(function(){var Bn=Er(Qt),Pn=ia(Bn,Ye,ge);return[].concat((0,pe.Z)(hn),(0,pe.Z)(qe(Pn)))},[Qt,Ye,qe,hn,ge]),nn=pa(Fn,Te,ye,vt,v),rn=(0,Sr.Z)(function(Bn){if(De(Bn),f){var Pn=Ea(Bn),$n=Pn.map(function(Ht){return Zr(Ht,Te,ye).map(function(sn){return sn.option})}),Ur=vt?Pn:Pn[0],Or=vt?$n:$n[0];f(Ur,Or)}}),In=ma(vt,rn,Qt,Sn,hn,Ye,qe,ge),Gn=(0,Sr.Z)(function(Bn){(!vt||h)&&Kt(""),In(Bn)}),En=function(Pn,$n){if($n.type==="clear"){rn([]);return}var Ur=$n.values[0],Or=Ur.valueCells;Gn(Or)},kr=N!==void 0?N:Z,Fr=K||L,Mr=z||B,ta=function(Pn){J==null||J(Pn),ae==null||ae(Pn)},Qr=o.useMemo(function(){return{options:Te,fieldNames:ye,values:Qt,halfValues:Sn,changeOnSelect:u,onSelect:Gn,checkable:m,searchOptions:Bt,dropdownPrefixCls:O,loadData:$,expandTrigger:P,expandIcon:oe,loadingIcon:Q,dropdownMenuColumnStyle:U,optionRender:et}},[Te,ye,Qt,Sn,u,Gn,m,Bt,O,$,P,oe,Q,U,et]),Ln=!(Lt?Bt:Te).length,xn=Lt&&pn.matchInputWidth||Ln?{}:{minWidth:"auto"};return o.createElement(Kr.Provider,{value:Qr},o.createElement(zt,(0,Y.Z)({},Ue,{ref:t,id:at,prefixCls:a,autoClearSearchValue:h,dropdownMatchSelectWidth:xe,dropdownStyle:(0,s.Z)((0,s.Z)({},xn),W),displayValues:nn,onDisplayValuesChange:En,mode:vt?"multiple":void 0,searchValue:Lt,onSearch:Yt,showSearch:Ot,OptionList:Qf,emptyOptions:Ln,open:kr,dropdownClassName:Fr,placement:Mr,onDropdownVisibleChange:ta,getRawInputElement:function(){return ee}})))});zi.SHOW_PARENT=sr,zi.SHOW_CHILD=wr,zi.Panel=Xs;var qf=zi,Qs=qf,Jo=i(87263),vo=i(33603),_o=i(8745),_a=i(9708),Ba=i(53124),Ol=i(88258),$o=i(98866),eo=i(35792),Po=i(98675),mo=i(65223),xi=i(27833),Js=i(30307),_s=i(15030),Zl=i(43277),qs=i(78642),go=i(4173);function ec(e,t){const{getPrefixCls:r,direction:n,renderEmpty:a}=o.useContext(Ba.E_),l=t||n,d=r("select",e),c=r("cascader",e);return[d,c,l,a]}function tc(e,t){return o.useMemo(()=>t?o.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}var nc=i(62946),ev=i(19267),Rl=i(62994);function rc(e,t,r){let n=r;r||(n=t?o.createElement(nc.Z,null):o.createElement(Rl.Z,null));const a=o.createElement("span",{className:`${e}-menu-item-loading-icon`},o.createElement(ev.Z,{spin:!0}));return[n,a]}var Ml=i(80110),to=i(91945),fn=i(87107),ac=i(63185),ka=i(14747),oc=e=>{const{prefixCls:t,componentCls:r}=e,n=`${r}-menu-item`,a=` - &${n}-expand ${n}-expand-icon, - ${n}-loading-icon -`;return[(0,ac.C2)(`${t}-checkbox`,e),{[r]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${r}-menu-empty`]:{[`${r}-menu`]:{width:"100%",height:"auto",[n]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,fn.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},ka.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[a]:{color:e.colorTextDisabled}},[`&-active:not(${n}-disabled)`]:{["&, &:hover"]:{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[a]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]};const tv=e=>{const{componentCls:t,antCls:r}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${r}-select-dropdown`]:{padding:0}},oc(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},(0,Ml.c)(e)]},ic=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}};var lc=(0,to.I$)("Cascader",e=>[tv(e)],ic);const nv=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[oc(e),{display:"inline-flex",border:`${(0,fn.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}};var rv=(0,to.ZP)(["Cascader","Panel"],e=>nv(e),ic),av=e=>{const{prefixCls:t,className:r,multiple:n,rootClassName:a,notFoundContent:l,direction:d,expandIcon:c}=e,[u,f,v,m]=ec(t,d),g=(0,eo.Z)(f),[h,b,C]=lc(f,g);rv(f);const p=v==="rtl",[P,E]=rc(u,p,c),O=l||(m==null?void 0:m("Cascader"))||o.createElement(Ol.Z,{componentName:"Cascader"}),$=tc(f,n);return h(o.createElement(Xs,Object.assign({},e,{checkable:$,prefixCls:f,className:_()(r,b,a,C,g),notFoundContent:O,direction:v,expandIcon:P,loadingIcon:E})))},ov=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);au===0?[c]:[].concat((0,pe.Z)(d),[t,c]),[]),a=[];let l=0;return n.forEach((d,c)=>{const u=l+d.length;let f=e.slice(l,u);l=u,c%2===1&&(f=o.createElement("span",{className:`${r}-menu-item-keyword`,key:`separator-${c}`},f)),a.push(f)}),a}const cv=(e,t,r,n)=>{const a=[],l=e.toLowerCase();return t.forEach((d,c)=>{c!==0&&a.push(" / ");let u=d[n.label];const f=typeof u;(f==="string"||f==="number")&&(u=sv(String(u),l,r)),a.push(u)}),a},qo=o.forwardRef((e,t)=>{var r;const{prefixCls:n,size:a,disabled:l,className:d,rootClassName:c,multiple:u,bordered:f=!0,transitionName:v,choiceTransitionName:m="",popupClassName:g,dropdownClassName:h,expandIcon:b,placement:C,showSearch:p,allowClear:P=!0,notFoundContent:E,direction:O,getPopupContainer:$,status:Z,showArrow:N,builtinPlacements:L,style:K,variant:U}=e,W=ov(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),B=(0,ln.Z)(W,["suffixIcon"]),{getPopupContainer:z,getPrefixCls:J,popupOverflow:ae,cascader:ne}=o.useContext(Ba.E_),{status:oe,hasFeedback:Q,isFormItemInput:ee,feedbackIcon:fe}=o.useContext(mo.aM),xe=(0,_a.F)(oe,Z),[He,ge,et,Ue]=ec(n,O),at=et==="rtl",vt=J(),Ve=(0,eo.Z)(He),[ct,ht,De]=(0,_s.Z)(He,Ve),ye=(0,eo.Z)(ge),[Ke]=lc(ge,ye),{compactSize:je,compactItemClassnames:Te}=(0,go.ri)(He,O),[Ye,qe]=(0,xi.Z)(U,f),Zt=E||(Ue==null?void 0:Ue("Cascader"))||o.createElement(Ol.Z,{componentName:"Cascader"}),It=_()(g||h,`${ge}-dropdown`,{[`${ge}-dropdown-rtl`]:et==="rtl"},c,Ve,ye,ht,De),Lt=o.useMemo(()=>{if(!p)return p;let nn={render:cv};return typeof p=="object"&&(nn=Object.assign(Object.assign({},nn),p)),nn},[p]),Kt=(0,Po.Z)(nn=>{var rn;return(rn=a!=null?a:je)!==null&&rn!==void 0?rn:nn}),Yt=o.useContext($o.Z),en=l!=null?l:Yt,[Cn,Ot]=rc(He,at,b),pn=tc(ge,u),Bt=(0,qs.Z)(e.suffixIcon,N),{suffixIcon:ot,removeIcon:Tt,clearIcon:_t}=(0,Zl.Z)(Object.assign(Object.assign({},e),{hasFeedback:Q,feedbackIcon:fe,showSuffixIcon:Bt,multiple:u,prefixCls:He,componentName:"Cascader"})),Qt=o.useMemo(()=>C!==void 0?C:at?"bottomRight":"bottomLeft",[C,at]),Sn=P===!0?{clearIcon:_t}:P,[hn]=(0,Jo.Cn)("SelectLike",(r=B.dropdownStyle)===null||r===void 0?void 0:r.zIndex),Fn=o.createElement(Qs,Object.assign({prefixCls:He,className:_()(!n&&ge,{[`${He}-lg`]:Kt==="large",[`${He}-sm`]:Kt==="small",[`${He}-rtl`]:at,[`${He}-${Ye}`]:qe,[`${He}-in-form-item`]:ee},(0,_a.Z)(He,xe,Q),Te,ne==null?void 0:ne.className,d,c,Ve,ye,ht,De),disabled:en,style:Object.assign(Object.assign({},ne==null?void 0:ne.style),K)},B,{builtinPlacements:(0,Js.Z)(L,ae),direction:et,placement:Qt,notFoundContent:Zt,allowClear:Sn,showSearch:Lt,expandIcon:Cn,suffixIcon:ot,removeIcon:Tt,loadingIcon:Ot,checkable:pn,dropdownClassName:It,dropdownPrefixCls:n||ge,dropdownStyle:Object.assign(Object.assign({},B.dropdownStyle),{zIndex:hn}),choiceTransitionName:(0,vo.m)(vt,"",m),transitionName:(0,vo.m)(vt,"slide-up",v),getPopupContainer:$||z,ref:t}));return Ke(ct(Fn))}),uv=(0,_o.Z)(qo);qo.SHOW_PARENT=lv,qo.SHOW_CHILD=iv,qo.Panel=av,qo._InternalPanelDoNotUseOrYouWillBeFired=uv;var dv=qo,ei=i(53439),Be=i(85893),fv=["radioType","renderFormItem","mode","render","label","light"],vv=function(t,r){var n,a=t.radioType,l=t.renderFormItem,d=t.mode,c=t.render,u=t.label,f=t.light,v=(0,y.Z)(t,fv),m=(0,o.useContext)(ft.ZP.ConfigContext),g=m.getPrefixCls,h=g("pro-field-cascader"),b=(0,ei.aK)(v),C=(0,w.Z)(b,3),p=C[0],P=C[1],E=C[2],O=(0,I.YB)(),$=(0,o.useRef)(),Z=(0,o.useState)(!1),N=(0,w.Z)(Z,2),L=N[0],K=N[1];(0,o.useImperativeHandle)(r,function(){return(0,s.Z)((0,s.Z)({},$.current||{}),{},{fetchData:function(He){return E(He)}})},[E]);var U=(0,o.useMemo)(function(){var xe;if(d==="read"){var He=((xe=v.fieldProps)===null||xe===void 0?void 0:xe.fieldNames)||{},ge=He.value,et=ge===void 0?"value":ge,Ue=He.label,at=Ue===void 0?"label":Ue,vt=He.children,Ve=vt===void 0?"children":vt,ct=new Map,ht=function De(ye){if(!(ye!=null&&ye.length))return ct;for(var Ke=ye.length,je=0;je=1?1:p,a:P.a})},dc=function(t,r,n,a){var l=t.current.getBoundingClientRect(),d=l.width,c=l.height,u=r.current.getBoundingClientRect(),f=u.width,v=u.height,m=f/2,g=v/2,h=n.toHsb();if(!(f===0&&v===0||f!==v)){if(a)switch(a){case"hue":return{x:h.h/360*d-m,y:-g/3};case"alpha":return{x:h.a/1*d-m,y:-g/3}}return{x:h.s*d-m,y:(1-h.b)*c-g}}},Rv=function(t){var r=t.color,n=t.prefixCls,a=t.className,l=t.style,d=t.onClick,c="".concat(n,"-color-block");return o.createElement("div",{className:_()(c,a),style:l,onClick:d},o.createElement("div",{className:"".concat(c,"-inner"),style:{background:r}}))},Fl=Rv;function Mv(e){var t="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-r,pageY:t.pageY-n}}function Nv(e){var t=e.offset,r=e.targetRef,n=e.containerRef,a=e.direction,l=e.onDragChange,d=e.onDragChangeComplete,c=e.calculate,u=e.color,f=e.disabledDrag,v=(0,o.useState)(t||{x:0,y:0}),m=(0,w.Z)(v,2),g=m[0],h=m[1],b=(0,o.useRef)(null),C=(0,o.useRef)(null),p=(0,o.useRef)({flag:!1});(0,o.useEffect)(function(){if(p.current.flag===!1){var Z=c==null?void 0:c(n);Z&&h(Z)}},[u,n]),(0,o.useEffect)(function(){return function(){document.removeEventListener("mousemove",b.current),document.removeEventListener("mouseup",C.current),document.removeEventListener("touchmove",b.current),document.removeEventListener("touchend",C.current),b.current=null,C.current=null}},[]);var P=function(N){var L=Mv(N),K=L.pageX,U=L.pageY,W=n.current.getBoundingClientRect(),B=W.x,z=W.y,J=W.width,ae=W.height,ne=r.current.getBoundingClientRect(),oe=ne.width,Q=ne.height,ee=oe/2,fe=Q/2,xe=Math.max(0,Math.min(K-B,J))-ee,He=Math.max(0,Math.min(U-z,ae))-fe,ge={x:xe,y:a==="x"?g.y:He};if(oe===0&&Q===0||oe!==Q)return!1;h(ge),l==null||l(ge)},E=function(N){N.preventDefault(),P(N)},O=function(N){N.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",b.current),document.removeEventListener("mouseup",C.current),document.removeEventListener("touchmove",b.current),document.removeEventListener("touchend",C.current),b.current=null,C.current=null,d==null||d()},$=function(N){document.removeEventListener("mousemove",b.current),document.removeEventListener("mouseup",C.current),!f&&(P(N),p.current.flag=!0,document.addEventListener("mousemove",E),document.addEventListener("mouseup",O),document.addEventListener("touchmove",E),document.addEventListener("touchend",O),b.current=E,C.current=O)};return[g,$]}var fc=Nv,$v=function(t){var r=t.size,n=r===void 0?"default":r,a=t.color,l=t.prefixCls;return o.createElement("div",{className:_()("".concat(l,"-handler"),(0,D.Z)({},"".concat(l,"-handler-sm"),n==="small")),style:{backgroundColor:a}})},vc=$v,Dv=function(t){var r=t.children,n=t.style,a=t.prefixCls;return o.createElement("div",{className:"".concat(a,"-palette"),style:(0,s.Z)({position:"relative"},n)},r)},mc=Dv,Tv=(0,o.forwardRef)(function(e,t){var r=e.children,n=e.offset;return o.createElement("div",{ref:t,style:{position:"absolute",left:n.x,top:n.y,zIndex:1}},r)}),gc=Tv,Fv=function(t){var r=t.color,n=t.onChange,a=t.prefixCls,l=t.onChangeComplete,d=t.disabled,c=(0,o.useRef)(),u=(0,o.useRef)(),f=(0,o.useRef)(r),v=(0,Xr.zX)(function(C){var p=uc({offset:C,targetRef:u,containerRef:c,color:r});f.current=p,n(p)}),m=fc({color:r,containerRef:c,targetRef:u,calculate:function(p){return dc(p,u,r)},onDragChange:v,onDragChangeComplete:function(){return l==null?void 0:l(f.current)},disabledDrag:d}),g=(0,w.Z)(m,2),h=g[0],b=g[1];return o.createElement("div",{ref:c,className:"".concat(a,"-select"),onMouseDown:b,onTouchStart:b},o.createElement(mc,{prefixCls:a},o.createElement(gc,{offset:h,ref:u},o.createElement(vc,{color:r.toRgbString(),prefixCls:a})),o.createElement("div",{className:"".concat(a,"-saturation"),style:{backgroundColor:"hsl(".concat(r.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Av=Fv,jv=function(t){var r=t.colors,n=t.children,a=t.direction,l=a===void 0?"to right":a,d=t.type,c=t.prefixCls,u=(0,o.useMemo)(function(){return r.map(function(f,v){var m=wo(f);return d==="alpha"&&v===r.length-1&&m.setAlpha(1),m.toRgbString()}).join(",")},[r,d]);return o.createElement("div",{className:"".concat(c,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(l,", ").concat(u,")")}},n)},Lv=jv,kv=function(t){var r=t.gradientColors,n=t.direction,a=t.type,l=a===void 0?"hue":a,d=t.color,c=t.value,u=t.onChange,f=t.onChangeComplete,v=t.disabled,m=t.prefixCls,g=(0,o.useRef)(),h=(0,o.useRef)(),b=(0,o.useRef)(d),C=(0,Xr.zX)(function($){var Z=uc({offset:$,targetRef:h,containerRef:g,color:d,type:l});b.current=Z,u(Z)}),p=fc({color:d,targetRef:h,containerRef:g,calculate:function(Z){return dc(Z,h,d,l)},onDragChange:C,onDragChangeComplete:function(){f==null||f(b.current,l)},direction:"x",disabledDrag:v}),P=(0,w.Z)(p,2),E=P[0],O=P[1];return o.createElement("div",{ref:g,className:_()("".concat(m,"-slider"),"".concat(m,"-slider-").concat(l)),onMouseDown:O,onTouchStart:O},o.createElement(mc,{prefixCls:m},o.createElement(gc,{offset:E,ref:h},o.createElement(vc,{size:"small",color:c,prefixCls:m})),o.createElement(Lv,{colors:r,direction:n,type:l,prefixCls:m})))},hc=kv;function pc(e){return e!==void 0}var Vv=function(t,r){var n=r.defaultValue,a=r.value,l=(0,o.useState)(function(){var f;return pc(a)?f=a:pc(n)?f=n:f=t,wo(f)}),d=(0,w.Z)(l,2),c=d[0],u=d[1];return(0,o.useEffect)(function(){a&&u(wo(a))},[a]),[c,u]},Bv=Vv,Hv=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],Kv=(0,o.forwardRef)(function(e,t){var r=e.value,n=e.defaultValue,a=e.prefixCls,l=a===void 0?Ov:a,d=e.onChange,c=e.onChangeComplete,u=e.className,f=e.style,v=e.panelRender,m=e.disabledAlpha,g=m===void 0?!1:m,h=e.disabled,b=h===void 0?!1:h,C=Bv(Zv,{value:r,defaultValue:n}),p=(0,w.Z)(C,2),P=p[0],E=p[1],O=(0,o.useMemo)(function(){var K=wo(P.toRgbString());return K.setAlpha(1),K.toRgbString()},[P]),$=_()("".concat(l,"-panel"),u,(0,D.Z)({},"".concat(l,"-panel-disabled"),b)),Z={prefixCls:l,onChangeComplete:c,disabled:b},N=function(U,W){r||E(U),d==null||d(U,W)},L=o.createElement(o.Fragment,null,o.createElement(Av,(0,Y.Z)({color:P,onChange:N},Z)),o.createElement("div",{className:"".concat(l,"-slider-container")},o.createElement("div",{className:_()("".concat(l,"-slider-group"),(0,D.Z)({},"".concat(l,"-slider-group-disabled-alpha"),g))},o.createElement(hc,(0,Y.Z)({gradientColors:Hv,color:P,value:"hsl(".concat(P.toHsb().h,",100%, 50%)"),onChange:function(U){return N(U,"hue")}},Z)),!g&&o.createElement(hc,(0,Y.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",O],color:P,value:P.toRgbString(),onChange:function(U){return N(U,"alpha")}},Z))),o.createElement(Fl,{color:P.toRgbString(),prefixCls:l})));return o.createElement("div",{className:$,style:f,ref:t},typeof v=="function"?v(L):L)}),zv=Kv;const bc=o.createContext({}),yc=o.createContext({}),{Provider:Wv}=bc,{Provider:Uv}=yc,Yi=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",Yv=(e,t)=>e?Yi(e,t):"";let Cc=function(){function e(t){(0,Do.Z)(this,e),this.metaColor=new Ui(t),t||this.metaColor.setAlpha(0)}return(0,To.Z)(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Yv(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),e}();const Fa=e=>e instanceof Cc?e:new Cc(e),Gi=e=>Math.round(Number(e||0)),Xi=e=>Gi(e.toHsb().a*100),Al=(e,t)=>{const r=e.toHsb();return r.a=t||1,Fa(r)};var xc=e=>{let{prefixCls:t,value:r,colorCleared:n,onChange:a}=e;const l=()=>{if(r&&!n){const d=r.toHsb();d.a=0;const c=Fa(d);a==null||a(c)}};return o.createElement("div",{className:`${t}-clear`,onClick:l})},Gv=i(83863),po;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(po||(po={}));var Xv=i(13622),Qv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Jv=Qv,lo=i(93771),_v=function(t,r){return o.createElement(lo.Z,(0,Y.Z)({},t,{ref:r,icon:Jv}))},qv=o.forwardRef(_v),em=qv;function jl(){return typeof BigInt=="function"}function Sc(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Fo(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",a=n.split("."),l=a[0]||"0",d=a[1]||"0";l==="0"&&d==="0"&&(r=!1);var c=r?"-":"";return{negative:r,negativeStr:c,trimStr:n,integerStr:l,decimalStr:d,fullStr:"".concat(c).concat(n)}}function Ll(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Ao(e){var t=String(e);if(Ll(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&kl(t)?t.length-t.indexOf(".")-1:0}function Qi(e){var t=String(e);if(Ll(e)){if(e>Number.MAX_SAFE_INTEGER)return String(jl()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Fo("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),nm=function(){function e(t){if((0,Do.Z)(this,e),(0,D.Z)(this,"origin",""),(0,D.Z)(this,"number",void 0),(0,D.Z)(this,"empty",void 0),Sc(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return(0,To.Z)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var a=this.number+n;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Qi(this.number):this.origin}}]),e}();function Pc(e){return jl()?new tm(e):new nm(e)}function Ji(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Fo(e),l=a.negativeStr,d=a.integerStr,c=a.decimalStr,u="".concat(t).concat(c),f="".concat(l).concat(d);if(r>=0){var v=Number(c[r]);if(v>=5&&!n){var m=Pc(e).add("".concat(l,"0.").concat("0".repeat(r)).concat(10-v));return Ji(m.toString(),t,r,n)}return r===0?f:"".concat(f).concat(t).concat(c.padEnd(r,"0").slice(0,r))}return u===".0"?f:"".concat(f).concat(u)}var so=Pc,rm=i(67656);function am(e,t){var r=(0,o.useRef)(null);function n(){try{var l=e.selectionStart,d=e.selectionEnd,c=e.value,u=c.substring(0,l),f=c.substring(d);r.current={start:l,end:d,value:c,beforeTxt:u,afterTxt:f}}catch(v){}}function a(){if(e&&r.current&&t)try{var l=e.value,d=r.current,c=d.beforeTxt,u=d.afterTxt,f=d.start,v=l.length;if(l.endsWith(u))v=l.length-r.current.afterTxt.length;else if(l.startsWith(c))v=c.length;else{var m=c[f-1],g=l.indexOf(m,f-1);g!==-1&&(v=g+1)}e.setSelectionRange(v,v)}catch(h){(0,Le.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[n,a]}var om=function(){var t=(0,o.useState)(!1),r=(0,w.Z)(t,2),n=r[0],a=r[1];return(0,Ge.Z)(function(){a((0,Rt.Z)())},[]),n},im=om,Aa=i(75164),lm=200,sm=600;function cm(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,a=e.upDisabled,l=e.downDisabled,d=e.onStep,c=o.useRef(),u=o.useRef([]),f=o.useRef();f.current=d;var v=function(){clearTimeout(c.current)},m=function(O,$){O.preventDefault(),v(),f.current($);function Z(){f.current($),c.current=setTimeout(Z,lm)}c.current=setTimeout(Z,sm)};o.useEffect(function(){return function(){v(),u.current.forEach(function(E){return Aa.Z.cancel(E)})}},[]);var g=im();if(g)return null;var h="".concat(t,"-handler"),b=_()(h,"".concat(h,"-up"),(0,D.Z)({},"".concat(h,"-up-disabled"),a)),C=_()(h,"".concat(h,"-down"),(0,D.Z)({},"".concat(h,"-down-disabled"),l)),p=function(){return u.current.push((0,Aa.Z)(v))},P={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return o.createElement("div",{className:"".concat(h,"-wrap")},o.createElement("span",(0,Y.Z)({},P,{onMouseDown:function(O){m(O,!0)},"aria-label":"Increase Value","aria-disabled":a,className:b}),r||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),o.createElement("span",(0,Y.Z)({},P,{onMouseDown:function(O){m(O,!1)},"aria-label":"Decrease Value","aria-disabled":l,className:C}),n||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function wc(e){var t=typeof e=="number"?Qi(e):Fo(e).fullStr,r=t.includes(".");return r?Fo(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var um=i(87887),dm=function(){var e=(0,o.useRef)(0),t=function(){Aa.Z.cancel(e.current)};return(0,o.useEffect)(function(){return t},[]),function(r){t(),e.current=(0,Aa.Z)(function(){r()})}},fm=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],vm=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Ec=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},Ic=function(t){var r=so(t);return r.isInvalidate()?null:r},mm=o.forwardRef(function(e,t){var r,n=e.prefixCls,a=n===void 0?"rc-input-number":n,l=e.className,d=e.style,c=e.min,u=e.max,f=e.step,v=f===void 0?1:f,m=e.defaultValue,g=e.value,h=e.disabled,b=e.readOnly,C=e.upHandler,p=e.downHandler,P=e.keyboard,E=e.changeOnWheel,O=E===void 0?!1:E,$=e.controls,Z=$===void 0?!0:$,N=e.classNames,L=e.stringMode,K=e.parser,U=e.formatter,W=e.precision,B=e.decimalSeparator,z=e.onChange,J=e.onInput,ae=e.onPressEnter,ne=e.onStep,oe=e.changeOnBlur,Q=oe===void 0?!0:oe,ee=(0,y.Z)(e,fm),fe="".concat(a,"-input"),xe=o.useRef(null),He=o.useState(!1),ge=(0,w.Z)(He,2),et=ge[0],Ue=ge[1],at=o.useRef(!1),vt=o.useRef(!1),Ve=o.useRef(!1),ct=o.useState(function(){return so(g!=null?g:m)}),ht=(0,w.Z)(ct,2),De=ht[0],ye=ht[1];function Ke(Ln){g===void 0&&ye(Ln)}var je=o.useCallback(function(Ln,xn){if(!xn)return W>=0?W:Math.max(Ao(Ln),Ao(v))},[W,v]),Te=o.useCallback(function(Ln){var xn=String(Ln);if(K)return K(xn);var Bn=xn;return B&&(Bn=Bn.replace(B,".")),Bn.replace(/[^\w.-]+/g,"")},[K,B]),Ye=o.useRef(""),qe=o.useCallback(function(Ln,xn){if(U)return U(Ln,{userTyping:xn,input:String(Ye.current)});var Bn=typeof Ln=="number"?Qi(Ln):Ln;if(!xn){var Pn=je(Bn,xn);if(kl(Bn)&&(B||Pn>=0)){var $n=B||".";Bn=Ji(Bn,$n,Pn)}}return Bn},[U,je,B]),Zt=o.useState(function(){var Ln=m!=null?m:g;return De.isInvalidate()&&["string","number"].includes((0,x.Z)(Ln))?Number.isNaN(Ln)?"":Ln:qe(De.toString(),!1)}),It=(0,w.Z)(Zt,2),Lt=It[0],Kt=It[1];Ye.current=Lt;function Yt(Ln,xn){Kt(qe(Ln.isInvalidate()?Ln.toString(!1):Ln.toString(!xn),xn))}var en=o.useMemo(function(){return Ic(u)},[u,W]),Cn=o.useMemo(function(){return Ic(c)},[c,W]),Ot=o.useMemo(function(){return!en||!De||De.isInvalidate()?!1:en.lessEquals(De)},[en,De]),pn=o.useMemo(function(){return!Cn||!De||De.isInvalidate()?!1:De.lessEquals(Cn)},[Cn,De]),Bt=am(xe.current,et),ot=(0,w.Z)(Bt,2),Tt=ot[0],_t=ot[1],Qt=function(xn){return en&&!xn.lessEquals(en)?en:Cn&&!Cn.lessEquals(xn)?Cn:null},Sn=function(xn){return!Qt(xn)},hn=function(xn,Bn){var Pn=xn,$n=Sn(Pn)||Pn.isEmpty();if(!Pn.isEmpty()&&!Bn&&(Pn=Qt(Pn)||Pn,$n=!0),!b&&!h&&$n){var Ur=Pn.toString(),Or=je(Ur,Bn);return Or>=0&&(Pn=so(Ji(Ur,".",Or)),Sn(Pn)||(Pn=so(Ji(Ur,".",Or,!0)))),Pn.equals(De)||(Ke(Pn),z==null||z(Pn.isEmpty()?null:Ec(L,Pn)),g===void 0&&Yt(Pn,Bn)),Pn}return De},Fn=dm(),nn=function Ln(xn){if(Tt(),Ye.current=xn,Kt(xn),!vt.current){var Bn=Te(xn),Pn=so(Bn);Pn.isNaN()||hn(Pn,!0)}J==null||J(xn),Fn(function(){var $n=xn;K||($n=xn.replace(/。/g,".")),$n!==xn&&Ln($n)})},rn=function(){vt.current=!0},In=function(){vt.current=!1,nn(xe.current.value)},Gn=function(xn){nn(xn.target.value)},En=function(xn){var Bn;if(!(xn&&Ot||!xn&&pn)){at.current=!1;var Pn=so(Ve.current?wc(v):v);xn||(Pn=Pn.negate());var $n=(De||so(0)).add(Pn.toString()),Ur=hn($n,!1);ne==null||ne(Ec(L,Ur),{offset:Ve.current?wc(v):v,type:xn?"up":"down"}),(Bn=xe.current)===null||Bn===void 0||Bn.focus()}},kr=function(xn){var Bn=so(Te(Lt)),Pn=Bn;Bn.isNaN()?Pn=hn(De,xn):Pn=hn(Bn,xn),g!==void 0?Yt(De,!1):Pn.isNaN()||Yt(Pn,!1)},Fr=function(){at.current=!0},Mr=function(xn){var Bn=xn.key,Pn=xn.shiftKey;at.current=!0,Ve.current=Pn,Bn==="Enter"&&(vt.current||(at.current=!1),kr(!1),ae==null||ae(xn)),P!==!1&&!vt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Bn)&&(En(Bn==="Up"||Bn==="ArrowUp"),xn.preventDefault())},ta=function(){at.current=!1,Ve.current=!1};o.useEffect(function(){if(O&&et){var Ln=function(Pn){En(Pn.deltaY<0),Pn.preventDefault()},xn=xe.current;if(xn)return xn.addEventListener("wheel",Ln,{passive:!1}),function(){return xn.removeEventListener("wheel",Ln)}}});var Qr=function(){Q&&kr(!1),Ue(!1),at.current=!1};return(0,Ge.o)(function(){De.isInvalidate()||Yt(De,!1)},[W,U]),(0,Ge.o)(function(){var Ln=so(g);ye(Ln);var xn=so(Te(Lt));(!Ln.equals(xn)||!at.current||U)&&Yt(Ln,at.current)},[g]),(0,Ge.o)(function(){U&&_t()},[Lt]),o.createElement("div",{className:_()(a,l,(r={},(0,D.Z)(r,"".concat(a,"-focused"),et),(0,D.Z)(r,"".concat(a,"-disabled"),h),(0,D.Z)(r,"".concat(a,"-readonly"),b),(0,D.Z)(r,"".concat(a,"-not-a-number"),De.isNaN()),(0,D.Z)(r,"".concat(a,"-out-of-range"),!De.isInvalidate()&&!Sn(De)),r)),style:d,onFocus:function(){Ue(!0)},onBlur:Qr,onKeyDown:Mr,onKeyUp:ta,onCompositionStart:rn,onCompositionEnd:In,onBeforeInput:Fr},Z&&o.createElement(cm,{prefixCls:a,upNode:C,downNode:p,upDisabled:Ot,downDisabled:pn,onStep:En}),o.createElement("div",{className:"".concat(fe,"-wrap")},o.createElement("input",(0,Y.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":u,"aria-valuenow":De.isInvalidate()?null:De.toString(),step:v},ee,{ref:(0,St.sQ)(xe,t),className:fe,value:Lt,onChange:Gn,disabled:h,readOnly:b}))))}),Oc=o.forwardRef(function(e,t){var r=e.disabled,n=e.style,a=e.prefixCls,l=e.value,d=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,v=e.className,m=e.classNames,g=(0,y.Z)(e,vm),h=o.useRef(null),b=function(p){h.current&&(0,um.nH)(h.current,p)};return o.createElement(rm.Q,{className:v,triggerFocus:b,prefixCls:a,value:l,disabled:r,style:n,prefix:d,suffix:c,addonAfter:f,addonBefore:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},o.createElement(mm,(0,Y.Z)({prefixCls:a,disabled:r,ref:(0,St.sQ)(h,t),className:m==null?void 0:m.input},g)))});Oc.displayName="InputNumber";var gm=Oc,hm=gm,Si=i(47673),_i=i(20353),Eo=i(93900),Xa=i(45503);const pm=e=>{var t;const r=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},(0,_i.T)(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Ha.C(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0})},Zc=(e,t)=>{let{componentCls:r,borderRadiusSM:n,borderRadiusLG:a}=e;const l=t==="lg"?a:n;return{[`&-${t}`]:{[`${r}-handler-wrap`]:{borderStartEndRadius:l,borderEndEndRadius:l},[`${r}-handler-up`]:{borderStartEndRadius:l},[`${r}-handler-down`]:{borderEndEndRadius:l}}}},bm=e=>{const{componentCls:t,lineWidth:r,lineType:n,borderRadius:a,fontSizeLG:l,controlHeightLG:d,controlHeightSM:c,colorError:u,paddingInlineSM:f,paddingBlockSM:v,paddingBlockLG:m,paddingInlineLG:g,colorTextDescription:h,motionDurationMid:b,handleHoverColor:C,paddingInline:p,paddingBlock:P,handleBg:E,handleActiveBg:O,colorTextDisabled:$,borderRadiusSM:Z,borderRadiusLG:N,controlWidth:L,handleOpacity:K,handleBorderColor:U,filledHandleBg:W,lineHeightLG:B,calc:z}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ka.Wf)(e)),(0,Si.ik)(e)),{display:"inline-block",width:L,margin:0,padding:0,borderRadius:a}),(0,Eo.qG)(e,{[`${t}-handler-wrap`]:{background:E,[`${t}-handler-down`]:{borderBlockStart:`${(0,fn.bf)(r)} ${n} ${U}`}}})),(0,Eo.H8)(e,{[`${t}-handler-wrap`]:{background:W,[`${t}-handler-down`]:{borderBlockStart:`${(0,fn.bf)(r)} ${n} ${U}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:E}}})),(0,Eo.Mu)(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:l,lineHeight:B,borderRadius:N,[`input${t}-input`]:{height:z(d).sub(z(r).mul(2)).equal(),padding:`${(0,fn.bf)(m)} ${(0,fn.bf)(g)}`}},"&-sm":{padding:0,borderRadius:Z,[`input${t}-input`]:{height:z(c).sub(z(r).mul(2)).equal(),padding:`${(0,fn.bf)(v)} ${(0,fn.bf)(f)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ka.Wf)(e)),(0,Si.s7)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:N,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:Z}}},(0,Eo.ir)(e)),(0,Eo.S5)(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,ka.Wf)(e)),{width:"100%",padding:`${(0,fn.bf)(P)} ${(0,fn.bf)(p)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Si.nz)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:K,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${b} linear ${b}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,fn.bf)(r)} ${n} ${U}`,transition:`all ${b} linear`,"&:active":{background:O},"&:hover":{height:"60%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{color:C}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ka.Ro)()),{color:h,transition:`all ${b} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},Zc(e,"lg")),Zc(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` - ${t}-handler-up-disabled, - ${t}-handler-down-disabled - `]:{cursor:"not-allowed"},[` - ${t}-handler-up-disabled:hover &-handler-up-inner, - ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:$}})}]},ym=e=>{const{componentCls:t,paddingBlock:r,paddingInline:n,inputAffixPadding:a,controlWidth:l,borderRadiusLG:d,borderRadiusSM:c,paddingInlineLG:u,paddingInlineSM:f,paddingBlockLG:v,paddingBlockSM:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${(0,fn.bf)(r)} 0`}},(0,Si.ik)(e)),{position:"relative",display:"inline-flex",width:l,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:d,paddingInlineStart:u,[`input${t}-input`]:{padding:`${(0,fn.bf)(v)} 0`}},"&-sm":{borderRadius:c,paddingInlineStart:f,[`input${t}-input`]:{padding:`${(0,fn.bf)(m)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:a}}})}};var Cm=(0,to.I$)("InputNumber",e=>{const t=(0,Xa.TS)(e,(0,_i.e)(e));return[bm(t),ym(t),(0,Ml.c)(t)]},pm,{unitless:{handleOpacity:!0}}),xm=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{const{getPrefixCls:r,direction:n}=o.useContext(Ba.E_),a=o.useRef(null);o.useImperativeHandle(t,()=>a.current);const{className:l,rootClassName:d,size:c,disabled:u,prefixCls:f,addonBefore:v,addonAfter:m,prefix:g,bordered:h,readOnly:b,status:C,controls:p,variant:P}=e,E=xm(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),O=r("input-number",f),$=(0,eo.Z)(O),[Z,N,L]=Cm(O,$),{compactSize:K,compactItemClassnames:U}=(0,go.ri)(O,n);let W=o.createElement(em,{className:`${O}-handler-up-inner`}),B=o.createElement(Xv.Z,{className:`${O}-handler-down-inner`});const z=typeof p=="boolean"?p:void 0;typeof p=="object"&&(W=typeof p.upIcon=="undefined"?W:o.createElement("span",{className:`${O}-handler-up-inner`},p.upIcon),B=typeof p.downIcon=="undefined"?B:o.createElement("span",{className:`${O}-handler-down-inner`},p.downIcon));const{hasFeedback:J,status:ae,isFormItemInput:ne,feedbackIcon:oe}=o.useContext(mo.aM),Q=(0,_a.F)(ae,C),ee=(0,Po.Z)(Ve=>{var ct;return(ct=c!=null?c:K)!==null&&ct!==void 0?ct:Ve}),fe=o.useContext($o.Z),xe=u!=null?u:fe,[He,ge]=(0,xi.Z)(P,h),et=J&&o.createElement(o.Fragment,null,oe),Ue=_()({[`${O}-lg`]:ee==="large",[`${O}-sm`]:ee==="small",[`${O}-rtl`]:n==="rtl",[`${O}-in-form-item`]:ne},N),at=`${O}-group`,vt=o.createElement(hm,Object.assign({ref:a,disabled:xe,className:_()(L,$,l,d,U),upHandler:W,downHandler:B,prefixCls:O,readOnly:b,controls:z,prefix:g,suffix:et,addonAfter:m&&o.createElement(go.BR,null,o.createElement(mo.Ux,{override:!0,status:!0},m)),addonBefore:v&&o.createElement(go.BR,null,o.createElement(mo.Ux,{override:!0,status:!0},v)),classNames:{input:Ue,variant:_()({[`${O}-${He}`]:ge},(0,_a.Z)(O,Q,J)),affixWrapper:_()({[`${O}-affix-wrapper-sm`]:ee==="small",[`${O}-affix-wrapper-lg`]:ee==="large",[`${O}-affix-wrapper-rtl`]:n==="rtl"},N),wrapper:_()({[`${at}-rtl`]:n==="rtl"},N),groupWrapper:_()({[`${O}-group-wrapper-sm`]:ee==="small",[`${O}-group-wrapper-lg`]:ee==="large",[`${O}-group-wrapper-rtl`]:n==="rtl",[`${O}-group-wrapper-${He}`]:ge},(0,_a.Z)(`${O}-group-wrapper`,Q,J),N)}},E));return Z(vt)}),Mc=Rc,Sm=e=>o.createElement(ft.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},o.createElement(Rc,Object.assign({},e)));Mc._InternalPanelDoNotUseOrYouWillBeFired=Sm;var Io=Mc,jo=e=>{let{prefixCls:t,min:r=0,max:n=100,value:a,onChange:l,className:d,formatter:c}=e;const u=`${t}-steppers`,[f,v]=(0,o.useState)(a);return(0,o.useEffect)(()=>{Number.isNaN(a)||v(a)},[a]),o.createElement(Io,{className:_()(u,d),min:r,max:n,value:f,formatter:c,size:"small",onChange:m=>{a||v(m||0),l==null||l(m)}})},Pm=e=>{let{prefixCls:t,value:r,onChange:n}=e;const a=`${t}-alpha-input`,[l,d]=(0,o.useState)(Fa(r||"#000"));(0,o.useEffect)(()=>{r&&d(r)},[r]);const c=u=>{const f=l.toHsb();f.a=(u||0)/100;const v=Fa(f);r||d(v),n==null||n(v)};return o.createElement(jo,{value:Xi(l),prefixCls:t,formatter:u=>`${u}%`,className:a,onChange:c})};const wm=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Nc=e=>wm.test(`#${e}`);var Em=e=>{let{prefixCls:t,value:r,onChange:n}=e;const a=`${t}-hex-input`,[l,d]=(0,o.useState)(r==null?void 0:r.toHex());(0,o.useEffect)(()=>{const u=r==null?void 0:r.toHex();Nc(u)&&r&&d(Yi(u))},[r]);const c=u=>{const f=u.target.value;d(Yi(f)),Nc(Yi(f,!0))&&(n==null||n(Fa(f)))};return o.createElement(ho.Z,{className:a,value:l,prefix:"#",onChange:c,size:"small"})},Im=e=>{let{prefixCls:t,value:r,onChange:n}=e;const a=`${t}-hsb-input`,[l,d]=(0,o.useState)(Fa(r||"#000"));(0,o.useEffect)(()=>{r&&d(r)},[r]);const c=(u,f)=>{const v=l.toHsb();v[f]=f==="h"?u:(u||0)/100;const m=Fa(v);r||d(m),n==null||n(m)};return o.createElement("div",{className:a},o.createElement(jo,{max:360,min:0,value:Number(l.toHsb().h),prefixCls:t,className:a,formatter:u=>Gi(u||0).toString(),onChange:u=>c(Number(u),"h")}),o.createElement(jo,{max:100,min:0,value:Number(l.toHsb().s)*100,prefixCls:t,className:a,formatter:u=>`${Gi(u||0)}%`,onChange:u=>c(Number(u),"s")}),o.createElement(jo,{max:100,min:0,value:Number(l.toHsb().b)*100,prefixCls:t,className:a,formatter:u=>`${Gi(u||0)}%`,onChange:u=>c(Number(u),"b")}))},Om=e=>{let{prefixCls:t,value:r,onChange:n}=e;const a=`${t}-rgb-input`,[l,d]=(0,o.useState)(Fa(r||"#000"));(0,o.useEffect)(()=>{r&&d(r)},[r]);const c=(u,f)=>{const v=l.toRgb();v[f]=u||0;const m=Fa(v);r||d(m),n==null||n(m)};return o.createElement("div",{className:a},o.createElement(jo,{max:255,min:0,value:Number(l.toRgb().r),prefixCls:t,className:a,onChange:u=>c(Number(u),"r")}),o.createElement(jo,{max:255,min:0,value:Number(l.toRgb().g),prefixCls:t,className:a,onChange:u=>c(Number(u),"g")}),o.createElement(jo,{max:255,min:0,value:Number(l.toRgb().b),prefixCls:t,className:a,onChange:u=>c(Number(u),"b")}))};const Zm=[po.hex,po.hsb,po.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()}));var Rm=e=>{const{prefixCls:t,format:r,value:n,disabledAlpha:a,onFormatChange:l,onChange:d}=e,[c,u]=(0,se.Z)(po.hex,{value:r,onChange:l}),f=`${t}-input`,v=g=>{u(g)},m=(0,o.useMemo)(()=>{const g={value:n,prefixCls:t,onChange:d};switch(c){case po.hsb:return o.createElement(Im,Object.assign({},g));case po.rgb:return o.createElement(Om,Object.assign({},g));case po.hex:default:return o.createElement(Em,Object.assign({},g))}},[c,t,n,d]);return o.createElement("div",{className:`${f}-container`},o.createElement(Gv.Z,{value:c,variant:"borderless",getPopupContainer:g=>g,popupMatchSelectWidth:68,placement:"bottomRight",onChange:v,className:`${t}-format-select`,size:"small",options:Zm}),o.createElement("div",{className:f},m),!a&&o.createElement(Pm,{prefixCls:t,value:n,onChange:d}))},Mm=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{const e=(0,o.useContext)(bc),{prefixCls:t,colorCleared:r,allowClear:n,value:a,disabledAlpha:l,onChange:d,onClear:c,onChangeComplete:u}=e,f=Mm(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return o.createElement(o.Fragment,null,n&&o.createElement(xc,Object.assign({prefixCls:t,value:a,colorCleared:r,onChange:v=>{d==null||d(v),c==null||c()}},f)),o.createElement(zv,{prefixCls:t,value:a==null?void 0:a.toHsb(),disabledAlpha:l,onChange:(v,m)=>d==null?void 0:d(v,m,!0),onChangeComplete:u}),o.createElement(Rm,Object.assign({value:a,onChange:d,prefixCls:t,disabledAlpha:l},f)))},ti=i(82225),Dc=o.forwardRef(function(e,t){var r=e.prefixCls,n=e.forceRender,a=e.className,l=e.style,d=e.children,c=e.isActive,u=e.role,f=o.useState(c||n),v=(0,w.Z)(f,2),m=v[0],g=v[1];return o.useEffect(function(){(n||c)&&g(!0)},[n,c]),m?o.createElement("div",{ref:t,className:_()("".concat(r,"-content"),(0,D.Z)((0,D.Z)({},"".concat(r,"-content-active"),c),"".concat(r,"-content-inactive"),!c),a),style:l,role:u},o.createElement("div",{className:"".concat(r,"-content-box")},d)):null});Dc.displayName="PanelContent";var Nm=Dc,$m=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Dm=o.forwardRef(function(e,t){var r=e.showArrow,n=r===void 0?!0:r,a=e.headerClass,l=e.isActive,d=e.onItemClick,c=e.forceRender,u=e.className,f=e.prefixCls,v=e.collapsible,m=e.accordion,g=e.panelKey,h=e.extra,b=e.header,C=e.expandIcon,p=e.openMotion,P=e.destroyInactivePanel,E=e.children,O=(0,y.Z)(e,$m),$=v==="disabled",Z=v==="header",N=v==="icon",L=h!=null&&typeof h!="boolean",K=function(){d==null||d(g)},U=function(ne){(ne.key==="Enter"||ne.keyCode===de.Z.ENTER||ne.which===de.Z.ENTER)&&K()},W=typeof C=="function"?C(e):o.createElement("i",{className:"arrow"});W&&(W=o.createElement("div",{className:"".concat(f,"-expand-icon"),onClick:["header","icon"].includes(v)?K:void 0},W));var B=_()((0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(f,"-item"),!0),"".concat(f,"-item-active"),l),"".concat(f,"-item-disabled"),$),u),z=_()(a,(0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(f,"-header"),!0),"".concat(f,"-header-collapsible-only"),Z),"".concat(f,"-icon-collapsible-only"),N)),J={className:z,"aria-expanded":l,"aria-disabled":$,onKeyDown:U};return!Z&&!N&&(J.onClick=K,J.role=m?"tab":"button",J.tabIndex=$?-1:0),o.createElement("div",(0,Y.Z)({},O,{ref:t,className:B}),o.createElement("div",J,n&&W,o.createElement("span",{className:"".concat(f,"-header-text"),onClick:v==="header"?K:void 0},b),L&&o.createElement("div",{className:"".concat(f,"-extra")},h)),o.createElement(ti.ZP,(0,Y.Z)({visible:l,leavedClassName:"".concat(f,"-content-hidden")},p,{forceRender:c,removeOnLeave:P}),function(ae,ne){var oe=ae.className,Q=ae.style;return o.createElement(Nm,{ref:ne,prefixCls:f,className:oe,style:Q,isActive:l,forceRender:c,role:m?"tabpanel":void 0},E)}))}),Tc=Dm,Tm=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Fm=function(t,r){var n=r.prefixCls,a=r.accordion,l=r.collapsible,d=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,f=r.openMotion,v=r.expandIcon;return t.map(function(m,g){var h=m.children,b=m.label,C=m.key,p=m.collapsible,P=m.onItemClick,E=m.destroyInactivePanel,O=(0,y.Z)(m,Tm),$=String(C!=null?C:g),Z=p!=null?p:l,N=E!=null?E:d,L=function(W){Z!=="disabled"&&(c(W),P==null||P(W))},K=!1;return a?K=u[0]===$:K=u.indexOf($)>-1,o.createElement(Tc,(0,Y.Z)({},O,{prefixCls:n,key:$,panelKey:$,isActive:K,accordion:a,openMotion:f,expandIcon:v,header:b,collapsible:Z,onItemClick:L,destroyInactivePanel:N}),h)})},Am=function(t,r,n){if(!t)return null;var a=n.prefixCls,l=n.accordion,d=n.collapsible,c=n.destroyInactivePanel,u=n.onItemClick,f=n.activeKey,v=n.openMotion,m=n.expandIcon,g=t.key||String(r),h=t.props,b=h.header,C=h.headerClass,p=h.destroyInactivePanel,P=h.collapsible,E=h.onItemClick,O=!1;l?O=f[0]===g:O=f.indexOf(g)>-1;var $=P!=null?P:d,Z=function(K){$!=="disabled"&&(u(K),E==null||E(K))},N={key:g,panelKey:g,header:b,headerClass:C,isActive:O,prefixCls:a,destroyInactivePanel:p!=null?p:c,openMotion:v,accordion:l,children:t.props.children,onItemClick:Z,expandIcon:m,collapsible:$};return typeof t.type=="string"?t:(Object.keys(N).forEach(function(L){typeof N[L]=="undefined"&&delete N[L]}),o.cloneElement(t,N))};function jm(e,t,r){return Array.isArray(e)?Fm(e,r):(0,bn.Z)(t).map(function(n,a){return Am(n,a,r)})}var Lm=jm;function km(e){var t=e;if(!Array.isArray(t)){var r=(0,x.Z)(t);t=r==="number"||r==="string"?[t]:[]}return t.map(function(n){return String(n)})}var Vm=o.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-collapse":r,a=e.destroyInactivePanel,l=a===void 0?!1:a,d=e.style,c=e.accordion,u=e.className,f=e.children,v=e.collapsible,m=e.openMotion,g=e.expandIcon,h=e.activeKey,b=e.defaultActiveKey,C=e.onChange,p=e.items,P=_()(n,u),E=(0,se.Z)([],{value:h,onChange:function(U){return C==null?void 0:C(U)},defaultValue:b,postState:km}),O=(0,w.Z)(E,2),$=O[0],Z=O[1],N=function(U){return Z(function(){if(c)return $[0]===U?[]:[U];var W=$.indexOf(U),B=W>-1;return B?$.filter(function(z){return z!==U}):[].concat((0,pe.Z)($),[U])})};(0,Le.ZP)(!f,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var L=Lm(p,f,{prefixCls:n,accordion:c,openMotion:m,expandIcon:g,collapsible:v,destroyInactivePanel:l,onItemClick:N,activeKey:$});return o.createElement("div",(0,Y.Z)({ref:t,className:P,style:d,role:c?"tablist":void 0},(0,Qe.Z)(e,{aria:!0,data:!0})),L)}),Fc=Object.assign(Vm,{Panel:Tc}),Ac=Fc,Ow=Fc.Panel,jc=i(96159),Bm=o.forwardRef((e,t)=>{const{getPrefixCls:r}=o.useContext(Ba.E_),{prefixCls:n,className:a,showArrow:l=!0}=e,d=r("collapse",n),c=_()({[`${d}-no-arrow`]:!l},a);return o.createElement(Ac.Panel,Object.assign({ref:t},e,{prefixCls:d,className:c}))}),Hm=i(33507);const Km=e=>{const{componentCls:t,contentBg:r,padding:n,headerBg:a,headerPadding:l,collapseHeaderPaddingSM:d,collapseHeaderPaddingLG:c,collapsePanelBorderRadius:u,lineWidth:f,lineType:v,colorBorder:m,colorText:g,colorTextHeading:h,colorTextDisabled:b,fontSizeLG:C,lineHeight:p,lineHeightLG:P,marginSM:E,paddingSM:O,paddingLG:$,paddingXS:Z,motionDurationSlow:N,fontSizeIcon:L,contentPadding:K,fontHeight:U,fontHeightLG:W}=e,B=`${(0,fn.bf)(f)} ${v} ${m}`;return{[t]:Object.assign(Object.assign({},(0,ka.Wf)(e)),{backgroundColor:a,border:B,borderBottom:0,borderRadius:u,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:B,["&:last-child"]:{[` - &, - & > ${t}-header`]:{borderRadius:`0 0 ${(0,fn.bf)(u)} ${(0,fn.bf)(u)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:h,lineHeight:p,cursor:"pointer",transition:`all ${N}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:U,display:"flex",alignItems:"center",paddingInlineEnd:E},[`${t}-arrow`]:Object.assign(Object.assign({},(0,ka.Ro)()),{fontSize:L,svg:{transition:`transform ${N}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:g,backgroundColor:r,borderTop:B,[`& > ${t}-content-box`]:{padding:K},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:d,paddingInlineStart:Z,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(O).sub(Z).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:O}}},["&-large"]:{[`> ${t}-item`]:{fontSize:C,lineHeight:P,[`> ${t}-header`]:{padding:c,paddingInlineStart:n,[`> ${t}-expand-icon`]:{height:W,marginInlineStart:e.calc($).sub(n).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:$}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${(0,fn.bf)(u)} ${(0,fn.bf)(u)}`}},[`& ${t}-item-disabled > ${t}-header`]:{[` - &, - & > .arrow - `]:{color:b,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:E}}}}})}},zm=e=>{const{componentCls:t}=e,r=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[r]:{transform:"rotate(180deg)"}}}},Wm=e=>{const{componentCls:t,headerBg:r,paddingXXS:n,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:r,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[` - > ${t}-item:last-child, - > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:n}}}},Um=e=>{const{componentCls:t,paddingSM:r}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:r}}}}}},Ym=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer});var Gm=(0,to.I$)("Collapse",e=>{const t=(0,Xa.TS)(e,{collapseHeaderPaddingSM:`${(0,fn.bf)(e.paddingXS)} ${(0,fn.bf)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,fn.bf)(e.padding)} ${(0,fn.bf)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Km(t),Wm(t),Um(t),zm(t),(0,Hm.Z)(t)]},Ym),Xm=Object.assign(o.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n,collapse:a}=o.useContext(Ba.E_),{prefixCls:l,className:d,rootClassName:c,style:u,bordered:f=!0,ghost:v,size:m,expandIconPosition:g="start",children:h,expandIcon:b}=e,C=(0,Po.Z)(B=>{var z;return(z=m!=null?m:B)!==null&&z!==void 0?z:"middle"}),p=r("collapse",l),P=r(),[E,O,$]=Gm(p),Z=o.useMemo(()=>g==="left"?"start":g==="right"?"end":g,[g]),N=b!=null?b:a==null?void 0:a.expandIcon,L=o.useCallback(function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const z=typeof N=="function"?N(B):o.createElement(Rl.Z,{rotate:B.isActive?90:void 0});return(0,jc.Tm)(z,()=>{var J;return{className:_()((J=z==null?void 0:z.props)===null||J===void 0?void 0:J.className,`${p}-arrow`)}})},[N,p]),K=_()(`${p}-icon-position-${Z}`,{[`${p}-borderless`]:!f,[`${p}-rtl`]:n==="rtl",[`${p}-ghost`]:!!v,[`${p}-${C}`]:C!=="middle"},a==null?void 0:a.className,d,c,O,$),U=Object.assign(Object.assign({},(0,vo.Z)(P)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),W=o.useMemo(()=>h?(0,bn.Z)(h).map((B,z)=>{var J,ae;if(!((J=B.props)===null||J===void 0)&&J.disabled){const ne=(ae=B.key)!==null&&ae!==void 0?ae:String(z),{disabled:oe,collapsible:Q}=B.props,ee=Object.assign(Object.assign({},(0,ln.Z)(B.props,["disabled"])),{key:ne,collapsible:Q!=null?Q:oe?"disabled":void 0});return(0,jc.Tm)(B,ee)}return B}):null,[h]);return E(o.createElement(Ac,Object.assign({ref:t,openMotion:U},(0,ln.Z)(e,["rootClassName"]),{expandIcon:L,prefixCls:p,className:K,style:Object.assign(Object.assign({},a==null?void 0:a.style),u)}),W))}),{Panel:Bm}),Qm=Xm,Vl=i(10110),Jm=i(29691);const Bl=e=>e.map(t=>(t.colors=t.colors.map(Fa),t)),_m=(e,t)=>{const{r,g:n,b:a,a:l}=e.toRgb(),d=new Ui(e.toRgbString()).onBackground(t).toHsv();return l<=.5?d.v>.5:r*.299+n*.587+a*.114>192},Lc=e=>{let{label:t}=e;return`panel-${t}`};var qm=e=>{let{prefixCls:t,presets:r,value:n,onChange:a}=e;const[l]=(0,Vl.Z)("ColorPicker"),[,d]=(0,Jm.ZP)(),[c]=(0,se.Z)(Bl(r),{value:Bl(r),postState:Bl}),u=`${t}-presets`,f=(0,o.useMemo)(()=>c.reduce((g,h)=>{const{defaultOpen:b=!0}=h;return b&&g.push(Lc(h)),g},[]),[c]),v=g=>{a==null||a(g)},m=c.map(g=>{var h;return{key:Lc(g),label:o.createElement("div",{className:`${u}-label`},g==null?void 0:g.label),children:o.createElement("div",{className:`${u}-items`},Array.isArray(g==null?void 0:g.colors)&&((h=g.colors)===null||h===void 0?void 0:h.length)>0?g.colors.map((b,C)=>o.createElement(Fl,{key:`preset-${C}-${b.toHexString()}`,color:Fa(b).toRgbString(),prefixCls:t,className:_()(`${u}-color`,{[`${u}-color-checked`]:b.toHexString()===(n==null?void 0:n.toHexString()),[`${u}-color-bright`]:_m(b,d.colorBgElevated)}),onClick:()=>v(b)})):o.createElement("span",{className:`${u}-empty`},l.presetEmpty))}});return o.createElement("div",{className:u},o.createElement(Qm,{defaultActiveKey:f,ghost:!0,items:m}))},kc=()=>{const{prefixCls:e,value:t,presets:r,onChange:n}=(0,o.useContext)(yc);return Array.isArray(r)?o.createElement(qm,{value:t,presets:r,prefixCls:e,onChange:n}):null},eg=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{const{prefixCls:t,presets:r,panelRender:n,color:a,onChange:l,onClear:d}=e,c=eg(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),u=`${t}-inner`,f=Object.assign({prefixCls:t,value:a,onChange:l,onClear:d},c),v=o.useMemo(()=>({prefixCls:t,value:a,presets:r,onChange:l}),[t,a,r,l]),m=o.createElement("div",{className:`${u}-content`},o.createElement($c,null),Array.isArray(r)&&o.createElement(Pv.Z,null),o.createElement(kc,null));return o.createElement(Wv,{value:f},o.createElement(Uv,{value:v},o.createElement("div",{className:u},typeof n=="function"?n(m,{components:{Picker:$c,Presets:kc}}):m)))},ng=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{const{color:r,prefixCls:n,open:a,colorCleared:l,disabled:d,format:c,className:u,showText:f}=e,v=ng(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),m=`${n}-trigger`,g=(0,o.useMemo)(()=>l?o.createElement(xc,{prefixCls:n}):o.createElement(Fl,{prefixCls:n,color:r.toRgbString()}),[r,l,n]),h=()=>{const C=r.toHexString().toUpperCase(),p=Xi(r);switch(c){case"rgb":return r.toRgbString();case"hsb":return r.toHsbString();case"hex":default:return p<100?`${C.slice(0,7)},${p}%`:C}},b=()=>{if(typeof f=="function")return f(r);if(f)return h()};return o.createElement("div",Object.assign({ref:t,className:_()(m,u,{[`${m}-active`]:a,[`${m}-disabled`]:d})},v),g,f&&o.createElement("div",{className:`${m}-text`},b()))});function Vc(e){return e!==void 0}var ag=(e,t)=>{const{defaultValue:r,value:n}=t,[a,l]=(0,o.useState)(()=>{let d;return Vc(n)?d=n:Vc(r)?d=r:d=e,Fa(d||"")});return(0,o.useEffect)(()=>{n&&l(Fa(n))},[n]),[a,l]};const Bc=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`});var Hc=(e,t)=>{const{componentCls:r,borderRadiusSM:n,colorPickerInsetShadow:a,lineWidth:l,colorFillSecondary:d}=e;return{[`${r}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:n,width:t,height:t,boxShadow:a},Bc("50%",e.colorFillSecondary)),{[`${r}-color-block-inner`]:{width:"100%",height:"100%",border:`${(0,fn.bf)(l)} solid ${d}`,borderRadius:"inherit"}})}},og=e=>{const{componentCls:t,antCls:r,fontSizeSM:n,lineHeightSM:a,colorPickerAlphaInputWidth:l,marginXXS:d,paddingXXS:c,controlHeightSM:u,marginXS:f,fontSizeIcon:v,paddingXS:m,colorTextPlaceholder:g,colorPickerInputNumberHandleWidth:h,lineWidth:b}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${r}-input-number`]:{fontSize:n,lineHeight:a,[`${r}-input-number-input`]:{paddingInlineStart:c,paddingInlineEnd:0},[`${r}-input-number-handler-wrap`]:{width:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${(0,fn.bf)(l)}`,marginInlineStart:d},[`${t}-format-select${r}-select`]:{marginInlineEnd:f,width:"auto","&-single":{[`${r}-select-selector`]:{padding:0,border:0},[`${r}-select-arrow`]:{insetInlineEnd:0},[`${r}-select-selection-item`]:{paddingInlineEnd:e.calc(v).add(d).equal(),fontSize:n,lineHeight:`${(0,fn.bf)(u)}`},[`${r}-select-item-option-content`]:{fontSize:n,lineHeight:a},[`${r}-select-dropdown`]:{[`${r}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:d,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:d,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${r}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,fn.bf)(m)}`,[`${r}-input`]:{fontSize:n,textTransform:"uppercase",lineHeight:(0,fn.bf)(e.calc(u).sub(e.calc(b).mul(2)).equal())},[`${r}-input-prefix`]:{color:g}}}}}},ig=e=>{const{componentCls:t,controlHeightLG:r,borderRadiusSM:n,colorPickerInsetShadow:a,marginSM:l,colorBgElevated:d,colorFillSecondary:c,lineWidthBold:u,colorPickerHandlerSize:f,colorPickerHandlerSizeSM:v,colorPickerSliderHeight:m}=e;return{[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(r).mul(4).equal(),overflow:"hidden",borderRadius:n},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:a,inset:0},marginBottom:l},[`${t}-handler`]:{width:f,height:f,border:`${(0,fn.bf)(u)} solid ${d}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${a}, 0 0 0 1px ${c}`,"&-sm":{width:v,height:v}},[`${t}-slider`]:{borderRadius:e.calc(m).div(2).equal(),[`${t}-palette`]:{height:m},[`${t}-gradient`]:{borderRadius:e.calc(m).div(2).equal(),boxShadow:a},"&-alpha":Bc(`${(0,fn.bf)(m)}`,e.colorFillSecondary),"&-hue":{marginBottom:l}},[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},lg=e=>{const{componentCls:t,antCls:r,colorTextQuaternary:n,paddingXXS:a,colorPickerPresetColorSize:l,fontSizeSM:d,colorText:c,lineHeightSM:u,lineWidth:f,borderRadius:v,colorFill:m,colorWhite:g,marginXXS:h,paddingXS:b,fontHeightSM:C}=e;return{[`${t}-presets`]:{[`${r}-collapse-item > ${r}-collapse-header`]:{padding:0,[`${r}-collapse-expand-icon`]:{height:C,color:n,paddingInlineEnd:a}},[`${r}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${r}-collapse-item > ${r}-collapse-content > ${r}-collapse-content-box`]:{padding:`${(0,fn.bf)(b)} 0`},"&-label":{fontSize:d,color:c,lineHeight:u},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(h).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:l,height:l,"&::before":{content:'""',pointerEvents:"none",width:e.calc(l).add(e.calc(f).mul(4)).equal(),height:e.calc(l).add(e.calc(f).mul(4)).equal(),position:"absolute",top:e.calc(f).mul(-2).equal(),insetInlineStart:e.calc(f).mul(-2).equal(),borderRadius:v,border:`${(0,fn.bf)(f)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:m},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(l).div(13).mul(5).equal(),height:e.calc(l).div(13).mul(8).equal(),border:`${(0,fn.bf)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:g,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:d,color:n}}}};const Hl=(e,t,r)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${(0,fn.bf)(e.controlOutlineWidth)} ${r}`,outline:0}),sg=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Kc=(e,t,r)=>{const{componentCls:n,borderRadiusSM:a,lineWidth:l,colorSplit:d,colorBorder:c,red6:u}=e;return{[`${n}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:a,border:`${(0,fn.bf)(l)} solid ${d}`,position:"relative",overflow:"hidden",cursor:"pointer",transition:`all ${e.motionDurationFast}`},r),{"&::after":{content:'""',position:"absolute",insetInlineEnd:l,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:u},"&:hover":{borderColor:c}})}},cg=e=>{const{componentCls:t,colorError:r,colorWarning:n,colorErrorHover:a,colorWarningHover:l,colorErrorOutline:d,colorWarningOutline:c}=e;return{[`&${t}-status-error`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},Hl(e,r,d))},[`&${t}-status-warning`]:{borderColor:n,"&:hover":{borderColor:l},[`&${t}-trigger-active`]:Object.assign({},Hl(e,n,c))}}},ug=e=>{const{componentCls:t,controlHeightLG:r,controlHeightSM:n,controlHeight:a,controlHeightXS:l,borderRadius:d,borderRadiusSM:c,borderRadiusXS:u,borderRadiusLG:f,fontSizeLG:v}=e;return{[`&${t}-lg`]:{minWidth:r,height:r,borderRadius:f,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:d},[`${t}-trigger-text`]:{fontSize:v}},[`&${t}-sm`]:{minWidth:n,height:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:l,height:l,borderRadius:u}}}},dg=e=>{const{antCls:t,componentCls:r,colorPickerWidth:n,colorPrimary:a,motionDurationMid:l,colorBgElevated:d,colorTextDisabled:c,colorText:u,colorBgContainerDisabled:f,borderRadius:v,marginXS:m,marginSM:g,controlHeight:h,controlHeightSM:b,colorBgTextActive:C,colorPickerPresetColorSize:p,colorPickerPreviewSize:P,lineWidth:E,colorBorder:O,paddingXXS:$,fontSize:Z,colorPrimaryHover:N,controlOutline:L}=e;return[{[r]:Object.assign({[`${r}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:n,[`& > ${t}-divider`]:{margin:`${(0,fn.bf)(g)} 0 ${(0,fn.bf)(m)}`}},[`${r}-panel`]:Object.assign({},ig(e))},Hc(e,P)),og(e)),lg(e)),Kc(e,p,{marginInlineStart:"auto",marginBottom:m})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:h,height:h,borderRadius:v,border:`${(0,fn.bf)(E)} solid ${O}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${l}`,background:d,padding:e.calc($).sub(E).equal(),[`${r}-trigger-text`]:{marginInlineStart:m,marginInlineEnd:e.calc(m).sub(e.calc($).sub(E)).equal(),fontSize:Z,color:u},"&:hover":{borderColor:N},[`&${r}-trigger-active`]:Object.assign({},Hl(e,a,L)),"&-disabled":{color:c,background:f,cursor:"not-allowed","&:hover":{borderColor:C},[`${r}-trigger-text`]:{color:c}}},Kc(e,b)),Hc(e,b)),cg(e)),ug(e))},sg(e))}]};var fg=(0,to.I$)("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:r}=e,n=8,a=(0,Xa.TS)(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:n,colorPickerPreviewSize:e.calc(n).mul(2).add(r).equal()});return[dg(a)]}),vg=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{const{value:t,defaultValue:r,format:n,defaultFormat:a,allowClear:l=!1,presets:d,children:c,trigger:u="click",open:f,disabled:v,placement:m="bottomLeft",arrow:g=!0,panelRender:h,showText:b,style:C,className:p,size:P,rootClassName:E,prefixCls:O,styles:$,disabledAlpha:Z=!1,onFormatChange:N,onChange:L,onClear:K,onOpenChange:U,onChangeComplete:W,getPopupContainer:B,autoAdjustOverflow:z=!0,destroyTooltipOnHide:J}=e,ae=vg(e,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:ne,direction:oe,colorPicker:Q}=(0,o.useContext)(Ba.E_),ee=(0,o.useContext)($o.Z),fe=v!=null?v:ee,[xe,He]=ag("",{value:t,defaultValue:r}),[ge,et]=(0,se.Z)(!1,{value:f,postState:ot=>!fe&&ot,onChange:U}),[Ue,at]=(0,se.Z)(n,{value:n,defaultValue:a,onChange:N}),[vt,Ve]=(0,o.useState)(!t&&!r),ct=ne("color-picker",O),ht=(0,o.useMemo)(()=>Xi(xe)<100,[xe]),{status:De}=o.useContext(mo.aM),ye=(0,Po.Z)(P),Ke=(0,eo.Z)(ct),[je,Te,Ye]=fg(ct,Ke),qe={[`${ct}-rtl`]:oe},Zt=_()(E,Ye,Ke,qe),It=_()((0,_a.Z)(ct,De),{[`${ct}-sm`]:ye==="small",[`${ct}-lg`]:ye==="large"},Q==null?void 0:Q.className,Zt,p,Te),Lt=_()(ct,Zt),Kt=(0,o.useRef)(!0),Yt=(ot,Tt,_t)=>{let Qt=Fa(ot);(vt||(t===null||!t&&r===null))&&(Ve(!1),Xi(xe)===0&&Tt!=="alpha"&&(Qt=Al(Qt))),Z&&ht&&(Qt=Al(Qt)),_t?Kt.current=!1:W==null||W(Qt),He(Qt),L==null||L(Qt,Qt.toHexString())},en=()=>{Ve(!0),K==null||K()},Cn=ot=>{Kt.current=!0;let Tt=Fa(ot);Z&&ht&&(Tt=Al(ot)),W==null||W(Tt)},Ot={open:ge,trigger:u,placement:m,arrow:g,rootClassName:E,getPopupContainer:B,autoAdjustOverflow:z,destroyTooltipOnHide:J},pn={prefixCls:ct,color:xe,allowClear:l,colorCleared:vt,disabled:fe,disabledAlpha:Z,presets:d,panelRender:h,format:Ue,onFormatChange:at,onChangeComplete:Cn},Bt=Object.assign(Object.assign({},Q==null?void 0:Q.style),C);return je(o.createElement(Nl.Z,Object.assign({style:$==null?void 0:$.popup,overlayInnerStyle:$==null?void 0:$.popupOverlayInner,onOpenChange:ot=>{Kt.current&&!fe&&et(ot)},content:o.createElement(mo.Ux,{override:!0,status:!0},o.createElement(tg,Object.assign({},pn,{onChange:Yt,onChangeComplete:Cn,onClear:en}))),overlayClassName:Lt},Ot),c||o.createElement(rg,Object.assign({open:ge,className:It,style:Bt,color:t?Fa(t):xe,prefixCls:ct,disabled:fe,colorCleared:vt,showText:b,format:Ue},ae))))},mg=(0,_o.Z)(Kl,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));Kl._InternalPanelDoNotUseOrYouWillBeFired=mg;var gg=Kl,hg=gg,Oo=i(79941),pg=i(82492),bg=i.n(pg),yg=function(t,r,n,a,l){var d=l.clientWidth,c=l.clientHeight,u=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,f=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,v=u-(l.getBoundingClientRect().left+window.pageXOffset),m=f-(l.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var g;if(m<0?g=0:m>c?g=1:g=Math.round(m*100/c)/100,r.a!==g)return{h:r.h,s:r.s,l:r.l,a:g,source:"rgb"}}else{var h;if(v<0?h=0:v>d?h=1:h=Math.round(v*100/d)/100,a!==h)return{h:r.h,s:r.s,l:r.l,a:h,source:"rgb"}}return null},zl={},Cg=function(t,r,n,a){if(typeof document=="undefined"&&!a)return null;var l=a?new a:document.createElement("canvas");l.width=n*2,l.height=n*2;var d=l.getContext("2d");return d?(d.fillStyle=t,d.fillRect(0,0,l.width,l.height),d.fillStyle=r,d.fillRect(0,0,n,n),d.translate(n,n),d.fillRect(0,0,n,n),l.toDataURL()):null},xg=function(t,r,n,a){var l="".concat(t,"-").concat(r,"-").concat(n).concat(a?"-server":"");if(zl[l])return zl[l];var d=Cg(t,r,n,a);return zl[l]=d,d};function Pi(e){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pi(e)}function zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function qi(e){for(var t=1;td)m=0;else{var g=-(v*100/d)+100;m=360*g/100}if(n.h!==m)return{h:m,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var h;if(f<0)h=0;else if(f>l)h=359;else{var b=f*100/l;h=360*b/100}if(n.h!==h)return{h,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null};function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function Lg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xc(e,t){for(var r=0;rl&&(f=l),v<0?v=0:v>d&&(v=d);var m=f/l,g=1-v/d;return{h:r.h,s:m,v:g,a:r.a,source:"hsv"}};function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function _g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qc(e,t){for(var r=0;r=0,l=!r&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return l?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())},clone:function(){return Qn(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(P0,arguments)},brighten:function(){return this._applyModification(w0,arguments)},darken:function(){return this._applyModification(E0,arguments)},desaturate:function(){return this._applyModification(C0,arguments)},saturate:function(){return this._applyModification(x0,arguments)},greyscale:function(){return this._applyModification(S0,arguments)},spin:function(){return this._applyModification(I0,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(R0,arguments)},complement:function(){return this._applyCombination(O0,arguments)},monochromatic:function(){return this._applyCombination(M0,arguments)},splitcomplement:function(){return this._applyCombination(Z0,arguments)},triad:function(){return this._applyCombination(tu,[3])},tetrad:function(){return this._applyCombination(tu,[4])}},Qn.fromRatio=function(e,t){if(rl(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=wi(e[n]));e=r}return Qn(e,t)};function g0(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,l=null,d=!1,c=!1;return typeof e=="string"&&(e=F0(e)),rl(e)=="object"&&(bo(e.r)&&bo(e.g)&&bo(e.b)?(t=h0(e.r,e.g,e.b),d=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):bo(e.h)&&bo(e.s)&&bo(e.v)?(n=wi(e.s),a=wi(e.v),t=b0(e.h,n,a),d=!0,c="hsv"):bo(e.h)&&bo(e.s)&&bo(e.l)&&(n=wi(e.s),l=wi(e.l),t=p0(e.h,n,l),d=!0,c="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=nu(r),{ok:d,format:e.format||c,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}}function h0(e,t,r){return{r:fa(e,255)*255,g:fa(t,255)*255,b:fa(r,255)*255}}function Jc(e,t,r){e=fa(e,255),t=fa(t,255),r=fa(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),l,d,c=(n+a)/2;if(n==a)l=d=0;else{var u=n-a;switch(d=c>.5?u/(2-n-a):u/(n+a),n){case e:l=(t-r)/u+(t1&&(m-=1),m<1/6?f+(v-f)*6*m:m<1/2?v:m<2/3?f+(v-f)*(2/3-m)*6:f}if(t===0)n=a=l=r;else{var c=r<.5?r*(1+t):r+t-r*t,u=2*r-c;n=d(u,c,e+1/3),a=d(u,c,e),l=d(u,c,e-1/3)}return{r:n*255,g:a*255,b:l*255}}function _c(e,t,r){e=fa(e,255),t=fa(t,255),r=fa(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),l,d,c=n,u=n-a;if(d=n===0?0:u/n,n==a)l=0;else{switch(n){case e:l=(t-r)/u+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,l.push(Qn(n));return l}function M0(e,t){t=t||6;for(var r=Qn(e).toHsv(),n=r.h,a=r.s,l=r.v,d=[],c=1/t;t--;)d.push(Qn({h:n,s:a,v:l})),l=(l+c)%1;return d}Qn.mix=function(e,t,r){r=r===0?0:r||50;var n=Qn(e).toRgb(),a=Qn(t).toRgb(),l=r/100,d={r:(a.r-n.r)*l+n.r,g:(a.g-n.g)*l+n.g,b:(a.b-n.b)*l+n.b,a:(a.a-n.a)*l+n.a};return Qn(d)},Qn.readability=function(e,t){var r=Qn(e),n=Qn(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Qn.isReadable=function(e,t,r){var n=Qn.readability(e,t),a,l;switch(l=!1,a=A0(r),a.level+a.size){case"AAsmall":case"AAAlarge":l=n>=4.5;break;case"AAlarge":l=n>=3;break;case"AAAsmall":l=n>=7;break}return l},Qn.mostReadable=function(e,t,r){var n=null,a=0,l,d,c,u;r=r||{},d=r.includeFallbackColors,c=r.level,u=r.size;for(var f=0;fa&&(a=l,n=Qn(t[f]));return Qn.isReadable(e,n,{level:c,size:u})||!d?n:(r.includeFallbackColors=!1,Qn.mostReadable(e,["#fff","#000"],r))};var Xl=Qn.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N0=Qn.hexNames=$0(Xl);function $0(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function nu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fa(e,t){D0(e)&&(e="100%");var r=T0(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function al(e){return Math.min(1,Math.max(0,e))}function Qa(e){return parseInt(e,16)}function D0(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function T0(e){return typeof e=="string"&&e.indexOf("%")!=-1}function no(e){return e.length==1?"0"+e:""+e}function wi(e){return e<=1&&(e=e*100+"%"),e}function ru(e){return Math.round(parseFloat(e)*255).toString(16)}function au(e){return Qa(e)/255}var ro=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),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 bo(e){return!!ro.CSS_UNIT.exec(e)}function F0(e){e=e.replace(v0,"").replace(m0,"").toLowerCase();var t=!1;if(Xl[e])e=Xl[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ro.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=ro.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ro.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=ro.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ro.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=ro.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ro.hex8.exec(e))?{r:Qa(r[1]),g:Qa(r[2]),b:Qa(r[3]),a:au(r[4]),format:t?"name":"hex8"}:(r=ro.hex6.exec(e))?{r:Qa(r[1]),g:Qa(r[2]),b:Qa(r[3]),format:t?"name":"hex"}:(r=ro.hex4.exec(e))?{r:Qa(r[1]+""+r[1]),g:Qa(r[2]+""+r[2]),b:Qa(r[3]+""+r[3]),a:au(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=ro.hex3.exec(e))?{r:Qa(r[1]+""+r[1]),g:Qa(r[2]+""+r[2]),b:Qa(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function A0(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var ou=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return f0()(r,function(l){if(t[l]&&(n+=1,isNaN(t[l])||(a+=1),l==="s"||l==="l")){var d=/^\d+%$/;d.test(t[l])&&(a+=1)}}),n===a?t:!1},Ei=function(t,r){var n=t.hex?Qn(t.hex):Qn(t),a=n.toHsl(),l=n.toHsv(),d=n.toRgb(),c=n.toHex();a.s===0&&(a.h=r||0,l.h=r||0);var u=c==="000000"&&d.a===0;return{hsl:a,hex:u?"transparent":"#".concat(c),rgb:d,hsv:l,oldHue:t.h||r||a.h,source:t.source}},j0=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&Qn(t).isValid()},kw=function(t){if(!t)return"#fff";var r=Ei(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},Vw={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},Bw=function(t,r){var n=t.replace("\xB0","");return tinycolor("".concat(r," (").concat(n,")"))._ok};function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t-1},sh=function(t){return Number(String(t).replace(/%/g,""))},ch=1,uh=function(e){q0(r,e);var t=eh(r);function r(n){var a;return Q0(this,r),a=t.call(this),a.handleBlur=function(){a.state.blurValue&&a.setState({value:a.state.blurValue,blurValue:null})},a.handleChange=function(l){a.setUpdatedValue(l.target.value,l)},a.handleKeyDown=function(l){var d=sh(l.target.value);if(!isNaN(d)&&lh(l.keyCode)){var c=a.getArrowOffset(),u=l.keyCode===du?d+c:d-c;a.setUpdatedValue(u,l)}},a.handleDrag=function(l){if(a.props.dragLabel){var d=Math.round(a.props.value+l.movementX);d>=0&&d<=a.props.dragMax&&a.props.onChange&&a.props.onChange(a.getValueObjectWithLabel(d),l)}},a.handleMouseDown=function(l){a.props.dragLabel&&(l.preventDefault(),a.handleDrag(l),window.addEventListener("mousemove",a.handleDrag),window.addEventListener("mouseup",a.handleMouseUp))},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleDrag),window.removeEventListener("mouseup",a.handleMouseUp)},a.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},a.inputId="rc-editable-input-".concat(ch++),a}return J0(r,[{key:"componentDidUpdate",value:function(a,l){this.props.value!==this.state.value&&(a.value!==this.props.value||l.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(a){return X0({},this.props.label,a)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||ah}},{key:"setUpdatedValue",value:function(a,l){var d=this.props.label?this.getValueObjectWithLabel(a):a;this.props.onChange&&this.props.onChange(d,l),this.setState({value:a})}},{key:"render",value:function(){var a=this,l=(0,Oo.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return o.createElement("div",{style:l.wrap},o.createElement("input",{id:this.inputId,style:l.input,ref:function(c){return a.input=c},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?o.createElement("label",{htmlFor:this.inputId,style:l.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),r}(o.PureComponent||o.Component),Oi=uh;function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){gh(l,n);var a=hh(l);function l(){var d;dh(this,l);for(var c=arguments.length,u=new Array(c),f=0;f100&&(v.a=100),v.a/=100,r==null||r({h:a==null?void 0:a.h,s:a==null?void 0:a.s,l:a==null?void 0:a.l,a:v.a,source:"rgb"},m))};return o.createElement("div",{style:c.fields,className:"flexbox-fix"},o.createElement("div",{style:c.double},o.createElement(Oi,{style:{input:c.input,label:c.label},label:"hex",value:l==null?void 0:l.replace("#",""),onChange:u})),o.createElement("div",{style:c.single},o.createElement(Oi,{style:{input:c.input,label:c.label},label:"r",value:n==null?void 0:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:c.single},o.createElement(Oi,{style:{input:c.input,label:c.label},label:"g",value:n==null?void 0:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:c.single},o.createElement(Oi,{style:{input:c.input,label:c.label},label:"b",value:n==null?void 0:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:c.alpha},o.createElement(Oi,{style:{input:c.input,label:c.label},label:"a",value:Math.round(((n==null?void 0:n.a)||0)*100),onChange:u,dragLabel:"true",dragMax:"100"})))},Zh=Oh;function Ri(e){"@babel/helpers - typeof";return Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ri(e)}function gu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function hu(e){for(var t=1;t-1}function Kh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e=="undefined"||e===!1)&&yu()?hg:Bh}var zh=function(t,r){var n=t.text,a=t.mode,l=t.render,d=t.renderFormItem,c=t.fieldProps,u=t.old,f=(0,o.useContext)(ft.ZP.ConfigContext),v=f.getPrefixCls,m=o.useMemo(function(){return Kh(u)},[u]),g=v("pro-field-color-picker"),h=(0,o.useMemo)(function(){return u?"":_()((0,D.Z)({},g,yu()))},[g,u]);if(a==="read"){var b=(0,Be.jsx)(m,{value:n,mode:"read",ref:r,className:h,open:!1});return l?l(n,(0,s.Z)({mode:a},c),b):b}if(a==="edit"||a==="update"){var C=(0,s.Z)({display:"table-cell"},c.style),p=(0,Be.jsx)(m,(0,s.Z)((0,s.Z)({ref:r,presets:[Hh]},c),{},{style:C,className:h}));return d?d(n,(0,s.Z)((0,s.Z)({mode:a},c),{},{style:C}),p):p}return null},Wh=o.forwardRef(zh),Uh=i(27484),Ir=i.n(Uh),Yh=i(10285),Cu=i.n(Yh),ns=i(74763);Ir().extend(Cu());var xu=function(t){return!!(t!=null&&t._isAMomentObject)},Ni=function e(t,r){return(0,ns.k)(t)||Ir().isDayjs(t)||xu(t)?xu(t)?Ir()(t):t:Array.isArray(t)?t.map(function(n){return e(n,r)}):typeof t=="number"?Ir()(t):Ir()(t,r)},Gh=i(6833),Su=i.n(Gh),Xh=i(96036),Pu=i.n(Xh),Qh=i(55183),rs=i.n(Qh),Jh=i(172),_h=i.n(Jh),qh=i(28734),wu=i.n(qh);Ir().extend(Cu()),Ir().extend(wu()),Ir().extend(Su()),Ir().extend(Pu()),Ir().extend(rs()),Ir().extend(_h()),Ir().extend(function(e,t){var r=t.prototype,n=r.format;r.format=function(l){var d=(l||"").replace("Wo","wo");return n.bind(this)(d)}});var ep={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Lo=function(t){var r=ep[t];return r||t.split("_")[0]},Eu=function(){(0,Le.ET)(!1,"Not match any format. Please help to fire a issue about this.")},tp={getNow:function(){return Ir()()},getFixedDate:function(t){return Ir()(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var r=t.locale("en");return r.weekday()+r.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,r){return t.add(r,"year")},addMonth:function(t,r){return t.add(r,"month")},addDate:function(t,r){return t.add(r,"day")},setYear:function(t,r){return t.year(r)},setMonth:function(t,r){return t.month(r)},setDate:function(t,r){return t.date(r)},setHour:function(t,r){return t.hour(r)},setMinute:function(t,r){return t.minute(r)},setSecond:function(t,r){return t.second(r)},setMillisecond:function(t,r){return t.millisecond(r)},isAfter:function(t,r){return t.isAfter(r)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Ir()().locale(Lo(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,r){return r.locale(Lo(t)).weekday(0)},getWeek:function(t,r){return r.locale(Lo(t)).week()},getShortWeekDays:function(t){return Ir()().locale(Lo(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Ir()().locale(Lo(t)).localeData().monthsShort()},format:function(t,r,n){return r.locale(Lo(t)).format(n)},parse:function(t,r,n){for(var a=Lo(t),l=0;l2&&arguments[2]!==void 0?arguments[2]:"0",n=String(e);n.length2&&arguments[2]!==void 0?arguments[2]:[],n=o.useState([!1,!1]),a=(0,w.Z)(n,2),l=a[0],d=a[1],c=function(v,m){d(function(g){return $i(g,m,v)})},u=o.useMemo(function(){return l.map(function(f,v){if(f)return!0;var m=e[v];return m?!!(!r[v]&&!m||m&&t(m,{activeIndex:v})):!1})},[e,l,t,r]);return[u,c]}function $u(e,t,r,n,a){var l="",d=[];return e&&d.push(a?"hh":"HH"),t&&d.push("mm"),r&&d.push("ss"),l=d.join(":"),n&&(l+=".SSS"),a&&(l+=" A"),l}function yp(e,t,r,n,a,l){var d=e.fieldDateTimeFormat,c=e.fieldDateFormat,u=e.fieldTimeFormat,f=e.fieldMonthFormat,v=e.fieldYearFormat,m=e.fieldWeekFormat,g=e.fieldQuarterFormat,h=e.yearFormat,b=e.cellYearFormat,C=e.cellQuarterFormat,p=e.dayFormat,P=e.cellDateFormat,E=$u(t,r,n,a,l);return(0,s.Z)((0,s.Z)({},e),{},{fieldDateTimeFormat:d||"YYYY-MM-DD ".concat(E),fieldDateFormat:c||"YYYY-MM-DD",fieldTimeFormat:u||E,fieldMonthFormat:f||"YYYY-MM",fieldYearFormat:v||"YYYY",fieldWeekFormat:m||"gggg-wo",fieldQuarterFormat:g||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:b||"YYYY",cellQuarterFormat:C||"[Q]Q",cellDateFormat:P||p||"D"})}function Du(e,t){var r=t.showHour,n=t.showMinute,a=t.showSecond,l=t.showMillisecond,d=t.use12Hours;return o.useMemo(function(){return yp(e,r,n,a,l,d)},[e,r,n,a,l,d])}function Di(e,t,r){return r!=null?r:t.some(function(n){return e.includes(n)})}var Cp=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function xp(e){var t=sl(e,Cp),r=e.format,n=e.picker,a=null;return r&&(a=r,Array.isArray(a)&&(a=a[0]),a=(0,x.Z)(a)==="object"?a.format:a),n==="time"&&(t.format=a),[t,a]}function Sp(e){return e&&typeof e=="string"}function Tu(e){var t=e.showTime,r=xp(e),n=(0,w.Z)(r,2),a=n[0],l=n[1],d=t&&(0,x.Z)(t)==="object"?t:{},c=(0,s.Z)((0,s.Z)({defaultOpenValue:d.defaultOpenValue||d.defaultValue},a),d),u=c.showMillisecond,f=c.showHour,v=c.showMinute,m=c.showSecond;return!f&&!v&&!m&&!u&&(f=!0,v=!0,m=!0),[c,(0,s.Z)((0,s.Z)({},c),{},{showHour:f,showMinute:v,showSecond:m,showMillisecond:u}),c.format,l]}function Fu(e,t,r,n,a){var l=e==="time";if(e==="datetime"||l){for(var d=n,c=Ru(e,a,null),u=c,f=[t,r],v=0;v1&&(d=t.addDate(d,-7)),d}function Oa(e,t){var r=t.generateConfig,n=t.locale,a=t.format;return e?typeof a=="function"?a(e):r.locale.format(n.locale,e,a):""}function dl(e,t,r){var n=t,a=["getHour","getMinute","getSecond","getMillisecond"],l=["setHour","setMinute","setSecond","setMillisecond"];return l.forEach(function(d,c){r?n=e[d](n,e[a[c]](r)):n=e[d](n,0)}),n}function Ip(e,t,r,n,a){var l=(0,Xr.zX)(function(d,c){return!!(r&&r(d,c)||n&&e.isAfter(n,d)&&!ja(e,t,n,d,c.type)||a&&e.isAfter(d,a)&&!ja(e,t,a,d,c.type))});return l}function Op(e,t,r){return o.useMemo(function(){var n=Ru(e,t,r),a=ko(n),l=a[0],d=(0,x.Z)(l)==="object"&&l.type==="mask"?l.format:null;return[a.map(function(c){return typeof c=="string"||typeof c=="function"?c:c.format}),d]},[e,t,r])}function Zp(e,t,r){return typeof e[0]=="function"||r?!0:t}function Rp(e,t,r,n){var a=(0,Xr.zX)(function(l,d){var c=(0,s.Z)({type:t},d);if(delete c.activeIndex,!e.isValidate(l)||r&&r(l,c))return!0;if((t==="date"||t==="time")&&n){var u,f=((u=n.disabledTime)===null||u===void 0?void 0:u.call(n,l,d&&d.activeIndex===1?"end":"start"))||{},v=f.disabledHours,m=f.disabledMinutes,g=f.disabledSeconds,h=f.disabledMilliseconds,b=n.disabledHours,C=n.disabledMinutes,p=n.disabledSeconds,P=v||b,E=m||C,O=g||p,$=e.getHour(l),Z=e.getMinute(l),N=e.getSecond(l),L=e.getMillisecond(l);if(P&&P().includes($)||E&&E($).includes(Z)||O&&O($,Z).includes(N)||h&&h($,Z,N).includes(L))return!0}return!1});return a}function fl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=o.useMemo(function(){var n=e&&ko(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t]);return r}function ku(e,t){var r=e.generateConfig,n=e.locale,a=e.picker,l=a===void 0?"date":a,d=e.prefixCls,c=d===void 0?"rc-picker":d,u=e.styles,f=u===void 0?{}:u,v=e.classNames,m=v===void 0?{}:v,g=e.order,h=g===void 0?!0:g,b=e.components,C=b===void 0?{}:b,p=e.inputRender,P=e.allowClear,E=e.clearIcon,O=e.needConfirm,$=e.multiple,Z=e.format,N=e.inputReadOnly,L=e.disabledDate,K=e.minDate,U=e.maxDate,W=e.showTime,B=e.value,z=e.defaultValue,J=e.pickerValue,ae=e.defaultPickerValue,ne=fl(B),oe=fl(z),Q=fl(J),ee=fl(ae),fe=l==="date"&&W?"datetime":l,xe=fe==="time"||fe==="datetime",He=xe||$,ge=O!=null?O:xe,et=Tu(e),Ue=(0,w.Z)(et,4),at=Ue[0],vt=Ue[1],Ve=Ue[2],ct=Ue[3],ht=Du(n,vt),De=o.useMemo(function(){return Fu(fe,Ve,ct,at,ht)},[fe,Ve,ct,at,ht]),ye=o.useMemo(function(){return(0,s.Z)((0,s.Z)({},e),{},{prefixCls:c,locale:ht,picker:l,styles:f,classNames:m,order:h,components:(0,s.Z)({input:p},C),clearIcon:Pp(c,P,E),showTime:De,value:ne,defaultValue:oe,pickerValue:Q,defaultPickerValue:ee},t==null?void 0:t())},[e]),Ke=Op(fe,ht,Z),je=(0,w.Z)(Ke,2),Te=je[0],Ye=je[1],qe=Zp(Te,N,$),Zt=Ip(r,n,L,K,U),It=Rp(r,l,L,De),Lt=o.useMemo(function(){return(0,s.Z)((0,s.Z)({},ye),{},{needConfirm:ge,inputReadOnly:qe,disabledDate:Zt})},[ye,ge,qe,Zt]);return[Lt,fe,He,Te,Ye,It]}function Mp(e,t,r){var n=(0,Xr.C8)(t,{value:e}),a=(0,w.Z)(n,2),l=a[0],d=a[1],c=o.useRef(e),u=o.useRef(),f=function(){Aa.Z.cancel(u.current)},v=(0,Xr.zX)(function(){d(c.current),r&&l!==c.current&&r(c.current)}),m=(0,Xr.zX)(function(g,h){f(),c.current=g,g||h?v():u.current=(0,Aa.Z)(v)});return o.useEffect(function(){return f},[]),[l,m]}function Vu(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,a=r.every(function(v){return v})?!1:e,l=Mp(a,t||!1,n),d=(0,w.Z)(l,2),c=d[0],u=d[1];function f(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!m.inherit||c)&&u(v,m.force)}return[c,f]}function Bu(e){var t=o.useRef();return o.useImperativeHandle(e,function(){var r;return{nativeElement:(r=t.current)===null||r===void 0?void 0:r.nativeElement,focus:function(a){var l;(l=t.current)===null||l===void 0||l.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function Hu(e,t){return o.useMemo(function(){return e||(t?((0,Le.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(r){var n=(0,w.Z)(r,2),a=n[0],l=n[1];return{label:a,value:l}})):[])},[e,t])}function us(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=o.useRef(t);n.current=t,(0,Ge.o)(function(){if(e)n.current(e);else{var a=(0,Aa.Z)(function(){n.current(e)},r);return function(){Aa.Z.cancel(a)}}},[e])}function Ku(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=o.useState(0),n=(0,w.Z)(r,2),a=n[0],l=n[1],d=o.useState(!1),c=(0,w.Z)(d,2),u=c[0],f=c[1],v=o.useRef([]),m=o.useRef(null),g=function(p){f(p)},h=function(p){return p&&(m.current=p),m.current},b=function(p){var P=v.current,E=new Set(P.filter(function($){return p[$]||t[$]})),O=P[P.length-1]===0?1:0;return E.size>=2||e[O]?null:O};return us(u,function(){u||(v.current=[])}),o.useEffect(function(){u&&v.current.push(a)},[u,a]),[u,g,h,a,l,b,v.current]}function Np(e,t,r,n,a,l){var d=r[r.length-1],c=r.find(function(f){return e[f]}),u=function(v,m){var g=(0,w.Z)(e,2),h=g[0],b=g[1],C=(0,s.Z)((0,s.Z)({},m),{},{from:d!==c?e[c]:void 0});return d===1&&t[0]&&h&&!ja(n,a,h,v,C.type)&&n.isAfter(h,v)||d===0&&t[1]&&b&&!ja(n,a,b,v,C.type)&&n.isAfter(v,b)?!0:l==null?void 0:l(v,C)};return u}function Fi(e,t,r,n){switch(t){case"date":case"week":return e.addMonth(r,n);case"month":case"quarter":return e.addYear(r,n);case"year":return e.addYear(r,n*10);case"decade":return e.addYear(r,n*100);default:return r}}var ds=[];function zu(e,t,r,n,a,l,d,c){var u=arguments.length>8&&arguments[8]!==void 0?arguments[8]:ds,f=arguments.length>9&&arguments[9]!==void 0?arguments[9]:ds,v=arguments.length>10&&arguments[10]!==void 0?arguments[10]:ds,m=arguments.length>11?arguments[11]:void 0,g=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,b=d==="time",C=l||0,p=function(Q){var ee=e.getNow();return b&&(ee=dl(e,ee)),u[Q]||r[Q]||ee},P=(0,w.Z)(f,2),E=P[0],O=P[1],$=(0,Xr.C8)(function(){return p(0)},{value:E}),Z=(0,w.Z)($,2),N=Z[0],L=Z[1],K=(0,Xr.C8)(function(){return p(1)},{value:O}),U=(0,w.Z)(K,2),W=U[0],B=U[1],z=o.useMemo(function(){var oe=[N,W][C];return b?oe:dl(e,oe,v[C])},[b,N,W,C,e,v]),J=function(Q){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",fe=[L,B][C];fe(Q);var xe=[N,W];xe[C]=Q,m&&(!ja(e,t,N,xe[0],d)||!ja(e,t,W,xe[1],d))&&m(xe,{source:ee,range:C===1?"end":"start",mode:n})},ae=function(Q,ee){if(c){var fe={date:"month",week:"month",month:"year",quarter:"year"},xe=fe[d];if(xe&&!ja(e,t,Q,ee,xe))return Fi(e,d,ee,-1);if(d==="year"){var He=Math.floor(e.getYear(Q)/10),ge=Math.floor(e.getYear(ee)/10);if(He!==ge)return Fi(e,d,ee,-1)}}return ee},ne=o.useRef(null);return(0,Ge.Z)(function(){if(a&&!u[C]){var oe=b?null:e.getNow();if(ne.current!==null&&ne.current!==C?oe=[N,W][C^1]:r[C]?oe=C===0?r[0]:ae(r[0],r[1]):r[C^1]&&(oe=r[C^1]),oe){g&&e.isAfter(g,oe)&&(oe=g);var Q=c?Fi(e,d,oe,1):oe;h&&e.isAfter(Q,h)&&(oe=c?Fi(e,d,h,-1):h),J(oe,"reset")}}},[a,C,r[C]]),o.useEffect(function(){a?ne.current=C:ne.current=null},[a,C]),(0,Ge.Z)(function(){a&&u&&u[C]&&J(u[C],"reset")},[a,C]),[z,J]}function Wu(e,t){var r=o.useRef(e),n=o.useState({}),a=(0,w.Z)(n,2),l=a[1],d=function(f){return f&&t!==void 0?t:r.current},c=function(f){r.current=f,l({})};return[d,c,d(!0)]}var $p=[];function Uu(e,t,r){var n=function(d){return d.map(function(c){return Oa(c,{generateConfig:e,locale:t,format:r[0]})})},a=function(d,c){for(var u=Math.max(d.length,c.length),f=-1,v=0;v2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,d=[],c=r>=1?r|0:1,u=e;u<=t;u+=c){var f=a.includes(u);(!f||!n)&&d.push({label:as(u,l),value:u,disabled:f})}return d}function fs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=t||{},a=n.use12Hours,l=n.hourStep,d=l===void 0?1:l,c=n.minuteStep,u=c===void 0?1:c,f=n.secondStep,v=f===void 0?1:f,m=n.millisecondStep,g=m===void 0?100:m,h=n.hideDisabledOptions,b=n.disabledTime,C=n.disabledHours,p=n.disabledMinutes,P=n.disabledSeconds,E=o.useMemo(function(){return r||e.getNow()},[r,e]);if(!1)var O,$,Z;var N=o.useCallback(function(He){var ge=(b==null?void 0:b(He))||{};return[ge.disabledHours||C||vl,ge.disabledMinutes||p||vl,ge.disabledSeconds||P||vl,ge.disabledMilliseconds||vl]},[b,C,p,P]),L=o.useMemo(function(){return N(E)},[E,N]),K=(0,w.Z)(L,4),U=K[0],W=K[1],B=K[2],z=K[3],J=o.useCallback(function(He,ge,et,Ue){var at=ml(0,23,d,h,He()),vt=a?at.map(function(De){return(0,s.Z)((0,s.Z)({},De),{},{label:as(De.value%12||12,2)})}):at,Ve=function(ye){return ml(0,59,u,h,ge(ye))},ct=function(ye,Ke){return ml(0,59,v,h,et(ye,Ke))},ht=function(ye,Ke,je){return ml(0,999,g,h,Ue(ye,Ke,je),3)};return[vt,Ve,ct,ht]},[h,d,a,g,u,v]),ae=o.useMemo(function(){return J(U,W,B,z)},[J,U,W,B,z]),ne=(0,w.Z)(ae,4),oe=ne[0],Q=ne[1],ee=ne[2],fe=ne[3],xe=function(ge,et){var Ue=function(){return oe},at=Q,vt=ee,Ve=fe;if(et){var ct=N(et),ht=(0,w.Z)(ct,4),De=ht[0],ye=ht[1],Ke=ht[2],je=ht[3],Te=J(De,ye,Ke,je),Ye=(0,w.Z)(Te,4),qe=Ye[0],Zt=Ye[1],It=Ye[2],Lt=Ye[3];Ue=function(){return qe},at=Zt,vt=It,Ve=Lt}var Kt=Tp(ge,Ue,at,vt,Ve,e);return Kt};return[xe,oe,Q,ee,fe]}function Fp(e){var t=e.mode,r=e.internalMode,n=e.renderExtraFooter,a=e.showNow,l=e.showTime,d=e.onSubmit,c=e.onNow,u=e.invalid,f=e.needConfirm,v=e.generateConfig,m=e.disabledDate,g=o.useContext(ao),h=g.prefixCls,b=g.locale,C=g.button,p=C===void 0?"button":C,P=v.getNow(),E=fs(v,l,P),O=(0,w.Z)(E,1),$=O[0],Z=n==null?void 0:n(t),N=m(P,{type:t}),L=function(){if(!N){var ae=$(P);c(ae)}},K="".concat(h,"-now"),U="".concat(K,"-btn"),W=a&&o.createElement("li",{className:K},o.createElement("a",{className:_()(U,N&&"".concat(U,"-disabled")),"aria-disabled":N,onClick:L},r==="date"?b.today:b.now)),B=f&&o.createElement("li",{className:"".concat(h,"-ok")},o.createElement(p,{disabled:u,onClick:d},b.ok)),z=(W||B)&&o.createElement("ul",{className:"".concat(h,"-ranges")},W,B);return!Z&&!z?null:o.createElement("div",{className:"".concat(h,"-footer")},Z&&o.createElement("div",{className:"".concat(h,"-footer-extra")},Z),z)}function _u(e,t,r){function n(a,l){var d=a.findIndex(function(u){return ja(e,t,u,l,r)});if(d===-1)return[].concat((0,pe.Z)(a),[l]);var c=(0,pe.Z)(a);return c.splice(d,1),c}return n}var Bo=o.createContext(null);function gl(){return o.useContext(Bo)}function si(e,t){var r=e.prefixCls,n=e.generateConfig,a=e.locale,l=e.disabledDate,d=e.minDate,c=e.maxDate,u=e.cellRender,f=e.hoverValue,v=e.hoverRangeValue,m=e.onHover,g=e.values,h=e.pickerValue,b=e.onSelect,C=e.prevIcon,p=e.nextIcon,P=e.superPrevIcon,E=e.superNextIcon,O=n.getNow(),$={now:O,values:g,pickerValue:h,prefixCls:r,disabledDate:l,minDate:d,maxDate:c,cellRender:u,hoverValue:f,hoverRangeValue:v,onHover:m,locale:a,generateConfig:n,onSelect:b,panelType:t,prevIcon:C,nextIcon:p,superPrevIcon:P,superNextIcon:E};return[$,O]}var Ro=o.createContext({});function Ai(e){for(var t=e.rowNum,r=e.colNum,n=e.baseDate,a=e.getCellDate,l=e.prefixColumn,d=e.rowClassName,c=e.titleFormat,u=e.getCellText,f=e.getCellClassName,v=e.headerCells,m=e.cellSelection,g=m===void 0?!0:m,h=e.disabledDate,b=gl(),C=b.prefixCls,p=b.panelType,P=b.now,E=b.disabledDate,O=b.cellRender,$=b.onHover,Z=b.hoverValue,N=b.hoverRangeValue,L=b.generateConfig,K=b.values,U=b.locale,W=b.onSelect,B=h||E,z="".concat(C,"-cell"),J=o.useContext(Ro),ae=J.onCellDblClick,ne=function(et){return K.some(function(Ue){return Ue&&ja(L,U,et,Ue,p)})},oe=[],Q=0;Q1&&arguments[1]!==void 0?arguments[1]:!1;en(rn),p==null||p(rn),In&&Cn(rn)},pn=function(rn,In){ht(rn),In&&Ot(In),Cn(In,rn)},Bt=function(rn){if(It(rn),Ot(rn),ct!==$){var In=["decade","year"],Gn=[].concat(In,["month"]),En={quarter:[].concat(In,["quarter"]),week:[].concat((0,pe.Z)(Gn),["week"]),date:[].concat((0,pe.Z)(Gn),["date"])},kr=En[$]||Gn,Fr=kr.indexOf(ct),Mr=kr[Fr+1];Mr&&pn(Mr,rn)}},ot=o.useMemo(function(){var nn,rn;if(Array.isArray(L)){var In=(0,w.Z)(L,2);nn=In[0],rn=In[1]}else nn=L;return!nn&&!rn?null:(nn=nn||rn,rn=rn||nn,a.isAfter(nn,rn)?[rn,nn]:[nn,rn])},[L,a]),Tt=os(K,U,W),_t=z[De]||Gp[De]||pl,Qt=o.useContext(Ro),Sn=o.useMemo(function(){return(0,s.Z)((0,s.Z)({},Qt),{},{hideHeader:J})},[Qt,J]),hn="".concat(ae,"-panel"),Fn=sl(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return o.createElement(Ro.Provider,{value:Sn},o.createElement("div",{ref:ne,tabIndex:u,className:_()(hn,(0,D.Z)({},"".concat(hn,"-rtl"),l==="rtl"))},o.createElement(_t,(0,Y.Z)({},Fn,{showTime:Ue,prefixCls:ae,locale:ge,generateConfig:a,onModeChange:pn,pickerValue:Yt,onPickerValueChange:function(rn){Ot(rn,!0)},value:qe[0],onSelect:Bt,values:qe,cellRender:Tt,hoverRangeValue:ot,hoverValue:N}))))}var Qp=o.memo(o.forwardRef(Xp)),vs=Qp;function Jp(e){var t=e.picker,r=e.multiplePanel,n=e.pickerValue,a=e.onPickerValueChange,l=e.needConfirm,d=e.onSubmit,c=e.range,u=e.hoverValue,f=o.useContext(ao),v=f.prefixCls,m=f.generateConfig,g=o.useCallback(function(E,O){return Fi(m,t,E,O)},[m,t]),h=o.useMemo(function(){return g(n,1)},[n,g]),b=function(O){a(g(O,-1))},C={onCellDblClick:function(){l&&d()}},p=t==="time",P=(0,s.Z)((0,s.Z)({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:p});return c?P.hoverRangeValue=u:P.hoverValue=u,r?o.createElement("div",{className:"".concat(v,"-panels")},o.createElement(Ro.Provider,{value:(0,s.Z)((0,s.Z)({},C),{},{hideNext:!0})},o.createElement(vs,P)),o.createElement(Ro.Provider,{value:(0,s.Z)((0,s.Z)({},C),{},{hidePrev:!0})},o.createElement(vs,(0,Y.Z)({},P,{pickerValue:h,onPickerValueChange:b})))):o.createElement(Ro.Provider,{value:(0,s.Z)({},C)},o.createElement(vs,P))}function ed(e){return typeof e=="function"?e():e}function _p(e){var t=e.prefixCls,r=e.presets,n=e.onClick,a=e.onHover;return r.length?o.createElement("div",{className:"".concat(t,"-presets")},o.createElement("ul",null,r.map(function(l,d){var c=l.label,u=l.value;return o.createElement("li",{key:d,onClick:function(){n(ed(u))},onMouseEnter:function(){a(ed(u))},onMouseLeave:function(){a(null)}},c)}))):null}function td(e){var t=e.panelRender,r=e.internalMode,n=e.picker,a=e.showNow,l=e.range,d=e.multiple,c=e.activeOffset,u=c===void 0?0:c,f=e.presets,v=e.onPresetHover,m=e.onPresetSubmit,g=e.onFocus,h=e.onBlur,b=e.direction,C=e.value,p=e.onSelect,P=e.isInvalid,E=e.defaultOpenValue,O=e.onOk,$=e.onSubmit,Z=o.useContext(ao),N=Z.prefixCls,L="".concat(N,"-panel"),K=b==="rtl",U=o.useRef(null),W=o.useRef(null),B=o.useState(0),z=(0,w.Z)(B,2),J=z[0],ae=z[1],ne=o.useState(0),oe=(0,w.Z)(ne,2),Q=oe[0],ee=oe[1],fe=function(je){je.offsetWidth&&ae(je.offsetWidth)};o.useEffect(function(){if(l){var Ke,je=((Ke=U.current)===null||Ke===void 0?void 0:Ke.offsetWidth)||0,Te=J-je;u<=Te?ee(0):ee(u+je-J)}},[J,u,l]);function xe(Ke){return Ke.filter(function(je){return je})}var He=o.useMemo(function(){return xe(ko(C))},[C]),ge=n==="time"&&!He.length,et=o.useMemo(function(){return ge?xe([E]):He},[ge,He,E]),Ue=ge?E:He,at=o.useMemo(function(){return et.length?et.some(function(Ke){return P(Ke)}):!0},[et,P]),vt=function(){ge&&p(E),O(),$()},Ve=o.createElement("div",{className:"".concat(N,"-panel-layout")},o.createElement(_p,{prefixCls:N,presets:f,onClick:m,onHover:v}),o.createElement("div",null,o.createElement(Jp,(0,Y.Z)({},e,{value:Ue})),o.createElement(Fp,(0,Y.Z)({},e,{showNow:d?!1:a,invalid:at,onSubmit:vt}))));t&&(Ve=t(Ve));var ct="".concat(L,"-container"),ht="marginLeft",De="marginRight",ye=o.createElement("div",{tabIndex:-1,className:_()(ct,"".concat(N,"-").concat(r,"-panel-container")),style:(0,D.Z)((0,D.Z)({},K?De:ht,Q),K?ht:De,"auto"),onFocus:g,onBlur:h},Ve);return l&&(ye=o.createElement("div",{ref:W,className:_()("".concat(N,"-range-wrapper"),"".concat(N,"-").concat(n,"-range-wrapper"))},o.createElement("div",{ref:U,className:"".concat(N,"-range-arrow"),style:(0,D.Z)({},K?"right":"left",u)}),o.createElement(Ju.Z,{onResize:fe},ye))),ye}function nd(e,t){var r=e.format,n=e.maskFormat,a=e.generateConfig,l=e.locale,d=e.preserveInvalidOnBlur,c=e.inputReadOnly,u=e.required,f=e["aria-required"],v=e.onSubmit,m=e.onFocus,g=e.onBlur,h=e.onInputChange,b=e.onInvalid,C=e.open,p=e.onOpenChange,P=e.onKeyDown,E=e.onChange,O=e.activeHelp,$=e.name,Z=e.autoComplete,N=e.id,L=e.value,K=e.invalid,U=e.placeholder,W=e.disabled,B=e.activeIndex,z=e.allHelp,J=e.picker,ae=function(ge,et){var Ue=a.locale.parse(l.locale,ge,[et]);return Ue&&a.isValidate(Ue)?Ue:null},ne=r[0],oe=o.useCallback(function(He){return Oa(He,{locale:l,format:ne,generateConfig:a})},[l,a,ne]),Q=o.useMemo(function(){return L.map(oe)},[L,oe]),ee=o.useMemo(function(){var He=J==="time"?8:10,ge=typeof ne=="function"?ne(a.getNow()).length:ne.length;return Math.max(He,ge)+2},[ne,J,a]),fe=function(ge){for(var et=0;et=c&&r<=u)return l;var f=Math.min(Math.abs(r-c),Math.abs(r-u));f0?$n:Ur));var qt=sn+xn,vn=Ur-$n+1;return String($n+(vn+qt-$n)%vn)};switch(In){case"Backspace":case"Delete":Gn="",En=Fr;break;case"ArrowLeft":Gn="",Mr(-1);break;case"ArrowRight":Gn="",Mr(1);break;case"ArrowUp":Gn="",En=ta(1);break;case"ArrowDown":Gn="",En=ta(-1);break;default:isNaN(Number(In))||(Gn=ge+In,En=Gn);break}if(Gn!==null&&(et(Gn),Gn.length>=kr&&(Mr(1),et(""))),En!==null){var Qr=Ke.slice(0,It)+as(En,kr)+Ke.slice(Lt);Yt(Qr.slice(0,d.length))}ye({})},hn=o.useRef();(0,Ge.Z)(function(){if(!(!ae||!d||Ot.current)){if(!Ye.match(Ke)){Yt(d);return}return Te.current.setSelectionRange(It,Lt),hn.current=(0,Aa.Z)(function(){Te.current.setSelectionRange(It,Lt)}),function(){Aa.Z.cancel(hn.current)}}},[Ye,d,ae,Ke,vt,It,Lt,De,Yt]);var Fn=d?{onFocus:ot,onBlur:_t,onKeyDown:Sn,onMouseDown:pn,onMouseUp:Bt,onPaste:Cn}:{};return o.createElement("div",{ref:je,className:_()(B,(0,D.Z)((0,D.Z)({},"".concat(B,"-active"),r&&a),"".concat(B,"-placeholder"),v))},o.createElement(W,(0,Y.Z)({ref:Te,"aria-invalid":p,autoComplete:"off"},E,{onKeyDown:Qt,onBlur:Tt},Fn,{value:Ke,onChange:en})),o.createElement(bl,{type:"suffix",icon:l}),P)}),hs=ob,ib=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"],lb=["index"];function sb(e,t){var r=e.id,n=e.clearIcon,a=e.suffixIcon,l=e.separator,d=l===void 0?"~":l,c=e.activeIndex,u=e.activeHelp,f=e.allHelp,v=e.focused,m=e.onFocus,g=e.onBlur,h=e.onKeyDown,b=e.locale,C=e.generateConfig,p=e.placeholder,P=e.className,E=e.style,O=e.onClick,$=e.onClear,Z=e.value,N=e.onChange,L=e.onSubmit,K=e.onInputChange,U=e.format,W=e.maskFormat,B=e.preserveInvalidOnBlur,z=e.onInvalid,J=e.disabled,ae=e.invalid,ne=e.inputReadOnly,oe=e.direction,Q=e.onOpenChange,ee=e.onActiveOffset,fe=e.onMouseDown,xe=e.required,He=e["aria-required"],ge=e.autoFocus,et=(0,y.Z)(e,ib),Ue=oe==="rtl",at=o.useContext(ao),vt=at.prefixCls,Ve=o.useMemo(function(){if(typeof r=="string")return[r];var Bt=r||{};return[Bt.start,Bt.end]},[r]),ct=o.useRef(),ht=o.useRef(),De=o.useRef(),ye=function(ot){var Tt;return(Tt=[ht,De][ot])===null||Tt===void 0?void 0:Tt.current};o.useImperativeHandle(t,function(){return{nativeElement:ct.current,focus:function(ot){if((0,x.Z)(ot)==="object"){var Tt,_t=ot||{},Qt=_t.index,Sn=Qt===void 0?0:Qt,hn=(0,y.Z)(_t,lb);(Tt=ye(Sn))===null||Tt===void 0||Tt.focus(hn)}else{var Fn;(Fn=ye(ot!=null?ot:0))===null||Fn===void 0||Fn.focus()}},blur:function(){var ot,Tt;(ot=ye(0))===null||ot===void 0||ot.blur(),(Tt=ye(1))===null||Tt===void 0||Tt.blur()}}});var Ke=rd(et),je=o.useMemo(function(){return Array.isArray(p)?p:[p,p]},[p]),Te=nd((0,s.Z)((0,s.Z)({},e),{},{id:Ve,placeholder:je})),Ye=(0,w.Z)(Te,1),qe=Ye[0],Zt=Ue?"right":"left",It=o.useState((0,D.Z)({position:"absolute",width:0},Zt,0)),Lt=(0,w.Z)(It,2),Kt=Lt[0],Yt=Lt[1],en=(0,Xr.zX)(function(){var Bt=ye(c);if(Bt){var ot=Bt.nativeElement,Tt=ot.offsetWidth,_t=ot.offsetLeft,Qt=ot.offsetParent,Sn=_t;if(Ue){var hn=Qt,Fn=getComputedStyle(hn);Sn=hn.offsetWidth-parseFloat(Fn.borderRightWidth)-parseFloat(Fn.borderLeftWidth)-_t-Tt}Yt(function(nn){return(0,s.Z)((0,s.Z)({},nn),{},(0,D.Z)({width:Tt},Zt,Sn))}),ee(c===0?0:Sn)}});o.useEffect(function(){en()},[c]);var Cn=n&&(Z[0]&&!J[0]||Z[1]&&!J[1]),Ot=ge&&!J[0],pn=ge&&!Ot&&!J[1];return o.createElement(Ju.Z,{onResize:en},o.createElement("div",(0,Y.Z)({},Ke,{className:_()(vt,"".concat(vt,"-range"),(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(vt,"-focused"),v),"".concat(vt,"-disabled"),J.every(function(Bt){return Bt})),"".concat(vt,"-invalid"),ae.some(function(Bt){return Bt})),"".concat(vt,"-rtl"),Ue),P),style:E,ref:ct,onClick:O,onMouseDown:function(ot){var Tt=ot.target;Tt!==ht.current.inputElement&&Tt!==De.current.inputElement&&ot.preventDefault(),fe==null||fe(ot)}}),o.createElement(hs,(0,Y.Z)({ref:ht},qe(0),{autoFocus:Ot,"date-range":"start"})),o.createElement("div",{className:"".concat(vt,"-range-separator")},d),o.createElement(hs,(0,Y.Z)({ref:De},qe(1),{autoFocus:pn,"date-range":"end"})),o.createElement("div",{className:"".concat(vt,"-active-bar"),style:Kt}),o.createElement(bl,{type:"suffix",icon:a}),Cn&&o.createElement(ms,{icon:n,onClear:$})))}var cb=o.forwardRef(sb),ub=cb;function od(e,t){var r=e!=null?e:t;return Array.isArray(r)?r:[r,r]}function yl(e){return e===1?"end":"start"}function db(e,t){var r=ku(e,function(){var Hr=e.disabled,xr=e.allowEmpty,jr=od(Hr,!1),Na=od(xr,!1);return{disabled:jr,allowEmpty:Na}}),n=(0,w.Z)(r,6),a=n[0],l=n[1],d=n[2],c=n[3],u=n[4],f=n[5],v=a.prefixCls,m=a.styles,g=a.classNames,h=a.defaultValue,b=a.value,C=a.needConfirm,p=a.onKeyDown,P=a.disabled,E=a.allowEmpty,O=a.disabledDate,$=a.minDate,Z=a.maxDate,N=a.defaultOpen,L=a.open,K=a.onOpenChange,U=a.locale,W=a.generateConfig,B=a.picker,z=a.showNow,J=a.showToday,ae=a.showTime,ne=a.mode,oe=a.onPanelChange,Q=a.onCalendarChange,ee=a.onOk,fe=a.defaultPickerValue,xe=a.pickerValue,He=a.onPickerValueChange,ge=a.inputReadOnly,et=a.suffixIcon,Ue=a.onFocus,at=a.onBlur,vt=a.presets,Ve=a.ranges,ct=a.components,ht=a.cellRender,De=a.dateRender,ye=a.monthCellRender,Ke=a.onClick,je=Bu(t),Te=Vu(L,N,P,K),Ye=(0,w.Z)(Te,2),qe=Ye[0],Zt=Ye[1],It=function(xr,jr){(P.some(function(Na){return!Na})||!xr)&&Zt(xr,jr)},Lt=Gu(W,U,c,!0,!1,h,b,Q,ee),Kt=(0,w.Z)(Lt,5),Yt=Kt[0],en=Kt[1],Cn=Kt[2],Ot=Kt[3],pn=Kt[4],Bt=Cn(),ot=Ku(P,E),Tt=(0,w.Z)(ot,7),_t=Tt[0],Qt=Tt[1],Sn=Tt[2],hn=Tt[3],Fn=Tt[4],nn=Tt[5],rn=Tt[6],In=function(xr,jr){Qt(!0),Ue==null||Ue(xr,{range:yl(jr!=null?jr:hn)})},Gn=function(xr,jr){Qt(!1),at==null||at(xr,{range:yl(jr!=null?jr:hn)})},En=o.useMemo(function(){if(!ae)return null;var Hr=ae.disabledTime,xr=Hr?function(jr){var Na=yl(hn);return Hr(jr,Na)}:void 0;return(0,s.Z)((0,s.Z)({},ae),{},{disabledTime:xr})},[ae,hn]),kr=(0,Xr.C8)([B,B],{value:ne}),Fr=(0,w.Z)(kr,2),Mr=Fr[0],ta=Fr[1],Qr=Mr[hn]||B,Ln=Qr==="date"&&En?"datetime":Qr,xn=Ln===B&&Ln!=="time",Bn=Qu(B,Qr,z,J,!0),Pn=Xu(a,Yt,en,Cn,Ot,P,c,_t,qe,f),$n=(0,w.Z)(Pn,2),Ur=$n[0],Or=$n[1],Ht=Np(Bt,P,rn,W,U,O),sn=Nu(Bt,f,E),qt=(0,w.Z)(sn,2),vn=qt[0],Vn=qt[1],zn=zu(W,U,Bt,Mr,qe,hn,l,xn,fe,xe,En==null?void 0:En.defaultOpenValue,He,$,Z),Jr=(0,w.Z)(zn,2),_r=Jr[0],ua=Jr[1],Wn=(0,Xr.zX)(function(Hr,xr,jr){var Na=$i(Mr,hn,xr);if((Na[0]!==Mr[0]||Na[1]!==Mr[1])&&ta(Na),oe&&jr!==!1){var yi=(0,pe.Z)(Bt);Hr&&(yi[hn]=Hr),oe(yi,Na)}}),rr=function(xr,jr){return $i(Bt,jr,xr)},mn=function(xr,jr){var Na=Bt;xr&&(Na=rr(xr,hn));var yi=nn(Na);Ot(Na),Ur(hn,yi===null),yi===null?It(!1,{force:!0}):jr||je.current.focus({index:yi})},Yn=function(xr){if(!je.current.nativeElement.contains(document.activeElement)){var jr=P.findIndex(function(Na){return!Na});jr>=0&&je.current.focus({index:jr})}It(!0),Ke==null||Ke(xr)},Jn=function(){Or(null),It(!1,{force:!0})},or=o.useState(null),hr=(0,w.Z)(or,2),Vr=hr[0],ir=hr[1],Dr=o.useState(null),sa=(0,w.Z)(Dr,2),qr=sa[0],Za=sa[1],za=o.useMemo(function(){return qr||Bt},[Bt,qr]);o.useEffect(function(){qe||Za(null)},[qe]);var Da=o.useState(0),Va=(0,w.Z)(Da,2),Wa=Va[0],Sa=Va[1],La=Hu(vt,Ve),Co=function(xr){Za(xr),ir("preset")},Uo=function(xr){var jr=Or(xr);jr&&It(!1,{force:!0})},Yo=function(xr){mn(xr)},Go=function(xr){Za(xr?rr(xr,hn):null),ir("cell")},Xo=function(xr){It(!0),In(xr)},xo=function(xr){Sn("panel");var jr=$i(Bt,hn,xr);Ot(jr),!C&&!d&&l===Ln&&mn(xr)},oo=function(){It(!1)},Rn=os(ht,De,ye,yl(hn)),yn=Bt[hn]||null,Nr=(0,Xr.zX)(function(Hr){return f(Hr,{activeIndex:hn})}),Br=o.useMemo(function(){var Hr=(0,Qe.Z)(a,!1),xr=(0,ln.Z)(a,[].concat((0,pe.Z)(Object.keys(Hr)),["onChange","onCalendarChange","style","className","onPanelChange"]));return xr},[a]),Cr=o.createElement(td,(0,Y.Z)({},Br,{showNow:Bn,showTime:En,range:!0,multiplePanel:xn,activeOffset:Wa,disabledDate:Ht,onFocus:Xo,onBlur:Gn,picker:B,mode:Qr,internalMode:Ln,onPanelChange:Wn,format:u,value:yn,isInvalid:Nr,onChange:null,onSelect:xo,pickerValue:_r,defaultOpenValue:ko(ae==null?void 0:ae.defaultOpenValue)[hn],onPickerValueChange:ua,hoverValue:za,onHover:Go,needConfirm:C,onSubmit:mn,onOk:pn,presets:La,onPresetHover:Co,onPresetSubmit:Uo,onNow:Yo,cellRender:Rn})),Ar=function(xr,jr){var Na=rr(xr,jr);Ot(Na)},Kn=function(){Sn("input")},Hn=function(xr,jr){Sn("input"),It(!0,{inherit:!0}),Fn(jr),In(xr,jr)},Yr=function(xr,jr){It(!1),Gn(xr,jr)},va=function(xr,jr){xr.key==="Tab"&&mn(null,!0),p==null||p(xr,jr)},ya=o.useMemo(function(){return{prefixCls:v,locale:U,generateConfig:W,button:ct.button,input:ct.input}},[v,U,W,ct.button,ct.input]);if((0,Ge.Z)(function(){qe&&hn!==void 0&&Wn(null,B,!1)},[qe,hn,B]),(0,Ge.Z)(function(){var Hr=Sn();!qe&&Hr==="input"&&(It(!1),mn(null,!0)),!qe&&d&&!C&&Hr==="panel"&&(It(!0),mn())},[qe]),!1)var co;return o.createElement(ao.Provider,{value:ya},o.createElement(Zu,(0,Y.Z)({},Mu(a),{popupElement:Cr,popupStyle:m.popup,popupClassName:g.popup,visible:qe,onClose:oo,range:!0}),o.createElement(ub,(0,Y.Z)({},a,{ref:je,suffixIcon:et,activeIndex:_t||qe?hn:null,activeHelp:!!qr,allHelp:!!qr&&Vr==="preset",focused:_t,onFocus:Hn,onBlur:Yr,onKeyDown:va,onSubmit:mn,value:za,maskFormat:u,onChange:Ar,onInputChange:Kn,format:c,inputReadOnly:ge,disabled:P,open:qe,onOpenChange:It,onClick:Yn,onClear:Jn,invalid:vn,onInvalid:Vn,onActiveOffset:Sa}))))}var fb=o.forwardRef(db),vb=fb;function mb(e){var t=e.prefixCls,r=e.value,n=e.onRemove,a=e.removeIcon,l=a===void 0?"\xD7":a,d=e.formatDate,c=e.disabled,u=e.maxTagCount,f="".concat(t,"-selector"),v="".concat(t,"-selection"),m="".concat(v,"-overflow");function g(C,p){return o.createElement("span",{className:_()("".concat(v,"-item")),title:typeof C=="string"?C:null},o.createElement("span",{className:"".concat(v,"-item-content")},C),!c&&p&&o.createElement("span",{onMouseDown:function(E){E.preventDefault()},onClick:p,className:"".concat(v,"-item-remove")},l))}function h(C){var p=d(C),P=function(O){O&&O.stopPropagation(),n(C)};return g(p,P)}function b(C){var p="+ ".concat(C.length," ...");return g(p)}return o.createElement("div",{className:f},o.createElement(Ae.Z,{prefixCls:m,data:r,renderItem:h,renderRest:b,itemKey:function(p){return d(p)},maxCount:u}))}var gb=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function hb(e,t){var r=e.id,n=e.open,a=e.clearIcon,l=e.suffixIcon,d=e.activeHelp,c=e.allHelp,u=e.focused,f=e.onFocus,v=e.onBlur,m=e.onKeyDown,g=e.locale,h=e.generateConfig,b=e.placeholder,C=e.className,p=e.style,P=e.onClick,E=e.onClear,O=e.internalPicker,$=e.value,Z=e.onChange,N=e.onSubmit,L=e.onInputChange,K=e.multiple,U=e.maxTagCount,W=e.format,B=e.maskFormat,z=e.preserveInvalidOnBlur,J=e.onInvalid,ae=e.disabled,ne=e.invalid,oe=e.inputReadOnly,Q=e.direction,ee=e.onOpenChange,fe=e.onMouseDown,xe=e.required,He=e["aria-required"],ge=e.autoFocus,et=e.removeIcon,Ue=(0,y.Z)(e,gb),at=Q==="rtl",vt=o.useContext(ao),Ve=vt.prefixCls,ct=o.useRef(),ht=o.useRef();o.useImperativeHandle(t,function(){return{nativeElement:ct.current,focus:function(Kt){var Yt;(Yt=ht.current)===null||Yt===void 0||Yt.focus(Kt)},blur:function(){var Kt;(Kt=ht.current)===null||Kt===void 0||Kt.blur()}}});var De=rd(Ue),ye=function(Kt){Z([Kt])},Ke=function(Kt){var Yt=$.filter(function(en){return en&&!ja(h,g,en,Kt,O)});Z(Yt),n||N()},je=nd((0,s.Z)((0,s.Z)({},e),{},{onChange:ye}),function(Lt){var Kt=Lt.valueTexts;return{value:Kt[0]||"",active:u}}),Te=(0,w.Z)(je,2),Ye=Te[0],qe=Te[1],Zt=!!(a&&$.length&&!ae),It=K?o.createElement(o.Fragment,null,o.createElement(mb,{prefixCls:Ve,value:$,onRemove:Ke,formatDate:qe,maxTagCount:U,disabled:ae,removeIcon:et}),o.createElement("input",{className:"".concat(Ve,"-multiple-input"),value:$.map(qe).join(","),ref:ht,readOnly:!0,autoFocus:ge}),o.createElement(bl,{type:"suffix",icon:l}),Zt&&o.createElement(ms,{icon:a,onClear:E})):o.createElement(hs,(0,Y.Z)({ref:ht},Ye(),{autoFocus:ge,suffixIcon:l,clearIcon:Zt&&o.createElement(ms,{icon:a,onClear:E}),showActiveCls:!1}));return o.createElement("div",(0,Y.Z)({},De,{className:_()(Ve,(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(Ve,"-multiple"),K),"".concat(Ve,"-focused"),u),"".concat(Ve,"-disabled"),ae),"".concat(Ve,"-invalid"),ne),"".concat(Ve,"-rtl"),at),C),style:p,ref:ct,onClick:P,onMouseDown:function(Kt){var Yt,en=Kt.target;en!==((Yt=ht.current)===null||Yt===void 0?void 0:Yt.inputElement)&&Kt.preventDefault(),fe==null||fe(Kt)}}),It)}var pb=o.forwardRef(hb),bb=pb;function yb(e,t){var r=ku(e),n=(0,w.Z)(r,6),a=n[0],l=n[1],d=n[2],c=n[3],u=n[4],f=n[5],v=a,m=v.prefixCls,g=v.styles,h=v.classNames,b=v.order,C=v.defaultValue,p=v.value,P=v.needConfirm,E=v.onChange,O=v.onKeyDown,$=v.disabled,Z=v.disabledDate,N=v.minDate,L=v.maxDate,K=v.defaultOpen,U=v.open,W=v.onOpenChange,B=v.locale,z=v.generateConfig,J=v.picker,ae=v.showNow,ne=v.showToday,oe=v.showTime,Q=v.mode,ee=v.onPanelChange,fe=v.onCalendarChange,xe=v.onOk,He=v.multiple,ge=v.defaultPickerValue,et=v.pickerValue,Ue=v.onPickerValueChange,at=v.inputReadOnly,vt=v.suffixIcon,Ve=v.removeIcon,ct=v.onFocus,ht=v.onBlur,De=v.presets,ye=v.components,Ke=v.cellRender,je=v.dateRender,Te=v.monthCellRender,Ye=v.onClick,qe=Bu(t);function Zt(Kn){return Kn===null?null:He?Kn:Kn[0]}var It=_u(z,B,l),Lt=Vu(U,K,[$],W),Kt=(0,w.Z)(Lt,2),Yt=Kt[0],en=Kt[1],Cn=function(Hn,Yr,va){if(fe){var ya=(0,s.Z)({},va);delete ya.range,fe(Zt(Hn),Zt(Yr),ya)}},Ot=function(Hn){xe==null||xe(Zt(Hn))},pn=Gu(z,B,c,!1,b,C,p,Cn,Ot),Bt=(0,w.Z)(pn,5),ot=Bt[0],Tt=Bt[1],_t=Bt[2],Qt=Bt[3],Sn=Bt[4],hn=_t(),Fn=Ku([$]),nn=(0,w.Z)(Fn,4),rn=nn[0],In=nn[1],Gn=nn[2],En=nn[3],kr=function(Hn){In(!0),ct==null||ct(Hn,{})},Fr=function(Hn){In(!1),ht==null||ht(Hn,{})},Mr=(0,Xr.C8)(J,{value:Q}),ta=(0,w.Z)(Mr,2),Qr=ta[0],Ln=ta[1],xn=Qr==="date"&&oe?"datetime":Qr,Bn=Qu(J,Qr,ae,ne),Pn=E&&function(Kn,Hn){E(Zt(Kn),Zt(Hn))},$n=Xu((0,s.Z)((0,s.Z)({},a),{},{onChange:Pn}),ot,Tt,_t,Qt,[],c,rn,Yt,f),Ur=(0,w.Z)($n,2),Or=Ur[1],Ht=Nu(hn,f),sn=(0,w.Z)(Ht,2),qt=sn[0],vn=sn[1],Vn=o.useMemo(function(){return qt.some(function(Kn){return Kn})},[qt]),zn=function(Hn,Yr){if(Ue){var va=(0,s.Z)((0,s.Z)({},Yr),{},{mode:Yr.mode[0]});delete va.range,Ue(Hn[0],va)}},Jr=zu(z,B,hn,[Qr],Yt,En,l,!1,ge,et,ko(oe==null?void 0:oe.defaultOpenValue),zn,N,L),_r=(0,w.Z)(Jr,2),ua=_r[0],Wn=_r[1],rr=(0,Xr.zX)(function(Kn,Hn,Yr){if(Ln(Hn),ee&&Yr!==!1){var va=Kn||hn[hn.length-1];ee(va,Hn)}}),mn=function(){Or(_t()),en(!1,{force:!0})},Yn=function(Hn){!$&&!qe.current.nativeElement.contains(document.activeElement)&&qe.current.focus(),en(!0),Ye==null||Ye(Hn)},Jn=function(){Or(null),en(!1,{force:!0})},or=o.useState(null),hr=(0,w.Z)(or,2),Vr=hr[0],ir=hr[1],Dr=o.useState(null),sa=(0,w.Z)(Dr,2),qr=sa[0],Za=sa[1],za=o.useMemo(function(){var Kn=[qr].concat((0,pe.Z)(hn)).filter(function(Hn){return Hn});return He?Kn:Kn.slice(0,1)},[hn,qr,He]),Da=o.useMemo(function(){return!He&&qr?[qr]:hn.filter(function(Kn){return Kn})},[hn,qr,He]);o.useEffect(function(){Yt||Za(null)},[Yt]);var Va=Hu(De),Wa=function(Hn){Za(Hn),ir("preset")},Sa=function(Hn){var Yr=He?It(_t(),Hn):[Hn],va=Or(Yr);va&&!He&&en(!1,{force:!0})},La=function(Hn){Sa(Hn)},Co=function(Hn){Za(Hn),ir("cell")},Uo=function(Hn){en(!0),kr(Hn)},Yo=function(Hn){Gn("panel");var Yr=He?It(_t(),Hn):[Hn];Qt(Yr),!P&&!d&&l===xn&&mn()},Go=function(){en(!1)},Xo=os(Ke,je,Te),xo=o.useMemo(function(){var Kn=(0,Qe.Z)(a,!1),Hn=(0,ln.Z)(a,[].concat((0,pe.Z)(Object.keys(Kn)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,s.Z)((0,s.Z)({},Hn),{},{multiple:a.multiple})},[a]),oo=o.createElement(td,(0,Y.Z)({},xo,{showNow:Bn,showTime:oe,disabledDate:Z,onFocus:Uo,onBlur:Fr,picker:J,mode:Qr,internalMode:xn,onPanelChange:rr,format:u,value:hn,isInvalid:f,onChange:null,onSelect:Yo,pickerValue:ua,defaultOpenValue:oe==null?void 0:oe.defaultOpenValue,onPickerValueChange:Wn,hoverValue:za,onHover:Co,needConfirm:P,onSubmit:mn,onOk:Sn,presets:Va,onPresetHover:Wa,onPresetSubmit:Sa,onNow:La,cellRender:Xo})),Rn=function(Hn){Qt(Hn)},yn=function(){Gn("input")},Nr=function(Hn){Gn("input"),en(!0,{inherit:!0}),kr(Hn)},Br=function(Hn){en(!1),Fr(Hn)},Cr=function(Hn,Yr){Hn.key==="Tab"&&mn(),O==null||O(Hn,Yr)},Ar=o.useMemo(function(){return{prefixCls:m,locale:B,generateConfig:z,button:ye.button,input:ye.input}},[m,B,z,ye.button,ye.input]);return(0,Ge.Z)(function(){Yt&&En!==void 0&&rr(null,J,!1)},[Yt,En,J]),(0,Ge.Z)(function(){var Kn=Gn();!Yt&&Kn==="input"&&(en(!1),mn()),!Yt&&d&&!P&&Kn==="panel"&&(en(!0),mn())},[Yt]),o.createElement(ao.Provider,{value:Ar},o.createElement(Zu,(0,Y.Z)({},Mu(a),{popupElement:oo,popupStyle:g.popup,popupClassName:h.popup,visible:Yt,onClose:Go}),o.createElement(bb,(0,Y.Z)({},a,{ref:qe,suffixIcon:vt,removeIcon:Ve,activeHelp:!!qr,allHelp:!!qr&&Vr==="preset",focused:rn,onFocus:Nr,onBlur:Br,onKeyDown:Cr,onSubmit:mn,value:Da,maskFormat:u,onChange:Rn,onInputChange:yn,internalPicker:l,format:c,inputReadOnly:at,disabled:$,open:Yt,onOpenChange:en,onClick:Yn,onClear:Jn,invalid:Vn,onInvalid:function(Hn){vn(Hn,0)}}))))}var Cb=o.forwardRef(yb),xb=Cb,Sb=xb,id=i(87206),ui=i(67771),ld=i(33297),sd=i(79511),cd=i(16928);const ps=(e,t)=>{const{componentCls:r,controlHeight:n}=e,a=t?`${r}-${t}`:"",l=(0,cd.gp)(e);return[{[`${r}-multiple${a}`]:{paddingBlock:l.containerPadding,paddingInlineStart:l.basePadding,minHeight:n,[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:(0,fn.bf)(l.itemLineHeight)}}}]};var Pb=e=>{const{componentCls:t,calc:r,lineWidth:n}=e,a=(0,Xa.TS)(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),l=(0,Xa.TS)(e,{fontHeight:r(e.multipleItemHeightLG).sub(r(n).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[ps(a,"small"),ps(e),ps(l,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",[`${t}-selector`]:{flex:"auto",padding:0,"&:after":{margin:0}}},(0,cd._z)(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]};const wb=e=>{const{pickerCellCls:t,pickerCellInnerCls:r,cellHeight:n,borderRadiusSM:a,motionDurationMid:l,cellHoverBg:d,lineWidth:c,lineType:u,colorPrimary:f,cellActiveWithRangeBg:v,colorTextLightSolid:m,colorTextDisabled:g,cellBgDisabled:h,colorFillSecondary:b}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:n,transform:"translateY(-50%)",content:'""'},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:n,height:n,lineHeight:(0,fn.bf)(n),borderRadius:a,transition:`background ${l}`},[`&:hover:not(${t}-in-view), - &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[r]:{background:d}},[`&-in-view${t}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,fn.bf)(c)} ${u} ${f}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range, - &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:v}},[`&-in-view${t}-selected, - &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${r}`]:{color:m,background:f},[`&${t}-disabled ${r}`]:{background:b}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${r}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:g,pointerEvents:"none",[r]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${r}::before`]:{borderColor:g}}},Eb=e=>{const{componentCls:t,pickerCellCls:r,pickerCellInnerCls:n,pickerYearMonthCellWidth:a,pickerControlIconSize:l,cellWidth:d,paddingSM:c,paddingXS:u,paddingXXS:f,colorBgContainer:v,lineWidth:m,lineType:g,borderRadiusLG:h,colorPrimary:b,colorTextHeading:C,colorSplit:p,pickerControlIconBorderWidth:P,colorIcon:E,textHeight:O,motionDurationMid:$,colorIconHover:Z,fontWeightStrong:N,cellHeight:L,pickerCellPaddingVertical:K,colorTextDisabled:U,colorText:W,fontSize:B,motionDurationSlow:z,withoutTimeCellHeight:J,pickerQuarterPanelContentHeight:ae,borderRadiusSM:ne,colorTextLightSolid:oe,cellHoverBg:Q,timeColumnHeight:ee,timeColumnWidth:fe,timeCellHeight:xe,controlItemBgActive:He,marginXXS:ge,pickerDatePanelPaddingHorizontal:et,pickerControlIconMargin:Ue}=e,at=e.calc(d).mul(7).add(e.calc(et).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:v,borderRadius:h,outline:"none","&-focused":{borderColor:b},"&-rtl":{direction:"rtl",[`${t}-prev-icon, - ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},[`&-decade-panel, - &-year-panel, - &-quarter-panel, - &-month-panel, - &-week-panel, - &-date-panel, - &-time-panel`]:{display:"flex",flexDirection:"column",width:at},"&-header":{display:"flex",padding:`0 ${(0,fn.bf)(u)}`,color:C,borderBottom:`${(0,fn.bf)(m)} ${g} ${p}`,"> *":{flex:"none"},button:{padding:0,color:E,lineHeight:(0,fn.bf)(O),background:"transparent",border:0,cursor:"pointer",transition:`color ${$}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:B,"&:hover":{color:Z},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:N,lineHeight:(0,fn.bf)(O),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:u},"&:hover":{color:b}}}},[`&-prev-icon, - &-next-icon, - &-super-prev-icon, - &-super-next-icon`]:{position:"relative",display:"inline-block",width:l,height:l,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:l,height:l,border:"0 solid currentcolor",borderBlockStartWidth:P,borderBlockEndWidth:0,borderInlineStartWidth:P,borderInlineEndWidth:0,content:'""'}},[`&-super-prev-icon, - &-super-next-icon`]:{"&::after":{position:"absolute",top:Ue,insetInlineStart:Ue,display:"inline-block",width:l,height:l,border:"0 solid currentcolor",borderBlockStartWidth:P,borderBlockEndWidth:0,borderInlineStartWidth:P,borderInlineEndWidth:0,content:'""'}},[`&-prev-icon, - &-super-prev-icon`]:{transform:"rotate(-45deg)"},[`&-next-icon, - &-super-next-icon`]:{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:L,fontWeight:"normal"},th:{height:e.calc(L).add(e.calc(K).mul(2)).equal(),color:W,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,fn.bf)(K)} 0`,color:U,cursor:"pointer","&-in-view":{color:W}},wb(e)),[`&-decade-panel, - &-year-panel, - &-quarter-panel, - &-month-panel`]:{[`${t}-content`]:{height:e.calc(J).mul(4).equal()},[n]:{padding:`0 ${(0,fn.bf)(u)}`}},"&-quarter-panel":{[`${t}-content`]:{height:ae}},"&-decade-panel":{[n]:{padding:`0 ${(0,fn.bf)(e.calc(u).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},[`&-year-panel, - &-quarter-panel, - &-month-panel`]:{[`${t}-body`]:{padding:`0 ${(0,fn.bf)(u)}`},[n]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${(0,fn.bf)(u)} ${(0,fn.bf)(et)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${n}, - &-selected ${n}, - ${n}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${$}`},"&:first-child:before":{borderStartStartRadius:ne,borderEndStartRadius:ne},"&:last-child:before":{borderStartEndRadius:ne,borderEndEndRadius:ne}},["&:hover td"]:{"&:before":{background:Q}},[`&-range-start td, - &-range-end td, - &-selected td`]:{[`&${r}`]:{"&:before":{background:b},[`&${t}-cell-week`]:{color:new Ha.C(oe).setAlpha(.5).toHexString()},[n]:{color:oe}}},["&-range-hover td:before"]:{background:He}}},["&-week-panel, &-date-panel-show-week"]:{[`${t}-body`]:{padding:`${(0,fn.bf)(u)} ${(0,fn.bf)(c)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${(0,fn.bf)(m)} ${g} ${p}`},[`${t}-date-panel, - ${t}-time-panel`]:{transition:`opacity ${z}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:ee},"&-column":{flex:"1 0 auto",width:fe,margin:`${(0,fn.bf)(f)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${$}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:4},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(xe).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,fn.bf)(m)} ${g} ${p}`},"&-active":{background:new Ha.C(He).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:ge,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(fe).sub(e.calc(ge).mul(2)).equal(),height:xe,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(fe).sub(xe).div(2).equal(),color:W,lineHeight:(0,fn.bf)(xe),borderRadius:ne,cursor:"pointer",transition:`background ${$}`,"&:hover":{background:Q}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:He}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:U,background:"transparent",cursor:"not-allowed"}}}}}}}}};var Ib=e=>{const{componentCls:t,textHeight:r,lineWidth:n,paddingSM:a,antCls:l,colorPrimary:d,cellActiveWithRangeBg:c,colorPrimaryBorder:u,lineType:f,colorSplit:v}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${(0,fn.bf)(n)} ${f} ${v}`,"&-extra":{padding:`0 ${(0,fn.bf)(a)}`,lineHeight:(0,fn.bf)(e.calc(r).sub(e.calc(n).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,fn.bf)(n)} ${f} ${v}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:(0,fn.bf)(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:(0,fn.bf)(e.calc(r).sub(e.calc(n).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${l}-tag-blue`]:{color:d,background:c,borderColor:u,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(n).mul(2).equal(),marginInlineStart:"auto"}}}}};const Ob=e=>{const{componentCls:t,controlHeightLG:r,paddingXXS:n,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(r).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(r).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(n).add(e.calc(n).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(n).div(2)).equal()}},Zb=e=>{const{colorBgContainerDisabled:t,controlHeight:r,controlHeightSM:n,controlHeightLG:a,paddingXXS:l}=e;return{cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Ha.C(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Ha.C(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:n*1.5,cellHeight:n,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:r-l*2,multipleItemHeightSM:n-l*2,multipleItemHeightLG:a-l*2,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},Rb=e=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,_i.T)(e)),Zb(e)),(0,sd.w)(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50});var Mb=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},(0,Eo.qG)(e)),(0,Eo.H8)(e)),(0,Eo.Mu)(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,fn.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${(0,fn.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,fn.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}};const bs=(e,t,r,n)=>{const a=e.calc(r).add(2).equal(),l=e.max(e.calc(t).sub(a).div(2).equal(),0),d=e.max(e.calc(t).sub(a).sub(l).equal(),0);return{padding:`${(0,fn.bf)(l)} ${(0,fn.bf)(n)} ${(0,fn.bf)(d)}`}},Nb=e=>{const{componentCls:t,colorError:r,colorWarning:n}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:r}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:n}}}}},$b=e=>{const{componentCls:t,antCls:r,controlHeight:n,paddingInline:a,lineWidth:l,lineType:d,colorBorder:c,borderRadius:u,motionDurationMid:f,colorTextDisabled:v,colorTextPlaceholder:m,controlHeightLG:g,fontSizeLG:h,controlHeightSM:b,paddingInlineSM:C,paddingXS:p,marginXS:P,colorTextDescription:E,lineWidthBold:O,colorPrimary:$,motionDurationSlow:Z,zIndexPopup:N,paddingXXS:L,sizePopupArrow:K,colorBgElevated:U,borderRadiusLG:W,boxShadowSecondary:B,borderRadiusSM:z,colorSplit:J,cellHoverBg:ae,presetsWidth:ne,presetsMaxWidth:oe,boxShadowPopoverArrow:Q,fontHeight:ee,fontHeightLG:fe,lineHeightLG:xe}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},(0,ka.Wf)(e)),bs(e,n,ee,a)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:u,transition:`border ${f}, box-shadow ${f}, background ${f}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${f}`},(0,Si.nz)(m)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:v,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:m}}},"&-large":Object.assign(Object.assign({},bs(e,g,fe,a)),{[`${t}-input > input`]:{fontSize:h,lineHeight:xe}}),"&-small":Object.assign({},bs(e,b,ee,C)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(p).div(2).equal(),color:v,lineHeight:1,pointerEvents:"none",transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:P}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:v,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:E}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:v,fontSize:h,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:E},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(l).mul(-1).equal(),height:O,background:$,opacity:0,transition:`all ${Z} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${(0,fn.bf)(p)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:a},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:C}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,ka.Wf)(e)),Eb(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:N,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topLeft, - &${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topRight, - &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topLeft, - &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:ui.Qt},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, - &${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomRight, - &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, - &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:ui.fJ},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topLeft, - &${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:ui.ly},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:ui.Uw},[`${t}-panel > ${t}-time-panel`]:{paddingTop:L},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`left ${Z} ease-out`},(0,sd.W)(e,U,Q)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:U,borderRadius:W,boxShadow:B,transition:`margin ${Z}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:ne,maxWidth:oe,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:p,borderInlineEnd:`${(0,fn.bf)(l)} ${d} ${J}`,li:Object.assign(Object.assign({},ka.vS),{borderRadius:z,paddingInline:p,paddingBlock:e.calc(b).sub(ee).div(2).equal(),cursor:"pointer",transition:`all ${Z}`,"+ li":{marginTop:P},"&:hover":{background:ae}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, - table`]:{textAlign:"center"},"&-focused":{borderColor:c}}}}),"&-dropdown-range":{padding:`${(0,fn.bf)(e.calc(K).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,ui.oN)(e,"slide-up"),(0,ui.oN)(e,"slide-down"),(0,ld.Fm)(e,"move-up"),(0,ld.Fm)(e,"move-down")]};var ud=(0,to.I$)("DatePicker",e=>{const t=(0,Xa.TS)((0,_i.e)(e),Ob(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Ib(t),$b(t),Mb(t),Nb(t),Pb(t),(0,Ml.c)(e,{focusElCls:`${e.componentCls}-focused`})]},Rb);function Db(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Tb(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function ys(e,t){const r={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:r};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:r};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:r};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:r};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:r}}}function dd(e,t){const{allowClear:r=!0}=e,{clearIcon:n,removeIcon:a}=(0,Zl.Z)(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[o.useMemo(()=>r===!1?!1:Object.assign({clearIcon:n},r===!0?{}:r),[r,n]),a]}var Fb=i(14726);function Ab(e){return o.createElement(Fb.ZP,Object.assign({size:"small",type:"primary"},e))}function fd(e){return(0,o.useMemo)(()=>Object.assign({button:Ab},e),[e])}var jb=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{var a;const{prefixCls:l,getPopupContainer:d,components:c,className:u,style:f,placement:v,size:m,disabled:g,bordered:h=!0,placeholder:b,popupClassName:C,dropdownClassName:p,status:P,rootClassName:E,variant:O}=r,$=jb(r,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),Z=o.useRef(null),{getPrefixCls:N,direction:L,getPopupContainer:K,rangePicker:U}=(0,o.useContext)(Ba.E_),W=N("picker",l),{compactSize:B,compactItemClassnames:z}=(0,go.ri)(W,L),{picker:J}=r,ae=N(),[ne,oe]=(0,xi.Z)(O,h),Q=(0,eo.Z)(W),[ee,fe,xe]=ud(W,Q),[He]=dd(r,W),ge=fd(c),et=(0,Po.Z)(Te=>{var Ye;return(Ye=m!=null?m:B)!==null&&Ye!==void 0?Ye:Te}),Ue=o.useContext($o.Z),at=g!=null?g:Ue,vt=(0,o.useContext)(mo.aM),{hasFeedback:Ve,status:ct,feedbackIcon:ht}=vt,De=o.createElement(o.Fragment,null,J==="time"?o.createElement(Ou,null):o.createElement(Iu,null),Ve&&ht);(0,o.useImperativeHandle)(n,()=>Z.current);const[ye]=(0,Vl.Z)("Calendar",id.Z),Ke=Object.assign(Object.assign({},ye),r.locale),[je]=(0,Jo.Cn)("DatePicker",(a=r.popupStyle)===null||a===void 0?void 0:a.zIndex);return ee(o.createElement(go.BR,null,o.createElement(vb,Object.assign({separator:o.createElement("span",{"aria-label":"to",className:`${W}-separator`},o.createElement(gp,null)),disabled:at,ref:Z,popupAlign:ys(L,v),placeholder:Tb(Ke,J,b),suffixIcon:De,prevIcon:o.createElement("span",{className:`${W}-prev-icon`}),nextIcon:o.createElement("span",{className:`${W}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${W}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${W}-super-next-icon`}),transitionName:`${ae}-slide-up`},$,{className:_()({[`${W}-${et}`]:et,[`${W}-${ne}`]:oe},(0,_a.Z)(W,(0,_a.F)(ct,P),Ve),fe,z,u,U==null?void 0:U.className,xe,Q,E),style:Object.assign(Object.assign({},U==null?void 0:U.style),f),locale:Ke.lang,prefixCls:W,getPopupContainer:d||K,generateConfig:e,components:ge,direction:L,classNames:{popup:_()(fe,C||p,xe,Q,E)},styles:{popup:Object.assign(Object.assign({},r.popupStyle),{zIndex:je})},allowClear:He}))))})}var kb=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{var b;const{prefixCls:C,getPopupContainer:p,components:P,style:E,className:O,rootClassName:$,size:Z,bordered:N,placement:L,placeholder:K,popupClassName:U,dropdownClassName:W,disabled:B,status:z,variant:J,onCalendarChange:ae}=g,ne=kb(g,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:oe,direction:Q,getPopupContainer:ee,[v]:fe}=(0,o.useContext)(Ba.E_),xe=oe("picker",C),{compactSize:He,compactItemClassnames:ge}=(0,go.ri)(xe,Q),et=o.useRef(null),[Ue,at]=(0,xi.Z)(J,N),vt=(0,eo.Z)(xe),[Ve,ct,ht]=ud(xe,vt);(0,o.useImperativeHandle)(h,()=>et.current);const De={showToday:!0},ye=u||g.picker,Ke=oe(),{onSelect:je,multiple:Te}=ne,Ye=je&&u==="time"&&!Te,qe=(Sn,hn,Fn)=>{ae==null||ae(Sn,hn,Fn),Ye&&je(Sn)},[Zt,It]=dd(g,xe),Lt=fd(P),Kt=(0,Po.Z)(Sn=>{var hn;return(hn=Z!=null?Z:He)!==null&&hn!==void 0?hn:Sn}),Yt=o.useContext($o.Z),en=B!=null?B:Yt,Cn=(0,o.useContext)(mo.aM),{hasFeedback:Ot,status:pn,feedbackIcon:Bt}=Cn,ot=o.createElement(o.Fragment,null,ye==="time"?o.createElement(Ou,null):o.createElement(Iu,null),Ot&&Bt),[Tt]=(0,Vl.Z)("DatePicker",id.Z),_t=Object.assign(Object.assign({},Tt),g.locale),[Qt]=(0,Jo.Cn)("DatePicker",(b=g.popupStyle)===null||b===void 0?void 0:b.zIndex);return Ve(o.createElement(go.BR,null,o.createElement(Sb,Object.assign({ref:et,placeholder:Db(_t,ye,K),suffixIcon:ot,dropdownAlign:ys(Q,L),prevIcon:o.createElement("span",{className:`${xe}-prev-icon`}),nextIcon:o.createElement("span",{className:`${xe}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${xe}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${xe}-super-next-icon`}),transitionName:`${Ke}-slide-up`,picker:u,onCalendarChange:qe},De,ne,{locale:_t.lang,className:_()({[`${xe}-${Kt}`]:Kt,[`${xe}-${Ue}`]:at},(0,_a.Z)(xe,(0,_a.F)(pn,z),Ot),ct,ge,fe==null?void 0:fe.className,O,ht,vt,$),style:Object.assign(Object.assign({},fe==null?void 0:fe.style),E),prefixCls:xe,getPopupContainer:p||ee,generateConfig:e,components:Lt,direction:Q,disabled:en,classNames:{popup:_()(ct,ht,vt,$,U||W)},styles:{popup:Object.assign(Object.assign({},g.popupStyle),{zIndex:Qt})},allowClear:Zt,removeIcon:It}))))})}const r=t(),n=t("week","WeekPicker"),a=t("month","MonthPicker"),l=t("year","YearPicker"),d=t("quarter","QuarterPicker"),c=t("time","TimePicker");return{DatePicker:r,WeekPicker:n,MonthPicker:a,YearPicker:l,TimePicker:c,QuarterPicker:d}}function Bb(e){const{DatePicker:t,WeekPicker:r,MonthPicker:n,YearPicker:a,TimePicker:l,QuarterPicker:d}=Vb(e),c=Lb(e),u=t;return u.WeekPicker=r,u.MonthPicker=n,u.YearPicker=a,u.RangePicker=c,u.TimePicker=l,u.QuarterPicker=d,u}var vd=Bb;const di=vd(np);function md(e){const t=ys(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const Hb=(0,_o.Z)(di,"picker",null,md);di._InternalPanelDoNotUseOrYouWillBeFired=Hb;const Kb=(0,_o.Z)(di.RangePicker,"picker",null,md);di._InternalRangePanelDoNotUseOrYouWillBeFired=Kb,di.generatePicker=vd;var Ho=di;Ir().extend(rs());var zb=function(t,r){return t?typeof r=="function"?r(Ir()(t)):Ir()(t).format((Array.isArray(r)?r[0]:r)||"YYYY-MM-DD"):"-"},Wb=function(t,r){var n=t.text,a=t.mode,l=t.format,d=t.label,c=t.light,u=t.render,f=t.renderFormItem,v=t.plain,m=t.showTime,g=t.fieldProps,h=t.picker,b=t.bordered,C=t.lightLabel,p=(0,I.YB)(),P=(0,o.useState)(!1),E=(0,w.Z)(P,2),O=E[0],$=E[1];if(a==="read"){var Z=zb(n,g.format||l);return u?u(n,(0,s.Z)({mode:a},g),(0,Be.jsx)(Be.Fragment,{children:Z})):(0,Be.jsx)(Be.Fragment,{children:Z})}if(a==="edit"||a==="update"){var N,L=g.disabled,K=g.value,U=g.placeholder,W=U===void 0?p.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"):U,B=Ni(K);return c?N=(0,Be.jsx)(it.Q,{label:d,onClick:function(){var J;g==null||(J=g.onOpenChange)===null||J===void 0||J.call(g,!0),$(!0)},style:B?{paddingInlineEnd:0}:void 0,disabled:L,value:B||O?(0,Be.jsx)(Ho,(0,s.Z)((0,s.Z)((0,s.Z)({picker:h,showTime:m,format:l,ref:r},g),{},{value:B,onOpenChange:function(J){var ae;$(J),g==null||(ae=g.onOpenChange)===null||ae===void 0||ae.call(g,J)}},(0,Ce.J)(!1)),{},{open:O})):void 0,allowClear:!1,downIcon:B||O?!1:void 0,bordered:b,ref:C}):N=(0,Be.jsx)(Ho,(0,s.Z)((0,s.Z)((0,s.Z)({picker:h,showTime:m,format:l,placeholder:W},(0,Ce.J)(v===void 0?!0:!v)),{},{ref:r},g),{},{value:B})),f?f(n,(0,s.Z)({mode:a},g),N):N}return null},fi=o.forwardRef(Wb),Cl=i(97435),Ub=function(t,r){var n=t.text,a=t.mode,l=t.render,d=t.placeholder,c=t.renderFormItem,u=t.fieldProps,f=(0,I.YB)(),v=d||f.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),m=(0,o.useCallback)(function(P){var E=P!=null?P:void 0;return!u.stringMode&&typeof E=="string"&&(E=Number(E)),typeof E=="number"&&!(0,ns.k)(E)&&!(0,ns.k)(u.precision)&&(E=Number(E.toFixed(u.precision))),E},[u]);if(a==="read"){var g,h={};u!=null&&u.precision&&(h={minimumFractionDigits:Number(u.precision),maximumFractionDigits:Number(u.precision)});var b=new Intl.NumberFormat(void 0,(0,s.Z)((0,s.Z)({},h),(u==null?void 0:u.intlProps)||{})).format(Number(n)),C=(0,Be.jsx)("span",{ref:r,children:(u==null||(g=u.formatter)===null||g===void 0?void 0:g.call(u,b))||b});return l?l(n,(0,s.Z)({mode:a},u),C):C}if(a==="edit"||a==="update"){var p=(0,Be.jsx)(Io,(0,s.Z)((0,s.Z)({ref:r,min:0,placeholder:v},(0,Cl.Z)(u,["onChange","onBlur"])),{},{onChange:function(E){var O;return u==null||(O=u.onChange)===null||O===void 0?void 0:O.call(u,m(E))},onBlur:function(E){var O;return u==null||(O=u.onBlur)===null||O===void 0?void 0:O.call(u,m(E.target.value))}}));return c?c(n,(0,s.Z)({mode:a},u),p):p}return null},Yb=o.forwardRef(Ub),Cs=i(42075),Gb=function(t,r){var n=t.text,a=t.mode,l=t.render,d=t.placeholder,c=t.renderFormItem,u=t.fieldProps,f=t.separator,v=f===void 0?"~":f,m=t.separatorWidth,g=m===void 0?30:m,h=u.value,b=u.defaultValue,C=u.onChange,p=u.id,P=(0,I.YB)(),E=qa.Ow.useToken(),O=E.token,$=(0,se.Z)(function(){return b},{value:h,onChange:C}),Z=(0,w.Z)($,2),N=Z[0],L=Z[1];if(a==="read"){var K=function(ee){var fe,xe=new Intl.NumberFormat(void 0,(0,s.Z)({minimumSignificantDigits:2},(u==null?void 0:u.intlProps)||{})).format(Number(ee));return(u==null||(fe=u.formatter)===null||fe===void 0?void 0:fe.call(u,xe))||xe},U=(0,Be.jsxs)("span",{ref:r,children:[K(n[0])," ",v," ",K(n[1])]});return l?l(n,(0,s.Z)({mode:a},u),U):U}if(a==="edit"||a==="update"){var W=function(){if(Array.isArray(N)){var ee=(0,w.Z)(N,2),fe=ee[0],xe=ee[1];typeof fe=="number"&&typeof xe=="number"&&fe>xe?L([xe,fe]):fe===void 0&&xe===void 0&&L(void 0)}},B=function(ee,fe){var xe=(0,pe.Z)(N||[]);xe[ee]=fe===null?void 0:fe,L(xe)},z=(u==null?void 0:u.placeholder)||d||[P.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),P.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")],J=function(ee){return Array.isArray(z)?z[ee]:z},ae=Cs.Z.Compact||ho.Z.Group,ne=Cs.Z.Compact?{}:{compact:!0},oe=(0,Be.jsxs)(ae,(0,s.Z)((0,s.Z)({},ne),{},{onBlur:W,children:[(0,Be.jsx)(Io,(0,s.Z)((0,s.Z)({},u),{},{placeholder:J(0),id:p!=null?p:"".concat(p,"-0"),style:{width:"calc((100% - ".concat(g,"px) / 2)")},value:N==null?void 0:N[0],defaultValue:b==null?void 0:b[0],onChange:function(ee){return B(0,ee)}})),(0,Be.jsx)(ho.Z,{style:{width:g,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:O==null?void 0:O.colorBgContainer},placeholder:v,disabled:!0}),(0,Be.jsx)(Io,(0,s.Z)((0,s.Z)({},u),{},{placeholder:J(1),id:p!=null?p:"".concat(p,"-1"),style:{width:"calc((100% - ".concat(g,"px) / 2)"),borderInlineStart:0},value:N==null?void 0:N[1],defaultValue:b==null?void 0:b[1],onChange:function(ee){return B(1,ee)}}))]}));return c?c(n,(0,s.Z)({mode:a},u),oe):oe}return null},Xb=o.forwardRef(Gb),xs=i(83062),Qb=i(84110),Jb=i.n(Qb);Ir().extend(Jb());var _b=function(t,r){var n=t.text,a=t.mode,l=t.render,d=t.renderFormItem,c=t.format,u=t.fieldProps,f=(0,I.YB)();if(a==="read"){var v=(0,Be.jsx)(xs.Z,{title:Ir()(n).format((u==null?void 0:u.format)||c||"YYYY-MM-DD HH:mm:ss"),children:Ir()(n).fromNow()});return l?l(n,(0,s.Z)({mode:a},u),(0,Be.jsx)(Be.Fragment,{children:v})):(0,Be.jsx)(Be.Fragment,{children:v})}if(a==="edit"||a==="update"){var m=f.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),g=Ni(u.value),h=(0,Be.jsx)(Ho,(0,s.Z)((0,s.Z)({ref:r,placeholder:m,showTime:!0},u),{},{value:g}));return d?d(n,(0,s.Z)({mode:a},u),h):h}return null},qb=o.forwardRef(_b),ey=i(1208),Ss=i(27678),Ps=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],Li=o.createContext(null),gd=0;function ty(e,t){var r=o.useState(function(){return gd+=1,String(gd)}),n=(0,w.Z)(r,1),a=n[0],l=o.useContext(Li),d={data:t,canPreview:e};return o.useEffect(function(){if(l)return l.register(a,d)},[]),o.useEffect(function(){l&&l.register(a,d)},[e,t]),a}function ny(e){return new Promise(function(t){var r=document.createElement("img");r.onerror=function(){return t(!1)},r.onload=function(){return t(!0)},r.src=e})}function hd(e){var t=e.src,r=e.isCustomPlaceholder,n=e.fallback,a=(0,o.useState)(r?"loading":"normal"),l=(0,w.Z)(a,2),d=l[0],c=l[1],u=(0,o.useRef)(!1),f=d==="error";(0,o.useEffect)(function(){var h=!0;return ny(t).then(function(b){!b&&h&&c("error")}),function(){h=!1}},[t]),(0,o.useEffect)(function(){r&&!u.current?c("loading"):f&&c("normal")},[t]);var v=function(){c("normal")},m=function(b){u.current=!1,d==="loading"&&b!==null&&b!==void 0&&b.complete&&(b.naturalWidth||b.naturalHeight)&&(u.current=!0,v())},g=f&&n?{src:n}:{onLoad:v,src:t};return[m,g,d]}var pd=i(2788),bd=o.createContext({}),yd=i(94999),ry=i(7028);function Cd(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function xd(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var a=e.document;r=a.documentElement[n],typeof r!="number"&&(r=a.body[n])}return r}function ay(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,a=n.defaultView||n.parentWindow;return r.left+=xd(a),r.top+=xd(a,!0),r}var oy=o.memo(function(e){var t=e.children;return t},function(e,t){var r=t.shouldUpdate;return!r}),Sd={width:0,height:0,overflow:"hidden",outline:"none"},iy={outline:"none"},ly=o.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,l=e.title,d=e.ariaId,c=e.footer,u=e.closable,f=e.closeIcon,v=e.onClose,m=e.children,g=e.bodyStyle,h=e.bodyProps,b=e.modalRender,C=e.onMouseDown,p=e.onMouseUp,P=e.holderRef,E=e.visible,O=e.forceRender,$=e.width,Z=e.height,N=e.classNames,L=e.styles,K=o.useContext(bd),U=K.panel,W=(0,St.x1)(P,U),B=(0,o.useRef)(),z=(0,o.useRef)(),J=(0,o.useRef)();o.useImperativeHandle(t,function(){return{focus:function(){var ge;(ge=J.current)===null||ge===void 0||ge.focus()},changeActive:function(ge){var et=document,Ue=et.activeElement;ge&&Ue===z.current?B.current.focus():!ge&&Ue===B.current&&z.current.focus()}}});var ae={};$!==void 0&&(ae.width=$),Z!==void 0&&(ae.height=Z);var ne;c&&(ne=o.createElement("div",{className:_()("".concat(r,"-footer"),N==null?void 0:N.footer),style:(0,s.Z)({},L==null?void 0:L.footer)},c));var oe;l&&(oe=o.createElement("div",{className:_()("".concat(r,"-header"),N==null?void 0:N.header),style:(0,s.Z)({},L==null?void 0:L.header)},o.createElement("div",{className:"".concat(r,"-title"),id:d},l)));var Q=(0,o.useMemo)(function(){return(0,x.Z)(u)==="object"&&u!==null?u:u?{closeIcon:f!=null?f:o.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[u,f]),ee=(0,Qe.Z)(Q,!0),fe;u&&(fe=o.createElement("button",(0,Y.Z)({type:"button",onClick:v,"aria-label":"Close"},ee,{className:"".concat(r,"-close")}),Q.closeIcon));var xe=o.createElement("div",{className:_()("".concat(r,"-content"),N==null?void 0:N.content),style:L==null?void 0:L.content},fe,oe,o.createElement("div",(0,Y.Z)({className:_()("".concat(r,"-body"),N==null?void 0:N.body),style:(0,s.Z)((0,s.Z)({},g),L==null?void 0:L.body)},h),m),ne);return o.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?d:null,"aria-modal":"true",ref:W,style:(0,s.Z)((0,s.Z)({},a),ae),className:_()(r,n),onMouseDown:C,onMouseUp:p},o.createElement("div",{tabIndex:0,ref:B,style:Sd,"aria-hidden":"true"}),o.createElement("div",{ref:J,tabIndex:-1,style:iy},o.createElement(oy,{shouldUpdate:E||O},b?b(xe):xe)),o.createElement("div",{tabIndex:0,ref:z,style:Sd,"aria-hidden":"true"}))}),sy=ly,Pd=o.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,a=e.style,l=e.className,d=e.visible,c=e.forceRender,u=e.destroyOnClose,f=e.motionName,v=e.ariaId,m=e.onVisibleChanged,g=e.mousePosition,h=(0,o.useRef)(),b=o.useState(),C=(0,w.Z)(b,2),p=C[0],P=C[1],E={};p&&(E.transformOrigin=p);function O(){var $=ay(h.current);P(g?"".concat(g.x-$.left,"px ").concat(g.y-$.top,"px"):"")}return o.createElement(ti.ZP,{visible:d,onVisibleChanged:m,onAppearPrepare:O,onEnterPrepare:O,forceRender:c,motionName:f,removeOnLeave:u,ref:h},function($,Z){var N=$.className,L=$.style;return o.createElement(sy,(0,Y.Z)({},e,{ref:t,title:n,ariaId:v,prefixCls:r,holderRef:Z,style:(0,s.Z)((0,s.Z)((0,s.Z)({},L),a),E),className:_()(l,N)}))})});Pd.displayName="Content";var cy=Pd;function uy(e){var t=e.prefixCls,r=e.style,n=e.visible,a=e.maskProps,l=e.motionName,d=e.className;return o.createElement(ti.ZP,{key:"mask",visible:n,motionName:l,leavedClassName:"".concat(t,"-mask-hidden")},function(c,u){var f=c.className,v=c.style;return o.createElement("div",(0,Y.Z)({ref:u,style:(0,s.Z)((0,s.Z)({},v),r),className:_()("".concat(t,"-mask"),f,d)},a))})}function dy(e){var t=e.prefixCls,r=t===void 0?"rc-dialog":t,n=e.zIndex,a=e.visible,l=a===void 0?!1:a,d=e.keyboard,c=d===void 0?!0:d,u=e.focusTriggerAfterClose,f=u===void 0?!0:u,v=e.wrapStyle,m=e.wrapClassName,g=e.wrapProps,h=e.onClose,b=e.afterOpenChange,C=e.afterClose,p=e.transitionName,P=e.animation,E=e.closable,O=E===void 0?!0:E,$=e.mask,Z=$===void 0?!0:$,N=e.maskTransitionName,L=e.maskAnimation,K=e.maskClosable,U=K===void 0?!0:K,W=e.maskStyle,B=e.maskProps,z=e.rootClassName,J=e.classNames,ae=e.styles,ne=(0,o.useRef)(),oe=(0,o.useRef)(),Q=(0,o.useRef)(),ee=o.useState(l),fe=(0,w.Z)(ee,2),xe=fe[0],He=fe[1],ge=(0,ry.Z)();function et(){(0,yd.Z)(oe.current,document.activeElement)||(ne.current=document.activeElement)}function Ue(){if(!(0,yd.Z)(oe.current,document.activeElement)){var je;(je=Q.current)===null||je===void 0||je.focus()}}function at(je){if(je)Ue();else{if(He(!1),Z&&ne.current&&f){try{ne.current.focus({preventScroll:!0})}catch(Te){}ne.current=null}xe&&(C==null||C())}b==null||b(je)}function vt(je){h==null||h(je)}var Ve=(0,o.useRef)(!1),ct=(0,o.useRef)(),ht=function(){clearTimeout(ct.current),Ve.current=!0},De=function(){ct.current=setTimeout(function(){Ve.current=!1})},ye=null;U&&(ye=function(Te){Ve.current?Ve.current=!1:oe.current===Te.target&&vt(Te)});function Ke(je){if(c&&je.keyCode===de.Z.ESC){je.stopPropagation(),vt(je);return}l&&je.keyCode===de.Z.TAB&&Q.current.changeActive(!je.shiftKey)}return(0,o.useEffect)(function(){l&&(He(!0),et())},[l]),(0,o.useEffect)(function(){return function(){clearTimeout(ct.current)}},[]),o.createElement("div",(0,Y.Z)({className:_()("".concat(r,"-root"),z)},(0,Qe.Z)(e,{data:!0})),o.createElement(uy,{prefixCls:r,visible:Z&&l,motionName:Cd(r,N,L),style:(0,s.Z)((0,s.Z)({zIndex:n},W),ae==null?void 0:ae.mask),maskProps:B,className:J==null?void 0:J.mask}),o.createElement("div",(0,Y.Z)({tabIndex:-1,onKeyDown:Ke,className:_()("".concat(r,"-wrap"),m,J==null?void 0:J.wrapper),ref:oe,onClick:ye,style:(0,s.Z)((0,s.Z)((0,s.Z)({zIndex:n},v),ae==null?void 0:ae.wrapper),{},{display:xe?null:"none"})},g),o.createElement(cy,(0,Y.Z)({},e,{onMouseDown:ht,onMouseUp:De,ref:Q,closable:O,ariaId:ge,prefixCls:r,visible:l&&xe,onClose:vt,onVisibleChanged:at,motionName:Cd(r,p,P)}))))}var wd=function(t){var r=t.visible,n=t.getContainer,a=t.forceRender,l=t.destroyOnClose,d=l===void 0?!1:l,c=t.afterClose,u=t.panelRef,f=o.useState(r),v=(0,w.Z)(f,2),m=v[0],g=v[1],h=o.useMemo(function(){return{panel:u}},[u]);return o.useEffect(function(){r&&g(!0)},[r]),!a&&d&&!m?null:o.createElement(bd.Provider,{value:h},o.createElement(pd.Z,{open:r||a||m,autoDestroy:!1,getContainer:n,autoLock:r||m},o.createElement(dy,(0,Y.Z)({},t,{destroyOnClose:d,afterClose:function(){c==null||c(),g(!1)}}))))};wd.displayName="Dialog";var fy=wd,vy=fy,vi=i(64019),Ed=i(91881),xl={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function my(e,t,r,n){var a=(0,o.useRef)(null),l=(0,o.useRef)([]),d=(0,o.useState)(xl),c=(0,w.Z)(d,2),u=c[0],f=c[1],v=function(b){f(xl),n&&!(0,Ed.Z)(xl,u)&&n({transform:xl,action:b})},m=function(b,C){a.current===null&&(l.current=[],a.current=(0,Aa.Z)(function(){f(function(p){var P=p;return l.current.forEach(function(E){P=(0,s.Z)((0,s.Z)({},P),E)}),a.current=null,n==null||n({transform:P,action:C}),P})})),l.current.push((0,s.Z)((0,s.Z)({},u),b))},g=function(b,C,p,P,E){var O=e.current,$=O.width,Z=O.height,N=O.offsetWidth,L=O.offsetHeight,K=O.offsetLeft,U=O.offsetTop,W=b,B=u.scale*b;B>r?(B=r,W=r/u.scale):Bn){if(t>0)return(0,D.Z)({},e,l);if(t<0&&an)return(0,D.Z)({},e,t<0?l:-l);return{}}function Od(e,t,r,n){var a=(0,Ss.g1)(),l=a.width,d=a.height,c=null;return e<=l&&t<=d?c={x:0,y:0}:(e>l||t>d)&&(c=(0,s.Z)((0,s.Z)({},Id("x",r,e,l)),Id("y",n,t,d))),c}var mi=1,gy=1;function hy(e,t,r,n,a,l,d){var c=a.rotate,u=a.scale,f=a.x,v=a.y,m=(0,o.useState)(!1),g=(0,w.Z)(m,2),h=g[0],b=g[1],C=(0,o.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),p=function(Z){!t||Z.button!==0||(Z.preventDefault(),Z.stopPropagation(),C.current={diffX:Z.pageX-f,diffY:Z.pageY-v,transformX:f,transformY:v},b(!0))},P=function(Z){r&&h&&l({x:Z.pageX-C.current.diffX,y:Z.pageY-C.current.diffY},"move")},E=function(){if(r&&h){b(!1);var Z=C.current,N=Z.transformX,L=Z.transformY,K=f!==N&&v!==L;if(!K)return;var U=e.current.offsetWidth*u,W=e.current.offsetHeight*u,B=e.current.getBoundingClientRect(),z=B.left,J=B.top,ae=c%180!==0,ne=Od(ae?W:U,ae?U:W,z,J);ne&&l((0,s.Z)({},ne),"dragRebound")}},O=function(Z){if(!(!r||Z.deltaY==0)){var N=Math.abs(Z.deltaY/100),L=Math.min(N,gy),K=mi+L*n;Z.deltaY>0&&(K=mi/K),d(K,"wheel",Z.clientX,Z.clientY)}};return(0,o.useEffect)(function(){var $,Z,N,L;if(t){N=(0,vi.Z)(window,"mouseup",E,!1),L=(0,vi.Z)(window,"mousemove",P,!1);try{window.top!==window.self&&($=(0,vi.Z)(window.top,"mouseup",E,!1),Z=(0,vi.Z)(window.top,"mousemove",P,!1))}catch(K){(0,Le.Kp)(!1,"[rc-image] ".concat(K))}}return function(){var K,U,W,B;(K=N)===null||K===void 0||K.remove(),(U=L)===null||U===void 0||U.remove(),(W=$)===null||W===void 0||W.remove(),(B=Z)===null||B===void 0||B.remove()}},[r,h,f,v,c,t]),{isMoving:h,onMouseDown:p,onMouseMove:P,onMouseUp:E,onWheel:O}}function Sl(e,t){var r=e.x-t.x,n=e.y-t.y;return Math.hypot(r,n)}function py(e,t,r,n){var a=Sl(e,r),l=Sl(t,n);if(a===0&&l===0)return[e.x,e.y];var d=a/(a+l),c=e.x+d*(t.x-e.x),u=e.y+d*(t.y-e.y);return[c,u]}function by(e,t,r,n,a,l,d){var c=a.rotate,u=a.scale,f=a.x,v=a.y,m=(0,o.useState)(!1),g=(0,w.Z)(m,2),h=g[0],b=g[1],C=(0,o.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),p=function(Z){C.current=(0,s.Z)((0,s.Z)({},C.current),Z)},P=function(Z){if(t){Z.stopPropagation(),b(!0);var N=Z.touches,L=N===void 0?[]:N;L.length>1?p({point1:{x:L[0].clientX,y:L[0].clientY},point2:{x:L[1].clientX,y:L[1].clientY},eventType:"touchZoom"}):p({point1:{x:L[0].clientX-f,y:L[0].clientY-v},eventType:"move"})}},E=function(Z){var N=Z.touches,L=N===void 0?[]:N,K=C.current,U=K.point1,W=K.point2,B=K.eventType;if(L.length>1&&B==="touchZoom"){var z={x:L[0].clientX,y:L[0].clientY},J={x:L[1].clientX,y:L[1].clientY},ae=py(U,W,z,J),ne=(0,w.Z)(ae,2),oe=ne[0],Q=ne[1],ee=Sl(z,J)/Sl(U,W);d(ee,"touchZoom",oe,Q,!0),p({point1:z,point2:J,eventType:"touchZoom"})}else B==="move"&&(l({x:L[0].clientX-U.x,y:L[0].clientY-U.y},"move"),p({eventType:"move"}))},O=function(){if(r){if(h&&b(!1),p({eventType:"none"}),n>u)return l({x:0,y:0,scale:n},"touchZoom");var Z=e.current.offsetWidth*u,N=e.current.offsetHeight*u,L=e.current.getBoundingClientRect(),K=L.left,U=L.top,W=c%180!==0,B=Od(W?N:Z,W?Z:N,K,U);B&&l((0,s.Z)({},B),"dragRebound")}};return(0,o.useEffect)(function(){var $;return r&&t&&($=(0,vi.Z)(window,"touchmove",function(Z){return Z.preventDefault()},{passive:!1})),function(){var Z;(Z=$)===null||Z===void 0||Z.remove()}},[r,t]),{isTouching:h,onTouchStart:P,onTouchMove:E,onTouchEnd:O}}var yy=function(t){var r=t.visible,n=t.maskTransitionName,a=t.getContainer,l=t.prefixCls,d=t.rootClassName,c=t.icons,u=t.countRender,f=t.showSwitch,v=t.showProgress,m=t.current,g=t.transform,h=t.count,b=t.scale,C=t.minScale,p=t.maxScale,P=t.closeIcon,E=t.onSwitchLeft,O=t.onSwitchRight,$=t.onClose,Z=t.onZoomIn,N=t.onZoomOut,L=t.onRotateRight,K=t.onRotateLeft,U=t.onFlipX,W=t.onFlipY,B=t.toolbarRender,z=t.zIndex,J=(0,o.useContext)(Li),ae=c.rotateLeft,ne=c.rotateRight,oe=c.zoomIn,Q=c.zoomOut,ee=c.close,fe=c.left,xe=c.right,He=c.flipX,ge=c.flipY,et="".concat(l,"-operations-operation");o.useEffect(function(){var Ve=function(ht){ht.keyCode===de.Z.ESC&&$()};return r&&window.addEventListener("keydown",Ve),function(){window.removeEventListener("keydown",Ve)}},[r]);var Ue=[{icon:ge,onClick:W,type:"flipY"},{icon:He,onClick:U,type:"flipX"},{icon:ae,onClick:K,type:"rotateLeft"},{icon:ne,onClick:L,type:"rotateRight"},{icon:Q,onClick:N,type:"zoomOut",disabled:b<=C},{icon:oe,onClick:Z,type:"zoomIn",disabled:b===p}],at=Ue.map(function(Ve){var ct,ht=Ve.icon,De=Ve.onClick,ye=Ve.type,Ke=Ve.disabled;return o.createElement("div",{className:_()(et,(ct={},(0,D.Z)(ct,"".concat(l,"-operations-operation-").concat(ye),!0),(0,D.Z)(ct,"".concat(l,"-operations-operation-disabled"),!!Ke),ct)),onClick:De,key:ye},ht)}),vt=o.createElement("div",{className:"".concat(l,"-operations")},at);return o.createElement(ti.ZP,{visible:r,motionName:n},function(Ve){var ct=Ve.className,ht=Ve.style;return o.createElement(pd.Z,{open:!0,getContainer:a!=null?a:document.body},o.createElement("div",{className:_()("".concat(l,"-operations-wrapper"),ct,d),style:(0,s.Z)((0,s.Z)({},ht),{},{zIndex:z})},P===null?null:o.createElement("button",{className:"".concat(l,"-close"),onClick:$},P||ee),f&&o.createElement(o.Fragment,null,o.createElement("div",{className:_()("".concat(l,"-switch-left"),(0,D.Z)({},"".concat(l,"-switch-left-disabled"),m===0)),onClick:E},fe),o.createElement("div",{className:_()("".concat(l,"-switch-right"),(0,D.Z)({},"".concat(l,"-switch-right-disabled"),m===h-1)),onClick:O},xe)),o.createElement("div",{className:"".concat(l,"-footer")},v&&o.createElement("div",{className:"".concat(l,"-progress")},u?u(m+1,h):"".concat(m+1," / ").concat(h)),B?B(vt,(0,s.Z)({icons:{flipYIcon:at[0],flipXIcon:at[1],rotateLeftIcon:at[2],rotateRightIcon:at[3],zoomOutIcon:at[4],zoomInIcon:at[5]},actions:{onFlipY:W,onFlipX:U,onRotateLeft:K,onRotateRight:L,onZoomOut:N,onZoomIn:Z},transform:g},J?{current:m,total:h}:{})):vt)))})},Cy=yy,xy=["fallback","src","imgRef"],Sy=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Py=function(t){var r=t.fallback,n=t.src,a=t.imgRef,l=(0,y.Z)(t,xy),d=hd({src:n,fallback:r}),c=(0,w.Z)(d,2),u=c[0],f=c[1];return o.createElement("img",(0,Y.Z)({ref:function(m){a.current=m,u(m)}},l,f))},wy=function(t){var r=t.prefixCls,n=t.src,a=t.alt,l=t.fallback,d=t.movable,c=d===void 0?!0:d,u=t.onClose,f=t.visible,v=t.icons,m=v===void 0?{}:v,g=t.rootClassName,h=t.closeIcon,b=t.getContainer,C=t.current,p=C===void 0?0:C,P=t.count,E=P===void 0?1:P,O=t.countRender,$=t.scaleStep,Z=$===void 0?.5:$,N=t.minScale,L=N===void 0?1:N,K=t.maxScale,U=K===void 0?50:K,W=t.transitionName,B=W===void 0?"zoom":W,z=t.maskTransitionName,J=z===void 0?"fade":z,ae=t.imageRender,ne=t.imgCommonProps,oe=t.toolbarRender,Q=t.onTransform,ee=t.onChange,fe=(0,y.Z)(t,Sy),xe=(0,o.useRef)(),He=(0,o.useContext)(Li),ge=He&&E>1,et=He&&E>=1,Ue=(0,o.useState)(!0),at=(0,w.Z)(Ue,2),vt=at[0],Ve=at[1],ct=my(xe,L,U,Q),ht=ct.transform,De=ct.resetTransform,ye=ct.updateTransform,Ke=ct.dispatchZoomChange,je=hy(xe,c,f,Z,ht,ye,Ke),Te=je.isMoving,Ye=je.onMouseDown,qe=je.onWheel,Zt=by(xe,c,f,L,ht,ye,Ke),It=Zt.isTouching,Lt=Zt.onTouchStart,Kt=Zt.onTouchMove,Yt=Zt.onTouchEnd,en=ht.rotate,Cn=ht.scale,Ot=_()((0,D.Z)({},"".concat(r,"-moving"),Te));(0,o.useEffect)(function(){vt||Ve(!0)},[vt]);var pn=function(){De("close")},Bt=function(){Ke(mi+Z,"zoomIn")},ot=function(){Ke(mi/(mi+Z),"zoomOut")},Tt=function(){ye({rotate:en+90},"rotateRight")},_t=function(){ye({rotate:en-90},"rotateLeft")},Qt=function(){ye({flipX:!ht.flipX},"flipX")},Sn=function(){ye({flipY:!ht.flipY},"flipY")},hn=function(En){En==null||En.preventDefault(),En==null||En.stopPropagation(),p>0&&(Ve(!1),De("prev"),ee==null||ee(p-1,p))},Fn=function(En){En==null||En.preventDefault(),En==null||En.stopPropagation(),p({position:e||"absolute",inset:0}),lC=e=>{const{iconCls:t,motionDurationSlow:r,paddingXXS:n,marginXXS:a,prefixCls:l,colorTextLightSolid:d}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:d,background:new Ha.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${r}`,[`.${l}-mask-info`]:Object.assign(Object.assign({},ka.vS),{padding:`0 ${(0,fn.bf)(n)}`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},sC=e=>{const{previewCls:t,modalMaskBg:r,paddingSM:n,marginXL:a,margin:l,paddingLG:d,previewOperationColorDisabled:c,previewOperationHoverColor:u,motionDurationSlow:f,iconCls:v,colorTextLightSolid:m}=e,g=new Ha.C(r).setAlpha(.1),h=g.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:l},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:m,backgroundColor:g.toRgbString(),borderRadius:"50%",padding:n,outline:0,border:0,cursor:"pointer",transition:`all ${f}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${v}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,fn.bf)(d)}`,backgroundColor:g.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:n,padding:n,cursor:"pointer",transition:`all ${f}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${v}`]:{color:u},"&-disabled":{color:c,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${v}`]:{fontSize:e.previewOperationSize}}}}},cC=e=>{const{modalMaskBg:t,iconCls:r,previewOperationColorDisabled:n,previewCls:a,zIndexPopup:l,motionDurationSlow:d}=e,c=new Ha.C(t).setAlpha(.1),u=c.clone().setAlpha(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(l).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:c.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${d}`,userSelect:"none","&:hover":{background:u.toRgbString()},["&-disabled"]:{"&, &:hover":{color:n,background:"transparent",cursor:"not-allowed",[`> ${r}`]:{cursor:"not-allowed"}}},[`> ${r}`]:{fontSize:e.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:e.marginSM},[`${a}-switch-right`]:{insetInlineEnd:e.marginSM}}},uC=e=>{const{motionEaseOut:t,previewCls:r,motionDurationSlow:n,componentCls:a}=e;return[{[`${a}-preview-root`]:{[r]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${r}-body`]:Object.assign(Object.assign({},Es()),{overflow:"hidden"}),[`${r}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${n} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Es()),{transition:`transform ${n} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${r}-moving`]:{[`${r}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${r}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[sC(e),cC(e)]}]},dC=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},lC(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Es())}}},fC=e=>{const{previewCls:t}=e;return{[`${t}-root`]:(0,oC._y)(e,"zoom"),["&"]:(0,iC.J$)(e,!0)}},vC=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Ha.C(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Ha.C(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Ha.C(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5});var $d=(0,to.I$)("Image",e=>{const t=`${e.componentCls}-preview`,r=(0,Xa.TS)(e,{previewCls:t,modalMaskBg:new Ha.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[dC(r),uC(r),(0,aC.QA)((0,Xa.TS)(r,{componentCls:t})),fC(r)]},vC),mC=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{var{previewPrefixCls:t,preview:r}=e,n=mC(e,["previewPrefixCls","preview"]);const{getPrefixCls:a}=o.useContext(Ba.E_),l=a("image",t),d=`${l}-preview`,c=a(),u=(0,eo.Z)(l),[f,v,m]=$d(l,u),[g]=(0,Jo.Cn)("ImagePreview",typeof r=="object"?r.zIndex:void 0),h=o.useMemo(()=>{var b;if(r===!1)return r;const C=typeof r=="object"?r:{},p=_()(v,m,u,(b=C.rootClassName)!==null&&b!==void 0?b:"");return Object.assign(Object.assign({},C),{transitionName:(0,vo.m)(c,"zoom",C.transitionName),maskTransitionName:(0,vo.m)(c,"fade",C.maskTransitionName),rootClassName:p,zIndex:g})},[r]);return f(o.createElement(Rd.PreviewGroup,Object.assign({preview:h,previewPrefixCls:d,icons:Dd},n)))},Td=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{var t;const{prefixCls:r,preview:n,className:a,rootClassName:l,style:d}=e,c=Td(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:u,locale:f=Md.Z,getPopupContainer:v,image:m}=o.useContext(Ba.E_),g=u("image",r),h=u(),b=f.Image||Md.Z.Image,C=(0,eo.Z)(g),[p,P,E]=$d(g,C),O=_()(l,P,E,C),$=_()(a,P,m==null?void 0:m.className),[Z]=(0,Jo.Cn)("ImagePreview",typeof n=="object"?n.zIndex:void 0),N=o.useMemo(()=>{var K;if(n===!1)return n;const U=typeof n=="object"?n:{},{getContainer:W,closeIcon:B}=U,z=Td(U,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:o.createElement("div",{className:`${g}-mask-info`},o.createElement(ey.Z,null),b==null?void 0:b.preview),icons:Dd},z),{getContainer:W!=null?W:v,transitionName:(0,vo.m)(h,"zoom",U.transitionName),maskTransitionName:(0,vo.m)(h,"fade",U.maskTransitionName),zIndex:Z,closeIcon:B!=null?B:(K=m==null?void 0:m.preview)===null||K===void 0?void 0:K.closeIcon})},[n,b,(t=m==null?void 0:m.preview)===null||t===void 0?void 0:t.closeIcon]),L=Object.assign(Object.assign({},m==null?void 0:m.style),d);return p(o.createElement(Rd,Object.assign({prefixCls:g,preview:N,rootClassName:O,className:$,style:L},c)))};Fd.PreviewGroup=gC;var hC=Fd,pC=o.forwardRef(function(e,t){var r=e.text,n=e.mode,a=e.render,l=e.renderFormItem,d=e.fieldProps,c=e.placeholder,u=e.width,f=(0,I.YB)(),v=c||f.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165");if(n==="read"){var m=(0,Be.jsx)(hC,(0,s.Z)({ref:t,width:u||32,src:r},d));return a?a(r,(0,s.Z)({mode:n},d),m):m}if(n==="edit"||n==="update"){var g=(0,Be.jsx)(ho.Z,(0,s.Z)({ref:t,placeholder:v},d));return l?l(r,(0,s.Z)({mode:n},d),g):g}return null}),Ad=pC,bC=function(t,r){var n=t.border,a=n===void 0?!1:n,l=t.children,d=(0,o.useContext)(ft.ZP.ConfigContext),c=d.getPrefixCls,u=c("pro-field-index-column"),f=(0,qa.Xj)("IndexColumn",function(){return(0,D.Z)({},".".concat(u),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),v=f.wrapSSR,m=f.hashId;return v((0,Be.jsx)("div",{ref:r,className:_()(u,m,(0,D.Z)((0,D.Z)({},"".concat(u,"-border"),a),"top-three",l>3)),children:l}))},jd=o.forwardRef(bC),Ld=i(32818),yC=i(73177),CC=["contentRender","numberFormatOptions","numberPopoverRender","open"],xC=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],kd=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),SC={style:"currency",currency:"USD"},PC={style:"currency",currency:"RUB"},wC={style:"currency",currency:"RSD"},EC={style:"currency",currency:"MYR"},IC={style:"currency",currency:"BRL"},OC={default:kd,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":SC,"ru-RU":PC,"ms-MY":EC,"sr-RS":wC,"pt-BR":IC},Vd=function(t,r,n,a){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",d=r==null?void 0:r.toString().replaceAll(",","");if(typeof d=="string"){var c=Number(d);if(Number.isNaN(c))return d;d=c}if(!d&&d!==0)return"";var u=!1;try{u=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch(p){}try{var f=new Intl.NumberFormat(u&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",(0,s.Z)((0,s.Z)({},OC[t||"zh-Hans-CN"]||kd),{},{maximumFractionDigits:n},a)),v=f.format(d),m=function(P){var E=P.match(/\d+/);if(E){var O=E[0];return P.slice(P.indexOf(O))}else return P},g=m(v),h=v||"",b=(0,w.Z)(h,1),C=b[0];return["+","-"].includes(C)?"".concat(l||"").concat(C).concat(g):"".concat(l||"").concat(g)}catch(p){return d}},Is=2,ZC=o.forwardRef(function(e,t){var r=e.contentRender,n=e.numberFormatOptions,a=e.numberPopoverRender,l=e.open,d=(0,y.Z)(e,CC),c=(0,se.Z)(function(){return d.defaultValue},{value:d.value,onChange:d.onChange}),u=(0,w.Z)(c,2),f=u[0],v=u[1],m=r==null?void 0:r((0,s.Z)((0,s.Z)({},d),{},{value:f})),g=(0,yC.X)(m?l:!1);return(0,Be.jsx)(Nl.Z,(0,s.Z)((0,s.Z)({placement:"topLeft"},g),{},{trigger:["focus","click"],content:m,getPopupContainer:function(b){return(b==null?void 0:b.parentElement)||document.body},children:(0,Be.jsx)(Io,(0,s.Z)((0,s.Z)({ref:t},d),{},{value:f,onChange:v}))}))}),RC=function(t,r){var n,a=t.text,l=t.mode,d=t.render,c=t.renderFormItem,u=t.fieldProps,f=t.proFieldKey,v=t.plain,m=t.valueEnum,g=t.placeholder,h=t.locale,b=t.customSymbol,C=b===void 0?u.customSymbol:b,p=t.numberFormatOptions,P=p===void 0?u==null?void 0:u.numberFormatOptions:p,E=t.numberPopoverRender,O=E===void 0?(u==null?void 0:u.numberPopoverRender)||!1:E,$=(0,y.Z)(t,xC),Z=(n=u==null?void 0:u.precision)!==null&&n!==void 0?n:Is,N=(0,I.YB)();h&&Ld.Go[h]&&(N=Ld.Go[h]);var L=g||N.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),K=(0,o.useMemo)(function(){if(C)return C;if(!($.moneySymbol===!1||u.moneySymbol===!1))return N.getMessage("moneySymbol","\xA5")},[C,u.moneySymbol,N,$.moneySymbol]),U=(0,o.useCallback)(function(z){var J=new RegExp("\\B(?=(\\d{".concat(3+Math.max(Z-Is,0),"})+(?!\\d))"),"g"),ae=String(z).split("."),ne=(0,w.Z)(ae,2),oe=ne[0],Q=ne[1],ee=oe.replace(J,","),fe="";return Q&&Z>0&&(fe=".".concat(Q.slice(0,Z===void 0?Is:Z))),"".concat(ee).concat(fe)},[Z]);if(l==="read"){var W=(0,Be.jsx)("span",{ref:r,children:Vd(h||!1,a,Z,P!=null?P:u.numberFormatOptions,K)});return d?d(a,(0,s.Z)({mode:l},u),W):W}if(l==="edit"||l==="update"){var B=(0,Be.jsx)(ZC,(0,s.Z)((0,s.Z)({contentRender:function(J){if(O===!1||!J.value)return null;var ae=Vd(K||h||!1,"".concat(U(J.value)),Z,(0,s.Z)((0,s.Z)({},P),{},{notation:"compact"}),K);return typeof O=="function"?O==null?void 0:O(J,ae):ae},ref:r,precision:Z,formatter:function(J){return J&&K?"".concat(K," ").concat(U(J)):J==null?void 0:J.toString()},parser:function(J){return K&&J?J.replace(new RegExp("\\".concat(K,"\\s?|(,*)"),"g"),""):J},placeholder:L},(0,Cl.Z)(u,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:u.onBlur?function(z){var J,ae=z.target.value;K&&ae&&(ae=ae.replace(new RegExp("\\".concat(K,"\\s?|(,*)"),"g"),"")),(J=u.onBlur)===null||J===void 0||J.call(u,ae)}:void 0}));return c?c(a,(0,s.Z)({mode:l},u),B):B}return null},Bd=o.forwardRef(RC),Hd=function(t){return t.map(function(r,n){var a;return o.isValidElement(r)?o.cloneElement(r,(0,s.Z)((0,s.Z)({key:n},r==null?void 0:r.props),{},{style:(0,s.Z)({},r==null||(a=r.props)===null||a===void 0?void 0:a.style)})):(0,Be.jsx)(o.Fragment,{children:r},n)})},MC=function(t,r){var n=t.text,a=t.mode,l=t.render,d=t.fieldProps,c=(0,o.useContext)(ft.ZP.ConfigContext),u=c.getPrefixCls,f=u("pro-field-option"),v=qa.Ow.useToken(),m=v.token;if((0,o.useImperativeHandle)(r,function(){return{}}),l){var g=l(n,(0,s.Z)({mode:a},d),(0,Be.jsx)(Be.Fragment,{}));return!g||(g==null?void 0:g.length)<1||!Array.isArray(g)?null:(0,Be.jsx)("div",{style:{display:"flex",gap:m.margin,alignItems:"center"},className:f,children:Hd(g)})}return!n||!Array.isArray(n)?o.isValidElement(n)?n:null:(0,Be.jsx)("div",{style:{display:"flex",gap:m.margin,alignItems:"center"},className:f,children:Hd(n)})},NC=o.forwardRef(MC),$C=i(5717),DC=function(t,r){return o.createElement(te.Z,(0,Y.Z)({},t,{ref:r,icon:$C.Z}))},TC=o.forwardRef(DC),FC=TC,AC=i(42003),jC=function(t,r){return o.createElement(te.Z,(0,Y.Z)({},t,{ref:r,icon:AC.Z}))},LC=o.forwardRef(jC),kC=LC,VC=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],BC=function(t,r){var n=t.text,a=t.mode,l=t.render,d=t.renderFormItem,c=t.fieldProps,u=t.proFieldKey,f=(0,y.Z)(t,VC),v=(0,I.YB)(),m=(0,se.Z)(function(){return f.open||f.visible||!1},{value:f.open||f.visible,onChange:f.onOpenChange||f.onVisible}),g=(0,w.Z)(m,2),h=g[0],b=g[1];if(a==="read"){var C=(0,Be.jsx)(Be.Fragment,{children:"-"});return n&&(C=(0,Be.jsxs)(Cs.Z,{children:[(0,Be.jsx)("span",{ref:r,children:h?n:"********"}),(0,Be.jsx)("a",{onClick:function(){return b(!h)},children:h?(0,Be.jsx)(FC,{}):(0,Be.jsx)(kC,{})})]})),l?l(n,(0,s.Z)({mode:a},c),C):C}if(a==="edit"||a==="update"){var p=(0,Be.jsx)(ho.Z.Password,(0,s.Z)({placeholder:v.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ref:r},c));return d?d(n,(0,s.Z)({mode:a},c),p):p}return null},HC=o.forwardRef(BC),KC=i(49323),Pl=i.n(KC);function zC(e){return e===0?null:e>0?"+":"-"}function WC(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function UC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}var YC=function(t,r){var n=t.text,a=t.prefix,l=t.precision,d=t.suffix,c=d===void 0?"%":d,u=t.mode,f=t.showColor,v=f===void 0?!1:f,m=t.render,g=t.renderFormItem,h=t.fieldProps,b=t.placeholder,C=t.showSymbol,p=(0,I.YB)(),P=b||p.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),E=(0,o.useMemo)(function(){return typeof n=="string"&&n.includes("%")?Pl()(n.replace("%","")):Pl()(n)},[n]),O=(0,o.useMemo)(function(){return typeof C=="function"?C==null?void 0:C(n):C},[C,n]);if(u==="read"){var $=v?{color:WC(E)}:{},Z=(0,Be.jsxs)("span",{style:$,ref:r,children:[a&&(0,Be.jsx)("span",{children:a}),O&&(0,Be.jsxs)(o.Fragment,{children:[zC(E)," "]}),UC(Math.abs(E),l),c&&c]});return m?m(n,(0,s.Z)((0,s.Z)({mode:u},h),{},{prefix:a,precision:l,showSymbol:O,suffix:c}),Z):Z}if(u==="edit"||u==="update"){var N=(0,Be.jsx)(Io,(0,s.Z)({ref:r,formatter:function(K){return K&&a?"".concat(a," ").concat(K).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):K},parser:function(K){return K?K.replace(/.*\s|,/g,""):""},placeholder:P},h));return g?g(n,(0,s.Z)({mode:u},h),N):N}return null},Kd=o.forwardRef(YC),GC=i(38703);function XC(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var QC=function(t,r){var n=t.text,a=t.mode,l=t.render,d=t.plain,c=t.renderFormItem,u=t.fieldProps,f=t.placeholder,v=(0,I.YB)(),m=f||v.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),g=(0,o.useMemo)(function(){return typeof n=="string"&&n.includes("%")?Pl()(n.replace("%","")):Pl()(n)},[n]);if(a==="read"){var h=(0,Be.jsx)(GC.Z,(0,s.Z)({ref:r,size:"small",style:{minWidth:100,maxWidth:320},percent:g,steps:d?10:void 0,status:XC(g)},u));return l?l(g,(0,s.Z)({mode:a},u),h):h}if(a==="edit"||a==="update"){var b=(0,Be.jsx)(Io,(0,s.Z)({ref:r,placeholder:m},u));return c?c(n,(0,s.Z)({mode:a},u),b):b}return null},zd=o.forwardRef(QC),JC=i(78045),_C=["radioType","renderFormItem","mode","render"],qC=function(t,r){var n,a,l=t.radioType,d=t.renderFormItem,c=t.mode,u=t.render,f=(0,y.Z)(t,_C),v=(0,o.useContext)(ft.ZP.ConfigContext),m=v.getPrefixCls,g=m("pro-field-radio"),h=(0,ei.aK)(f),b=(0,w.Z)(h,3),C=b[0],p=b[1],P=b[2],E=(0,o.useRef)(),O=(n=sc.Z.Item)===null||n===void 0||(a=n.useStatus)===null||a===void 0?void 0:a.call(n);(0,o.useImperativeHandle)(r,function(){return(0,s.Z)((0,s.Z)({},E.current||{}),{},{fetchData:function(ae){return P(ae)}})},[P]);var $=(0,qa.Xj)("FieldRadioRadio",function(J){return(0,D.Z)((0,D.Z)((0,D.Z)({},".".concat(g,"-error"),{span:{color:J.colorError}}),".".concat(g,"-warning"),{span:{color:J.colorWarning}}),".".concat(g,"-vertical"),(0,D.Z)({},"".concat(J.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),Z=$.wrapSSR,N=$.hashId;if(C)return(0,Be.jsx)(Wi.Z,{size:"small"});if(c==="read"){var L=p!=null&&p.length?p==null?void 0:p.reduce(function(J,ae){var ne;return(0,s.Z)((0,s.Z)({},J),{},(0,D.Z)({},(ne=ae.value)!==null&&ne!==void 0?ne:"",ae.label))},{}):void 0,K=(0,Be.jsx)(Be.Fragment,{children:(0,ke.MP)(f.text,(0,ke.R6)(f.valueEnum||L))});if(u){var U;return(U=u(f.text,(0,s.Z)({mode:c},f.fieldProps),K))!==null&&U!==void 0?U:null}return K}if(c==="edit"){var W,B=Z((0,Be.jsx)(JC.ZP.Group,(0,s.Z)((0,s.Z)({ref:E,optionType:l},f.fieldProps),{},{className:_()((W=f.fieldProps)===null||W===void 0?void 0:W.className,(0,D.Z)((0,D.Z)({},"".concat(g,"-error"),(O==null?void 0:O.status)==="error"),"".concat(g,"-warning"),(O==null?void 0:O.status)==="warning"),N,"".concat(g,"-").concat(f.fieldProps.layout||"horizontal")),options:p})));if(d){var z;return(z=d(f.text,(0,s.Z)((0,s.Z)({mode:c},f.fieldProps),{},{options:p,loading:C}),B))!==null&&z!==void 0?z:null}return B}return null},Wd=o.forwardRef(qC),ex=function(t,r){var n=t.text,a=t.mode,l=t.light,d=t.label,c=t.format,u=t.render,f=t.picker,v=t.renderFormItem,m=t.plain,g=t.showTime,h=t.lightLabel,b=t.bordered,C=t.fieldProps,p=(0,I.YB)(),P=Array.isArray(n)?n:[],E=(0,w.Z)(P,2),O=E[0],$=E[1],Z=o.useState(!1),N=(0,w.Z)(Z,2),L=N[0],K=N[1],U=(0,o.useCallback)(function(oe){if(typeof(C==null?void 0:C.format)=="function"){var Q;return C==null||(Q=C.format)===null||Q===void 0?void 0:Q.call(C,oe)}return(C==null?void 0:C.format)||c||"YYYY-MM-DD"},[C,c]),W=O?Ir()(O).format(U(Ir()(O))):"",B=$?Ir()($).format(U(Ir()($))):"";if(a==="read"){var z=(0,Be.jsxs)("div",{ref:r,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[(0,Be.jsx)("div",{children:W||"-"}),(0,Be.jsx)("div",{children:B||"-"})]});return u?u(n,(0,s.Z)({mode:a},C),(0,Be.jsx)("span",{children:z})):z}if(a==="edit"||a==="update"){var J=Ni(C.value),ae;if(l){var ne;ae=(0,Be.jsx)(it.Q,{label:d,onClick:function(){var Q;C==null||(Q=C.onOpenChange)===null||Q===void 0||Q.call(C,!0),K(!0)},style:J?{paddingInlineEnd:0}:void 0,disabled:C.disabled,value:J||L?(0,Be.jsx)(Ho.RangePicker,(0,s.Z)((0,s.Z)((0,s.Z)({picker:f,showTime:g,format:c},(0,Ce.J)(!1)),C),{},{placeholder:(ne=C.placeholder)!==null&&ne!==void 0?ne:[p.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),p.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],onClear:function(){var Q;K(!1),C==null||(Q=C.onClear)===null||Q===void 0||Q.call(C)},value:J,onOpenChange:function(Q){var ee;J&&K(Q),C==null||(ee=C.onOpenChange)===null||ee===void 0||ee.call(C,Q)}})):null,allowClear:!1,bordered:b,ref:h,downIcon:J||L?!1:void 0})}else ae=(0,Be.jsx)(Ho.RangePicker,(0,s.Z)((0,s.Z)((0,s.Z)({ref:r,format:c,showTime:g,placeholder:[p.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),p.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")]},(0,Ce.J)(m===void 0?!0:!m)),C),{},{value:J}));return v?v(n,(0,s.Z)({mode:a},C),ae):ae}return null},gi=o.forwardRef(ex),tx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},nx=tx,rx=function(t,r){return o.createElement(lo.Z,(0,Y.Z)({},t,{ref:r,icon:nx}))},ax=o.forwardRef(rx),ox=ax;function ix(e,t){var r=e.disabled,n=e.prefixCls,a=e.character,l=e.characterRender,d=e.index,c=e.count,u=e.value,f=e.allowHalf,v=e.focused,m=e.onHover,g=e.onClick,h=function(Z){m(Z,d)},b=function(Z){g(Z,d)},C=function(Z){Z.keyCode===de.Z.ENTER&&g(Z,d)},p=d+1,P=new Set([n]);u===0&&d===0&&v?P.add("".concat(n,"-focused")):f&&u+.5>=p&&ud?"true":"false","aria-posinset":d+1,"aria-setsize":c,tabIndex:r?-1:0},o.createElement("div",{className:"".concat(n,"-first")},E),o.createElement("div",{className:"".concat(n,"-second")},E)));return l&&(O=l(O,e)),O}var lx=o.forwardRef(ix);function sx(){var e=o.useRef({});function t(n){return e.current[n]}function r(n){return function(a){e.current[n]=a}}return[t,r]}function cx(e){var t=e.pageXOffset,r="scrollLeft";if(typeof t!="number"){var n=e.document;t=n.documentElement[r],typeof t!="number"&&(t=n.body[r])}return t}function ux(e){var t,r,n=e.ownerDocument,a=n.body,l=n&&n.documentElement,d=e.getBoundingClientRect();return t=d.left,r=d.top,t-=l.clientLeft||a.clientLeft||0,r-=l.clientTop||a.clientTop||0,{left:t,top:r}}function dx(e){var t=ux(e),r=e.ownerDocument,n=r.defaultView||r.parentWindow;return t.left+=cx(n),t.left}var fx=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function vx(e,t){var r,n=e.prefixCls,a=n===void 0?"rc-rate":n,l=e.className,d=e.defaultValue,c=e.value,u=e.count,f=u===void 0?5:u,v=e.allowHalf,m=v===void 0?!1:v,g=e.allowClear,h=g===void 0?!0:g,b=e.character,C=b===void 0?"\u2605":b,p=e.characterRender,P=e.disabled,E=e.direction,O=E===void 0?"ltr":E,$=e.tabIndex,Z=$===void 0?0:$,N=e.autoFocus,L=e.onHoverChange,K=e.onChange,U=e.onFocus,W=e.onBlur,B=e.onKeyDown,z=e.onMouseLeave,J=(0,y.Z)(e,fx),ae=sx(),ne=(0,w.Z)(ae,2),oe=ne[0],Q=ne[1],ee=o.useRef(null),fe=function(){if(!P){var ot;(ot=ee.current)===null||ot===void 0||ot.focus()}};o.useImperativeHandle(t,function(){return{focus:fe,blur:function(){if(!P){var ot;(ot=ee.current)===null||ot===void 0||ot.blur()}}}});var xe=(0,se.Z)(d||0,{value:c}),He=(0,w.Z)(xe,2),ge=He[0],et=He[1],Ue=(0,se.Z)(null),at=(0,w.Z)(Ue,2),vt=at[0],Ve=at[1],ct=function(ot,Tt){var _t=O==="rtl",Qt=ot+1;if(m){var Sn=oe(ot),hn=dx(Sn),Fn=Sn.clientWidth;(_t&&Tt-hn>Fn/2||!_t&&Tt-hn0&&!_t||Tt===de.Z.RIGHT&&Qt>0&&_t?(m?Qt-=.5:Qt-=1,ht(Qt),ot.preventDefault()):Tt===de.Z.LEFT&&Qt{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,fn.bf)(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},px=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),bx=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ka.Wf)(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),hx(e)),px(e))}},yx=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent});var Cx=(0,to.I$)("Rate",e=>{const t=(0,Xa.TS)(e,{});return[bx(t)]},yx),xx=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{const{prefixCls:r,className:n,rootClassName:a,style:l,tooltips:d,character:c=o.createElement(ox,null)}=e,u=xx(e,["prefixCls","className","rootClassName","style","tooltips","character"]),f=(E,O)=>{let{index:$}=O;return d?o.createElement(xs.Z,{title:d[$]},E):E},{getPrefixCls:v,direction:m,rate:g}=o.useContext(Ba.E_),h=v("rate",r),[b,C,p]=Cx(h),P=Object.assign(Object.assign({},g==null?void 0:g.style),l);return b(o.createElement(gx,Object.assign({ref:t,character:c,characterRender:f},u,{className:_()(n,a,C,p,g==null?void 0:g.className),style:P,prefixCls:h,direction:m})))}),Sx=function(t,r){var n=t.text,a=t.mode,l=t.render,d=t.renderFormItem,c=t.fieldProps;if(a==="read"){var u=(0,Be.jsx)(Ud,(0,s.Z)((0,s.Z)({allowHalf:!0,disabled:!0,ref:r},c),{},{value:n}));return l?l(n,(0,s.Z)({mode:a},c),(0,Be.jsx)(Be.Fragment,{children:u})):u}if(a==="edit"||a==="update"){var f=(0,Be.jsx)(Ud,(0,s.Z)({allowHalf:!0,ref:r},c));return d?d(n,(0,s.Z)({mode:a},c),f):f}return null},Px=o.forwardRef(Sx);function wx(e){var t="",r=Math.floor(e/86400),n=Math.floor(e/3600%24),a=Math.floor(e/60%60),l=Math.floor(e%60);return t="".concat(l,"\u79D2"),a>0&&(t="".concat(a,"\u5206\u949F").concat(t)),n>0&&(t="".concat(n,"\u5C0F\u65F6").concat(t)),r>0&&(t="".concat(r,"\u5929").concat(t)),t}var Ex=function(t,r){var n=t.text,a=t.mode,l=t.render,d=t.renderFormItem,c=t.fieldProps,u=t.placeholder,f=(0,I.YB)(),v=u||f.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165");if(a==="read"){var m=wx(Number(n)),g=(0,Be.jsx)("span",{ref:r,children:m});return l?l(n,(0,s.Z)({mode:a},c),g):g}if(a==="edit"||a==="update"){var h=(0,Be.jsx)(Io,(0,s.Z)({ref:r,min:0,style:{width:"100%"},placeholder:v},c));return d?d(n,(0,s.Z)({mode:a},c),h):h}return null},Ix=o.forwardRef(Ex),Yd=function(t){return t?{left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth}:null},hi=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Ox(e){var t=e.prefixCls,r=e.containerRef,n=e.value,a=e.getValueIndex,l=e.motionName,d=e.onMotionStart,c=e.onMotionEnd,u=e.direction,f=o.useRef(null),v=o.useState(n),m=(0,w.Z)(v,2),g=m[0],h=m[1],b=function(J){var ae,ne=a(J),oe=(ae=r.current)===null||ae===void 0?void 0:ae.querySelectorAll(".".concat(t,"-item"))[ne];return(oe==null?void 0:oe.offsetParent)&&oe},C=o.useState(null),p=(0,w.Z)(C,2),P=p[0],E=p[1],O=o.useState(null),$=(0,w.Z)(O,2),Z=$[0],N=$[1];(0,Ge.Z)(function(){if(g!==n){var z=b(g),J=b(n),ae=Yd(z),ne=Yd(J);h(n),E(ae),N(ne),z&&J?d():c()}},[n]);var L=o.useMemo(function(){return hi(u==="rtl"?-(P==null?void 0:P.right):P==null?void 0:P.left)},[u,P]),K=o.useMemo(function(){return hi(u==="rtl"?-(Z==null?void 0:Z.right):Z==null?void 0:Z.left)},[u,Z]),U=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},W=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},B=function(){E(null),N(null),c()};return!P||!Z?null:o.createElement(ti.ZP,{visible:!0,motionName:l,motionAppear:!0,onAppearStart:U,onAppearActive:W,onVisibleChanged:B},function(z,J){var ae=z.className,ne=z.style,oe=(0,s.Z)((0,s.Z)({},ne),{},{"--thumb-start-left":L,"--thumb-start-width":hi(P==null?void 0:P.width),"--thumb-active-left":K,"--thumb-active-width":hi(Z==null?void 0:Z.width)}),Q={ref:(0,St.sQ)(f,J),style:oe,className:_()("".concat(t,"-thumb"),ae)};return o.createElement("div",Q)})}var Zx=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function Rx(e){if(typeof e.title!="undefined")return e.title;if((0,x.Z)(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Mx(e){return e.map(function(t){if((0,x.Z)(t)==="object"&&t!==null){var r=Rx(t);return(0,s.Z)((0,s.Z)({},t),{},{title:r})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Nx=function(t){var r=t.prefixCls,n=t.className,a=t.disabled,l=t.checked,d=t.label,c=t.title,u=t.value,f=t.onChange,v=function(g){a||f(g,u)};return o.createElement("label",{className:_()(n,(0,D.Z)({},"".concat(r,"-item-disabled"),a))},o.createElement("input",{className:"".concat(r,"-item-input"),type:"radio",disabled:a,checked:l,onChange:v}),o.createElement("div",{className:"".concat(r,"-item-label"),title:c},d))},$x=o.forwardRef(function(e,t){var r,n,a=e.prefixCls,l=a===void 0?"rc-segmented":a,d=e.direction,c=e.options,u=c===void 0?[]:c,f=e.disabled,v=e.defaultValue,m=e.value,g=e.onChange,h=e.className,b=h===void 0?"":h,C=e.motionName,p=C===void 0?"thumb-motion":C,P=(0,y.Z)(e,Zx),E=o.useRef(null),O=o.useMemo(function(){return(0,St.sQ)(E,t)},[E,t]),$=o.useMemo(function(){return Mx(u)},[u]),Z=(0,se.Z)((r=$[0])===null||r===void 0?void 0:r.value,{value:m,defaultValue:v}),N=(0,w.Z)(Z,2),L=N[0],K=N[1],U=o.useState(!1),W=(0,w.Z)(U,2),B=W[0],z=W[1],J=function(oe,Q){f||(K(Q),g==null||g(Q))},ae=(0,ln.Z)(P,["children"]);return o.createElement("div",(0,Y.Z)({},ae,{className:_()(l,(n={},(0,D.Z)(n,"".concat(l,"-rtl"),d==="rtl"),(0,D.Z)(n,"".concat(l,"-disabled"),f),n),b),ref:O}),o.createElement("div",{className:"".concat(l,"-group")},o.createElement(Ox,{prefixCls:l,value:L,containerRef:E,motionName:"".concat(l,"-").concat(p),direction:d,getValueIndex:function(oe){return $.findIndex(function(Q){return Q.value===oe})},onMotionStart:function(){z(!0)},onMotionEnd:function(){z(!1)}}),$.map(function(ne){return o.createElement(Nx,(0,Y.Z)({},ne,{key:ne.value,prefixCls:l,className:_()(ne.className,"".concat(l,"-item"),(0,D.Z)({},"".concat(l,"-item-selected"),ne.value===L&&!B)),checked:ne.value===L,onChange:J,disabled:!!f||!!ne.disabled}))})))}),Dx=$x,Tx=Dx;function Gd(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Xd(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Fx=Object.assign({overflow:"hidden"},ka.vS),Ax=e=>{const{componentCls:t}=e,r=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),n=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ka.Wf)(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},Xd(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:r,lineHeight:(0,fn.bf)(r),padding:`0 ${(0,fn.bf)(e.segmentedPaddingHorizontal)}`},Fx),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Xd(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,fn.bf)(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:n,lineHeight:(0,fn.bf)(n),padding:`0 ${(0,fn.bf)(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:a,lineHeight:(0,fn.bf)(a),padding:`0 ${(0,fn.bf)(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Gd(`&-disabled ${t}-item`,e)),Gd(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},jx=e=>{const{colorTextLabel:t,colorText:r,colorFillSecondary:n,colorBgElevated:a,colorFill:l,lineWidthBold:d,colorBgLayout:c}=e;return{trackPadding:d,trackBg:c,itemColor:t,itemHoverColor:r,itemHoverBg:n,itemSelectedBg:a,itemActiveBg:l,itemSelectedColor:r}};var Lx=(0,to.I$)("Segmented",e=>{const{lineWidth:t,calc:r}=e,n=(0,Xa.TS)(e,{segmentedPaddingHorizontal:r(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:r(e.controlPaddingHorizontalSM).sub(t).equal()});return[Ax(n)]},jx),Qd=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{const{prefixCls:r,className:n,rootClassName:a,block:l,options:d=[],size:c="middle",style:u}=e,f=Qd(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:v,direction:m,segmented:g}=o.useContext(Ba.E_),h=v("segmented",r),[b,C,p]=Lx(h),P=(0,Po.Z)(c),E=o.useMemo(()=>d.map(Z=>{if(kx(Z)){const{icon:N,label:L}=Z,K=Qd(Z,["icon","label"]);return Object.assign(Object.assign({},K),{label:o.createElement(o.Fragment,null,o.createElement("span",{className:`${h}-item-icon`},N),L&&o.createElement("span",null,L))})}return Z}),[d,h]),O=_()(n,a,g==null?void 0:g.className,{[`${h}-block`]:l,[`${h}-sm`]:P==="small",[`${h}-lg`]:P==="large"},C,p),$=Object.assign(Object.assign({},g==null?void 0:g.style),u);return b(o.createElement(Tx,Object.assign({},f,{className:O,style:$,options:E,ref:t,prefixCls:h,direction:m})))}),Bx=["mode","render","renderFormItem","fieldProps","emptyText"],Hx=function(t,r){var n=t.mode,a=t.render,l=t.renderFormItem,d=t.fieldProps,c=t.emptyText,u=c===void 0?"-":c,f=(0,y.Z)(t,Bx),v=(0,o.useRef)(),m=(0,ei.aK)(t),g=(0,w.Z)(m,3),h=g[0],b=g[1],C=g[2];if((0,o.useImperativeHandle)(r,function(){return(0,s.Z)((0,s.Z)({},v.current||{}),{},{fetchData:function(Z){return C(Z)}})},[C]),h)return(0,Be.jsx)(Wi.Z,{size:"small"});if(n==="read"){var p=b!=null&&b.length?b==null?void 0:b.reduce(function($,Z){var N;return(0,s.Z)((0,s.Z)({},$),{},(0,D.Z)({},(N=Z.value)!==null&&N!==void 0?N:"",Z.label))},{}):void 0,P=(0,Be.jsx)(Be.Fragment,{children:(0,ke.MP)(f.text,(0,ke.R6)(f.valueEnum||p))});if(a){var E;return(E=a(f.text,(0,s.Z)({mode:n},d),(0,Be.jsx)(Be.Fragment,{children:P})))!==null&&E!==void 0?E:u}return P}if(n==="edit"||n==="update"){var O=(0,Be.jsx)(Vx,(0,s.Z)((0,s.Z)({ref:v},(0,Cl.Z)(d||{},["allowClear"])),{},{options:b}));return l?l(f.text,(0,s.Z)((0,s.Z)({mode:n},d),{},{options:b,loading:h}),O):O}return null},Kx=o.forwardRef(Hx),zx=o.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Ko=zx;function Os(e,t,r){return(e-t)/(r-t)}function Zs(e,t,r,n){var a=Os(t,r,n),l={};switch(e){case"rtl":l.right="".concat(a*100,"%"),l.transform="translateX(50%)";break;case"btt":l.bottom="".concat(a*100,"%"),l.transform="translateY(50%)";break;case"ttb":l.top="".concat(a*100,"%"),l.transform="translateY(-50%)";break;default:l.left="".concat(a*100,"%"),l.transform="translateX(-50%)";break}return l}function pi(e,t){return Array.isArray(e)?e[t]:e}var Wx=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete"],Ux=o.forwardRef(function(e,t){var r,n,a=e.prefixCls,l=e.value,d=e.valueIndex,c=e.onStartMove,u=e.style,f=e.render,v=e.dragging,m=e.onOffsetChange,g=e.onChangeComplete,h=(0,y.Z)(e,Wx),b=o.useContext(Ko),C=b.min,p=b.max,P=b.direction,E=b.disabled,O=b.keyboard,$=b.range,Z=b.tabIndex,N=b.ariaLabelForHandle,L=b.ariaLabelledByForHandle,K=b.ariaValueTextFormatterForHandle,U=b.styles,W=b.classNames,B="".concat(a,"-handle"),z=function(ee){E||c(ee,d)},J=function(ee){if(!E&&O){var fe=null;switch(ee.which||ee.keyCode){case de.Z.LEFT:fe=P==="ltr"||P==="btt"?-1:1;break;case de.Z.RIGHT:fe=P==="ltr"||P==="btt"?1:-1;break;case de.Z.UP:fe=P!=="ttb"?1:-1;break;case de.Z.DOWN:fe=P!=="ttb"?-1:1;break;case de.Z.HOME:fe="min";break;case de.Z.END:fe="max";break;case de.Z.PAGE_UP:fe=2;break;case de.Z.PAGE_DOWN:fe=-2;break}fe!==null&&(ee.preventDefault(),m(fe,d))}},ae=function(ee){switch(ee.which||ee.keyCode){case de.Z.LEFT:case de.Z.RIGHT:case de.Z.UP:case de.Z.DOWN:case de.Z.HOME:case de.Z.END:case de.Z.PAGE_UP:case de.Z.PAGE_DOWN:g==null||g();break}},ne=Zs(P,l,C,p),oe=o.createElement("div",(0,Y.Z)({ref:t,className:_()(B,(r={},(0,D.Z)(r,"".concat(B,"-").concat(d+1),$),(0,D.Z)(r,"".concat(B,"-dragging"),v),r),W.handle),style:(0,s.Z)((0,s.Z)((0,s.Z)({},ne),u),U.handle),onMouseDown:z,onTouchStart:z,onKeyDown:J,onKeyUp:ae,tabIndex:E?null:pi(Z,d),role:"slider","aria-valuemin":C,"aria-valuemax":p,"aria-valuenow":l,"aria-disabled":E,"aria-label":pi(N,d),"aria-labelledby":pi(L,d),"aria-valuetext":(n=pi(K,d))===null||n===void 0?void 0:n(l),"aria-orientation":P==="ltr"||P==="rtl"?"horizontal":"vertical"},h));return f&&(oe=f(oe,{index:d,prefixCls:a,value:l,dragging:v})),oe}),Yx=Ux,Gx=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],Xx=o.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,a=e.onStartMove,l=e.onOffsetChange,d=e.values,c=e.handleRender,u=e.draggingIndex,f=(0,y.Z)(e,Gx),v=o.useRef({});return o.useImperativeHandle(t,function(){return{focus:function(g){var h;(h=v.current[g])===null||h===void 0||h.focus()}}}),o.createElement(o.Fragment,null,d.map(function(m,g){return o.createElement(Yx,(0,Y.Z)({ref:function(b){b?v.current[g]=b:delete v.current[g]},dragging:u===g,prefixCls:r,style:pi(n,g),key:g,value:m,valueIndex:g,onStartMove:a,onOffsetChange:l,render:c},f))}))}),Qx=Xx;function Jd(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function Jx(e,t,r,n,a,l,d,c,u){var f=o.useState(null),v=(0,w.Z)(f,2),m=v[0],g=v[1],h=o.useState(-1),b=(0,w.Z)(h,2),C=b[0],p=b[1],P=o.useState(r),E=(0,w.Z)(P,2),O=E[0],$=E[1],Z=o.useState(r),N=(0,w.Z)(Z,2),L=N[0],K=N[1],U=o.useRef(null),W=o.useRef(null);o.useEffect(function(){C===-1&&$(r)},[r,C]),o.useEffect(function(){return function(){document.removeEventListener("mousemove",U.current),document.removeEventListener("mouseup",W.current),document.removeEventListener("touchmove",U.current),document.removeEventListener("touchend",W.current)}},[]);var B=function(Q,ee){O.some(function(fe,xe){return fe!==Q[xe]})&&(ee!==void 0&&g(ee),$(Q),d(Q))},z=function(Q,ee){if(Q===-1){var fe=L[0],xe=L[L.length-1],He=n-fe,ge=a-xe,et=ee*(a-n);et=Math.max(et,He),et=Math.min(et,ge);var Ue=l(fe+et);et=Ue-fe;var at=L.map(function(ht){return ht+et});B(at)}else{var vt=(a-n)*ee,Ve=(0,pe.Z)(O);Ve[Q]=L[Q];var ct=u(Ve,vt,Q,"dist");B(ct.values,ct.value)}},J=o.useRef(z);J.current=z;var ae=function(Q,ee,fe){Q.stopPropagation();var xe=fe||r,He=xe[ee];p(ee),g(He),K(xe);var ge=Jd(Q),et=ge.pageX,Ue=ge.pageY,at=function(ct){ct.preventDefault();var ht=Jd(ct),De=ht.pageX,ye=ht.pageY,Ke=De-et,je=ye-Ue,Te=e.current.getBoundingClientRect(),Ye=Te.width,qe=Te.height,Zt;switch(t){case"btt":Zt=-je/qe;break;case"ttb":Zt=je/qe;break;case"rtl":Zt=-Ke/Ye;break;default:Zt=Ke/Ye}J.current(ee,Zt)},vt=function Ve(ct){ct.preventDefault(),document.removeEventListener("mouseup",Ve),document.removeEventListener("mousemove",at),document.removeEventListener("touchend",Ve),document.removeEventListener("touchmove",at),U.current=null,W.current=null,p(-1),c()};document.addEventListener("mouseup",vt),document.addEventListener("mousemove",at),document.addEventListener("touchend",vt),document.addEventListener("touchmove",at),U.current=at,W.current=vt},ne=o.useMemo(function(){var oe=(0,pe.Z)(r).sort(function(ee,fe){return ee-fe}),Q=(0,pe.Z)(O).sort(function(ee,fe){return ee-fe});return oe.every(function(ee,fe){return ee===Q[fe]})?O:r},[r,O]);return[C,m,ne,ae]}function _x(e,t,r,n,a,l){var d=o.useCallback(function(h){var b=isFinite(h)?h:e;return b=Math.min(t,h),b=Math.max(e,b),b},[e,t]),c=o.useCallback(function(h){if(r!==null){var b=e+Math.round((d(h)-e)/r)*r,C=function(O){return(String(O).split(".")[1]||"").length},p=Math.max(C(r),C(t),C(e)),P=Number(b.toFixed(p));return e<=P&&P<=t?P:null}return null},[r,e,t,d]),u=o.useCallback(function(h){var b=d(h),C=n.map(function(E){return E.value});r!==null&&C.push(c(h)),C.push(e,t);var p=C[0],P=t-e;return C.forEach(function(E){var O=Math.abs(b-E);O<=P&&(p=E,P=O)}),p},[e,t,n,r,d,c]),f=function h(b,C,p){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof C=="number"){var E,O=b[p],$=O+C,Z=[];n.forEach(function(W){Z.push(W.value)}),Z.push(e,t),Z.push(c(O));var N=C>0?1:-1;P==="unit"?Z.push(c(O+N*r)):Z.push(c($)),Z=Z.filter(function(W){return W!==null}).filter(function(W){return C<0?W<=O:W>=O}),P==="unit"&&(Z=Z.filter(function(W){return W!==O}));var L=P==="unit"?O:$;E=Z[0];var K=Math.abs(E-L);if(Z.forEach(function(W){var B=Math.abs(W-L);B1){var U=(0,pe.Z)(b);return U[p]=E,h(U,C-N,p,P)}return E}else{if(C==="min")return e;if(C==="max")return t}},v=function(b,C,p){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",E=b[p],O=f(b,C,p,P);return{value:O,changed:O!==E}},m=function(b){return l===null&&b===0||typeof l=="number"&&b3&&arguments[3]!==void 0?arguments[3]:"unit",E=b.map(u),O=E[p],$=f(E,C,p,P);if(E[p]=$,a===!1){var Z=l||0;p>0&&E[p-1]!==O&&(E[p]=Math.max(E[p],E[p-1]+Z)),p0;U-=1)for(var W=!0;m(E[U]-E[U-1])&&W;){var B=v(E,-1,U-1);E[U-1]=B.value,W=B.changed}for(var z=E.length-1;z>0;z-=1)for(var J=!0;m(E[z]-E[z-1])&&J;){var ae=v(E,-1,z-1);E[z-1]=ae.value,J=ae.changed}for(var ne=0;ne=0?Q:!1},[Q,en]),Ot=o.useMemo(function(){var Wn=Object.keys(ht||{});return Wn.map(function(rr){var mn=ht[rr],Yn={value:Number(rr)};return mn&&(0,x.Z)(mn)==="object"&&!o.isValidElement(mn)&&("label"in mn||"style"in mn)?(Yn.style=mn.style,Yn.label=mn.label):Yn.label=mn,Yn}).filter(function(rr){var mn=rr.label;return mn||typeof mn=="number"}).sort(function(rr,mn){return rr.value-mn.value})},[ht]),pn=_x(Kt,Yt,en,Ot,ne,Cn),Bt=(0,w.Z)(pn,2),ot=Bt[0],Tt=Bt[1],_t=(0,se.Z)(L,{value:N}),Qt=(0,w.Z)(_t,2),Sn=Qt[0],hn=Qt[1],Fn=o.useMemo(function(){var Wn=Sn==null?[]:Array.isArray(Sn)?Sn:[Sn],rr=(0,w.Z)(Wn,1),mn=rr[0],Yn=mn===void 0?Kt:mn,Jn=Sn===null?[]:[Yn];if(K){if(Jn=(0,pe.Z)(Wn),U||Sn===void 0){var or=U>=0?U+1:2;for(Jn=Jn.slice(0,or);Jn.length=0&&Zt.current.focus(Wn)}Ur(null)},[$n]);var Ht=o.useMemo(function(){return ee&&en===null?!1:ee},[ee,en]),sn=function(rr,mn){Qr(rr,mn),B==null||B(rn(nn.current))},qt=Fr!==-1;o.useEffect(function(){if(!qt){var Wn=Fn.lastIndexOf(Mr);Zt.current.focus(Wn)}},[qt]);var vn=o.useMemo(function(){return(0,pe.Z)(ta).sort(function(Wn,rr){return Wn-rr})},[ta]),Vn=o.useMemo(function(){return K?[vn[0],vn[vn.length-1]]:[Kt,vn[0]]},[vn,K,Kt]),zn=(0,w.Z)(Vn,2),Jr=zn[0],_r=zn[1];o.useImperativeHandle(t,function(){return{focus:function(){Zt.current.focus(0)},blur:function(){var rr=document,mn=rr.activeElement;It.current.contains(mn)&&(mn==null||mn.blur())}}}),o.useEffect(function(){h&&Zt.current.focus(0)},[]);var ua=o.useMemo(function(){return{min:Kt,max:Yt,direction:Lt,disabled:v,keyboard:g,step:en,included:ge,includedStart:Jr,includedEnd:_r,range:K,tabIndex:je,ariaLabelForHandle:Te,ariaLabelledByForHandle:Ye,ariaValueTextFormatterForHandle:qe,styles:u||{},classNames:c||{}}},[Kt,Yt,Lt,v,g,en,ge,Jr,_r,K,je,Te,Ye,qe,u,c]);return o.createElement(Ko.Provider,{value:ua},o.createElement("div",{ref:It,className:_()(a,l,(r={},(0,D.Z)(r,"".concat(a,"-disabled"),v),(0,D.Z)(r,"".concat(a,"-vertical"),xe),(0,D.Z)(r,"".concat(a,"-horizontal"),!xe),(0,D.Z)(r,"".concat(a,"-with-marks"),Ot.length),r)),style:d,onMouseDown:xn},o.createElement("div",{className:_()("".concat(a,"-rail"),c==null?void 0:c.rail),style:(0,s.Z)((0,s.Z)({},vt),u==null?void 0:u.rail)}),o.createElement(rS,{prefixCls:a,style:Ue,values:vn,startPoint:et,onStartMove:Ht?sn:null}),o.createElement(nS,{prefixCls:a,marks:Ot,dots:De,style:Ve,activeStyle:ct}),o.createElement(Qx,{ref:Zt,prefixCls:a,style:at,values:ta,draggingIndex:Fr,onStartMove:sn,onOffsetChange:Or,onFocus:b,onBlur:C,handleRender:ye,onChangeComplete:Gn}),o.createElement(eS,{prefixCls:a,marks:Ot,onClick:Ln})))}),oS=aS,iS=oS,lS=o.forwardRef((e,t)=>{const{open:r}=e,n=(0,o.useRef)(null),a=(0,o.useRef)(null);function l(){Aa.Z.cancel(a.current),a.current=null}function d(){a.current=(0,Aa.Z)(()=>{var c;(c=n.current)===null||c===void 0||c.forceAlign(),a.current=null})}return o.useEffect(()=>(r?d():l(),l),[r,e.title]),o.createElement(xs.Z,Object.assign({ref:(0,St.sQ)(n,t)},e))});const sS=e=>{const{componentCls:t,antCls:r,controlSize:n,dotSize:a,marginFull:l,marginPart:d,colorFillContentHover:c,handleColorDisabled:u,calc:f}=e;return{[t]:Object.assign(Object.assign({},(0,ka.Wf)(e)),{position:"relative",height:n,margin:`${(0,fn.bf)(d)} ${(0,fn.bf)(l)}`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${(0,fn.bf)(l)} ${(0,fn.bf)(d)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:c},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${(0,fn.bf)(e.handleLineWidth)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:f(e.handleLineWidth).mul(-1).equal(),insetBlockStart:f(e.handleLineWidth).mul(-1).equal(),width:f(e.handleSize).add(f(e.handleLineWidth).mul(2)).equal(),height:f(e.handleSize).add(f(e.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${(0,fn.bf)(e.handleLineWidth)} ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` - inset-inline-start ${e.motionDurationMid}, - inset-block-start ${e.motionDurationMid}, - width ${e.motionDurationMid}, - height ${e.motionDurationMid}, - box-shadow ${e.motionDurationMid} - `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:f(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),insetBlockStart:f(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),width:f(e.handleSizeHover).add(f(e.handleLineWidthHover).mul(2)).equal(),height:f(e.handleSizeHover).add(f(e.handleLineWidthHover).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${(0,fn.bf)(e.handleLineWidthHover)} ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal(),insetBlockStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal()}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:a,height:a,backgroundColor:e.colorBgElevated,border:`${(0,fn.bf)(e.handleLineWidth)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` - ${t}-dot - `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${(0,fn.bf)(e.handleLineWidth)} ${u}`,insetInlineStart:0,insetBlockStart:0},[` - ${t}-mark-text, - ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},qd=(e,t)=>{const{componentCls:r,railSize:n,handleSize:a,dotSize:l,marginFull:d,calc:c}=e,u=t?"paddingBlock":"paddingInline",f=t?"width":"height",v=t?"height":"width",m=t?"insetBlockStart":"insetInlineStart",g=t?"top":"insetInlineStart",h=c(n).mul(3).sub(a).div(2).equal(),b=c(a).sub(n).div(2).equal(),C=t?{borderWidth:`${(0,fn.bf)(b)} 0`,transform:`translateY(${(0,fn.bf)(c(b).mul(-1).equal())})`}:{borderWidth:`0 ${(0,fn.bf)(b)}`,transform:`translateX(${(0,fn.bf)(e.calc(b).mul(-1).equal())})`};return{[u]:n,[v]:c(n).mul(3).equal(),[`${r}-rail`]:{[f]:"100%",[v]:n},[`${r}-track,${r}-tracks`]:{[v]:n},[`${r}-track-draggable`]:Object.assign({},C),[`${r}-handle`]:{[m]:h},[`${r}-mark`]:{insetInlineStart:0,top:0,[g]:c(n).mul(3).add(t?0:d).equal(),[f]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[g]:n,[f]:"100%",[v]:n},[`${r}-dot`]:{position:"absolute",[m]:c(n).sub(l).div(2).equal()}}},cS=e=>{const{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},qd(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},uS=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},qd(e,!1)),{height:"100%"})}},dS=e=>{const r=e.controlHeightLG/4,n=e.controlHeightSM/2,a=e.lineWidth+1,l=e.lineWidth+1*3;return{controlSize:r,railSize:4,handleSize:r,handleSizeHover:n,dotSize:8,handleLineWidth:a,handleLineWidthHover:l,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,handleColorDisabled:new Ha.C(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}};var fS=(0,to.I$)("Slider",e=>{const t=(0,Xa.TS)(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[sS(t),cS(t),uS(t)]},dS),vS=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);atypeof r=="number"?r.toString():""}var gS=o.forwardRef((e,t)=>{const{prefixCls:r,range:n,className:a,rootClassName:l,style:d,disabled:c,tooltipPrefixCls:u,tipFormatter:f,tooltipVisible:v,getTooltipPopupContainer:m,tooltipPlacement:g}=e,h=vS(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:b,slider:C,getPrefixCls:p,getPopupContainer:P}=o.useContext(Ba.E_),E=o.useContext($o.Z),O=c!=null?c:E,[$,Z]=o.useState({}),N=(Q,ee)=>{Z(fe=>Object.assign(Object.assign({},fe),{[Q]:ee}))},L=(Q,ee)=>Q||(ee?b==="rtl"?"left":"right":"top"),K=p("slider",r),[U,W,B]=fS(K),z=_()(a,C==null?void 0:C.className,l,{[`${K}-rtl`]:b==="rtl"},W,B);b==="rtl"&&!h.vertical&&(h.reverse=!h.reverse);const[J,ae]=o.useMemo(()=>n?typeof n=="object"?[!0,n.draggableTrack]:[!0,!1]:[!1],[n]),ne=(Q,ee)=>{var fe;const{index:xe,dragging:He}=ee,{tooltip:ge={},vertical:et}=e,Ue=Object.assign({},ge),{open:at,placement:vt,getPopupContainer:Ve,prefixCls:ct,formatter:ht}=Ue,De=mS(ht,f),ye=De?$[xe]||He:!1,Ke=(fe=at!=null?at:v)!==null&&fe!==void 0?fe:at===void 0&&ye,je=Object.assign(Object.assign({},Q.props),{onMouseEnter:()=>N(xe,!0),onMouseLeave:()=>N(xe,!1),onFocus:Te=>{var Ye;N(xe,!0),(Ye=h.onFocus)===null||Ye===void 0||Ye.call(h,Te)},onBlur:Te=>{var Ye;N(xe,!1),(Ye=h.onBlur)===null||Ye===void 0||Ye.call(h,Te)}});return o.createElement(lS,Object.assign({},Ue,{prefixCls:p("tooltip",ct!=null?ct:u),title:De?De(ee.value):"",open:Ke,placement:L(vt!=null?vt:g,et),key:xe,overlayClassName:`${K}-tooltip`,getPopupContainer:Ve||m||P}),o.cloneElement(Q,je))},oe=Object.assign(Object.assign({},C==null?void 0:C.style),d);return U(o.createElement(iS,Object.assign({},h,{step:h.step,range:J,draggableTrack:ae,className:z,style:oe,disabled:O,ref:t,prefixCls:K,handleRender:ne})))}),hS=function(t,r){var n=t.text,a=t.mode,l=t.render,d=t.renderFormItem,c=t.fieldProps;if(a==="read"){var u=n;return l?l(n,(0,s.Z)({mode:a},c),(0,Be.jsx)(Be.Fragment,{children:u})):(0,Be.jsx)(Be.Fragment,{children:u})}if(a==="edit"||a==="update"){var f=(0,Be.jsx)(gS,(0,s.Z)((0,s.Z)({ref:r},c),{},{style:(0,s.Z)({minWidth:120},c==null?void 0:c.style)}));return d?d(n,(0,s.Z)({mode:a},c),f):f}return null},pS=o.forwardRef(hS),bS=i(72269),yS=function(t,r){var n=t.text,a=t.mode,l=t.render,d=t.light,c=t.label,u=t.renderFormItem,f=t.fieldProps,v=(0,I.YB)(),m=(0,o.useMemo)(function(){var p,P;return n==null||"".concat(n).length<1?"-":n?(p=f==null?void 0:f.checkedChildren)!==null&&p!==void 0?p:v.getMessage("switch.open","\u6253\u5F00"):(P=f==null?void 0:f.unCheckedChildren)!==null&&P!==void 0?P:v.getMessage("switch.close","\u5173\u95ED")},[f==null?void 0:f.checkedChildren,f==null?void 0:f.unCheckedChildren,n]);if(a==="read")return l?l(n,(0,s.Z)({mode:a},f),(0,Be.jsx)(Be.Fragment,{children:m})):m!=null?m:"-";if(a==="edit"||a==="update"){var g,h=(0,Be.jsx)(bS.Z,(0,s.Z)((0,s.Z)({ref:r,size:d?"small":void 0},(0,Cl.Z)(f,["value"])),{},{checked:(g=f==null?void 0:f.checked)!==null&&g!==void 0?g:f==null?void 0:f.value}));if(d){var b=f.disabled,C=f.bordered;return(0,Be.jsx)(it.Q,{label:c,disabled:b,bordered:C,downIcon:!1,value:(0,Be.jsx)("div",{style:{paddingLeft:8},children:h}),allowClear:!1})}return u?u(n,(0,s.Z)({mode:a},f),h):h}return null},CS=o.forwardRef(yS),xS=function(t,r){var n=t.text,a=t.mode,l=t.render,d=t.renderFormItem,c=t.fieldProps,u=t.emptyText,f=u===void 0?"-":u,v=c||{},m=v.autoFocus,g=v.prefix,h=g===void 0?"":g,b=v.suffix,C=b===void 0?"":b,p=(0,I.YB)(),P=(0,o.useRef)();if((0,o.useImperativeHandle)(r,function(){return P.current},[]),(0,o.useEffect)(function(){if(m){var N;(N=P.current)===null||N===void 0||N.focus()}},[m]),a==="read"){var E=(0,Be.jsxs)(Be.Fragment,{children:[h,n!=null?n:f,C]});if(l){var O;return(O=l(n,(0,s.Z)({mode:a},c),E))!==null&&O!==void 0?O:f}return E}if(a==="edit"||a==="update"){var $=p.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),Z=(0,Be.jsx)(ho.Z,(0,s.Z)({ref:P,placeholder:$,allowClear:!0},c));return d?d(n,(0,s.Z)({mode:a},c),Z):Z}return null},SS=o.forwardRef(xS),PS=function(t,r){var n=t.text,a=(0,o.useContext)(ft.ZP.ConfigContext),l=a.getPrefixCls,d=l("pro-field-readonly"),c="".concat(d,"-textarea"),u=(0,qa.Xj)("TextArea",function(){return(0,D.Z)({},".".concat(c),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),f=u.wrapSSR,v=u.hashId;return f((0,Be.jsx)("span",{ref:r,className:_()(v,d,c),style:{},children:n!=null?n:"-"}))},wS=o.forwardRef(PS),ES=function(t,r){var n=t.text,a=t.mode,l=t.render,d=t.renderFormItem,c=t.fieldProps,u=(0,I.YB)();if(a==="read"){var f=(0,Be.jsx)(wS,(0,s.Z)((0,s.Z)({},t),{},{ref:r}));return l?l(n,(0,s.Z)({mode:a},c),f):f}if(a==="edit"||a==="update"){var v=(0,Be.jsx)(ho.Z.TextArea,(0,s.Z)({ref:r,rows:3,onKeyPress:function(g){g.key==="Enter"&&g.stopPropagation()},placeholder:u.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")},c));return d?d(n,(0,s.Z)({mode:a},c),v):v}return null},IS=o.forwardRef(ES),OS=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);ao.createElement(RS,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),ki=o.forwardRef((e,t)=>{var{addon:r,renderExtraFooter:n}=e,a=OS(e,["addon","renderExtraFooter"]);const l=o.useMemo(()=>{if(n)return n;if(r)return r},[r,n]);return o.createElement(ZS,Object.assign({},a,{mode:void 0,ref:t,renderExtraFooter:l}))}),ef=(0,_o.Z)(ki,"picker");ki._InternalPanelDoNotUseOrYouWillBeFired=ef,ki.RangePicker=MS,ki._InternalPanelDoNotUseOrYouWillBeFired=ef;var Rs=ki,NS=function(t,r){var n=t.text,a=t.mode,l=t.light,d=t.label,c=t.format,u=t.render,f=t.renderFormItem,v=t.plain,m=t.fieldProps,g=t.lightLabel,h=(0,o.useState)(!1),b=(0,w.Z)(h,2),C=b[0],p=b[1],P=(0,I.YB)(),E=(m==null?void 0:m.format)||c||"HH:mm:ss",O=Ir().isDayjs(n)||typeof n=="number";if(a==="read"){var $=(0,Be.jsx)("span",{ref:r,children:n?Ir()(n,O?void 0:E).format(E):"-"});return u?u(n,(0,s.Z)({mode:a},m),(0,Be.jsx)("span",{children:$})):$}if(a==="edit"||a==="update"){var Z,N=m.disabled,L=m.value,K=Ni(L,E);if(l){var U;Z=(0,Be.jsx)(it.Q,{onClick:function(){var B;m==null||(B=m.onOpenChange)===null||B===void 0||B.call(m,!0),p(!0)},style:K?{paddingInlineEnd:0}:void 0,label:d,disabled:N,value:K||C?(0,Be.jsx)(Rs,(0,s.Z)((0,s.Z)((0,s.Z)({},(0,Ce.J)(!1)),{},{format:c,ref:r},m),{},{placeholder:(U=m.placeholder)!==null&&U!==void 0?U:P.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),value:K,onOpenChange:function(B){var z;p(B),m==null||(z=m.onOpenChange)===null||z===void 0||z.call(m,B)},open:C})):null,downIcon:K||C?!1:void 0,allowClear:!1,ref:g})}else Z=(0,Be.jsx)(Ho.TimePicker,(0,s.Z)((0,s.Z)({ref:r,format:c,bordered:v===void 0?!0:!v},m),{},{value:K}));return f?f(n,(0,s.Z)({mode:a},m),Z):Z}return null},$S=function(t,r){var n=t.text,a=t.light,l=t.label,d=t.mode,c=t.lightLabel,u=t.format,f=t.render,v=t.renderFormItem,m=t.plain,g=t.fieldProps,h=(0,I.YB)(),b=(0,o.useState)(!1),C=(0,w.Z)(b,2),p=C[0],P=C[1],E=(g==null?void 0:g.format)||u||"HH:mm:ss",O=Array.isArray(n)?n:[],$=(0,w.Z)(O,2),Z=$[0],N=$[1],L=Ir().isDayjs(Z)||typeof Z=="number",K=Ir().isDayjs(N)||typeof N=="number",U=Z?Ir()(Z,L?void 0:E).format(E):"",W=N?Ir()(N,K?void 0:E).format(E):"";if(d==="read"){var B=(0,Be.jsxs)("div",{ref:r,children:[(0,Be.jsx)("div",{children:U||"-"}),(0,Be.jsx)("div",{children:W||"-"})]});return f?f(n,(0,s.Z)({mode:d},g),(0,Be.jsx)("span",{children:B})):B}if(d==="edit"||d==="update"){var z=Ni(g.value,E),J;if(a){var ae=g.disabled,ne=g.placeholder,oe=ne===void 0?[h.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),h.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")]:ne;J=(0,Be.jsx)(it.Q,{onClick:function(){var ee;g==null||(ee=g.onOpenChange)===null||ee===void 0||ee.call(g,!0),P(!0)},style:z?{paddingInlineEnd:0}:void 0,label:l,disabled:ae,placeholder:oe,value:z||p?(0,Be.jsx)(Rs.RangePicker,(0,s.Z)((0,s.Z)((0,s.Z)({},(0,Ce.J)(!1)),{},{format:u,ref:r},g),{},{placeholder:oe,value:z,onOpenChange:function(ee){var fe;P(ee),g==null||(fe=g.onOpenChange)===null||fe===void 0||fe.call(g,ee)},open:p})):null,downIcon:z||p?!1:void 0,allowClear:!1,ref:c})}else J=(0,Be.jsx)(Rs.RangePicker,(0,s.Z)((0,s.Z)((0,s.Z)({ref:r,format:u},(0,Ce.J)(m===void 0?!0:!m)),g),{},{value:z}));return v?v(n,(0,s.Z)({mode:d},g),J):J}return null},DS=o.forwardRef($S),TS=o.forwardRef(NS),FS=function(t){var r=t.className,n=t.customizeIcon,a=t.customizeIconProps,l=t.children,d=t.onMouseDown,c=t.onClick,u=typeof n=="function"?n(a):n;return o.createElement("span",{className:r,onMouseDown:function(v){v.preventDefault(),d==null||d(v)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},u!==void 0?u:o.createElement("span",{className:_()(r.split(/\s+/).map(function(f){return"".concat(f,"-icon")}))},l))},wl=FS,AS=function(t,r,n,a,l){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,c=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,f=o.useMemo(function(){if((0,x.Z)(a)==="object")return a.clearIcon;if(l)return l},[a,l]),v=o.useMemo(function(){return!!(!d&&a&&(n.length||c)&&!(u==="combobox"&&c===""))},[a,d,n.length,c,u]);return{allowClear:v,clearIcon:o.createElement(wl,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:f},"\xD7")}},tf=o.createContext(null);function nf(){return o.useContext(tf)}function jS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=o.useState(!1),r=(0,w.Z)(t,2),n=r[0],a=r[1],l=o.useRef(null),d=function(){window.clearTimeout(l.current)};o.useEffect(function(){return d},[]);var c=function(f,v){d(),l.current=window.setTimeout(function(){a(f),v&&v()},e)};return[n,c,d]}function rf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=o.useRef(null),r=o.useRef(null);o.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}function LS(e,t,r,n){var a=o.useRef(null);a.current={open:t,triggerOpen:r,customizedTrigger:n},o.useEffect(function(){function l(d){var c;if(!((c=a.current)!==null&&c!==void 0&&c.customizedTrigger)){var u=d.target;u.shadowRoot&&d.composed&&(u=d.composedPath()[0]||u),a.current.open&&e().filter(function(f){return f}).every(function(f){return!f.contains(u)&&f!==u})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}function kS(e){return![de.Z.ESC,de.Z.SHIFT,de.Z.BACKSPACE,de.Z.TAB,de.Z.WIN_KEY,de.Z.ALT,de.Z.META,de.Z.WIN_KEY_RIGHT,de.Z.CTRL,de.Z.SEMICOLON,de.Z.EQUALS,de.Z.CAPS_LOCK,de.Z.CONTEXT_MENU,de.Z.F1,de.Z.F2,de.Z.F3,de.Z.F4,de.Z.F5,de.Z.F6,de.Z.F7,de.Z.F8,de.Z.F9,de.Z.F10,de.Z.F11,de.Z.F12].includes(e)}var VS=function(t,r){var n,a=t.prefixCls,l=t.id,d=t.inputElement,c=t.disabled,u=t.tabIndex,f=t.autoFocus,v=t.autoComplete,m=t.editable,g=t.activeDescendantId,h=t.value,b=t.maxLength,C=t.onKeyDown,p=t.onMouseDown,P=t.onChange,E=t.onPaste,O=t.onCompositionStart,$=t.onCompositionEnd,Z=t.open,N=t.attrs,L=d||o.createElement("input",null),K=L,U=K.ref,W=K.props,B=W.onKeyDown,z=W.onChange,J=W.onMouseDown,ae=W.onCompositionStart,ne=W.onCompositionEnd,oe=W.style;return(0,Le.Kp)(!("maxLength"in L.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),L=o.cloneElement(L,(0,s.Z)((0,s.Z)((0,s.Z)({type:"search"},W),{},{id:l,ref:(0,St.sQ)(r,U),disabled:c,tabIndex:u,autoComplete:v||"off",autoFocus:f,className:_()("".concat(a,"-selection-search-input"),(n=L)===null||n===void 0||(n=n.props)===null||n===void 0?void 0:n.className),role:"combobox","aria-expanded":Z||!1,"aria-haspopup":"listbox","aria-owns":"".concat(l,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(l,"_list"),"aria-activedescendant":Z?g:void 0},N),{},{value:m?h:"",maxLength:b,readOnly:!m,unselectable:m?null:"on",style:(0,s.Z)((0,s.Z)({},oe),{},{opacity:m?null:0}),onKeyDown:function(ee){C(ee),B&&B(ee)},onMouseDown:function(ee){p(ee),J&&J(ee)},onChange:function(ee){P(ee),z&&z(ee)},onCompositionStart:function(ee){O(ee),ae&&ae(ee)},onCompositionEnd:function(ee){$(ee),ne&&ne(ee)},onPaste:E})),L},BS=o.forwardRef(VS),af=BS;function of(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var HS=typeof window!="undefined"&&window.document&&window.document.documentElement,KS=HS;function zS(e){return e!=null}function WS(e){return!e&&e!==0}function lf(e){return["string","number"].includes((0,x.Z)(e))}function sf(e){var t=void 0;return e&&(lf(e.title)?t=e.title.toString():lf(e.label)&&(t=e.label.toString())),t}function US(e,t){KS?o.useLayoutEffect(e,t):o.useEffect(e,t)}function YS(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var cf=function(t){t.preventDefault(),t.stopPropagation()},GS=function(t){var r=t.id,n=t.prefixCls,a=t.values,l=t.open,d=t.searchValue,c=t.autoClearSearchValue,u=t.inputRef,f=t.placeholder,v=t.disabled,m=t.mode,g=t.showSearch,h=t.autoFocus,b=t.autoComplete,C=t.activeDescendantId,p=t.tabIndex,P=t.removeIcon,E=t.maxTagCount,O=t.maxTagTextLength,$=t.maxTagPlaceholder,Z=$===void 0?function(je){return"+ ".concat(je.length," ...")}:$,N=t.tagRender,L=t.onToggleOpen,K=t.onRemove,U=t.onInputChange,W=t.onInputPaste,B=t.onInputKeyDown,z=t.onInputMouseDown,J=t.onInputCompositionStart,ae=t.onInputCompositionEnd,ne=o.useRef(null),oe=(0,o.useState)(0),Q=(0,w.Z)(oe,2),ee=Q[0],fe=Q[1],xe=(0,o.useState)(!1),He=(0,w.Z)(xe,2),ge=He[0],et=He[1],Ue="".concat(n,"-selection"),at=l||m==="multiple"&&c===!1||m==="tags"?d:"",vt=m==="tags"||m==="multiple"&&c===!1||g&&(l||ge);US(function(){fe(ne.current.scrollWidth)},[at]);var Ve=function(Te,Ye,qe,Zt,It){return o.createElement("span",{title:sf(Te),className:_()("".concat(Ue,"-item"),(0,D.Z)({},"".concat(Ue,"-item-disabled"),qe))},o.createElement("span",{className:"".concat(Ue,"-item-content")},Ye),Zt&&o.createElement(wl,{className:"".concat(Ue,"-item-remove"),onMouseDown:cf,onClick:It,customizeIcon:P},"\xD7"))},ct=function(Te,Ye,qe,Zt,It){var Lt=function(Yt){cf(Yt),L(!l)};return o.createElement("span",{onMouseDown:Lt},N({label:Ye,value:Te,disabled:qe,closable:Zt,onClose:It}))},ht=function(Te){var Ye=Te.disabled,qe=Te.label,Zt=Te.value,It=!v&&!Ye,Lt=qe;if(typeof O=="number"&&(typeof qe=="string"||typeof qe=="number")){var Kt=String(Lt);Kt.length>O&&(Lt="".concat(Kt.slice(0,O),"..."))}var Yt=function(Cn){Cn&&Cn.stopPropagation(),K(Te)};return typeof N=="function"?ct(Zt,Lt,Ye,It,Yt):Ve(Te,Lt,Ye,It,Yt)},De=function(Te){var Ye=typeof Z=="function"?Z(Te):Z;return Ve({title:Ye},Ye,!1)},ye=o.createElement("div",{className:"".concat(Ue,"-search"),style:{width:ee},onFocus:function(){et(!0)},onBlur:function(){et(!1)}},o.createElement(af,{ref:u,open:l,prefixCls:n,id:r,inputElement:null,disabled:v,autoFocus:h,autoComplete:b,editable:vt,activeDescendantId:C,value:at,onKeyDown:B,onMouseDown:z,onChange:U,onPaste:W,onCompositionStart:J,onCompositionEnd:ae,tabIndex:p,attrs:(0,Qe.Z)(t,!0)}),o.createElement("span",{ref:ne,className:"".concat(Ue,"-search-mirror"),"aria-hidden":!0},at,"\xA0")),Ke=o.createElement(Ae.Z,{prefixCls:"".concat(Ue,"-overflow"),data:a,renderItem:ht,renderRest:De,suffix:ye,itemKey:YS,maxCount:E});return o.createElement(o.Fragment,null,Ke,!a.length&&!at&&o.createElement("span",{className:"".concat(Ue,"-placeholder")},f))},XS=GS,QS=function(t){var r=t.inputElement,n=t.prefixCls,a=t.id,l=t.inputRef,d=t.disabled,c=t.autoFocus,u=t.autoComplete,f=t.activeDescendantId,v=t.mode,m=t.open,g=t.values,h=t.placeholder,b=t.tabIndex,C=t.showSearch,p=t.searchValue,P=t.activeValue,E=t.maxLength,O=t.onInputKeyDown,$=t.onInputMouseDown,Z=t.onInputChange,N=t.onInputPaste,L=t.onInputCompositionStart,K=t.onInputCompositionEnd,U=t.title,W=o.useState(!1),B=(0,w.Z)(W,2),z=B[0],J=B[1],ae=v==="combobox",ne=ae||C,oe=g[0],Q=p||"";ae&&P&&!z&&(Q=P),o.useEffect(function(){ae&&J(!1)},[ae,P]);var ee=v!=="combobox"&&!m&&!C?!1:!!Q,fe=U===void 0?sf(oe):U,xe=o.useMemo(function(){return oe?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:ee?{visibility:"hidden"}:void 0},h)},[oe,ee,h,n]);return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(af,{ref:l,prefixCls:n,id:a,open:m,inputElement:r,disabled:d,autoFocus:c,autoComplete:u,editable:ne,activeDescendantId:f,value:Q,onKeyDown:O,onMouseDown:$,onChange:function(ge){J(!0),Z(ge)},onPaste:N,onCompositionStart:L,onCompositionEnd:K,tabIndex:b,attrs:(0,Qe.Z)(t,!0),maxLength:ae?E:void 0})),!ae&&oe?o.createElement("span",{className:"".concat(n,"-selection-item"),title:fe,style:ee?{visibility:"hidden"}:void 0},oe.label):null,xe)},JS=QS,_S=function(t,r){var n=(0,o.useRef)(null),a=(0,o.useRef)(!1),l=t.prefixCls,d=t.open,c=t.mode,u=t.showSearch,f=t.tokenWithEnter,v=t.autoClearSearchValue,m=t.onSearch,g=t.onSearchSubmit,h=t.onToggleOpen,b=t.onInputKeyDown,C=t.domRef;o.useImperativeHandle(r,function(){return{focus:function(Q){n.current.focus(Q)},blur:function(){n.current.blur()}}});var p=rf(0),P=(0,w.Z)(p,2),E=P[0],O=P[1],$=function(Q){var ee=Q.which;(ee===de.Z.UP||ee===de.Z.DOWN)&&Q.preventDefault(),b&&b(Q),ee===de.Z.ENTER&&c==="tags"&&!a.current&&!d&&(g==null||g(Q.target.value)),kS(ee)&&h(!0)},Z=function(){O(!0)},N=(0,o.useRef)(null),L=function(Q){m(Q,!0,a.current)!==!1&&h(!0)},K=function(){a.current=!0},U=function(Q){a.current=!1,c!=="combobox"&&L(Q.target.value)},W=function(Q){var ee=Q.target.value;if(f&&N.current&&/[\r\n]/.test(N.current)){var fe=N.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ee=ee.replace(fe,N.current)}N.current=null,L(ee)},B=function(Q){var ee=Q.clipboardData,fe=ee==null?void 0:ee.getData("text");N.current=fe||""},z=function(Q){var ee=Q.target;if(ee!==n.current){var fe=document.body.style.msTouchAction!==void 0;fe?setTimeout(function(){n.current.focus()}):n.current.focus()}},J=function(Q){var ee=E();Q.target!==n.current&&!ee&&c!=="combobox"&&Q.preventDefault(),(c!=="combobox"&&(!u||!ee)||!d)&&(d&&v!==!1&&m("",!0,!1),h())},ae={inputRef:n,onInputKeyDown:$,onInputMouseDown:Z,onInputChange:W,onInputPaste:B,onInputCompositionStart:K,onInputCompositionEnd:U},ne=c==="multiple"||c==="tags"?o.createElement(XS,(0,Y.Z)({},t,ae)):o.createElement(JS,(0,Y.Z)({},t,ae));return o.createElement("div",{ref:C,className:"".concat(l,"-selector"),onClick:z,onMouseDown:J},ne)},qS=o.forwardRef(_S),e1=qS,t1=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],n1=function(t){var r=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"}}},r1=function(t,r){var n=t.prefixCls,a=t.disabled,l=t.visible,d=t.children,c=t.popupElement,u=t.animation,f=t.transitionName,v=t.dropdownStyle,m=t.dropdownClassName,g=t.direction,h=g===void 0?"ltr":g,b=t.placement,C=t.builtinPlacements,p=t.dropdownMatchSelectWidth,P=t.dropdownRender,E=t.dropdownAlign,O=t.getPopupContainer,$=t.empty,Z=t.getTriggerDOMNode,N=t.onPopupVisibleChange,L=t.onPopupMouseEnter,K=(0,y.Z)(t,t1),U="".concat(n,"-dropdown"),W=c;P&&(W=P(c));var B=o.useMemo(function(){return C||n1(p)},[C,p]),z=u?"".concat(U,"-").concat(u):f,J=typeof p=="number",ae=o.useMemo(function(){return J?null:p===!1?"minWidth":"width"},[p,J]),ne=v;J&&(ne=(0,s.Z)((0,s.Z)({},ne),{},{width:p}));var oe=o.useRef(null);return o.useImperativeHandle(r,function(){return{getPopupElement:function(){return oe.current}}}),o.createElement(kt.Z,(0,Y.Z)({},K,{showAction:N?["click"]:[],hideAction:N?["click"]:[],popupPlacement:b||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:B,prefixCls:U,popupTransitionName:z,popup:o.createElement("div",{ref:oe,onMouseEnter:L},W),stretch:ae,popupAlign:E,popupVisible:l,getPopupContainer:O,popupClassName:_()(m,(0,D.Z)({},"".concat(U,"-empty"),$)),popupStyle:ne,getTriggerDOMNode:Z,onPopupVisibleChange:N}),d)},a1=o.forwardRef(r1),o1=a1;function uf(e,t){var r=e.key,n;return"value"in e&&(n=e.value),r!=null?r:n!==void 0?n:"rc-index-key-".concat(t)}function Ms(e){return typeof e!="undefined"&&!Number.isNaN(e)}function df(e,t){var r=e||{},n=r.label,a=r.value,l=r.options,d=r.groupLabel,c=n||(t?"children":"label");return{label:c,value:a||"value",options:l||"options",groupLabel:d||c}}function i1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,a=[],l=df(r,!1),d=l.label,c=l.value,u=l.options,f=l.groupLabel;function v(m,g){Array.isArray(m)&&m.forEach(function(h){if(g||!(u in h)){var b=h[c];a.push({key:uf(h,a.length),groupOption:g,data:h,label:h[d],value:b})}else{var C=h[f];C===void 0&&n&&(C=h.label),a.push({key:uf(h,a.length),group:!0,data:h,label:C}),v(h[u],!0)}})}return v(e,!1),a}function Ns(e){var t=(0,s.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,Le.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var l1=function(t,r,n){if(!r||!r.length)return null;var a=!1,l=function c(u,f){var v=(0,ie.Z)(f),m=v[0],g=v.slice(1);if(!m)return[u];var h=u.split(m);return a=a||h.length>1,h.reduce(function(b,C){return[].concat((0,pe.Z)(b),(0,pe.Z)(c(C,g)))},[]).filter(Boolean)},d=l(t,r);return a?typeof n!="undefined"?d.slice(0,n):d:null},s1=o.createContext(null),$s=s1,c1=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],u1=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ds=function(t){return t==="tags"||t==="multiple"},d1=o.forwardRef(function(e,t){var r,n=e.id,a=e.prefixCls,l=e.className,d=e.showSearch,c=e.tagRender,u=e.direction,f=e.omitDomProps,v=e.displayValues,m=e.onDisplayValuesChange,g=e.emptyOptions,h=e.notFoundContent,b=h===void 0?"Not Found":h,C=e.onClear,p=e.mode,P=e.disabled,E=e.loading,O=e.getInputElement,$=e.getRawInputElement,Z=e.open,N=e.defaultOpen,L=e.onDropdownVisibleChange,K=e.activeValue,U=e.onActiveValueChange,W=e.activeDescendantId,B=e.searchValue,z=e.autoClearSearchValue,J=e.onSearch,ae=e.onSearchSplit,ne=e.tokenSeparators,oe=e.allowClear,Q=e.suffixIcon,ee=e.clearIcon,fe=e.OptionList,xe=e.animation,He=e.transitionName,ge=e.dropdownStyle,et=e.dropdownClassName,Ue=e.dropdownMatchSelectWidth,at=e.dropdownRender,vt=e.dropdownAlign,Ve=e.placement,ct=e.builtinPlacements,ht=e.getPopupContainer,De=e.showAction,ye=De===void 0?[]:De,Ke=e.onFocus,je=e.onBlur,Te=e.onKeyUp,Ye=e.onKeyDown,qe=e.onMouseDown,Zt=(0,y.Z)(e,c1),It=Ds(p),Lt=(d!==void 0?d:It)||p==="combobox",Kt=(0,s.Z)({},Zt);u1.forEach(function(Rn){delete Kt[Rn]}),f==null||f.forEach(function(Rn){delete Kt[Rn]});var Yt=o.useState(!1),en=(0,w.Z)(Yt,2),Cn=en[0],Ot=en[1];o.useEffect(function(){Ot((0,Rt.Z)())},[]);var pn=o.useRef(null),Bt=o.useRef(null),ot=o.useRef(null),Tt=o.useRef(null),_t=o.useRef(null),Qt=o.useRef(!1),Sn=jS(),hn=(0,w.Z)(Sn,3),Fn=hn[0],nn=hn[1],rn=hn[2];o.useImperativeHandle(t,function(){var Rn,yn;return{focus:(Rn=Tt.current)===null||Rn===void 0?void 0:Rn.focus,blur:(yn=Tt.current)===null||yn===void 0?void 0:yn.blur,scrollTo:function(Br){var Cr;return(Cr=_t.current)===null||Cr===void 0?void 0:Cr.scrollTo(Br)}}});var In=o.useMemo(function(){var Rn;if(p!=="combobox")return B;var yn=(Rn=v[0])===null||Rn===void 0?void 0:Rn.value;return typeof yn=="string"||typeof yn=="number"?String(yn):""},[B,p,v]),Gn=p==="combobox"&&typeof O=="function"&&O()||null,En=typeof $=="function"&&$(),kr=(0,St.x1)(Bt,En==null||(r=En.props)===null||r===void 0?void 0:r.ref),Fr=o.useState(!1),Mr=(0,w.Z)(Fr,2),ta=Mr[0],Qr=Mr[1];(0,Ge.Z)(function(){Qr(!0)},[]);var Ln=(0,se.Z)(!1,{defaultValue:N,value:Z}),xn=(0,w.Z)(Ln,2),Bn=xn[0],Pn=xn[1],$n=ta?Bn:!1,Ur=!b&&g;(P||Ur&&$n&&p==="combobox")&&($n=!1);var Or=Ur?!1:$n,Ht=o.useCallback(function(Rn){var yn=Rn!==void 0?Rn:!$n;P||(Pn(yn),$n!==yn&&(L==null||L(yn)))},[P,$n,Pn,L]),sn=o.useMemo(function(){return(ne||[]).some(function(Rn){return[` -`,`\r -`].includes(Rn)})},[ne]),qt=o.useContext($s)||{},vn=qt.maxCount,Vn=qt.rawValues,zn=function(yn,Nr,Br){if(!(It&&Ms(vn)&&(Vn==null?void 0:Vn.size)>=vn)){var Cr=!0,Ar=yn;U==null||U(null);var Kn=l1(yn,ne,Ms(vn)?vn-Vn.size:void 0),Hn=Br?null:Kn;return p!=="combobox"&&Hn&&(Ar="",ae==null||ae(Hn),Ht(!1),Cr=!1),J&&In!==Ar&&J(Ar,{source:Nr?"typing":"effect"}),Cr}},Jr=function(yn){!yn||!yn.trim()||J(yn,{source:"submit"})};o.useEffect(function(){!$n&&!It&&p!=="combobox"&&zn("",!1,!1)},[$n]),o.useEffect(function(){Bn&&P&&Pn(!1),P&&!Qt.current&&nn(!1)},[P]);var _r=rf(),ua=(0,w.Z)(_r,2),Wn=ua[0],rr=ua[1],mn=function(yn){var Nr=Wn(),Br=yn.which;if(Br===de.Z.ENTER&&(p!=="combobox"&&yn.preventDefault(),$n||Ht(!0)),rr(!!In),Br===de.Z.BACKSPACE&&!Nr&&It&&!In&&v.length){for(var Cr=(0,pe.Z)(v),Ar=null,Kn=Cr.length-1;Kn>=0;Kn-=1){var Hn=Cr[Kn];if(!Hn.disabled){Cr.splice(Kn,1),Ar=Hn;break}}Ar&&m(Cr,{type:"remove",values:[Ar]})}for(var Yr=arguments.length,va=new Array(Yr>1?Yr-1:0),ya=1;ya1?Nr-1:0),Cr=1;Cr1?Kn-1:0),Yr=1;Yr=b},[c,b,$==null?void 0:$.size]),ne=function(ye){ye.preventDefault()},oe=function(ye){var Ke;(Ke=J.current)===null||Ke===void 0||Ke.scrollTo(typeof ye=="number"?{index:ye}:ye)},Q=function(ye){for(var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,je=z.length,Te=0;Te1&&arguments[1]!==void 0?arguments[1]:!1;He(ye);var je={source:Ke?"keyboard":"mouse"},Te=z[ye];if(!Te){p(null,-1,je);return}p(Te.value,ye,je)};(0,o.useEffect)(function(){ge(P!==!1?Q(0):-1)},[z.length,f]);var et=o.useCallback(function(De){return $.has(De)&&u!=="combobox"},[u,(0,pe.Z)($).toString(),$.size]);(0,o.useEffect)(function(){var De=setTimeout(function(){if(!c&&d&&$.size===1){var Ke=Array.from($)[0],je=z.findIndex(function(Te){var Ye=Te.data;return Ye.value===Ke});je!==-1&&(ge(je),oe(je))}});if(d){var ye;(ye=J.current)===null||ye===void 0||ye.scrollTo(void 0)}return function(){return clearTimeout(De)}},[d,f]);var Ue=function(ye){ye!==void 0&&E(ye,{selected:!$.has(ye)}),c||v(!1)};if(o.useImperativeHandle(r,function(){return{onKeyDown:function(ye){var Ke=ye.which,je=ye.ctrlKey;switch(Ke){case de.Z.N:case de.Z.P:case de.Z.UP:case de.Z.DOWN:{var Te=0;if(Ke===de.Z.UP?Te=-1:Ke===de.Z.DOWN?Te=1:m1()&&je&&(Ke===de.Z.N?Te=1:Ke===de.Z.P&&(Te=-1)),Te!==0){var Ye=Q(xe+Te,Te);oe(Ye),ge(Ye,!0)}break}case de.Z.ENTER:{var qe,Zt=z[xe];Zt&&!(Zt!=null&&(qe=Zt.data)!==null&&qe!==void 0&&qe.disabled)&&!ae?Ue(Zt.value):Ue(void 0),d&&ye.preventDefault();break}case de.Z.ESC:v(!1),d&&ye.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ye){oe(ye)}}}),z.length===0)return o.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(B,"-empty"),onMouseDown:ne},m);var at=Object.keys(Z).map(function(De){return Z[De]}),vt=function(ye){return ye.label};function Ve(De,ye){var Ke=De.group;return{role:Ke?"presentation":"option",id:"".concat(l,"_list_").concat(ye)}}var ct=function(ye){var Ke=z[ye];if(!Ke)return null;var je=Ke.data||{},Te=je.value,Ye=Ke.group,qe=(0,Qe.Z)(je,!0),Zt=vt(Ke);return Ke?o.createElement("div",(0,Y.Z)({"aria-label":typeof Zt=="string"&&!Ye?Zt:null},qe,{key:ye},Ve(Ke,ye),{"aria-selected":et(Te)}),Te):null},ht={role:"listbox",id:"".concat(l,"_list")};return o.createElement(o.Fragment,null,N&&o.createElement("div",(0,Y.Z)({},ht,{style:{height:0,width:0,overflow:"hidden"}}),ct(xe-1),ct(xe),ct(xe+1)),o.createElement(tn.Z,{itemKey:"key",ref:J,data:z,height:K,itemHeight:U,fullHeight:!1,onMouseDown:ne,onScroll:g,virtual:N,direction:L,innerProps:N?null:ht},function(De,ye){var Ke=De.group,je=De.groupOption,Te=De.data,Ye=De.label,qe=De.value,Zt=Te.key;if(Ke){var It,Lt=(It=Te.title)!==null&&It!==void 0?It:gf(Ye)?Ye.toString():void 0;return o.createElement("div",{className:_()(B,"".concat(B,"-group"),Te.className),title:Lt},Ye!==void 0?Ye:Zt)}var Kt=Te.disabled,Yt=Te.title,en=Te.children,Cn=Te.style,Ot=Te.className,pn=(0,y.Z)(Te,g1),Bt=(0,ln.Z)(pn,at),ot=et(qe),Tt=Kt||!ot&&ae,_t="".concat(B,"-option"),Qt=_()(B,_t,Ot,(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(_t,"-grouped"),je),"".concat(_t,"-active"),xe===ye&&!Tt),"".concat(_t,"-disabled"),Tt),"".concat(_t,"-selected"),ot)),Sn=vt(De),hn=!O||typeof O=="function"||ot,Fn=typeof Sn=="number"?Sn:Sn||qe,nn=gf(Fn)?Fn.toString():void 0;return Yt!==void 0&&(nn=Yt),o.createElement("div",(0,Y.Z)({},(0,Qe.Z)(Bt),N?{}:Ve(De,ye),{"aria-selected":ot,className:Qt,title:nn,onMouseMove:function(){xe===ye||Tt||ge(ye)},onClick:function(){Tt||Ue(qe)},style:Cn}),o.createElement("div",{className:"".concat(_t,"-content")},typeof W=="function"?W(De,{index:ye}):Fn),o.isValidElement(O)||ot,hn&&o.createElement(wl,{className:"".concat(B,"-option-state"),customizeIcon:O,customizeIconProps:{value:qe,disabled:Tt,isSelected:ot}},ot?"\u2713":null))}))},p1=o.forwardRef(h1),b1=p1,y1=function(e,t){var r=o.useRef({values:new Map,options:new Map}),n=o.useMemo(function(){var l=r.current,d=l.values,c=l.options,u=e.map(function(m){if(m.label===void 0){var g;return(0,s.Z)((0,s.Z)({},m),{},{label:(g=d.get(m.value))===null||g===void 0?void 0:g.label})}return m}),f=new Map,v=new Map;return u.forEach(function(m){f.set(m.value,m),v.set(m.value,t.get(m.value)||c.get(m.value))}),r.current.values=f,r.current.options=v,u},[e,t]),a=o.useCallback(function(l){return t.get(l)||r.current.options.get(l)},[t]);return[n,a]};function Ts(e,t){return of(e).join("").toUpperCase().includes(t)}var C1=function(e,t,r,n,a){return o.useMemo(function(){if(!r||n===!1)return e;var l=t.options,d=t.label,c=t.value,u=[],f=typeof n=="function",v=r.toUpperCase(),m=f?n:function(h,b){return a?Ts(b[a],v):b[l]?Ts(b[d!=="children"?d:"label"],v):Ts(b[c],v)},g=f?function(h){return Ns(h)}:function(h){return h};return e.forEach(function(h){if(h[l]){var b=m(r,g(h));if(b)u.push(h);else{var C=h[l].filter(function(p){return m(r,g(p))});C.length&&u.push((0,s.Z)((0,s.Z)({},h),{},(0,D.Z)({},l,C)))}return}m(r,g(h))&&u.push(h)}),u},[e,n,a,r,t])},hf=0,x1=(0,_n.Z)();function S1(){var e;return x1?(e=hf,hf+=1):e="TEST_OR_SSR",e}function pf(e){var t=o.useState(),r=(0,w.Z)(t,2),n=r[0],a=r[1];return o.useEffect(function(){a("rc_select_".concat(S1()))},[]),e||n}var P1=["children","value"],w1=["children"];function E1(e){var t=e,r=t.key,n=t.props,a=n.children,l=n.value,d=(0,y.Z)(n,P1);return(0,s.Z)({key:r,value:l!==void 0?l:r,children:a},d)}function bf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,bn.Z)(e).map(function(r,n){if(!o.isValidElement(r)||!r.type)return null;var a=r,l=a.type.isSelectOptGroup,d=a.key,c=a.props,u=c.children,f=(0,y.Z)(c,w1);return t||!l?E1(r):(0,s.Z)((0,s.Z)({key:"__RC_SELECT_GRP__".concat(d===null?n:d,"__"),label:d},f),{},{options:bf(u)})}).filter(function(r){return r})}var I1=function(t,r,n,a,l){return o.useMemo(function(){var d=t,c=!t;c&&(d=bf(r));var u=new Map,f=new Map,v=function(h,b,C){C&&typeof C=="string"&&h.set(b[C],b)},m=function g(h){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=0;C1&&arguments[1]!==void 0?arguments[1]:!1,d=0;d2&&arguments[2]!==void 0?arguments[2]:{},vn=qt.source,Vn=vn===void 0?"keyboard":vn;ta(sn),d&&n==="combobox"&&Ht!==null&&Vn==="keyboard"&&En(String(Ht))},[d,n]),xn=function(sn,qt,vn){var Vn=function(){var or,hr=pn(sn);return[fe?{label:hr==null?void 0:hr[Ve.label],value:sn,key:(or=hr==null?void 0:hr.key)!==null&&or!==void 0?or:sn}:sn,Ns(hr)]};if(qt&&h){var zn=Vn(),Jr=(0,w.Z)(zn,2),_r=Jr[0],ua=Jr[1];h(_r,ua)}else if(!qt&&b&&vn!=="clear"){var Wn=Vn(),rr=(0,w.Z)(Wn,2),mn=rr[0],Yn=rr[1];b(mn,Yn)}},Bn=yf(function(Ht,sn){var qt,vn=Ue?sn.selected:!0;vn?qt=Ue?[].concat((0,pe.Z)(Ot),[Ht]):[Ht]:qt=Ot.filter(function(Vn){return Vn.value!==Ht}),nn(qt),xn(Ht,vn),n==="combobox"?En(""):(!Ds||g)&&(ye(""),En(""))}),Pn=function(sn,qt){nn(sn);var vn=qt.type,Vn=qt.values;(vn==="remove"||vn==="clear")&&Vn.forEach(function(zn){xn(zn.value,!1,vn)})},$n=function(sn,qt){if(ye(sn),En(null),qt.source==="submit"){var vn=(sn||"").trim();if(vn){var Vn=Array.from(new Set([].concat((0,pe.Z)(ot),[vn])));nn(Vn),xn(vn,!0),ye("")}return}qt.source!=="blur"&&(n==="combobox"&&nn(sn),v==null||v(sn))},Ur=function(sn){var qt=sn;n!=="tags"&&(qt=sn.map(function(Vn){var zn=Te.get(Vn);return zn==null?void 0:zn.value}).filter(function(Vn){return Vn!==void 0}));var vn=Array.from(new Set([].concat((0,pe.Z)(ot),(0,pe.Z)(qt))));nn(vn),vn.forEach(function(Vn){xn(Vn,!0)})},Or=o.useMemo(function(){var Ht=W!==!1&&p!==!1;return(0,s.Z)((0,s.Z)({},Ke),{},{flattenOptions:Fn,onActiveValue:Ln,defaultActiveFirstOption:Qr,onSelect:Bn,menuItemSelectedIcon:U,rawValues:ot,fieldNames:Ve,virtual:Ht,direction:B,listHeight:J,listItemHeight:ne,childrenAsData:at,maxCount:He,optionRender:N})},[He,Ke,Fn,Ln,Qr,Bn,U,ot,Ve,W,p,B,J,ne,at,N]);return o.createElement($s.Provider,{value:Or},o.createElement(ff,(0,Y.Z)({},ge,{id:et,prefixCls:l,ref:t,omitDomProps:R1,mode:n,displayValues:Bt,onDisplayValuesChange:Pn,direction:B,searchValue:De,onSearch:$n,autoClearSearchValue:g,onSearchSplit:Ur,dropdownMatchSelectWidth:p,OptionList:b1,emptyOptions:!Fn.length,activeValue:Gn,activeDescendantId:"".concat(et,"_list_").concat(Mr)})))}),Cf=N1;Cf.Option=v1,Cf.OptGroup=f1;var eE=null,tE=null;function Ja(e,t){return e[t]}function xf(e,t){var r=new Set;return e.forEach(function(n){t.has(n)||r.add(n)}),r}function $1(e){var t=e||{},r=t.disabled,n=t.disableCheckbox,a=t.checkable;return!!(r||n)||a===!1}function D1(e,t,r,n){for(var a=new Set(e),l=new Set,d=0;d<=r;d+=1){var c=t.get(d)||new Set;c.forEach(function(m){var g=m.key,h=m.node,b=m.children,C=b===void 0?[]:b;a.has(g)&&!n(h)&&C.filter(function(p){return!n(p.node)}).forEach(function(p){a.add(p.key)})})}for(var u=new Set,f=r;f>=0;f-=1){var v=t.get(f)||new Set;v.forEach(function(m){var g=m.parent,h=m.node;if(!(n(h)||!m.parent||u.has(m.parent.key))){if(n(m.parent.node)){u.add(g.key);return}var b=!0,C=!1;(g.children||[]).filter(function(p){return!n(p.node)}).forEach(function(p){var P=p.key,E=a.has(P);b&&!E&&(b=!1),!C&&(E||l.has(P))&&(C=!0)}),b&&a.add(g.key),C&&l.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(xf(l,a))}}function T1(e,t,r,n,a){for(var l=new Set(e),d=new Set(t),c=0;c<=n;c+=1){var u=r.get(c)||new Set;u.forEach(function(g){var h=g.key,b=g.node,C=g.children,p=C===void 0?[]:C;!l.has(h)&&!d.has(h)&&!a(b)&&p.filter(function(P){return!a(P.node)}).forEach(function(P){l.delete(P.key)})})}d=new Set;for(var f=new Set,v=n;v>=0;v-=1){var m=r.get(v)||new Set;m.forEach(function(g){var h=g.parent,b=g.node;if(!(a(b)||!g.parent||f.has(g.parent.key))){if(a(g.parent.node)){f.add(h.key);return}var C=!0,p=!1;(h.children||[]).filter(function(P){return!a(P.node)}).forEach(function(P){var E=P.key,O=l.has(E);C&&!O&&(C=!1),!p&&(O||d.has(E))&&(p=!0)}),C||l.delete(h.key),p&&d.add(h.key),f.add(h.key)}})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(xf(d,l))}}function bi(e,t,r,n){var a=[],l;n?l=n:l=$1;var d=new Set(e.filter(function(v){var m=!!Ja(r,v);return m||a.push(v),m})),c=new Map,u=0;Object.keys(r).forEach(function(v){var m=r[v],g=m.level,h=c.get(g);h||(h=new Set,c.set(g,h)),h.add(m),u=Math.max(u,g)}),(0,Le.ZP)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(v){return"'".concat(v,"'")}).join(", ")));var f;return t===!0?f=D1(d,c,u,l):f=T1(d,t.halfCheckedKeys,c,u,l),f}var F1=function(e){var t=o.useRef({valueLabels:new Map});return o.useMemo(function(){var r=t.current.valueLabels,n=new Map,a=e.map(function(l){var d,c=l.value,u=(d=l.label)!==null&&d!==void 0?d:r.get(c);return n.set(c,u),(0,s.Z)((0,s.Z)({},l),{},{label:u})});return t.current.valueLabels=n,[a]},[e])},A1=function(e,t,r,n){return o.useMemo(function(){var a=e.map(function(u){var f=u.value;return f}),l=t.map(function(u){var f=u.value;return f}),d=a.filter(function(u){return!n[u]});if(r){var c=bi(a,!0,n);a=c.checkedKeys,l=c.halfCheckedKeys}return[Array.from(new Set([].concat((0,pe.Z)(d),(0,pe.Z)(a)))),l]},[e,t,r,n])},j1=["children"];function Sf(e,t){return"".concat(e,"-").concat(t)}function L1(e){return e&&e.type&&e.type.isTreeNode}function Vi(e,t){return e!=null?e:t}function El(e){var t=e||{},r=t.title,n=t._title,a=t.key,l=t.children,d=r||"title";return{title:d,_title:n||[d],key:a||"key",children:l||"children"}}function nE(e,t){var r=new Map;function n(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(a||[]).forEach(function(d){var c=d[t.key],u=d[t.children];warning(c!=null,"Tree node must have a certain key: [".concat(l).concat(c,"]"));var f=String(c);warning(!r.has(f)||c===null||c===void 0,"Same 'key' exist in the Tree: ".concat(f)),r.set(f,!0),n(u,"".concat(l).concat(f," > "))})}n(e)}function k1(e){function t(r){var n=(0,bn.Z)(r);return n.map(function(a){if(!L1(a))return(0,Le.ZP)(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var l=a.key,d=a.props,c=d.children,u=(0,y.Z)(d,j1),f=(0,s.Z)({key:l},u),v=t(c);return v.length&&(f.children=v),f}).filter(function(a){return a})}return t(e)}function Fs(e,t,r){var n=El(r),a=n._title,l=n.key,d=n.children,c=new Set(t===!0?[]:t),u=[];function f(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(g,h){for(var b=Sf(m?m.pos:"0",h),C=Vi(g[l],b),p,P=0;P1&&arguments[1]!==void 0?arguments[1]:{},r=t.initWrapper,n=t.processEntity,a=t.onProcessFinished,l=t.externalGetKey,d=t.childrenPropName,c=t.fieldNames,u=arguments.length>2?arguments[2]:void 0,f=l||u,v={},m={},g={posEntities:v,keyEntities:m};return r&&(g=r(g)||g),V1(e,function(h){var b=h.node,C=h.index,p=h.pos,P=h.key,E=h.parentPos,O=h.level,$=h.nodes,Z={node:b,nodes:$,index:C,key:P,pos:p,level:O},N=Vi(P,p);v[p]=Z,m[N]=Z,Z.parent=v[E],Z.parent&&(Z.parent.children=Z.parent.children||[],Z.parent.children.push(Z)),n&&n(Z,g)},{externalGetKey:f,childrenPropName:d,fieldNames:c}),a&&a(g),g}function Bi(e,t){var r=t.expandedKeys,n=t.selectedKeys,a=t.loadedKeys,l=t.loadingKeys,d=t.checkedKeys,c=t.halfCheckedKeys,u=t.dragOverNodeKey,f=t.dropPosition,v=t.keyEntities,m=Ja(v,e),g={eventKey:e,expanded:r.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:l.indexOf(e)!==-1,checked:d.indexOf(e)!==-1,halfChecked:c.indexOf(e)!==-1,pos:String(m?m.pos:""),dragOver:u===e&&f===0,dragOverGapTop:u===e&&f===-1,dragOverGapBottom:u===e&&f===1};return g}function Pa(e){var t=e.data,r=e.expanded,n=e.selected,a=e.checked,l=e.loaded,d=e.loading,c=e.halfChecked,u=e.dragOver,f=e.dragOverGapTop,v=e.dragOverGapBottom,m=e.pos,g=e.active,h=e.eventKey,b=(0,s.Z)((0,s.Z)({},t),{},{expanded:r,selected:n,checked:a,loaded:l,loading:d,halfChecked:c,dragOver:u,dragOverGapTop:f,dragOverGapBottom:v,pos:m,active:g,key:h});return"props"in b||Object.defineProperty(b,"props",{get:function(){return(0,Le.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),b}var B1=function(e,t){return o.useMemo(function(){var r=Pf(e,{fieldNames:t,initWrapper:function(a){return(0,s.Z)((0,s.Z)({},a),{},{valueEntities:new Map})},processEntity:function(a,l){var d=a.node[t.value];if(!1)var c;l.valueEntities.set(d,a)}});return r},[e,t])},H1=function(){return null},As=H1,K1=["children","value"];function wf(e){return(0,bn.Z)(e).map(function(t){if(!o.isValidElement(t)||!t.type)return null;var r=t,n=r.key,a=r.props,l=a.children,d=a.value,c=(0,y.Z)(a,K1),u=(0,s.Z)({key:n,value:d},c),f=wf(l);return f.length&&(u.children=f),u}).filter(function(t){return t})}function js(e){if(!e)return e;var t=(0,s.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,Le.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function z1(e,t,r,n,a,l){var d=null,c=null;function u(){function f(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return v.map(function(h,b){var C="".concat(m,"-").concat(b),p=h[l.value],P=r.includes(p),E=f(h[l.children]||[],C,P),O=o.createElement(As,h,E.map(function(Z){return Z.node}));if(t===p&&(d=O),P){var $={pos:C,node:O,children:E};return g||c.push($),$}return null}).filter(function(h){return h})}c||(c=[],f(n),c.sort(function(v,m){var g=v.node.props.value,h=m.node.props.value,b=r.indexOf(g),C=r.indexOf(h);return b-C}))}Object.defineProperty(e,"triggerNode",{get:function(){return(0,Le.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),u(),d}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return(0,Le.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),u(),a?c:c.map(function(v){var m=v.node;return m})}})}var W1=function(e,t,r){var n=r.treeNodeFilterProp,a=r.filterTreeNode,l=r.fieldNames,d=l.children;return o.useMemo(function(){if(!t||a===!1)return e;var c;if(typeof a=="function")c=a;else{var u=t.toUpperCase();c=function(m,g){var h=g[n];return String(h).toUpperCase().includes(u)}}function f(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return v.reduce(function(g,h){var b=h[d],C=m||c(t,js(h)),p=f(b||[],C);return(C||p.length)&&g.push((0,s.Z)((0,s.Z)({},h),{},(0,D.Z)({isLeaf:void 0},d,p))),g},[])}return f(e)},[e,t,d,n,a])};function Ef(e){var t=o.useRef();t.current=e;var r=o.useCallback(function(){return t.current.apply(t,arguments)},[]);return r}function U1(e,t){var r=t.id,n=t.pId,a=t.rootPId,l={},d=[],c=e.map(function(u){var f=(0,s.Z)({},u),v=f[r];return l[v]=f,f.key=f.key||v,f});return c.forEach(function(u){var f=u[n],v=l[f];v&&(v.children=v.children||[],v.children.push(u)),(f===a||!v&&a===null)&&d.push(u)}),d}function Y1(e,t,r){return o.useMemo(function(){return e?r?U1(e,(0,s.Z)({id:"id",pId:"pId",rootPId:null},r!==!0?r:{})):e:wf(t)},[t,r,e])}var G1=o.createContext(null),If=G1,Zn=i(97326),Ls=o.createContext(null);function X1(e){var t=e.dropPosition,r=e.dropLevelOffset,n=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-r*n;break;case 1:a.bottom=0,a.left=-r*n;break;case 0:a.bottom=0,a.left=n;break}return o.createElement("div",{style:a})}var Of=i(36459),Q1=function(t){for(var r=t.prefixCls,n=t.level,a=t.isStart,l=t.isEnd,d="".concat(r,"-indent-unit"),c=[],u=0;u0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=e.length,n=t.length;if(Math.abs(r-n)!==1)return{add:!1,key:null};function a(l,d){var c=new Map;l.forEach(function(f){c.set(f,!0)});var u=d.filter(function(f){return!c.has(f)});return u.length===1?u[0]:null}return r ").concat(t);return t}var jf=o.forwardRef(function(e,t){var r=e.prefixCls,n=e.data,a=e.selectable,l=e.checkable,d=e.expandedKeys,c=e.selectedKeys,u=e.checkedKeys,f=e.loadedKeys,v=e.loadingKeys,m=e.halfCheckedKeys,g=e.keyEntities,h=e.disabled,b=e.dragging,C=e.dragOverNodeKey,p=e.dropPosition,P=e.motion,E=e.height,O=e.itemHeight,$=e.virtual,Z=e.focusable,N=e.activeItem,L=e.focused,K=e.tabIndex,U=e.onKeyDown,W=e.onFocus,B=e.onBlur,z=e.onActiveChange,J=e.onListChangeStart,ae=e.onListChangeEnd,ne=(0,y.Z)(e,iP),oe=o.useRef(null),Q=o.useRef(null);o.useImperativeHandle(t,function(){return{scrollTo:function(Cn){oe.current.scrollTo(Cn)},getIndentWidth:function(){return Q.current.offsetWidth}}});var ee=o.useState(d),fe=(0,w.Z)(ee,2),xe=fe[0],He=fe[1],ge=o.useState(n),et=(0,w.Z)(ge,2),Ue=et[0],at=et[1],vt=o.useState(n),Ve=(0,w.Z)(vt,2),ct=Ve[0],ht=Ve[1],De=o.useState([]),ye=(0,w.Z)(De,2),Ke=ye[0],je=ye[1],Te=o.useState(null),Ye=(0,w.Z)(Te,2),qe=Ye[0],Zt=Ye[1],It=o.useRef(n);It.current=n;function Lt(){var en=It.current;at(en),ht(en),je([]),Zt(null),ae()}(0,Ge.Z)(function(){He(d);var en=oP(xe,d);if(en.key!==null)if(en.add){var Cn=Ue.findIndex(function(_t){var Qt=_t.key;return Qt===en.key}),Ot=Ff(Nf(Ue,n,en.key),$,E,O),pn=Ue.slice();pn.splice(Cn+1,0,Tf),ht(pn),je(Ot),Zt("show")}else{var Bt=n.findIndex(function(_t){var Qt=_t.key;return Qt===en.key}),ot=Ff(Nf(n,Ue,en.key),$,E,O),Tt=n.slice();Tt.splice(Bt+1,0,Tf),ht(Tt),je(ot),Zt("hide")}else Ue!==n&&(at(n),ht(n))},[d,n]),o.useEffect(function(){b||Lt()},[b]);var Kt=P?ct:n,Yt={expandedKeys:d,selectedKeys:c,loadedKeys:f,loadingKeys:v,checkedKeys:u,halfCheckedKeys:m,dragOverNodeKey:C,dropPosition:p,keyEntities:g};return o.createElement(o.Fragment,null,L&&N&&o.createElement("span",{style:$f,"aria-live":"assertive"},sP(N)),o.createElement("div",null,o.createElement("input",{style:$f,disabled:Z===!1||h,tabIndex:Z!==!1?K:null,onKeyDown:U,onFocus:W,onBlur:B,value:"",onChange:lP,"aria-label":"for screen reader"})),o.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},o.createElement("div",{className:"".concat(r,"-indent")},o.createElement("div",{ref:Q,className:"".concat(r,"-indent-unit")}))),o.createElement(tn.Z,(0,Y.Z)({},ne,{data:Kt,itemKey:Af,height:E,fullHeight:!1,virtual:$,itemHeight:O,prefixCls:"".concat(r,"-list"),ref:oe,onVisibleChange:function(Cn,Ot){var pn=new Set(Cn),Bt=Ot.filter(function(ot){return!pn.has(ot)});Bt.some(function(ot){return Af(ot)===zo})&&Lt()}}),function(en){var Cn=en.pos,Ot=Object.assign({},((0,Of.Z)(en.data),en.data)),pn=en.title,Bt=en.key,ot=en.isStart,Tt=en.isEnd,_t=Vi(Bt,Cn);delete Ot.key,delete Ot.children;var Qt=Bi(_t,Yt);return o.createElement(aP,(0,Y.Z)({},Ot,Qt,{title:pn,active:!!N&&Bt===N.key,pos:Cn,data:en.data,isStart:ot,isEnd:Tt,motion:P,motionNodes:Bt===zo?Ke:null,motionType:qe,onMotionStart:J,onMotionEnd:Lt,treeNodeRequiredProps:Yt,onMouseMove:function(){z(null)}}))}))});jf.displayName="NodeList";var cP=jf,uP=null;function yo(e,t){if(!e)return[];var r=e.slice(),n=r.indexOf(t);return n>=0&&r.splice(n,1),r}function No(e,t){var r=(e||[]).slice();return r.indexOf(t)===-1&&r.push(t),r}function Hs(e){return e.split("-")}function dP(e,t){var r=[],n=Ja(t,e);function a(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(d){var c=d.key,u=d.children;r.push(c),a(u)})}return a(n.children),r}function fP(e){if(e.parent){var t=Hs(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function vP(e){var t=Hs(e.pos);return Number(t[t.length-1])===0}function Lf(e,t,r,n,a,l,d,c,u,f){var v,m=e.clientX,g=e.clientY,h=e.target.getBoundingClientRect(),b=h.top,C=h.height,p=(f==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-m),P=(p-12)/n,E=u.filter(function(oe){var Q;return(Q=c[oe])===null||Q===void 0||(Q=Q.children)===null||Q===void 0?void 0:Q.length}),O=Ja(c,r.props.eventKey);if(g-1.5?l({dragNode:J,dropNode:ae,dropPosition:1})?W=1:ne=!1:l({dragNode:J,dropNode:ae,dropPosition:0})?W=0:l({dragNode:J,dropNode:ae,dropPosition:1})?W=1:ne=!1:l({dragNode:J,dropNode:ae,dropPosition:1})?W=1:ne=!1,{dropPosition:W,dropLevelOffset:B,dropTargetKey:O.key,dropTargetPos:O.pos,dragOverNodeKey:U,dropContainerKey:W===0?null:((v=O.parent)===null||v===void 0?void 0:v.key)||null,dropAllowed:ne}}function kf(e,t){if(e){var r=t.multiple;return r?e.slice():e.length?[e[0]]:e}}var mP=function(t){return t};function gP(e,t){if(!e)return[];var r=t||{},n=r.processProps,a=n===void 0?mP:n,l=Array.isArray(e)?e:[e];return l.map(function(d){var c=d.children,u=_objectWithoutProperties(d,uP),f=gP(c,t);return React.createElement(TreeNode,_extends({key:u.key},a(u)),f)})}function Ks(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if((0,x.Z)(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return(0,Le.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return t}function Vf(e,t){var r=new Set;function n(a){if(!r.has(a)){var l=Ja(t,a);if(l){r.add(a);var d=l.parent,c=l.node;c.disabled||d&&n(d.key)}}}return(e||[]).forEach(function(a){n(a)}),(0,pe.Z)(r)}var hP=10,zs=function(e){(0,$l.Z)(r,e);var t=(0,Dl.Z)(r);function r(){var n;(0,Do.Z)(this,r);for(var a=arguments.length,l=new Array(a),d=0;d2&&arguments[2]!==void 0?arguments[2]:!1,m=n.state,g=m.dragChildrenKeys,h=m.dropPosition,b=m.dropTargetKey,C=m.dropTargetPos,p=m.dropAllowed;if(p){var P=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),b!==null){var E=(0,s.Z)((0,s.Z)({},Bi(b,n.getTreeNodeRequiredProps())),{},{active:((f=n.getActiveItem())===null||f===void 0?void 0:f.key)===b,data:Ja(n.state.keyEntities,b).node}),O=g.indexOf(b)!==-1;(0,Le.ZP)(!O,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var $=Hs(C),Z={event:c,node:Pa(E),dragNode:n.dragNode?Pa(n.dragNode.props):null,dragNodesKeys:[n.dragNode.props.eventKey].concat(g),dropToGap:h!==0,dropPosition:h+Number($[$.length-1])};v||P==null||P(Z),n.dragNode=null}}}),(0,D.Z)((0,Zn.Z)(n),"cleanDragState",function(){var c=n.state.draggingNodeKey;c!==null&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null}),(0,D.Z)((0,Zn.Z)(n),"triggerExpandActionExpand",function(c,u){var f=n.state,v=f.expandedKeys,m=f.flattenNodes,g=u.expanded,h=u.key,b=u.isLeaf;if(!(b||c.shiftKey||c.metaKey||c.ctrlKey)){var C=m.filter(function(P){return P.key===h})[0],p=Pa((0,s.Z)((0,s.Z)({},Bi(h,n.getTreeNodeRequiredProps())),{},{data:C.data}));n.setExpandedKeys(g?yo(v,h):No(v,h)),n.onNodeExpand(c,p)}}),(0,D.Z)((0,Zn.Z)(n),"onNodeClick",function(c,u){var f=n.props,v=f.onClick,m=f.expandAction;m==="click"&&n.triggerExpandActionExpand(c,u),v==null||v(c,u)}),(0,D.Z)((0,Zn.Z)(n),"onNodeDoubleClick",function(c,u){var f=n.props,v=f.onDoubleClick,m=f.expandAction;m==="doubleClick"&&n.triggerExpandActionExpand(c,u),v==null||v(c,u)}),(0,D.Z)((0,Zn.Z)(n),"onNodeSelect",function(c,u){var f=n.state.selectedKeys,v=n.state,m=v.keyEntities,g=v.fieldNames,h=n.props,b=h.onSelect,C=h.multiple,p=u.selected,P=u[g.key],E=!p;E?C?f=No(f,P):f=[P]:f=yo(f,P);var O=f.map(function($){var Z=Ja(m,$);return Z?Z.node:null}).filter(function($){return $});n.setUncontrolledState({selectedKeys:f}),b==null||b(f,{event:"select",selected:E,node:u,selectedNodes:O,nativeEvent:c.nativeEvent})}),(0,D.Z)((0,Zn.Z)(n),"onNodeCheck",function(c,u,f){var v=n.state,m=v.keyEntities,g=v.checkedKeys,h=v.halfCheckedKeys,b=n.props,C=b.checkStrictly,p=b.onCheck,P=u.key,E,O={event:"check",node:u,checked:f,nativeEvent:c.nativeEvent};if(C){var $=f?No(g,P):yo(g,P),Z=yo(h,P);E={checked:$,halfChecked:Z},O.checkedNodes=$.map(function(B){return Ja(m,B)}).filter(function(B){return B}).map(function(B){return B.node}),n.setUncontrolledState({checkedKeys:$})}else{var N=bi([].concat((0,pe.Z)(g),[P]),!0,m),L=N.checkedKeys,K=N.halfCheckedKeys;if(!f){var U=new Set(L);U.delete(P);var W=bi(Array.from(U),{checked:!1,halfCheckedKeys:K},m);L=W.checkedKeys,K=W.halfCheckedKeys}E=L,O.checkedNodes=[],O.checkedNodesPositions=[],O.halfCheckedKeys=K,L.forEach(function(B){var z=Ja(m,B);if(z){var J=z.node,ae=z.pos;O.checkedNodes.push(J),O.checkedNodesPositions.push({node:J,pos:ae})}}),n.setUncontrolledState({checkedKeys:L},!1,{halfCheckedKeys:K})}p==null||p(E,O)}),(0,D.Z)((0,Zn.Z)(n),"onNodeLoad",function(c){var u=c.key,f=new Promise(function(v,m){n.setState(function(g){var h=g.loadedKeys,b=h===void 0?[]:h,C=g.loadingKeys,p=C===void 0?[]:C,P=n.props,E=P.loadData,O=P.onLoad;if(!E||b.indexOf(u)!==-1||p.indexOf(u)!==-1)return null;var $=E(c);return $.then(function(){var Z=n.state.loadedKeys,N=No(Z,u);O==null||O(N,{event:"load",node:c}),n.setUncontrolledState({loadedKeys:N}),n.setState(function(L){return{loadingKeys:yo(L.loadingKeys,u)}}),v()}).catch(function(Z){if(n.setState(function(L){return{loadingKeys:yo(L.loadingKeys,u)}}),n.loadingRetryTimes[u]=(n.loadingRetryTimes[u]||0)+1,n.loadingRetryTimes[u]>=hP){var N=n.state.loadedKeys;(0,Le.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:No(N,u)}),v()}m(Z)}),{loadingKeys:No(p,u)}})});return f.catch(function(){}),f}),(0,D.Z)((0,Zn.Z)(n),"onNodeMouseEnter",function(c,u){var f=n.props.onMouseEnter;f==null||f({event:c,node:u})}),(0,D.Z)((0,Zn.Z)(n),"onNodeMouseLeave",function(c,u){var f=n.props.onMouseLeave;f==null||f({event:c,node:u})}),(0,D.Z)((0,Zn.Z)(n),"onNodeContextMenu",function(c,u){var f=n.props.onRightClick;f&&(c.preventDefault(),f({event:c,node:u}))}),(0,D.Z)((0,Zn.Z)(n),"onFocus",function(){var c=n.props.onFocus;n.setState({focused:!0});for(var u=arguments.length,f=new Array(u),v=0;v1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!n.destroyed){var v=!1,m=!0,g={};Object.keys(c).forEach(function(h){if(h in n.props){m=!1;return}v=!0,g[h]=c[h]}),v&&(!u||m)&&n.setState((0,s.Z)((0,s.Z)({},g),f))}}),(0,D.Z)((0,Zn.Z)(n),"scrollTo",function(c){n.listRef.current.scrollTo(c)}),n}return(0,To.Z)(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,l=a.activeKey,d=a.itemScrollOffset,c=d===void 0?0:d;l!==void 0&&l!==this.state.activeKey&&(this.setState({activeKey:l}),l!==null&&this.scrollTo({key:l,offset:c}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,l=a.focused,d=a.flattenNodes,c=a.keyEntities,u=a.draggingNodeKey,f=a.activeKey,v=a.dropLevelOffset,m=a.dropContainerKey,g=a.dropTargetKey,h=a.dropPosition,b=a.dragOverNodeKey,C=a.indent,p=this.props,P=p.prefixCls,E=p.className,O=p.style,$=p.showLine,Z=p.focusable,N=p.tabIndex,L=N===void 0?0:N,K=p.selectable,U=p.showIcon,W=p.icon,B=p.switcherIcon,z=p.draggable,J=p.checkable,ae=p.checkStrictly,ne=p.disabled,oe=p.motion,Q=p.loadData,ee=p.filterTreeNode,fe=p.height,xe=p.itemHeight,He=p.virtual,ge=p.titleRender,et=p.dropIndicatorRender,Ue=p.onContextMenu,at=p.onScroll,vt=p.direction,Ve=p.rootClassName,ct=p.rootStyle,ht=(0,Qe.Z)(this.props,{aria:!0,data:!0}),De;return z&&((0,x.Z)(z)==="object"?De=z:typeof z=="function"?De={nodeDraggable:z}:De={}),o.createElement(Ls.Provider,{value:{prefixCls:P,selectable:K,showIcon:U,icon:W,switcherIcon:B,draggable:De,draggingNodeKey:u,checkable:J,checkStrictly:ae,disabled:ne,keyEntities:c,dropLevelOffset:v,dropContainerKey:m,dropTargetKey:g,dropPosition:h,dragOverNodeKey:b,indent:C,direction:vt,dropIndicatorRender:et,loadData:Q,filterTreeNode:ee,titleRender:ge,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},o.createElement("div",{role:"tree",className:_()(P,E,Ve,(0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(P,"-show-line"),$),"".concat(P,"-focused"),l),"".concat(P,"-active-focused"),f!==null)),style:ct},o.createElement(cP,(0,Y.Z)({ref:this.listRef,prefixCls:P,style:O,data:d,disabled:ne,selectable:K,checkable:!!J,motion:oe,dragging:u!==null,height:fe,itemHeight:xe,virtual:He,focusable:Z,focused:l,tabIndex:L,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ue,onScroll:at},this.getTreeNodeRequiredProps(),ht))))}}],[{key:"getDerivedStateFromProps",value:function(a,l){var d=l.prevProps,c={prevProps:a};function u(N){return!d&&N in a||d&&d[N]!==a[N]}var f,v=l.fieldNames;if(u("fieldNames")&&(v=El(a.fieldNames),c.fieldNames=v),u("treeData")?f=a.treeData:u("children")&&((0,Le.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),f=k1(a.children)),f){c.treeData=f;var m=Pf(f,{fieldNames:v});c.keyEntities=(0,s.Z)((0,D.Z)({},zo,Df),m.keyEntities)}var g=c.keyEntities||l.keyEntities;if(u("expandedKeys")||d&&u("autoExpandParent"))c.expandedKeys=a.autoExpandParent||!d&&a.defaultExpandParent?Vf(a.expandedKeys,g):a.expandedKeys;else if(!d&&a.defaultExpandAll){var h=(0,s.Z)({},g);delete h[zo],c.expandedKeys=Object.keys(h).map(function(N){return h[N].key})}else!d&&a.defaultExpandedKeys&&(c.expandedKeys=a.autoExpandParent||a.defaultExpandParent?Vf(a.defaultExpandedKeys,g):a.defaultExpandedKeys);if(c.expandedKeys||delete c.expandedKeys,f||c.expandedKeys){var b=Fs(f||l.treeData,c.expandedKeys||l.expandedKeys,v);c.flattenNodes=b}if(a.selectable&&(u("selectedKeys")?c.selectedKeys=kf(a.selectedKeys,a):!d&&a.defaultSelectedKeys&&(c.selectedKeys=kf(a.defaultSelectedKeys,a))),a.checkable){var C;if(u("checkedKeys")?C=Ks(a.checkedKeys)||{}:!d&&a.defaultCheckedKeys?C=Ks(a.defaultCheckedKeys)||{}:f&&(C=Ks(a.checkedKeys)||{checkedKeys:l.checkedKeys,halfCheckedKeys:l.halfCheckedKeys}),C){var p=C,P=p.checkedKeys,E=P===void 0?[]:P,O=p.halfCheckedKeys,$=O===void 0?[]:O;if(!a.checkStrictly){var Z=bi(E,!0,g);E=Z.checkedKeys,$=Z.halfCheckedKeys}c.checkedKeys=E,c.halfCheckedKeys=$}}return u("loadedKeys")&&(c.loadedKeys=a.loadedKeys),c}}]),r}(o.Component);(0,D.Z)(zs,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:X1,allowDrop:function(){return!0},expandAction:!1}),(0,D.Z)(zs,"TreeNode",Vs);var pP=zs,bP=pP,yP=o.createContext(null),Bf=yP;function CP(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function xP(e){var t=e||{},r=t.label,n=t.value,a=t.children,l=n||"value";return{_title:r?[r]:["title","label"],value:l,key:l,children:a||"children"}}function Ws(e){return!e||e.disabled||e.disableCheckbox||e.checkable===!1}function SP(e,t){var r=[];function n(a){a.forEach(function(l){var d=l[t.children];d&&(r.push(l[t.value]),n(d))})}return n(e),r}function Hf(e){return e==null}var PP={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},wP=function(t,r){var n=nf(),a=n.prefixCls,l=n.multiple,d=n.searchValue,c=n.toggleOpen,u=n.open,f=n.notFoundContent,v=o.useContext(Bf),m=v.virtual,g=v.listHeight,h=v.listItemHeight,b=v.listItemScrollOffset,C=v.treeData,p=v.fieldNames,P=v.onSelect,E=v.dropdownMatchSelectWidth,O=v.treeExpandAction,$=v.treeTitleRender,Z=o.useContext(If),N=Z.checkable,L=Z.checkedKeys,K=Z.halfCheckedKeys,U=Z.treeExpandedKeys,W=Z.treeDefaultExpandAll,B=Z.treeDefaultExpandedKeys,z=Z.onTreeExpand,J=Z.treeIcon,ae=Z.showTreeIcon,ne=Z.switcherIcon,oe=Z.treeLine,Q=Z.treeNodeFilterProp,ee=Z.loadData,fe=Z.treeLoadedKeys,xe=Z.treeMotion,He=Z.onTreeLoad,ge=Z.keyEntities,et=o.useRef(),Ue=(0,Jt.Z)(function(){return C},[u,C],function(Bt,ot){return ot[0]&&Bt[1]!==ot[1]}),at=o.useState(null),vt=(0,w.Z)(at,2),Ve=vt[0],ct=vt[1],ht=ge[Ve],De=o.useMemo(function(){return N?{checked:L,halfChecked:K}:null},[N,L,K]);o.useEffect(function(){if(u&&!l&&L.length){var Bt;(Bt=et.current)===null||Bt===void 0||Bt.scrollTo({key:L[0]}),ct(L[0])}},[u]);var ye=String(d).toLowerCase(),Ke=function(ot){return ye?String(ot[Q]).toLowerCase().includes(ye):!1},je=o.useState(B),Te=(0,w.Z)(je,2),Ye=Te[0],qe=Te[1],Zt=o.useState(null),It=(0,w.Z)(Zt,2),Lt=It[0],Kt=It[1],Yt=o.useMemo(function(){return U?(0,pe.Z)(U):d?Lt:Ye},[Ye,Lt,U,d]);o.useEffect(function(){d&&Kt(SP(C,p))},[d]);var en=function(ot){qe(ot),Kt(ot),z&&z(ot)},Cn=function(ot){ot.preventDefault()},Ot=function(ot,Tt){var _t=Tt.node;N&&Ws(_t)||(P(_t.key,{selected:!L.includes(_t.key)}),l||c(!1))};if(o.useImperativeHandle(r,function(){var Bt;return{scrollTo:(Bt=et.current)===null||Bt===void 0?void 0:Bt.scrollTo,onKeyDown:function(Tt){var _t,Qt=Tt.which;switch(Qt){case de.Z.UP:case de.Z.DOWN:case de.Z.LEFT:case de.Z.RIGHT:(_t=et.current)===null||_t===void 0||_t.onKeyDown(Tt);break;case de.Z.ENTER:{if(ht){var Sn=(ht==null?void 0:ht.node)||{},hn=Sn.selectable,Fn=Sn.value;hn!==!1&&Ot(null,{node:{key:Ve},selected:!L.includes(Fn)})}break}case de.Z.ESC:c(!1)}},onKeyUp:function(){}}}),Ue.length===0)return o.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:Cn},f);var pn={fieldNames:p};return fe&&(pn.loadedKeys=fe),Yt&&(pn.expandedKeys=Yt),o.createElement("div",{onMouseDown:Cn},ht&&u&&o.createElement("span",{style:PP,"aria-live":"assertive"},ht.node.value),o.createElement(bP,(0,Y.Z)({ref:et,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:Ue,height:g,itemHeight:h,itemScrollOffset:b,virtual:m!==!1&&E!==!1,multiple:l,icon:J,showIcon:ae,switcherIcon:ne,showLine:oe,loadData:d?null:ee,motion:xe,activeKey:Ve,checkable:N,checkStrictly:!0,checkedKeys:De,selectedKeys:N?[]:L,defaultExpandAll:W,titleRender:$},pn,{onActiveChange:ct,onSelect:Ot,onCheck:Ot,onExpand:en,onLoad:He,filterTreeNode:Ke,expandAction:O})))},EP=o.forwardRef(wP),IP=EP,Us="SHOW_ALL",Ys="SHOW_PARENT",Il="SHOW_CHILD";function Kf(e,t,r,n){var a=new Set(e);return t===Il?e.filter(function(l){var d=r[l];return!(d&&d.children&&d.children.some(function(c){var u=c.node;return a.has(u[n.value])})&&d.children.every(function(c){var u=c.node;return Ws(u)||a.has(u[n.value])}))}):t===Ys?e.filter(function(l){var d=r[l],c=d?d.parent:null;return!(c&&!Ws(c.node)&&a.has(c.key))}):e}function rE(e){var t=e.searchPlaceholder,r=e.treeCheckStrictly,n=e.treeCheckable,a=e.labelInValue,l=e.value,d=e.multiple;warning(!t,"`searchPlaceholder` has been removed."),r&&a===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(a||r)&&warning(toArray(l).every(function(c){return c&&_typeof(c)==="object"&&"value"in c}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),r||d||n?warning(!l||Array.isArray(l),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(l),"`value` should not be array when `TreeSelect` is single mode.")}var aE=null,OP=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender"];function ZP(e){return!e||(0,x.Z)(e)!=="object"}var RP=o.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tree-select":n,l=e.value,d=e.defaultValue,c=e.onChange,u=e.onSelect,f=e.onDeselect,v=e.searchValue,m=e.inputValue,g=e.onSearch,h=e.autoClearSearchValue,b=h===void 0?!0:h,C=e.filterTreeNode,p=e.treeNodeFilterProp,P=p===void 0?"value":p,E=e.showCheckedStrategy,O=e.treeNodeLabelProp,$=e.multiple,Z=e.treeCheckable,N=e.treeCheckStrictly,L=e.labelInValue,K=e.fieldNames,U=e.treeDataSimpleMode,W=e.treeData,B=e.children,z=e.loadData,J=e.treeLoadedKeys,ae=e.onTreeLoad,ne=e.treeDefaultExpandAll,oe=e.treeExpandedKeys,Q=e.treeDefaultExpandedKeys,ee=e.onTreeExpand,fe=e.treeExpandAction,xe=e.virtual,He=e.listHeight,ge=He===void 0?200:He,et=e.listItemHeight,Ue=et===void 0?20:et,at=e.listItemScrollOffset,vt=at===void 0?0:at,Ve=e.onDropdownVisibleChange,ct=e.dropdownMatchSelectWidth,ht=ct===void 0?!0:ct,De=e.treeLine,ye=e.treeIcon,Ke=e.showTreeIcon,je=e.switcherIcon,Te=e.treeMotion,Ye=e.treeTitleRender,qe=(0,y.Z)(e,OP),Zt=pf(r),It=Z&&!N,Lt=Z||N,Kt=N||L,Yt=Lt||$,en=(0,se.Z)(d,{value:l}),Cn=(0,w.Z)(en,2),Ot=Cn[0],pn=Cn[1],Bt=o.useMemo(function(){return Z?E||Il:Us},[E,Z]),ot=o.useMemo(function(){return xP(K)},[JSON.stringify(K)]),Tt=(0,se.Z)("",{value:v!==void 0?v:m,postState:function(Yn){return Yn||""}}),_t=(0,w.Z)(Tt,2),Qt=_t[0],Sn=_t[1],hn=function(Yn){Sn(Yn),g==null||g(Yn)},Fn=Y1(W,B,U),nn=B1(Fn,ot),rn=nn.keyEntities,In=nn.valueEntities,Gn=o.useCallback(function(mn){var Yn=[],Jn=[];return mn.forEach(function(or){In.has(or)?Jn.push(or):Yn.push(or)}),{missingRawValues:Yn,existRawValues:Jn}},[In]),En=W1(Fn,Qt,{fieldNames:ot,treeNodeFilterProp:P,filterTreeNode:C}),kr=o.useCallback(function(mn){if(mn){if(O)return mn[O];for(var Yn=ot._title,Jn=0;Jn{const{componentCls:t,treePrefixCls:r,colorBgElevated:n}=e,a=`.${r}`;return[{[`${t}-dropdown`]:[{padding:`${(0,fn.bf)(e.paddingXS)} ${(0,fn.bf)(e.calc(e.paddingXS).div(2).equal())}`},(0,zf.Yk)(r,(0,Xa.TS)(e,{colorBgContainer:n})),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},(0,ac.C2)(`${r}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},oE=null;function TP(e,t,r){return(0,to.I$)("TreeSelect",n=>{const a=(0,Xa.TS)(n,{treePrefixCls:t});return[DP(a)]},zf.TM)(e,r)}var FP=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{var r,{prefixCls:n,size:a,disabled:l,bordered:d=!0,className:c,rootClassName:u,treeCheckable:f,multiple:v,listHeight:m=256,listItemHeight:g=26,placement:h,notFoundContent:b,switcherIcon:C,treeLine:p,getPopupContainer:P,popupClassName:E,dropdownClassName:O,treeIcon:$=!1,transitionName:Z,choiceTransitionName:N="",status:L,treeExpandAction:K,builtinPlacements:U,dropdownMatchSelectWidth:W,popupMatchSelectWidth:B,allowClear:z,variant:J,dropdownStyle:ae,tagRender:ne}=e,oe=FP(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]);const{getPopupContainer:Q,getPrefixCls:ee,renderEmpty:fe,direction:xe,virtual:He,popupMatchSelectWidth:ge,popupOverflow:et}=o.useContext(Ba.E_),Ue=ee(),at=ee("select",n),vt=ee("select-tree",n),Ve=ee("tree-select",n),{compactSize:ct,compactItemClassnames:ht}=(0,go.ri)(at,xe),De=(0,eo.Z)(at),ye=(0,eo.Z)(Ve),[Ke,je,Te]=(0,_s.Z)(at,De),[Ye]=TP(Ve,vt,ye),[qe,Zt]=(0,xi.Z)(J,d),It=_()(E||O,`${Ve}-dropdown`,{[`${Ve}-dropdown-rtl`]:xe==="rtl"},u,Te,De,ye,je),Lt=!!(f||v),Kt=(0,qs.Z)(oe.suffixIcon,oe.showArrow),Yt=(r=B!=null?B:W)!==null&&r!==void 0?r:ge,{status:en,hasFeedback:Cn,isFormItemInput:Ot,feedbackIcon:pn}=o.useContext(mo.aM),Bt=(0,_a.F)(en,L),{suffixIcon:ot,removeIcon:Tt,clearIcon:_t}=(0,Zl.Z)(Object.assign(Object.assign({},oe),{multiple:Lt,showSuffixIcon:Kt,hasFeedback:Cn,feedbackIcon:pn,prefixCls:at,componentName:"TreeSelect"})),Qt=z===!0?{clearIcon:_t}:z;let Sn;b!==void 0?Sn=b:Sn=(fe==null?void 0:fe("Select"))||o.createElement(Ol.Z,{componentName:"Select"});const hn=(0,ln.Z)(oe,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Fn=o.useMemo(()=>h!==void 0?h:xe==="rtl"?"bottomRight":"bottomLeft",[h,xe]),nn=(0,Po.Z)(Mr=>{var ta;return(ta=a!=null?a:ct)!==null&&ta!==void 0?ta:Mr}),rn=o.useContext($o.Z),In=l!=null?l:rn,Gn=_()(!n&&Ve,{[`${at}-lg`]:nn==="large",[`${at}-sm`]:nn==="small",[`${at}-rtl`]:xe==="rtl",[`${at}-${qe}`]:Zt,[`${at}-in-form-item`]:Ot},(0,_a.Z)(at,Bt,Cn),ht,c,u,Te,De,ye,je),En=Mr=>o.createElement($P.Z,{prefixCls:vt,switcherIcon:C,treeNodeProps:Mr,showLine:p}),[kr]=(0,Jo.Cn)("SelectLike",ae==null?void 0:ae.zIndex),Fr=o.createElement(NP,Object.assign({virtual:He,disabled:In},hn,{dropdownMatchSelectWidth:Yt,builtinPlacements:(0,Js.Z)(U,et),ref:t,prefixCls:at,className:Gn,listHeight:m,listItemHeight:g,treeCheckable:f&&o.createElement("span",{className:`${at}-tree-checkbox-inner`}),treeLine:!!p,suffixIcon:ot,multiple:Lt,placement:Fn,removeIcon:Tt,allowClear:Qt,switcherIcon:En,showTreeIcon:$,notFoundContent:Sn,getPopupContainer:P||Q,treeMotion:null,dropdownClassName:It,dropdownStyle:Object.assign(Object.assign({},ae),{zIndex:kr}),choiceTransitionName:(0,vo.m)(Ue,"",N),transitionName:(0,vo.m)(Ue,"slide-up",Z),treeExpandAction:K,tagRender:Lt?ne:void 0}));return Ke(Ye(Fr))},Wo=o.forwardRef(AP),jP=(0,_o.Z)(Wo);Wo.TreeNode=As,Wo.SHOW_ALL=Us,Wo.SHOW_PARENT=Ys,Wo.SHOW_CHILD=Il,Wo._InternalPanelDoNotUseOrYouWillBeFired=jP;var LP=Wo,kP=["radioType","renderFormItem","mode","light","label","render"],VP=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],BP=function(t,r){var n=t.radioType,a=t.renderFormItem,l=t.mode,d=t.light,c=t.label,u=t.render,f=(0,y.Z)(t,kP),v=(0,o.useContext)(ft.ZP.ConfigContext),m=v.getPrefixCls,g=m("pro-field-tree-select"),h=(0,o.useRef)(null),b=(0,o.useState)(!1),C=(0,w.Z)(b,2),p=C[0],P=C[1],E=f.fieldProps,O=E.onSearch,$=E.onClear,Z=E.onChange,N=E.onBlur,L=E.showSearch,K=E.autoClearSearchValue,U=E.treeData,W=E.fetchDataOnSearch,B=E.searchValue,z=(0,y.Z)(E,VP),J=(0,I.YB)(),ae=(0,ei.aK)((0,s.Z)((0,s.Z)({},f),{},{defaultKeyWords:B})),ne=(0,w.Z)(ae,3),oe=ne[0],Q=ne[1],ee=ne[2],fe=(0,se.Z)(void 0,{onChange:O,value:B}),xe=(0,w.Z)(fe,2),He=xe[0],ge=xe[1];(0,o.useImperativeHandle)(r,function(){return(0,s.Z)((0,s.Z)({},h.current||{}),{},{fetchData:function(qe){return ee(qe)}})});var et=(0,o.useMemo)(function(){if(l==="read"){var Ye=(z==null?void 0:z.fieldNames)||{},qe=Ye.value,Zt=qe===void 0?"value":qe,It=Ye.label,Lt=It===void 0?"label":It,Kt=Ye.children,Yt=Kt===void 0?"children":Kt,en=new Map,Cn=function Ot(pn){if(!(pn!=null&&pn.length))return en;for(var Bt=pn.length,ot=0;ot0&&Xt!=="read"?(0,Et.jsx)("div",{className:"".concat(Ze,"-action ").concat(lt).trim(),children:Un}):null,mr={name:Me.name,field:Gt,index:cn,record:j==null||(nt=j.getFieldValue)===null||nt===void 0?void 0:nt.call(j,[yt.listName,ie,Gt.name].filter(function(gn){return gn!==void 0}).flat(1)),fields:At,operation:$e,meta:wt},_n=(0,it.zx)(),Tn=_n.grid,Mn=(Je==null?void 0:Je(ar,mr))||ar,qn=(_e==null?void 0:_e({listDom:(0,Et.jsx)("div",{className:"".concat(Ze,"-container ").concat(ce||""," ").concat(lt||"").trim(),style:(0,y.Z)({width:Tn?"100%":void 0},T),children:Mn}),action:lr},mr))||(0,Et.jsxs)("div",{className:"".concat(Ze,"-item ").concat(lt,` - `).concat(rt===void 0&&"".concat(Ze,"-item-default"),` - `).concat(rt?"".concat(Ze,"-item-show-label"):""),style:{display:"flex",alignItems:"flex-end"},children:[(0,Et.jsx)("div",{className:"".concat(Ze,"-container ").concat(ce||""," ").concat(lt).trim(),style:(0,y.Z)({width:Tn?"100%":void 0},T),children:Mn}),lr]});return(0,Et.jsx)(We.Provider,{value:(0,y.Z)((0,y.Z)({},Gt),{},{listName:[yt.listName,ie,Gt.name].filter(function(gn){return gn!==void 0}).flat(1)}),children:qn})},Qe=function(X){var nt=(0,H.YB)(),ue=X.creatorButtonProps,Ne=X.prefixCls,Oe=X.children,Je=X.creatorRecord,_e=X.action,rt=X.fields,Ze=X.actionGuard,xt=X.max,$e=X.fieldExtraRender,mt=X.meta,jt=X.containerClassName,kt=X.containerStyle,At=X.onAfterAdd,wt=X.onAfterRemove,Gt=(0,S.useContext)(H.L_),cn=Gt.hashId,j=(0,S.useRef)(new Map),ie=(0,S.useState)(!1),ce=(0,he.Z)(ie,2),T=ce[0],G=ce[1],ve=(0,S.useMemo)(function(){return rt.map(function(dt){var Nt,Xt;if(!((Nt=j.current)!==null&&Nt!==void 0&&Nt.has(dt.key.toString()))){var zt;(zt=j.current)===null||zt===void 0||zt.set(dt.key.toString(),(0,Ge.x)())}var Ut=(Xt=j.current)===null||Xt===void 0?void 0:Xt.get(dt.key.toString());return(0,y.Z)((0,y.Z)({},dt),{},{uuid:Ut})})},[rt]),Re=(0,S.useMemo)(function(){var dt=(0,y.Z)({},_e),Nt=ve.length;return Ze!=null&&Ze.beforeAddRow?dt.add=(0,pe.Z)((0,ft.Z)().mark(function Xt(){var zt,Ut,dn,wn,Vt,Jt=arguments;return(0,ft.Z)().wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:for(zt=Jt.length,Ut=new Array(zt),dn=0;dn0&&arguments[0]!==void 0?arguments[0]:{},ke=tt.children,Ce=tt.Wrapper,it=(0,x.Z)(tt,A);return H?(0,R.jsx)(I.Z,(0,y.Z)((0,y.Z)((0,y.Z)({gutter:8},te),it),{},{children:ke})):Ce?(0,R.jsx)(Ce,{children:ke}):ke},ColWrapper:function(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ke=tt.children,Ce=tt.Wrapper,it=(0,x.Z)(tt,V),ft=(0,M.useMemo)(function(){var pe=(0,y.Z)((0,y.Z)({},we),it);return typeof pe.span=="undefined"&&typeof pe.xs=="undefined"&&(pe.xs=24),pe},[it]);return H?(0,R.jsx)(S.Z,(0,y.Z)((0,y.Z)({},ft),{},{children:ke})):Ce?(0,R.jsx)(Ce,{children:ke}):ke}}},o=function(Y){var H=(0,M.useMemo)(function(){return(0,s.Z)(Y)==="object"?Y:{grid:Y}},[Y]),te=(0,M.useContext)(q),we=te.grid,Xe=te.colProps;return(0,M.useMemo)(function(){return me({grid:!!(we||H.grid),rowProps:H==null?void 0:H.rowProps,colProps:(H==null?void 0:H.colProps)||Xe,Wrapper:H==null?void 0:H.Wrapper})},[H==null?void 0:H.Wrapper,H.grid,we,JSON.stringify([Xe,H==null?void 0:H.colProps,H==null?void 0:H.rowProps])])}},34994:function(F,k,i){"use strict";i.d(k,{A:function(){return Le}});var s=i(1413),y=i(8232),x=i(67294),I=i(78733),S=i(9105),M=i(4942),R=i(97685),A=i(87462),V=i(50756),q=i(46976),me=function(Rt,de){return x.createElement(q.Z,(0,A.Z)({},Rt,{ref:de,icon:V.Z}))},o=x.forwardRef(me),w=o,Y=i(21770),H=i(48874),te=i(28459),we=i(42075),Xe=i(93967),tt=i.n(Xe),ke=i(66758),Ce=i(2514),it=i(98082),ft=function(Rt){return(0,M.Z)({},Rt.componentCls,{"&-title":{marginBlockEnd:Rt.marginXL,fontWeight:"bold"},"&-container":(0,M.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(Rt.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(0,M.Z)((0,M.Z)((0,M.Z)((0,M.Z)({display:"block",width:"100%"},"".concat(Rt.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(Rt.componentCls,"-container"),{paddingInlineStart:16}),"".concat(Rt.antCls,"-space-item,").concat(Rt.antCls,"-form-item"),{width:"100%"}),"".concat(Rt.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function pe(Ge){return(0,it.Xj)("ProFormGroup",function(Rt){var de=(0,s.Z)((0,s.Z)({},Rt),{},{componentCls:".".concat(Ge)});return[ft(de)]})}var he=i(85893),_=x.forwardRef(function(Ge,Rt){var de=x.useContext(ke.Z),St=de.groupProps,Ct=(0,s.Z)((0,s.Z)({},St),Ge),Wt=Ct.children,Ft=Ct.collapsible,an=Ct.defaultCollapsed,bt=Ct.style,Et=Ct.labelLayout,Pt=Ct.title,Se=Pt===void 0?Ge.label:Pt,ze=Ct.tooltip,Qe=Ct.align,Ae=Qe===void 0?"start":Qe,Pe=Ct.direction,be=Ct.size,Ee=be===void 0?32:be,ut=Ct.titleStyle,We=Ct.titleRender,pt=Ct.spaceProps,Ie=Ct.extra,X=Ct.autoFocus,nt=(0,Y.Z)(function(){return an||!1},{value:Ge.collapsed,onChange:Ge.onCollapse}),ue=(0,R.Z)(nt,2),Ne=ue[0],Oe=ue[1],Je=(0,x.useContext)(te.ZP.ConfigContext),_e=Je.getPrefixCls,rt=(0,Ce.zx)(Ge),Ze=rt.ColWrapper,xt=rt.RowWrapper,$e=_e("pro-form-group"),mt=pe($e),jt=mt.wrapSSR,kt=mt.hashId,At=Ft&&(0,he.jsx)(w,{style:{marginInlineEnd:8},rotate:Ne?void 0:90}),wt=(0,he.jsx)(H.G,{label:At?(0,he.jsxs)("div",{children:[At,Se]}):Se,tooltip:ze}),Gt=(0,x.useCallback)(function(G){var ve=G.children;return(0,he.jsx)(we.Z,(0,s.Z)((0,s.Z)({},pt),{},{className:tt()("".concat($e,"-container ").concat(kt),pt==null?void 0:pt.className),size:Ee,align:Ae,direction:Pe,style:(0,s.Z)({rowGap:0},pt==null?void 0:pt.style),children:ve}))},[Ae,$e,Pe,kt,Ee,pt]),cn=We?We(wt,Ge):wt,j=(0,x.useMemo)(function(){var G=[],ve=x.Children.toArray(Wt).map(function(Re,Me){var $t;return x.isValidElement(Re)&&Re!==null&&Re!==void 0&&($t=Re.props)!==null&&$t!==void 0&&$t.hidden?(G.push(Re),null):Me===0&&x.isValidElement(Re)&&X?x.cloneElement(Re,(0,s.Z)((0,s.Z)({},Re.props),{},{autoFocus:X})):Re});return[(0,he.jsx)(xt,{Wrapper:Gt,children:ve},"children"),G.length>0?(0,he.jsx)("div",{style:{display:"none"},children:G}):null]},[Wt,xt,Gt,X]),ie=(0,R.Z)(j,2),ce=ie[0],T=ie[1];return jt((0,he.jsx)(Ze,{children:(0,he.jsxs)("div",{className:tt()($e,kt,(0,M.Z)({},"".concat($e,"-twoLine"),Et==="twoLine")),style:bt,ref:Rt,children:[T,(Se||ze||Ie)&&(0,he.jsx)("div",{className:"".concat($e,"-title ").concat(kt).trim(),style:ut,onClick:function(){Oe(!Ne)},children:Ie?(0,he.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[cn,(0,he.jsx)("span",{onClick:function(ve){return ve.stopPropagation()},children:Ie})]}):cn}),(0,he.jsx)("div",{style:{display:Ft&&Ne?"none":void 0},children:ce})]})}))});_.displayName="ProForm-Group";var D=_,se=i(62370);function Le(Ge){return(0,he.jsx)(I.I,(0,s.Z)({layout:"vertical",contentRender:function(de,St){return(0,he.jsxs)(he.Fragment,{children:[de,St]})}},Ge))}Le.Group=D,Le.useForm=y.Z.useForm,Le.Item=se.Z,Le.useWatch=y.Z.useWatch,Le.ErrorList=y.Z.ErrorList,Le.Provider=y.Z.Provider,Le.useFormInstance=y.Z.useFormInstance,Le.EditOrReadOnlyContext=S.A},46976:function(F,k,i){"use strict";i.d(k,{Z:function(){return cn}});var s=i(87462),y=i(97685),x=i(4942),I=i(91),S=i(67294),M=i(93967),R=i.n(M),A=i(86500),V=i(1350),q=2,me=.16,o=.05,w=.05,Y=.15,H=5,te=4,we=[{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 Xe(j){var ie=j.r,ce=j.g,T=j.b,G=(0,A.py)(ie,ce,T);return{h:G.h*360,s:G.s,v:G.v}}function tt(j){var ie=j.r,ce=j.g,T=j.b;return"#".concat((0,A.vq)(ie,ce,T,!1))}function ke(j,ie,ce){var T=ce/100,G={r:(ie.r-j.r)*T+j.r,g:(ie.g-j.g)*T+j.g,b:(ie.b-j.b)*T+j.b};return G}function Ce(j,ie,ce){var T;return Math.round(j.h)>=60&&Math.round(j.h)<=240?T=ce?Math.round(j.h)-q*ie:Math.round(j.h)+q*ie:T=ce?Math.round(j.h)+q*ie:Math.round(j.h)-q*ie,T<0?T+=360:T>=360&&(T-=360),T}function it(j,ie,ce){if(j.h===0&&j.s===0)return j.s;var T;return ce?T=j.s-me*ie:ie===te?T=j.s+me:T=j.s+o*ie,T>1&&(T=1),ce&&ie===H&&T>.1&&(T=.1),T<.06&&(T=.06),Number(T.toFixed(2))}function ft(j,ie,ce){var T;return ce?T=j.v+w*ie:T=j.v-Y*ie,T>1&&(T=1),Number(T.toFixed(2))}function pe(j){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=[],T=(0,V.uA)(j),G=H;G>0;G-=1){var ve=Xe(T),Re=tt((0,V.uA)({h:Ce(ve,G,!0),s:it(ve,G,!0),v:ft(ve,G,!0)}));ce.push(Re)}ce.push(tt(T));for(var Me=1;Me<=te;Me+=1){var $t=Xe(T),lt=tt((0,V.uA)({h:Ce($t,Me),s:it($t,Me),v:ft($t,Me)}));ce.push(lt)}return ie.theme==="dark"?we.map(function(yt){var dt=yt.index,Nt=yt.opacity,Xt=tt(ke((0,V.uA)(ie.backgroundColor||"#141414"),(0,V.uA)(ce[dt]),Nt*100));return Xt}):ce}var he={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"},_={},D={};Object.keys(he).forEach(function(j){_[j]=pe(he[j]),_[j].primary=_[j][5],D[j]=pe(he[j],{theme:"dark",backgroundColor:"#141414"}),D[j].primary=D[j][5]});var se=_.red,Le=_.volcano,Ge=_.gold,Rt=_.orange,de=_.yellow,St=_.lime,Ct=_.green,Wt=_.cyan,Ft=_.blue,an=_.geekblue,bt=_.purple,Et=_.magenta,Pt=_.grey,Se=_.grey,ze=(0,S.createContext)({}),Qe=ze,Ae=i(1413),Pe=i(71002),be=i(44958),Ee=i(27571),ut=i(80334);function We(j){return j.replace(/-(.)/g,function(ie,ce){return ce.toUpperCase()})}function pt(j,ie){(0,ut.ZP)(j,"[@ant-design/icons] ".concat(ie))}function Ie(j){return(0,Pe.Z)(j)==="object"&&typeof j.name=="string"&&typeof j.theme=="string"&&((0,Pe.Z)(j.icon)==="object"||typeof j.icon=="function")}function X(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(j).reduce(function(ie,ce){var T=j[ce];switch(ce){case"class":ie.className=T,delete ie.class;break;default:delete ie[ce],ie[We(ce)]=T}return ie},{})}function nt(j,ie,ce){return ce?S.createElement(j.tag,(0,Ae.Z)((0,Ae.Z)({key:ie},X(j.attrs)),ce),(j.children||[]).map(function(T,G){return nt(T,"".concat(ie,"-").concat(j.tag,"-").concat(G))})):S.createElement(j.tag,(0,Ae.Z)({key:ie},X(j.attrs)),(j.children||[]).map(function(T,G){return nt(T,"".concat(ie,"-").concat(j.tag,"-").concat(G))}))}function ue(j){return pe(j)[0]}function Ne(j){return j?Array.isArray(j)?j:[j]:[]}var Oe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Je=` -.anticon { - display: inline-flex; - alignItems: center; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,_e=function(ie){var ce=(0,S.useContext)(Qe),T=ce.csp,G=ce.prefixCls,ve=Je;G&&(ve=ve.replace(/anticon/g,G)),(0,S.useEffect)(function(){var Re=ie.current,Me=(0,Ee.A)(Re);(0,be.hq)(ve,"@ant-design-icons",{prepend:!0,csp:T,attachTo:Me})},[])},rt=["icon","className","onClick","style","primaryColor","secondaryColor"],Ze={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function xt(j){var ie=j.primaryColor,ce=j.secondaryColor;Ze.primaryColor=ie,Ze.secondaryColor=ce||ue(ie),Ze.calculated=!!ce}function $e(){return(0,Ae.Z)({},Ze)}var mt=function(ie){var ce=ie.icon,T=ie.className,G=ie.onClick,ve=ie.style,Re=ie.primaryColor,Me=ie.secondaryColor,$t=(0,I.Z)(ie,rt),lt=S.useRef(),yt=Ze;if(Re&&(yt={primaryColor:Re,secondaryColor:Me||ue(Re)}),_e(lt),pt(Ie(ce),"icon should be icon definiton, but got ".concat(ce)),!Ie(ce))return null;var dt=ce;return dt&&typeof dt.icon=="function"&&(dt=(0,Ae.Z)((0,Ae.Z)({},dt),{},{icon:dt.icon(yt.primaryColor,yt.secondaryColor)})),nt(dt.icon,"svg-".concat(dt.name),(0,Ae.Z)((0,Ae.Z)({className:T,onClick:G,style:ve,"data-icon":dt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},$t),{},{ref:lt}))};mt.displayName="IconReact",mt.getTwoToneColors=$e,mt.setTwoToneColors=xt;var jt=mt;function kt(j){var ie=Ne(j),ce=(0,y.Z)(ie,2),T=ce[0],G=ce[1];return jt.setTwoToneColors({primaryColor:T,secondaryColor:G})}function At(){var j=jt.getTwoToneColors();return j.calculated?[j.primaryColor,j.secondaryColor]:j.primaryColor}var wt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];kt(Ft.primary);var Gt=S.forwardRef(function(j,ie){var ce=j.className,T=j.icon,G=j.spin,ve=j.rotate,Re=j.tabIndex,Me=j.onClick,$t=j.twoToneColor,lt=(0,I.Z)(j,wt),yt=S.useContext(Qe),dt=yt.prefixCls,Nt=dt===void 0?"anticon":dt,Xt=yt.rootClassName,zt=R()(Xt,Nt,(0,x.Z)((0,x.Z)({},"".concat(Nt,"-").concat(T.name),!!T.name),"".concat(Nt,"-spin"),!!G||T.name==="loading"),ce),Ut=Re;Ut===void 0&&Me&&(Ut=-1);var dn=ve?{msTransform:"rotate(".concat(ve,"deg)"),transform:"rotate(".concat(ve,"deg)")}:void 0,wn=Ne($t),Vt=(0,y.Z)(wn,2),Jt=Vt[0],ln=Vt[1];return S.createElement("span",(0,s.Z)({role:"img","aria-label":T.name},lt,{ref:ie,tabIndex:Ut,onClick:Me,className:zt}),S.createElement(jt,{icon:T,primaryColor:Jt,secondaryColor:ln,style:dn}))});Gt.displayName="AntdIcon",Gt.getTwoToneColor=At,Gt.setTwoToneColor=kt;var cn=Gt},31413:function(F,k,i){"use strict";i.d(k,{J:function(){return x}});var s=i(67159),y=i(1977),x=function(S){return S===void 0?{}:(0,y.n)(s.Z,"5.13.0")<=0?{bordered:S}:{variant:S?void 0:"borderless"}}},98912:function(F,k,i){"use strict";i.d(k,{Q:function(){return ft}});var s=i(4942),y=i(87462),x=i(67294),I=i(1085),S=i(62914),M=function(he,_){return x.createElement(S.Z,(0,y.Z)({},he,{ref:_,icon:I.Z}))},R=x.forwardRef(M),A=R,V=i(66023),q=function(he,_){return x.createElement(S.Z,(0,y.Z)({},he,{ref:_,icon:V.Z}))},me=x.forwardRef(q),o=me,w=i(10915),Y=i(28459),H=i(93967),te=i.n(H),we=i(1413),Xe=i(98082),tt=function(he){return(0,s.Z)({},he.componentCls,(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({display:"inline-flex",gap:he.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:he.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:he.colorBgTextHover},"&-active":(0,s.Z)({paddingBlock:0,paddingInline:8,backgroundColor:he.colorBgTextHover},"&".concat(he.componentCls,"-allow-clear:hover:not(").concat(he.componentCls,"-disabled)"),(0,s.Z)((0,s.Z)({},"".concat(he.componentCls,"-arrow"),{display:"none"}),"".concat(he.componentCls,"-close"),{display:"inline-flex"}))},"".concat(he.antCls,"-select"),(0,s.Z)({},"".concat(he.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(he.antCls,"-picker"),(0,s.Z)({},"".concat(he.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",(0,s.Z)((0,s.Z)({color:he.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(he.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:he.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:he.colorIconHover})),"&-disabled",(0,s.Z)({color:he.colorTextPlaceholder,cursor:"not-allowed"},"".concat(he.componentCls,"-icon"),{color:he.colorTextPlaceholder})),"&-small",(0,s.Z)((0,s.Z)((0,s.Z)({height:"24px",paddingBlock:0,paddingInline:4,fontSize:he.fontSizeSM,lineHeight:"24px"},"&".concat(he.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(he.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(he.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(he.lineWidth,"px solid ").concat(he.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:he.colorBgContainer}))};function ke(pe){return(0,Xe.Xj)("FieldLabel",function(he){var _=(0,we.Z)((0,we.Z)({},he),{},{componentCls:".".concat(pe)});return[tt(_)]})}var Ce=i(85893),it=function(he,_){var D,se,Le,Ge=he.label,Rt=he.onClear,de=he.value,St=he.disabled,Ct=he.onLabelClick,Wt=he.ellipsis,Ft=he.placeholder,an=he.className,bt=he.formatter,Et=he.bordered,Pt=he.style,Se=he.downIcon,ze=he.allowClear,Qe=ze===void 0?!0:ze,Ae=he.valueMaxLength,Pe=Ae===void 0?41:Ae,be=(Y.ZP===null||Y.ZP===void 0||(D=Y.ZP.useConfig)===null||D===void 0?void 0:D.call(Y.ZP))||{componentSize:"middle"},Ee=be.componentSize,ut=Ee,We=(0,x.useContext)(Y.ZP.ConfigContext),pt=We.getPrefixCls,Ie=pt("pro-core-field-label"),X=ke(Ie),nt=X.wrapSSR,ue=X.hashId,Ne=(0,w.YB)(),Oe=(0,x.useRef)(null),Je=(0,x.useRef)(null);(0,x.useImperativeHandle)(_,function(){return{labelRef:Je,clearRef:Oe}});var _e=function($e){return $e.every(function(mt){return typeof mt=="string"})?$e.join(","):$e.map(function(mt,jt){var kt=jt===$e.length-1?"":",";return typeof mt=="string"?(0,Ce.jsxs)("span",{children:[mt,kt]},jt):(0,Ce.jsxs)("span",{style:{display:"flex"},children:[mt,kt]},jt)})},rt=function($e){return bt?bt($e):Array.isArray($e)?_e($e):$e},Ze=function($e,mt){if(mt!=null&&mt!==""&&(!Array.isArray(mt)||mt.length)){var jt,kt,At=$e?(0,Ce.jsxs)("span",{onClick:function(){Ct==null||Ct()},className:"".concat(Ie,"-text"),children:[$e,": "]}):"",wt=rt(mt);if(!Wt)return(0,Ce.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[At,rt(mt)]});var Gt=function(){var ie=Array.isArray(mt)&&mt.length>1,ce=Ne.getMessage("form.lightFilter.itemUnit","\u9879");return typeof wt=="string"&&wt.length>Pe&&ie?"...".concat(mt.length).concat(ce):""},cn=Gt();return(0,Ce.jsxs)("span",{title:typeof wt=="string"?wt:void 0,style:{display:"inline-flex",alignItems:"center"},children:[At,(0,Ce.jsx)("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof wt=="string"?wt==null||(jt=wt.toString())===null||jt===void 0||(kt=jt.substr)===null||kt===void 0?void 0:kt.call(jt,0,Pe):wt}),cn]})}return $e||Ft};return nt((0,Ce.jsxs)("span",{className:te()(Ie,ue,"".concat(Ie,"-").concat((se=(Le=he.size)!==null&&Le!==void 0?Le:ut)!==null&&se!==void 0?se:"middle"),(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},"".concat(Ie,"-active"),!!de||de===0),"".concat(Ie,"-disabled"),St),"".concat(Ie,"-bordered"),Et),"".concat(Ie,"-allow-clear"),Qe),an),style:Pt,ref:Je,onClick:function(){var $e;he==null||($e=he.onClick)===null||$e===void 0||$e.call(he)},children:[Ze(Ge,de),(de||de===0)&&Qe&&(0,Ce.jsx)(A,{role:"button",title:Ne.getMessage("form.lightFilter.clear","\u6E05\u9664"),className:te()("".concat(Ie,"-icon"),ue,"".concat(Ie,"-close")),onClick:function($e){St||Rt==null||Rt(),$e.stopPropagation()},ref:Oe}),Se!==!1?Se!=null?Se:(0,Ce.jsx)(o,{className:te()("".concat(Ie,"-icon"),ue,"".concat(Ie,"-arrow"))}):null]}))},ft=x.forwardRef(it)},1336:function(F,k,i){"use strict";i.d(k,{M:function(){return Xe}});var s=i(1413),y=i(4942),x=i(28459),I=i(55241),S=i(67294),M=i(10915),R=i(14726),A=i(93967),V=i.n(A),q=i(98082),me=function(ke){return(0,y.Z)({},ke.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(ke.colorSplit)})};function o(tt){return(0,q.Xj)("DropdownFooter",function(ke){var Ce=(0,s.Z)((0,s.Z)({},ke),{},{componentCls:".".concat(tt)});return[me(Ce)]})}var w=i(85893),Y=function(ke){var Ce=(0,M.YB)(),it=ke.onClear,ft=ke.onConfirm,pe=ke.disabled,he=ke.footerRender,_=(0,S.useContext)(x.ZP.ConfigContext),D=_.getPrefixCls,se=D("pro-core-dropdown-footer"),Le=o(se),Ge=Le.wrapSSR,Rt=Le.hashId,de=[(0,w.jsx)(R.ZP,{style:{visibility:it?"visible":"hidden"},type:"link",size:"small",disabled:pe,onClick:function(Wt){it&&it(Wt),Wt.stopPropagation()},children:Ce.getMessage("form.lightFilter.clear","\u6E05\u9664")},"clear"),(0,w.jsx)(R.ZP,{"data-type":"confirm",type:"primary",size:"small",onClick:ft,disabled:pe,children:Ce.getMessage("form.lightFilter.confirm","\u786E\u8BA4")},"confirm")];if(he===!1||(he==null?void 0:he(ft,it))===!1)return null;var St=(he==null?void 0:he(ft,it))||de;return Ge((0,w.jsx)("div",{className:V()(se,Rt),onClick:function(Wt){return Wt.target.getAttribute("data-type")!=="confirm"&&Wt.stopPropagation()},children:St}))},H=i(73177),te=function(ke){return(0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(ke.componentCls,"-label"),{cursor:"pointer"}),"".concat(ke.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(ke.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function we(tt){return(0,q.Xj)("FilterDropdown",function(ke){var Ce=(0,s.Z)((0,s.Z)({},ke),{},{componentCls:".".concat(tt)});return[te(Ce)]})}var Xe=function(ke){var Ce=ke.children,it=ke.label,ft=ke.footer,pe=ke.open,he=ke.onOpenChange,_=ke.disabled,D=ke.onVisibleChange,se=ke.visible,Le=ke.footerRender,Ge=ke.placement,Rt=(0,S.useContext)(x.ZP.ConfigContext),de=Rt.getPrefixCls,St=de("pro-core-field-dropdown"),Ct=we(St),Wt=Ct.wrapSSR,Ft=Ct.hashId,an=(0,H.X)(pe||se||!1,he||D),bt=(0,S.useRef)(null);return Wt((0,w.jsx)(I.Z,(0,s.Z)((0,s.Z)({placement:Ge,trigger:["click"]},an),{},{overlayInnerStyle:{padding:0},content:(0,w.jsxs)("div",{ref:bt,className:V()("".concat(St,"-overlay"),(0,y.Z)((0,y.Z)({},"".concat(St,"-overlay-").concat(Ge),Ge),"hashId",Ft)),children:[(0,w.jsx)(x.ZP,{getPopupContainer:function(){return bt.current||document.body},children:(0,w.jsx)("div",{className:"".concat(St,"-content ").concat(Ft).trim(),children:Ce})}),ft&&(0,w.jsx)(Y,(0,s.Z)({disabled:_,footerRender:Le},ft))]}),children:(0,w.jsx)("span",{className:"".concat(St,"-label ").concat(Ft).trim(),children:it})})))}},48874:function(F,k,i){"use strict";i.d(k,{G:function(){return tt}});var s=i(1413),y=i(4942),x=i(87462),I=i(67294),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},M=S,R=i(62914),A=function(Ce,it){return I.createElement(R.Z,(0,x.Z)({},Ce,{ref:it,icon:M}))},V=I.forwardRef(A),q=V,me=i(28459),o=i(83062),w=i(93967),Y=i.n(w),H=i(98082),te=function(Ce){return(0,y.Z)({},Ce.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:Ce.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:Ce.colorTextSecondary,fontWeight:"normal",fontSize:Ce.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function we(ke){return(0,H.Xj)("LabelIconTip",function(Ce){var it=(0,s.Z)((0,s.Z)({},Ce),{},{componentCls:".".concat(ke)});return[te(it)]})}var Xe=i(85893),tt=I.memo(function(ke){var Ce=ke.label,it=ke.tooltip,ft=ke.ellipsis,pe=ke.subTitle,he=(0,I.useContext)(me.ZP.ConfigContext),_=he.getPrefixCls,D=_("pro-core-label-tip"),se=we(D),Le=se.wrapSSR,Ge=se.hashId;if(!it&&!pe)return(0,Xe.jsx)(Xe.Fragment,{children:Ce});var Rt=typeof it=="string"||I.isValidElement(it)?{title:it}:it,de=(Rt==null?void 0:Rt.icon)||(0,Xe.jsx)(q,{});return Le((0,Xe.jsxs)("div",{className:Y()(D,Ge),onMouseDown:function(Ct){return Ct.stopPropagation()},onMouseLeave:function(Ct){return Ct.stopPropagation()},onMouseMove:function(Ct){return Ct.stopPropagation()},children:[(0,Xe.jsx)("div",{className:Y()("".concat(D,"-title"),Ge,(0,y.Z)({},"".concat(D,"-title-ellipsis"),ft)),children:Ce}),pe&&(0,Xe.jsx)("div",{className:"".concat(D,"-subtitle ").concat(Ge).trim(),children:pe}),it&&(0,Xe.jsx)(o.Z,(0,s.Z)((0,s.Z)({},Rt),{},{children:(0,Xe.jsx)("span",{className:"".concat(D,"-icon ").concat(Ge).trim(),children:de})}))]}))})},41036:function(F,k,i){"use strict";i.d(k,{J:function(){return y}});var s=i(67294),y=s.createContext({})},23312:function(F,k,i){"use strict";i.d(k,{Cl:function(){return A},lp:function(){return w}});var s=i(71002),y=i(27484),x=i.n(y),I=i(96671),S=i.n(I),M=i(88306),R=i(74763);x().extend(S());var A={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function V(Y){return Object.prototype.toString.call(Y)==="[object Object]"}function q(Y){if(V(Y)===!1)return!1;var H=Y.constructor;if(H===void 0)return!0;var te=H.prototype;return!(V(te)===!1||te.hasOwnProperty("isPrototypeOf")===!1)}var me=function(H){return!!(H!=null&&H._isAMomentObject)},o=function(H,te,we){if(!te)return H;if(x().isDayjs(H)||me(H)){if(te==="number")return H.valueOf();if(te==="string")return H.format(A[we]||"YYYY-MM-DD HH:mm:ss");if(typeof te=="string"&&te!=="string")return H.format(te);if(typeof te=="function")return te(H,we)}return H},w=function Y(H,te,we,Xe,tt){var ke={};return typeof window=="undefined"||(0,s.Z)(H)!=="object"||(0,R.k)(H)||H instanceof Blob||Array.isArray(H)?H:(Object.keys(H).forEach(function(Ce){var it=tt?[tt,Ce].flat(1):[Ce],ft=(0,M.Z)(we,it)||"text",pe="text",he;typeof ft=="string"?pe=ft:ft&&(pe=ft.valueType,he=ft.dateFormat);var _=H[Ce];if(!((0,R.k)(_)&&Xe)){if(q(_)&&!Array.isArray(_)&&!x().isDayjs(_)&&!me(_)){ke[Ce]=Y(_,te,we,Xe,[Ce]);return}if(Array.isArray(_)){ke[Ce]=_.map(function(D,se){return x().isDayjs(D)||me(D)?o(D,he||te,pe):Y(D,te,we,Xe,[Ce,"".concat(se)].flat(1))});return}ke[Ce]=o(_,he||te,pe)}}),ke)}},27068:function(F,k,i){"use strict";i.d(k,{Au:function(){return V},KW:function(){return A},Uf:function(){return R}});var s=i(74165),y=i(15861),x=i(67294),I=i(60249),S=i(10178),M=function(me,o,w){return(0,I.A)(me,o,w)};function R(q,me){var o=(0,x.useRef)();return M(q,o.current,me)||(o.current=q),o.current}function A(q,me,o){(0,x.useEffect)(q,R(me||[],o))}function V(q,me,o,w){var Y=(0,S.D)((0,y.Z)((0,s.Z)().mark(function H(){return(0,s.Z)().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:q();case 1:case"end":return we.stop()}},H)})),w||16);(0,x.useEffect)(function(){Y.run()},R(me||[],o))}},74138:function(F,k,i){"use strict";var s=i(67294),y=i(27068);function x(I,S){return s.useMemo(I,(0,y.Uf)(S))}k.Z=x},51280:function(F,k,i){"use strict";i.d(k,{d:function(){return y}});var s=i(67294),y=function(I){var S=(0,s.useRef)(I);return S.current=I,S}},26369:function(F,k,i){"use strict";i.d(k,{D:function(){return y}});var s=i(67294),y=function(I){var S=(0,s.useRef)();return(0,s.useEffect)(function(){S.current=I}),S.current}},60249:function(F,k,i){"use strict";i.d(k,{A:function(){return x}});var s=i(37762),y=i(71002);function x(I,S,M,R){if(I===S)return!0;if(I&&S&&(0,y.Z)(I)==="object"&&(0,y.Z)(S)==="object"){if(I.constructor!==S.constructor)return!1;var A,V,q;if(Array.isArray(I)){if(A=I.length,A!=S.length)return!1;for(V=A;V--!==0;)if(!x(I[V],S[V],M,R))return!1;return!0}if(I instanceof Map&&S instanceof Map){if(I.size!==S.size)return!1;var me=(0,s.Z)(I.entries()),o;try{for(me.s();!(o=me.n()).done;)if(V=o.value,!S.has(V[0]))return!1}catch(Xe){me.e(Xe)}finally{me.f()}var w=(0,s.Z)(I.entries()),Y;try{for(w.s();!(Y=w.n()).done;)if(V=Y.value,!x(V[1],S.get(V[0]),M,R))return!1}catch(Xe){w.e(Xe)}finally{w.f()}return!0}if(I instanceof Set&&S instanceof Set){if(I.size!==S.size)return!1;var H=(0,s.Z)(I.entries()),te;try{for(H.s();!(te=H.n()).done;)if(V=te.value,!S.has(V[0]))return!1}catch(Xe){H.e(Xe)}finally{H.f()}return!0}if(ArrayBuffer.isView(I)&&ArrayBuffer.isView(S)){if(A=I.length,A!=S.length)return!1;for(V=A;V--!==0;)if(I[V]!==S[V])return!1;return!0}if(I.constructor===RegExp)return I.source===S.source&&I.flags===S.flags;if(I.valueOf!==Object.prototype.valueOf&&I.valueOf)return I.valueOf()===S.valueOf();if(I.toString!==Object.prototype.toString&&I.toString)return I.toString()===S.toString();if(q=Object.keys(I),A=q.length,A!==Object.keys(S).length)return!1;for(V=A;V--!==0;)if(!Object.prototype.hasOwnProperty.call(S,q[V]))return!1;for(V=A;V--!==0;){var we=q[V];if(!(M!=null&&M.includes(we))&&!(we==="_owner"&&I.$$typeof)&&!x(I[we],S[we],M,R))return R&&console.log(we),!1}return!0}return I!==I&&S!==S}},74763:function(F,k,i){"use strict";i.d(k,{k:function(){return s}});var s=function(x){return x==null}},75661:function(F,k,i){"use strict";i.d(k,{x:function(){return x}});var s=0,y=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window=="undefined"||!window.crypto)return(s+=1).toFixed(0);for(var M="",R=crypto.getRandomValues(new Uint8Array(S));S--;){var A=63&R[S];M+=A<36?A.toString(36):A<62?(A-26).toString(36).toUpperCase():A<63?"_":"-"}return M},x=function(){return typeof window=="undefined"?y():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():y()}},19043:function(F,k,i){"use strict";i.d(k,{R6:function(){return ze},MP:function(){return Ae}});var s=i(71002),y=i(67294),x=i(93967),I=i.n(x),S=i(82225),M=i(98787),R=i(96159),A=i(53124),V=i(87107),q=i(14747),me=i(98719),o=i(45503),w=i(91945);const Y=new V.E4("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),H=new V.E4("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),te=new V.E4("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),we=new V.E4("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Xe=new V.E4("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),tt=new V.E4("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),ke=Pe=>{const{componentCls:be,iconCls:Ee,antCls:ut,badgeShadowSize:We,motionDurationSlow:pt,textFontSize:Ie,textFontSizeSM:X,statusSize:nt,dotSize:ue,textFontWeight:Ne,indicatorHeight:Oe,indicatorHeightSM:Je,marginXS:_e,calc:rt}=Pe,Ze=`${ut}-scroll-number`,xt=(0,me.Z)(Pe,($e,mt)=>{let{darkColor:jt}=mt;return{[`&${be} ${be}-color-${$e}`]:{background:jt,[`&:not(${be}-count)`]:{color:jt}}}});return{[be]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,q.Wf)(Pe)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${be}-count`]:{zIndex:Pe.indicatorZIndex,minWidth:Oe,height:Oe,color:Pe.badgeTextColor,fontWeight:Ne,fontSize:Ie,lineHeight:(0,V.bf)(Oe),whiteSpace:"nowrap",textAlign:"center",background:Pe.badgeColor,borderRadius:rt(Oe).div(2).equal(),boxShadow:`0 0 0 ${(0,V.bf)(We)} ${Pe.badgeShadowColor}`,transition:`background ${Pe.motionDurationMid}`,a:{color:Pe.badgeTextColor},"a:hover":{color:Pe.badgeTextColor},"a:hover &":{background:Pe.badgeColorHover}},[`${be}-count-sm`]:{minWidth:Je,height:Je,fontSize:X,lineHeight:(0,V.bf)(Je),borderRadius:rt(Je).div(2).equal()},[`${be}-multiple-words`]:{padding:`0 ${(0,V.bf)(Pe.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${be}-dot`]:{zIndex:Pe.indicatorZIndex,width:ue,minWidth:ue,height:ue,background:Pe.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,V.bf)(We)} ${Pe.badgeShadowColor}`},[`${be}-dot${Ze}`]:{transition:`background ${pt}`},[`${be}-count, ${be}-dot, ${Ze}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${Ee}-spin`]:{animationName:tt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${be}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${be}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:nt,height:nt,verticalAlign:"middle",borderRadius:"50%"},[`${be}-status-success`]:{backgroundColor:Pe.colorSuccess},[`${be}-status-processing`]:{overflow:"visible",color:Pe.colorPrimary,backgroundColor:Pe.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:We,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Y,animationDuration:Pe.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${be}-status-default`]:{backgroundColor:Pe.colorTextPlaceholder},[`${be}-status-error`]:{backgroundColor:Pe.colorError},[`${be}-status-warning`]:{backgroundColor:Pe.colorWarning},[`${be}-status-text`]:{marginInlineStart:_e,color:Pe.colorText,fontSize:Pe.fontSize}}}),xt),{[`${be}-zoom-appear, ${be}-zoom-enter`]:{animationName:H,animationDuration:Pe.motionDurationSlow,animationTimingFunction:Pe.motionEaseOutBack,animationFillMode:"both"},[`${be}-zoom-leave`]:{animationName:te,animationDuration:Pe.motionDurationSlow,animationTimingFunction:Pe.motionEaseOutBack,animationFillMode:"both"},[`&${be}-not-a-wrapper`]:{[`${be}-zoom-appear, ${be}-zoom-enter`]:{animationName:we,animationDuration:Pe.motionDurationSlow,animationTimingFunction:Pe.motionEaseOutBack},[`${be}-zoom-leave`]:{animationName:Xe,animationDuration:Pe.motionDurationSlow,animationTimingFunction:Pe.motionEaseOutBack},[`&:not(${be}-status)`]:{verticalAlign:"middle"},[`${Ze}-custom-component, ${be}-count`]:{transform:"none"},[`${Ze}-custom-component, ${Ze}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${Ze}`]:{overflow:"hidden",[`${Ze}-only`]:{position:"relative",display:"inline-block",height:Oe,transition:`all ${Pe.motionDurationSlow} ${Pe.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${Ze}-only-unit`]:{height:Oe,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${Ze}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${be}-count, ${be}-dot, ${Ze}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Ce=Pe=>{const{fontHeight:be,lineWidth:Ee,marginXS:ut,colorBorderBg:We}=Pe,pt=be,Ie=Ee,X=Pe.colorBgContainer,nt=Pe.colorError,ue=Pe.colorErrorHover;return(0,o.TS)(Pe,{badgeFontHeight:pt,badgeShadowSize:Ie,badgeTextColor:X,badgeColor:nt,badgeColorHover:ue,badgeShadowColor:We,badgeProcessingDuration:"1.2s",badgeRibbonOffset:ut,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},it=Pe=>{const{fontSize:be,lineHeight:Ee,fontSizeSM:ut,lineWidth:We}=Pe;return{indicatorZIndex:"auto",indicatorHeight:Math.round(be*Ee)-2*We,indicatorHeightSM:be,dotSize:ut/2,textFontSize:ut,textFontSizeSM:ut,textFontWeight:"normal",statusSize:ut/2}};var ft=(0,w.I$)("Badge",Pe=>{const be=Ce(Pe);return ke(be)},it);const pe=Pe=>{const{antCls:be,badgeFontHeight:Ee,marginXS:ut,badgeRibbonOffset:We,calc:pt}=Pe,Ie=`${be}-ribbon`,X=`${be}-ribbon-wrapper`,nt=(0,me.Z)(Pe,(ue,Ne)=>{let{darkColor:Oe}=Ne;return{[`&${Ie}-color-${ue}`]:{background:Oe,color:Oe}}});return{[`${X}`]:{position:"relative"},[`${Ie}`]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,q.Wf)(Pe)),{position:"absolute",top:ut,padding:`0 ${(0,V.bf)(Pe.paddingXS)}`,color:Pe.colorPrimary,lineHeight:(0,V.bf)(Ee),whiteSpace:"nowrap",backgroundColor:Pe.colorPrimary,borderRadius:Pe.borderRadiusSM,[`${Ie}-text`]:{color:Pe.colorTextLightSolid},[`${Ie}-corner`]:{position:"absolute",top:"100%",width:We,height:We,color:"currentcolor",border:`${(0,V.bf)(pt(We).div(2).equal())} solid`,transform:Pe.badgeRibbonCornerTransform,transformOrigin:"top",filter:Pe.badgeRibbonCornerFilter}}),nt),{[`&${Ie}-placement-end`]:{insetInlineEnd:pt(We).mul(-1).equal(),borderEndEndRadius:0,[`${Ie}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${Ie}-placement-start`]:{insetInlineStart:pt(We).mul(-1).equal(),borderEndStartRadius:0,[`${Ie}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var he=(0,w.I$)(["Badge","Ribbon"],Pe=>{const be=Ce(Pe);return pe(be)},it),D=Pe=>{const{className:be,prefixCls:Ee,style:ut,color:We,children:pt,text:Ie,placement:X="end",rootClassName:nt}=Pe,{getPrefixCls:ue,direction:Ne}=y.useContext(A.E_),Oe=ue("ribbon",Ee),Je=`${Oe}-wrapper`,[_e,rt,Ze]=he(Oe,Je),xt=(0,M.o2)(We,!1),$e=I()(Oe,`${Oe}-placement-${X}`,{[`${Oe}-rtl`]:Ne==="rtl",[`${Oe}-color-${We}`]:xt},be),mt={},jt={};return We&&!xt&&(mt.background=We,jt.color=We),_e(y.createElement("div",{className:I()(Je,nt,rt,Ze)},pt,y.createElement("div",{className:I()($e,rt),style:Object.assign(Object.assign({},mt),ut)},y.createElement("span",{className:`${Oe}-text`},Ie),y.createElement("div",{className:`${Oe}-corner`,style:jt}))))};function se(Pe){let{prefixCls:be,value:Ee,current:ut,offset:We=0}=Pe,pt;return We&&(pt={position:"absolute",top:`${We}00%`,left:0}),y.createElement("span",{style:pt,className:I()(`${be}-only-unit`,{current:ut})},Ee)}function Le(Pe,be,Ee){let ut=Pe,We=0;for(;(ut+10)%10!==be;)ut+=Ee,We+=Ee;return We}function Ge(Pe){const{prefixCls:be,count:Ee,value:ut}=Pe,We=Number(ut),pt=Math.abs(Ee),[Ie,X]=y.useState(We),[nt,ue]=y.useState(pt),Ne=()=>{X(We),ue(pt)};y.useEffect(()=>{const _e=setTimeout(()=>{Ne()},1e3);return()=>{clearTimeout(_e)}},[We]);let Oe,Je;if(Ie===We||Number.isNaN(We)||Number.isNaN(Ie))Oe=[y.createElement(se,Object.assign({},Pe,{key:We,current:!0}))],Je={transition:"none"};else{Oe=[];const _e=We+10,rt=[];for(let $e=We;$e<=_e;$e+=1)rt.push($e);const Ze=rt.findIndex($e=>$e%10===Ie);Oe=rt.map(($e,mt)=>{const jt=$e%10;return y.createElement(se,Object.assign({},Pe,{key:$e,value:jt,offset:mt-Ze,current:mt===Ze}))});const xt=nt{const{prefixCls:Ee,count:ut,className:We,motionClassName:pt,style:Ie,title:X,show:nt,component:ue="sup",children:Ne}=Pe,Oe=Rt(Pe,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:Je}=y.useContext(A.E_),_e=Je("scroll-number",Ee),rt=Object.assign(Object.assign({},Oe),{"data-show":nt,style:Ie,className:I()(_e,We,pt),title:X});let Ze=ut;if(ut&&Number(ut)%1===0){const xt=String(ut).split("");Ze=y.createElement("bdi",null,xt.map(($e,mt)=>y.createElement(Ge,{prefixCls:_e,count:Number(ut),value:$e,key:xt.length-mt})))}return Ie&&Ie.borderColor&&(rt.style=Object.assign(Object.assign({},Ie),{boxShadow:`0 0 0 1px ${Ie.borderColor} inset`})),Ne?(0,R.Tm)(Ne,xt=>({className:I()(`${_e}-custom-component`,xt==null?void 0:xt.className,pt)})):y.createElement(ue,Object.assign({},rt,{ref:be}),Ze)}),Ct=function(Pe,be){var Ee={};for(var ut in Pe)Object.prototype.hasOwnProperty.call(Pe,ut)&&be.indexOf(ut)<0&&(Ee[ut]=Pe[ut]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,ut=Object.getOwnPropertySymbols(Pe);We{var Ee,ut,We,pt,Ie;const{prefixCls:X,scrollNumberPrefixCls:nt,children:ue,status:Ne,text:Oe,color:Je,count:_e=null,overflowCount:rt=99,dot:Ze=!1,size:xt="default",title:$e,offset:mt,style:jt,className:kt,rootClassName:At,classNames:wt,styles:Gt,showZero:cn=!1}=Pe,j=Ct(Pe,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:ie,direction:ce,badge:T}=y.useContext(A.E_),G=ie("badge",X),[ve,Re,Me]=ft(G),$t=_e>rt?`${rt}+`:_e,lt=$t==="0"||$t===0,yt=_e===null||lt&&!cn,dt=(Ne!=null||Je!=null)&&yt,Nt=Ze&&!lt,Xt=Nt?"":$t,zt=(0,y.useMemo)(()=>(Xt==null||Xt===""||lt&&!cn)&&!Nt,[Xt,lt,cn,Nt]),Ut=(0,y.useRef)(_e);zt||(Ut.current=_e);const dn=Ut.current,wn=(0,y.useRef)(Xt);zt||(wn.current=Xt);const Vt=wn.current,Jt=(0,y.useRef)(Nt);zt||(Jt.current=Nt);const ln=(0,y.useMemo)(()=>{if(!mt)return Object.assign(Object.assign({},T==null?void 0:T.style),jt);const Un={marginTop:mt[1]};return ce==="rtl"?Un.left=parseInt(mt[0],10):Un.right=-parseInt(mt[0],10),Object.assign(Object.assign(Object.assign({},Un),T==null?void 0:T.style),jt)},[ce,mt,jt,T==null?void 0:T.style]),tn=$e!=null?$e:typeof dn=="string"||typeof dn=="number"?dn:void 0,Xn=zt||!Oe?null:y.createElement("span",{className:`${G}-status-text`},Oe),tr=!dn||typeof dn!="object"?void 0:(0,R.Tm)(dn,Un=>({style:Object.assign(Object.assign({},ln),Un.style)})),ar=(0,M.o2)(Je,!1),An=I()(wt==null?void 0:wt.indicator,(Ee=T==null?void 0:T.classNames)===null||Ee===void 0?void 0:Ee.indicator,{[`${G}-status-dot`]:dt,[`${G}-status-${Ne}`]:!!Ne,[`${G}-color-${Je}`]:ar}),jn={};Je&&!ar&&(jn.color=Je,jn.background=Je);const Dn=I()(G,{[`${G}-status`]:dt,[`${G}-not-a-wrapper`]:!ue,[`${G}-rtl`]:ce==="rtl"},kt,At,T==null?void 0:T.className,(ut=T==null?void 0:T.classNames)===null||ut===void 0?void 0:ut.root,wt==null?void 0:wt.root,Re,Me);if(!ue&&dt){const Un=ln.color;return ve(y.createElement("span",Object.assign({},j,{className:Dn,style:Object.assign(Object.assign(Object.assign({},Gt==null?void 0:Gt.root),(We=T==null?void 0:T.styles)===null||We===void 0?void 0:We.root),ln)}),y.createElement("span",{className:An,style:Object.assign(Object.assign(Object.assign({},Gt==null?void 0:Gt.indicator),(pt=T==null?void 0:T.styles)===null||pt===void 0?void 0:pt.indicator),jn)}),Oe&&y.createElement("span",{style:{color:Un},className:`${G}-status-text`},Oe)))}return ve(y.createElement("span",Object.assign({ref:be},j,{className:Dn,style:Object.assign(Object.assign({},(Ie=T==null?void 0:T.styles)===null||Ie===void 0?void 0:Ie.root),Gt==null?void 0:Gt.root)}),ue,y.createElement(S.ZP,{visible:!zt,motionName:`${G}-zoom`,motionAppear:!1,motionDeadline:1e3},Un=>{let{className:lr,ref:mr}=Un;var _n,Tn;const Mn=ie("scroll-number",nt),qn=Jt.current,gn=I()(wt==null?void 0:wt.indicator,(_n=T==null?void 0:T.classNames)===null||_n===void 0?void 0:_n.indicator,{[`${G}-dot`]:qn,[`${G}-count`]:!qn,[`${G}-count-sm`]:xt==="small",[`${G}-multiple-words`]:!qn&&Vt&&Vt.toString().length>1,[`${G}-status-${Ne}`]:!!Ne,[`${G}-color-${Je}`]:ar});let bn=Object.assign(Object.assign(Object.assign({},Gt==null?void 0:Gt.indicator),(Tn=T==null?void 0:T.styles)===null||Tn===void 0?void 0:Tn.indicator),ln);return Je&&!ar&&(bn=bn||{},bn.background=Je),y.createElement(St,{prefixCls:Mn,show:!zt,motionClassName:lr,className:gn,count:Vt,title:tn,style:bn,key:"scrollNumber",ref:mr},tr)}),Xn))},Ft=y.forwardRef(Wt);Ft.Ribbon=D;var an=Ft,bt=i(42075),Et=i(85893);function Pt(Pe){var be=Object.prototype.toString.call(Pe).match(/^\[object (.*)\]$/)[1].toLowerCase();return be==="string"&&(0,s.Z)(Pe)==="object"?"object":Pe===null?"null":Pe===void 0?"undefined":be}var Se=function(be){var Ee=be.color,ut=be.children;return(0,Et.jsx)(an,{color:Ee,text:ut})},ze=function(be){return Pt(be)==="map"?be:new Map(Object.entries(be||{}))},Qe={Success:function(be){var Ee=be.children;return(0,Et.jsx)(an,{status:"success",text:Ee})},Error:function(be){var Ee=be.children;return(0,Et.jsx)(an,{status:"error",text:Ee})},Default:function(be){var Ee=be.children;return(0,Et.jsx)(an,{status:"default",text:Ee})},Processing:function(be){var Ee=be.children;return(0,Et.jsx)(an,{status:"processing",text:Ee})},Warning:function(be){var Ee=be.children;return(0,Et.jsx)(an,{status:"warning",text:Ee})},success:function(be){var Ee=be.children;return(0,Et.jsx)(an,{status:"success",text:Ee})},error:function(be){var Ee=be.children;return(0,Et.jsx)(an,{status:"error",text:Ee})},default:function(be){var Ee=be.children;return(0,Et.jsx)(an,{status:"default",text:Ee})},processing:function(be){var Ee=be.children;return(0,Et.jsx)(an,{status:"processing",text:Ee})},warning:function(be){var Ee=be.children;return(0,Et.jsx)(an,{status:"warning",text:Ee})}},Ae=function Pe(be,Ee,ut){if(Array.isArray(be))return(0,Et.jsx)(bt.Z,{split:",",size:2,wrap:!0,children:be.map(function(ue,Ne){return Pe(ue,Ee,Ne)})},ut);var We=ze(Ee);if(!We.has(be)&&!We.has("".concat(be)))return(be==null?void 0:be.label)||be;var pt=We.get(be)||We.get("".concat(be));if(!pt)return(0,Et.jsx)(y.Fragment,{children:(be==null?void 0:be.label)||be},ut);var Ie=pt.status,X=pt.color,nt=Qe[Ie||"Init"];return nt?(0,Et.jsx)(nt,{children:pt.text},ut):X?(0,Et.jsx)(Se,{color:X,children:pt.text},ut):(0,Et.jsx)(y.Fragment,{children:pt.text||pt},ut)}},22270:function(F,k,i){"use strict";i.d(k,{h:function(){return s}});function s(y){if(typeof y=="function"){for(var x=arguments.length,I=new Array(x>1?x-1:0),S=1;S=60&&Math.round(j.h)<=240?T=ce?Math.round(j.h)-q*ie:Math.round(j.h)+q*ie:T=ce?Math.round(j.h)+q*ie:Math.round(j.h)-q*ie,T<0?T+=360:T>=360&&(T-=360),T}function it(j,ie,ce){if(j.h===0&&j.s===0)return j.s;var T;return ce?T=j.s-me*ie:ie===te?T=j.s+me:T=j.s+o*ie,T>1&&(T=1),ce&&ie===H&&T>.1&&(T=.1),T<.06&&(T=.06),Number(T.toFixed(2))}function ft(j,ie,ce){var T;return ce?T=j.v+w*ie:T=j.v-Y*ie,T>1&&(T=1),Number(T.toFixed(2))}function pe(j){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=[],T=(0,V.uA)(j),G=H;G>0;G-=1){var ve=Xe(T),Re=tt((0,V.uA)({h:Ce(ve,G,!0),s:it(ve,G,!0),v:ft(ve,G,!0)}));ce.push(Re)}ce.push(tt(T));for(var Me=1;Me<=te;Me+=1){var $t=Xe(T),lt=tt((0,V.uA)({h:Ce($t,Me),s:it($t,Me),v:ft($t,Me)}));ce.push(lt)}return ie.theme==="dark"?we.map(function(yt){var dt=yt.index,Nt=yt.opacity,Xt=tt(ke((0,V.uA)(ie.backgroundColor||"#141414"),(0,V.uA)(ce[dt]),Nt*100));return Xt}):ce}var he={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"},_={},D={};Object.keys(he).forEach(function(j){_[j]=pe(he[j]),_[j].primary=_[j][5],D[j]=pe(he[j],{theme:"dark",backgroundColor:"#141414"}),D[j].primary=D[j][5]});var se=_.red,Le=_.volcano,Ge=_.gold,Rt=_.orange,de=_.yellow,St=_.lime,Ct=_.green,Wt=_.cyan,Ft=_.blue,an=_.geekblue,bt=_.purple,Et=_.magenta,Pt=_.grey,Se=_.grey,ze=(0,S.createContext)({}),Qe=ze,Ae=i(1413),Pe=i(71002),be=i(44958),Ee=i(27571),ut=i(80334);function We(j){return j.replace(/-(.)/g,function(ie,ce){return ce.toUpperCase()})}function pt(j,ie){(0,ut.ZP)(j,"[@ant-design/icons] ".concat(ie))}function Ie(j){return(0,Pe.Z)(j)==="object"&&typeof j.name=="string"&&typeof j.theme=="string"&&((0,Pe.Z)(j.icon)==="object"||typeof j.icon=="function")}function X(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(j).reduce(function(ie,ce){var T=j[ce];switch(ce){case"class":ie.className=T,delete ie.class;break;default:delete ie[ce],ie[We(ce)]=T}return ie},{})}function nt(j,ie,ce){return ce?S.createElement(j.tag,(0,Ae.Z)((0,Ae.Z)({key:ie},X(j.attrs)),ce),(j.children||[]).map(function(T,G){return nt(T,"".concat(ie,"-").concat(j.tag,"-").concat(G))})):S.createElement(j.tag,(0,Ae.Z)({key:ie},X(j.attrs)),(j.children||[]).map(function(T,G){return nt(T,"".concat(ie,"-").concat(j.tag,"-").concat(G))}))}function ue(j){return pe(j)[0]}function Ne(j){return j?Array.isArray(j)?j:[j]:[]}var Oe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Je=` -.anticon { - display: inline-flex; - alignItems: center; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,_e=function(ie){var ce=(0,S.useContext)(Qe),T=ce.csp,G=ce.prefixCls,ve=Je;G&&(ve=ve.replace(/anticon/g,G)),(0,S.useEffect)(function(){var Re=ie.current,Me=(0,Ee.A)(Re);(0,be.hq)(ve,"@ant-design-icons",{prepend:!0,csp:T,attachTo:Me})},[])},rt=["icon","className","onClick","style","primaryColor","secondaryColor"],Ze={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function xt(j){var ie=j.primaryColor,ce=j.secondaryColor;Ze.primaryColor=ie,Ze.secondaryColor=ce||ue(ie),Ze.calculated=!!ce}function $e(){return(0,Ae.Z)({},Ze)}var mt=function(ie){var ce=ie.icon,T=ie.className,G=ie.onClick,ve=ie.style,Re=ie.primaryColor,Me=ie.secondaryColor,$t=(0,I.Z)(ie,rt),lt=S.useRef(),yt=Ze;if(Re&&(yt={primaryColor:Re,secondaryColor:Me||ue(Re)}),_e(lt),pt(Ie(ce),"icon should be icon definiton, but got ".concat(ce)),!Ie(ce))return null;var dt=ce;return dt&&typeof dt.icon=="function"&&(dt=(0,Ae.Z)((0,Ae.Z)({},dt),{},{icon:dt.icon(yt.primaryColor,yt.secondaryColor)})),nt(dt.icon,"svg-".concat(dt.name),(0,Ae.Z)((0,Ae.Z)({className:T,onClick:G,style:ve,"data-icon":dt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},$t),{},{ref:lt}))};mt.displayName="IconReact",mt.getTwoToneColors=$e,mt.setTwoToneColors=xt;var jt=mt;function kt(j){var ie=Ne(j),ce=(0,y.Z)(ie,2),T=ce[0],G=ce[1];return jt.setTwoToneColors({primaryColor:T,secondaryColor:G})}function At(){var j=jt.getTwoToneColors();return j.calculated?[j.primaryColor,j.secondaryColor]:j.primaryColor}var wt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];kt(Ft.primary);var Gt=S.forwardRef(function(j,ie){var ce=j.className,T=j.icon,G=j.spin,ve=j.rotate,Re=j.tabIndex,Me=j.onClick,$t=j.twoToneColor,lt=(0,I.Z)(j,wt),yt=S.useContext(Qe),dt=yt.prefixCls,Nt=dt===void 0?"anticon":dt,Xt=yt.rootClassName,zt=R()(Xt,Nt,(0,x.Z)((0,x.Z)({},"".concat(Nt,"-").concat(T.name),!!T.name),"".concat(Nt,"-spin"),!!G||T.name==="loading"),ce),Ut=Re;Ut===void 0&&Me&&(Ut=-1);var dn=ve?{msTransform:"rotate(".concat(ve,"deg)"),transform:"rotate(".concat(ve,"deg)")}:void 0,wn=Ne($t),Vt=(0,y.Z)(wn,2),Jt=Vt[0],ln=Vt[1];return S.createElement("span",(0,s.Z)({role:"img","aria-label":T.name},lt,{ref:ie,tabIndex:Ut,onClick:Me,className:zt}),S.createElement(jt,{icon:T,primaryColor:Jt,secondaryColor:ln,style:dn}))});Gt.displayName="AntdIcon",Gt.getTwoToneColor=At,Gt.setTwoToneColor=kt;var cn=Gt},78290:function(F,k,i){"use strict";var s=i(67294),y=i(17012);const x=I=>{let S;return typeof I=="object"&&(I!=null&&I.clearIcon)?S=I:I&&(S={clearIcon:s.createElement(y.Z,null)}),S};k.Z=x},84567:function(F,k,i){"use strict";i.d(k,{Z:function(){return pe}});var s=i(67294),y=i(93967),x=i.n(y),I=i(50132),S=i(45353),M=i(17415),R=i(53124),A=i(98866),V=i(35792),q=i(65223),o=s.createContext(null),w=i(63185),Y=function(he,_){var D={};for(var se in he)Object.prototype.hasOwnProperty.call(he,se)&&_.indexOf(se)<0&&(D[se]=he[se]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(he);Le{var D;const{prefixCls:se,className:Le,rootClassName:Ge,children:Rt,indeterminate:de=!1,style:St,onMouseEnter:Ct,onMouseLeave:Wt,skipGroup:Ft=!1,disabled:an}=he,bt=Y(he,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Et,direction:Pt,checkbox:Se}=s.useContext(R.E_),ze=s.useContext(o),{isFormItemInput:Qe}=s.useContext(q.aM),Ae=s.useContext(A.Z),Pe=(D=(ze==null?void 0:ze.disabled)||an)!==null&&D!==void 0?D:Ae,be=s.useRef(bt.value);s.useEffect(()=>{ze==null||ze.registerValue(bt.value)},[]),s.useEffect(()=>{if(!Ft)return bt.value!==be.current&&(ze==null||ze.cancelValue(be.current),ze==null||ze.registerValue(bt.value),be.current=bt.value),()=>ze==null?void 0:ze.cancelValue(bt.value)},[bt.value]);const Ee=Et("checkbox",se),ut=(0,V.Z)(Ee),[We,pt,Ie]=(0,w.ZP)(Ee,ut),X=Object.assign({},bt);ze&&!Ft&&(X.onChange=function(){bt.onChange&&bt.onChange.apply(bt,arguments),ze.toggleOption&&ze.toggleOption({label:Rt,value:bt.value})},X.name=ze.name,X.checked=ze.value.includes(bt.value));const nt=x()(`${Ee}-wrapper`,{[`${Ee}-rtl`]:Pt==="rtl",[`${Ee}-wrapper-checked`]:X.checked,[`${Ee}-wrapper-disabled`]:Pe,[`${Ee}-wrapper-in-form-item`]:Qe},Se==null?void 0:Se.className,Le,Ge,Ie,ut,pt),ue=x()({[`${Ee}-indeterminate`]:de},M.A,pt),Ne=de?"mixed":void 0;return We(s.createElement(S.Z,{component:"Checkbox",disabled:Pe},s.createElement("label",{className:nt,style:Object.assign(Object.assign({},Se==null?void 0:Se.style),St),onMouseEnter:Ct,onMouseLeave:Wt},s.createElement(I.Z,Object.assign({"aria-checked":Ne},X,{prefixCls:Ee,className:ue,disabled:Pe,ref:_})),Rt!==void 0&&s.createElement("span",null,Rt))))};var we=s.forwardRef(H),Xe=i(74902),tt=i(98423),ke=function(he,_){var D={};for(var se in he)Object.prototype.hasOwnProperty.call(he,se)&&_.indexOf(se)<0&&(D[se]=he[se]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(he);Le{const{defaultValue:D,children:se,options:Le=[],prefixCls:Ge,className:Rt,rootClassName:de,style:St,onChange:Ct}=he,Wt=ke(he,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ft,direction:an}=s.useContext(R.E_),[bt,Et]=s.useState(Wt.value||D||[]),[Pt,Se]=s.useState([]);s.useEffect(()=>{"value"in Wt&&Et(Wt.value||[])},[Wt.value]);const ze=s.useMemo(()=>Le.map(Oe=>typeof Oe=="string"||typeof Oe=="number"?{label:Oe,value:Oe}:Oe),[Le]),Qe=Oe=>{Se(Je=>Je.filter(_e=>_e!==Oe))},Ae=Oe=>{Se(Je=>[].concat((0,Xe.Z)(Je),[Oe]))},Pe=Oe=>{const Je=bt.indexOf(Oe.value),_e=(0,Xe.Z)(bt);Je===-1?_e.push(Oe.value):_e.splice(Je,1),"value"in Wt||Et(_e),Ct==null||Ct(_e.filter(rt=>Pt.includes(rt)).sort((rt,Ze)=>{const xt=ze.findIndex(mt=>mt.value===rt),$e=ze.findIndex(mt=>mt.value===Ze);return xt-$e}))},be=Ft("checkbox",Ge),Ee=`${be}-group`,ut=(0,V.Z)(be),[We,pt,Ie]=(0,w.ZP)(be,ut),X=(0,tt.Z)(Wt,["value","disabled"]),nt=Le.length?ze.map(Oe=>s.createElement(we,{prefixCls:be,key:Oe.value.toString(),disabled:"disabled"in Oe?Oe.disabled:Wt.disabled,value:Oe.value,checked:bt.includes(Oe.value),onChange:Oe.onChange,className:`${Ee}-item`,style:Oe.style,title:Oe.title,id:Oe.id,required:Oe.required},Oe.label)):se,ue={toggleOption:Pe,value:bt,disabled:Wt.disabled,name:Wt.name,registerValue:Ae,cancelValue:Qe},Ne=x()(Ee,{[`${Ee}-rtl`]:an==="rtl"},Rt,de,Ie,ut,pt);return We(s.createElement("div",Object.assign({className:Ne,style:St},X,{ref:_}),s.createElement(o.Provider,{value:ue},nt)))});const ft=we;ft.Group=it,ft.__ANT_CHECKBOX=!0;var pe=ft},63185:function(F,k,i){"use strict";i.d(k,{C2:function(){return M}});var s=i(87107),y=i(14747),x=i(45503),I=i(91945);const S=R=>{const{checkboxCls:A}=R,V=`${A}-wrapper`;return[{[`${A}-group`]:Object.assign(Object.assign({},(0,y.Wf)(R)),{display:"inline-flex",flexWrap:"wrap",columnGap:R.marginXS,[`> ${R.antCls}-row`]:{flex:1}}),[V]:Object.assign(Object.assign({},(0,y.Wf)(R)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${V}`]:{marginInlineStart:0},[`&${V}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[A]:Object.assign(Object.assign({},(0,y.Wf)(R)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:R.borderRadiusSM,alignSelf:"center",[`${A}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${A}-inner`]:Object.assign({},(0,y.oN)(R))},[`${A}-inner`]:{boxSizing:"border-box",display:"block",width:R.checkboxSize,height:R.checkboxSize,direction:"ltr",backgroundColor:R.colorBgContainer,border:`${(0,s.bf)(R.lineWidth)} ${R.lineType} ${R.colorBorder}`,borderRadius:R.borderRadiusSM,borderCollapse:"separate",transition:`all ${R.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:R.calc(R.checkboxSize).div(14).mul(5).equal(),height:R.calc(R.checkboxSize).div(14).mul(8).equal(),border:`${(0,s.bf)(R.lineWidthBold)} solid ${R.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${R.motionDurationFast} ${R.motionEaseInBack}, opacity ${R.motionDurationFast}`}},"& + span":{paddingInlineStart:R.paddingXS,paddingInlineEnd:R.paddingXS}})},{[` - ${V}:not(${V}-disabled), - ${A}:not(${A}-disabled) - `]:{[`&:hover ${A}-inner`]:{borderColor:R.colorPrimary}},[`${V}:not(${V}-disabled)`]:{[`&:hover ${A}-checked:not(${A}-disabled) ${A}-inner`]:{backgroundColor:R.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${A}-checked:not(${A}-disabled):after`]:{borderColor:R.colorPrimaryHover}}},{[`${A}-checked`]:{[`${A}-inner`]:{backgroundColor:R.colorPrimary,borderColor:R.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${R.motionDurationMid} ${R.motionEaseOutBack} ${R.motionDurationFast}`}}},[` - ${V}-checked:not(${V}-disabled), - ${A}-checked:not(${A}-disabled) - `]:{[`&:hover ${A}-inner`]:{backgroundColor:R.colorPrimaryHover,borderColor:"transparent"}}},{[A]:{"&-indeterminate":{[`${A}-inner`]:{backgroundColor:R.colorBgContainer,borderColor:R.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:R.calc(R.fontSizeLG).div(2).equal(),height:R.calc(R.fontSizeLG).div(2).equal(),backgroundColor:R.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${V}-disabled`]:{cursor:"not-allowed"},[`${A}-disabled`]:{[`&, ${A}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${A}-inner`]:{background:R.colorBgContainerDisabled,borderColor:R.colorBorder,"&:after":{borderColor:R.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:R.colorTextDisabled},[`&${A}-indeterminate ${A}-inner::after`]:{background:R.colorTextDisabled}}}]};function M(R,A){const V=(0,x.TS)(A,{checkboxCls:`.${R}`,checkboxSize:A.controlInteractiveSize});return[S(V)]}k.ZP=(0,I.I$)("Checkbox",(R,A)=>{let{prefixCls:V}=A;return[M(V,R)]})},15746:function(F,k,i){"use strict";var s=i(21584);k.Z=s.Z},8232:function(F,k,i){"use strict";i.d(k,{Z:function(){return na}});var s=i(74902),y=i(93967),x=i.n(y),I=i(82225),S=i(67294),M=i(33603),R=i(65223);function A(le){const[st,Mt]=S.useState(le);return S.useEffect(()=>{const Dt=setTimeout(()=>{Mt(le)},le.length?0:10);return()=>{clearTimeout(Dt)}},[le]),st}var V=i(87107),q=i(14747),me=i(50438),o=i(33507),w=i(45503),Y=i(91945),te=le=>{const{componentCls:st}=le,Mt=`${st}-show-help`,Dt=`${st}-show-help-item`;return{[Mt]:{transition:`opacity ${le.motionDurationSlow} ${le.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Dt]:{overflow:"hidden",transition:`height ${le.motionDurationSlow} ${le.motionEaseInOut}, - opacity ${le.motionDurationSlow} ${le.motionEaseInOut}, - transform ${le.motionDurationSlow} ${le.motionEaseInOut} !important`,[`&${Dt}-appear, &${Dt}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${Dt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const we=le=>({legend:{display:"block",width:"100%",marginBottom:le.marginLG,padding:0,color:le.colorTextDescription,fontSize:le.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,V.bf)(le.lineWidth)} ${le.lineType} ${le.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},[`input[type='file']:focus, - input[type='radio']:focus, - input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${(0,V.bf)(le.controlOutlineWidth)} ${le.controlOutline}`},output:{display:"block",paddingTop:15,color:le.colorText,fontSize:le.fontSize,lineHeight:le.lineHeight}}),Xe=(le,st)=>{const{formItemCls:Mt}=le;return{[Mt]:{[`${Mt}-label > label`]:{height:st},[`${Mt}-control-input`]:{minHeight:st}}}},tt=le=>{const{componentCls:st}=le;return{[le.componentCls]:Object.assign(Object.assign(Object.assign({},(0,q.Wf)(le)),we(le)),{[`${st}-text`]:{display:"inline-block",paddingInlineEnd:le.paddingSM},"&-small":Object.assign({},Xe(le,le.controlHeightSM)),"&-large":Object.assign({},Xe(le,le.controlHeightLG))})}},ke=le=>{const{formItemCls:st,iconCls:Mt,componentCls:Dt,rootPrefixCls:on,labelRequiredMarkColor:un,labelColor:Nn,labelFontSize:kn,labelHeight:er,labelColonMarginInlineStart:br,labelColonMarginInlineEnd:Sr,itemMarginBottom:fr}=le;return{[st]:Object.assign(Object.assign({},(0,q.Wf)(le)),{marginBottom:fr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden.${on}-row`]:{display:"none"},"&-has-warning":{[`${st}-split`]:{color:le.colorError}},"&-has-error":{[`${st}-split`]:{color:le.colorWarning}},[`${st}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:le.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:er,color:Nn,fontSize:kn,[`> ${Mt}`]:{fontSize:le.fontSize,verticalAlign:"top"},[`&${st}-required:not(${st}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:le.marginXXS,color:un,fontSize:le.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Dt}-hide-required-mark &`]:{display:"none"}},[`${st}-optional`]:{display:"inline-block",marginInlineStart:le.marginXXS,color:le.colorTextDescription,[`${Dt}-hide-required-mark &`]:{display:"none"}},[`${st}-tooltip`]:{color:le.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:le.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:br,marginInlineEnd:Sr},[`&${st}-no-colon::after`]:{content:'"\\a0"'}}},[`${st}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${on}-col-'"]):not([class*="' ${on}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:le.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[st]:{"&-explain, &-extra":{clear:"both",color:le.colorTextDescription,fontSize:le.fontSize,lineHeight:le.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:le.controlHeightSM,transition:`color ${le.motionDurationMid} ${le.motionEaseOut}`},"&-explain":{"&-error":{color:le.colorError},"&-warning":{color:le.colorWarning}}},[`&-with-help ${st}-explain`]:{height:"auto",opacity:1},[`${st}-feedback-icon`]:{fontSize:le.fontSize,textAlign:"center",visibility:"visible",animationName:me.kr,animationDuration:le.motionDurationMid,animationTimingFunction:le.motionEaseOutBack,pointerEvents:"none","&-success":{color:le.colorSuccess},"&-error":{color:le.colorError},"&-warning":{color:le.colorWarning},"&-validating":{color:le.colorPrimary}}})}},Ce=le=>{const{componentCls:st,formItemCls:Mt}=le;return{[`${st}-horizontal`]:{[`${Mt}-label`]:{flexGrow:0},[`${Mt}-control`]:{flex:"1 1 0",minWidth:0},[`${Mt}-label[class$='-24'], ${Mt}-label[class*='-24 ']`]:{[`& + ${Mt}-control`]:{minWidth:"unset"}}}}},it=le=>{const{componentCls:st,formItemCls:Mt}=le;return{[`${st}-inline`]:{display:"flex",flexWrap:"wrap",[Mt]:{flex:"none",marginInlineEnd:le.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Mt}-label, - > ${Mt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Mt}-label`]:{flex:"none"},[`${st}-text`]:{display:"inline-block"},[`${Mt}-has-feedback`]:{display:"inline-block"}}}}},ft=le=>({padding:le.verticalLabelPadding,margin:le.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),pe=le=>{const{componentCls:st,formItemCls:Mt,rootPrefixCls:Dt}=le;return{[`${Mt} ${Mt}-label`]:ft(le),[`${st}:not(${st}-inline)`]:{[Mt]:{flexWrap:"wrap",[`${Mt}-label, ${Mt}-control`]:{[`&:not([class*=" ${Dt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},he=le=>{const{componentCls:st,formItemCls:Mt,rootPrefixCls:Dt}=le;return{[`${st}-vertical`]:{[Mt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${st}-item-control`]:{width:"100%"}}},[`${st}-vertical ${Mt}-label, - .${Dt}-col-24${Mt}-label, - .${Dt}-col-xl-24${Mt}-label`]:ft(le),[`@media (max-width: ${(0,V.bf)(le.screenXSMax)})`]:[pe(le),{[st]:{[`.${Dt}-col-xs-24${Mt}-label`]:ft(le)}}],[`@media (max-width: ${(0,V.bf)(le.screenSMMax)})`]:{[st]:{[`.${Dt}-col-sm-24${Mt}-label`]:ft(le)}},[`@media (max-width: ${(0,V.bf)(le.screenMDMax)})`]:{[st]:{[`.${Dt}-col-md-24${Mt}-label`]:ft(le)}},[`@media (max-width: ${(0,V.bf)(le.screenLGMax)})`]:{[st]:{[`.${Dt}-col-lg-24${Mt}-label`]:ft(le)}}}},_=le=>({labelRequiredMarkColor:le.colorError,labelColor:le.colorTextHeading,labelFontSize:le.fontSize,labelHeight:le.controlHeight,labelColonMarginInlineStart:le.marginXXS/2,labelColonMarginInlineEnd:le.marginXS,itemMarginBottom:le.marginLG,verticalLabelPadding:`0 0 ${le.paddingXS}px`,verticalLabelMargin:0}),D=(le,st)=>(0,w.TS)(le,{formItemCls:`${le.componentCls}-item`,rootPrefixCls:st});var se=(0,Y.I$)("Form",(le,st)=>{let{rootPrefixCls:Mt}=st;const Dt=D(le,Mt);return[tt(Dt),ke(Dt),te(Dt),Ce(Dt),it(Dt),he(Dt),(0,o.Z)(Dt),me.kr]},_,{order:-1e3}),Le=i(35792);const Ge=[];function Rt(le,st,Mt){let Dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof le=="string"?le:`${st}-${Dt}`,error:le,errorStatus:Mt}}var St=le=>{let{help:st,helpStatus:Mt,errors:Dt=Ge,warnings:on=Ge,className:un,fieldId:Nn,onVisibleChanged:kn}=le;const{prefixCls:er}=S.useContext(R.Rk),br=`${er}-item-explain`,Sr=(0,Le.Z)(er),[fr,Kr,ur]=se(er,Sr),Pr=(0,S.useMemo)(()=>(0,M.Z)(er),[er]),zr=A(Dt),ra=A(on),Wr=S.useMemo(()=>st!=null?[Rt(st,"help",Mt)]:[].concat((0,s.Z)(zr.map((wr,gr)=>Rt(wr,"error","error",gr))),(0,s.Z)(ra.map((wr,gr)=>Rt(wr,"warning","warning",gr)))),[st,Mt,zr,ra]),sr={};return Nn&&(sr.id=`${Nn}_help`),fr(S.createElement(I.ZP,{motionDeadline:Pr.motionDeadline,motionName:`${er}-show-help`,visible:!!Wr.length,onVisibleChanged:kn},wr=>{const{className:gr,style:Er}=wr;return S.createElement("div",Object.assign({},sr,{className:x()(br,gr,ur,Sr,un,Kr),style:Er,role:"alert"}),S.createElement(I.V4,Object.assign({keys:Wr},(0,M.Z)(er),{motionName:`${er}-show-help-item`,component:!1}),Gr=>{const{key:oa,error:aa,errorStatus:wa,className:Ca,style:ha}=Gr;return S.createElement("div",{key:oa,className:x()(Ca,{[`${br}-${wa}`]:wa}),style:ha},aa)}))}))},Ct=i(43589),Wt=i(53124),Ft=i(98866),an=i(98675),bt=i(97647);const Et=le=>typeof le=="object"&&le!=null&&le.nodeType===1,Pt=(le,st)=>(!st||le!=="hidden")&&le!=="visible"&&le!=="clip",Se=(le,st)=>{if(le.clientHeight{const on=(un=>{if(!un.ownerDocument||!un.ownerDocument.defaultView)return null;try{return un.ownerDocument.defaultView.frameElement}catch(Nn){return null}})(Dt);return!!on&&(on.clientHeightunst||un>le&&Nn=st&&kn>=Mt?un-le-Dt:Nn>st&&knMt?Nn-st+on:0,Qe=le=>{const st=le.parentElement;return st==null?le.getRootNode().host||null:st},Ae=(le,st)=>{var Mt,Dt,on,un;if(typeof document=="undefined")return[];const{scrollMode:Nn,block:kn,inline:er,boundary:br,skipOverflowHiddenElements:Sr}=st,fr=typeof br=="function"?br:la=>la!==br;if(!Et(le))throw new TypeError("Invalid target");const Kr=document.scrollingElement||document.documentElement,ur=[];let Pr=le;for(;Et(Pr)&&fr(Pr);){if(Pr=Qe(Pr),Pr===Kr){ur.push(Pr);break}Pr!=null&&Pr===document.body&&Se(Pr)&&!Se(document.documentElement)||Pr!=null&&Se(Pr,Sr)&&ur.push(Pr)}const zr=(Dt=(Mt=window.visualViewport)==null?void 0:Mt.width)!=null?Dt:innerWidth,ra=(un=(on=window.visualViewport)==null?void 0:on.height)!=null?un:innerHeight,{scrollX:Wr,scrollY:sr}=window,{height:wr,width:gr,top:Er,right:Gr,bottom:oa,left:aa}=le.getBoundingClientRect(),{top:wa,right:Ca,bottom:ha,left:Ea}=(la=>{const $r=window.getComputedStyle(la);return{top:parseFloat($r.scrollMarginTop)||0,right:parseFloat($r.scrollMarginRight)||0,bottom:parseFloat($r.scrollMarginBottom)||0,left:parseFloat($r.scrollMarginLeft)||0}})(le);let ia=kn==="start"||kn==="nearest"?Er-wa:kn==="end"?oa+ha:Er+wr/2-wa+ha,Zr=er==="center"?aa+gr/2-Ea+Ca:er==="end"?Gr+Ca:aa-Ea;const pa=[];for(let la=0;la=0&&aa>=0&&oa<=ra&&Gr<=zr&&Er>=Ma&&oa<=Ta&&aa>=Ua&&Gr<=$a)return pa;const Ya=getComputedStyle($r),Ga=parseInt(Ya.borderLeftWidth,10),ba=parseInt(Ya.borderTopWidth,10),Lr=parseInt(Ya.borderRightWidth,10),da=parseInt(Ya.borderBottomWidth,10);let re=0,Fe=0;const gt="offsetWidth"in $r?$r.offsetWidth-$r.clientWidth-Ga-Lr:0,On="offsetHeight"in $r?$r.offsetHeight-$r.clientHeight-ba-da:0,pr="offsetWidth"in $r?$r.offsetWidth===0?0:Ra/$r.offsetWidth:0,Rr="offsetHeight"in $r?$r.offsetHeight===0?0:xa/$r.offsetHeight:0;if(Kr===$r)re=kn==="start"?ia:kn==="end"?ia-ra:kn==="nearest"?ze(sr,sr+ra,ra,ba,da,sr+ia,sr+ia+wr,wr):ia-ra/2,Fe=er==="start"?Zr:er==="center"?Zr-zr/2:er==="end"?Zr-zr:ze(Wr,Wr+zr,zr,Ga,Lr,Wr+Zr,Wr+Zr+gr,gr),re=Math.max(0,re+sr),Fe=Math.max(0,Fe+Wr);else{re=kn==="start"?ia-Ma-ba:kn==="end"?ia-Ta+da+On:kn==="nearest"?ze(Ma,Ta,xa,ba,da+On,ia,ia+wr,wr):ia-(Ma+xa/2)+On/2,Fe=er==="start"?Zr-Ua-Ga:er==="center"?Zr-(Ua+Ra/2)+gt/2:er==="end"?Zr-$a+Lr+gt:ze(Ua,$a,Ra,Ga,Lr+gt,Zr,Zr+gr,gr);const{scrollLeft:vr,scrollTop:yr}=$r;re=Rr===0?0:Math.max(0,Math.min(yr+re/Rr,$r.scrollHeight-xa/Rr+On)),Fe=pr===0?0:Math.max(0,Math.min(vr+Fe/pr,$r.scrollWidth-Ra/pr+gt)),ia+=yr-re,Zr+=vr-Fe}pa.push({el:$r,top:re,left:Fe})}return pa},Pe=le=>le===!1?{block:"end",inline:"nearest"}:(st=>st===Object(st)&&Object.keys(st).length!==0)(le)?le:{block:"start",inline:"nearest"};function be(le,st){if(!le.isConnected||!(on=>{let un=on;for(;un&&un.parentNode;){if(un.parentNode===document)return!0;un=un.parentNode instanceof ShadowRoot?un.parentNode.host:un.parentNode}return!1})(le))return;const Mt=(on=>{const un=window.getComputedStyle(on);return{top:parseFloat(un.scrollMarginTop)||0,right:parseFloat(un.scrollMarginRight)||0,bottom:parseFloat(un.scrollMarginBottom)||0,left:parseFloat(un.scrollMarginLeft)||0}})(le);if((on=>typeof on=="object"&&typeof on.behavior=="function")(st))return st.behavior(Ae(le,st));const Dt=typeof st=="boolean"||st==null?void 0:st.behavior;for(const{el:on,top:un,left:Nn}of Ae(le,Pe(st))){const kn=un-Mt.top+Mt.bottom,er=Nn-Mt.left+Mt.right;on.scroll({top:kn,left:er,behavior:Dt})}}const Ee=["parentNode"],ut="form_item";function We(le){return le===void 0||le===!1?[]:Array.isArray(le)?le:[le]}function pt(le,st){if(!le.length)return;const Mt=le.join("_");return st?`${st}_${Mt}`:Ee.includes(Mt)?`${ut}_${Mt}`:Mt}function Ie(le,st,Mt,Dt,on,un){let Nn=Dt;return un!==void 0?Nn=un:Mt.validating?Nn="validating":le.length?Nn="error":st.length?Nn="warning":(Mt.touched||on&&Mt.validated)&&(Nn="success"),Nn}function X(le){return We(le).join("_")}function nt(le){const[st]=(0,Ct.cI)(),Mt=S.useRef({}),Dt=S.useMemo(()=>le!=null?le:Object.assign(Object.assign({},st),{__INTERNAL__:{itemRef:on=>un=>{const Nn=X(on);un?Mt.current[Nn]=un:delete Mt.current[Nn]}},scrollToField:function(on){let un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Nn=We(on),kn=pt(Nn,Dt.__INTERNAL__.name),er=kn?document.getElementById(kn):null;er&&be(er,Object.assign({scrollMode:"if-needed",block:"nearest"},un))},getFieldInstance:on=>{const un=X(on);return Mt.current[un]}}),[le,st]);return[Dt]}var ue=i(37920),Ne=function(le,st){var Mt={};for(var Dt in le)Object.prototype.hasOwnProperty.call(le,Dt)&&st.indexOf(Dt)<0&&(Mt[Dt]=le[Dt]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,Dt=Object.getOwnPropertySymbols(le);on{const Mt=S.useContext(Ft.Z),{getPrefixCls:Dt,direction:on,form:un}=S.useContext(Wt.E_),{prefixCls:Nn,className:kn,rootClassName:er,size:br,disabled:Sr=Mt,form:fr,colon:Kr,labelAlign:ur,labelWrap:Pr,labelCol:zr,wrapperCol:ra,hideRequiredMark:Wr,layout:sr="horizontal",scrollToFirstError:wr,requiredMark:gr,onFinishFailed:Er,name:Gr,style:oa,feedbackIcons:aa,variant:wa}=le,Ca=Ne(le,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),ha=(0,an.Z)(br),Ea=S.useContext(ue.Z),ia=(0,S.useMemo)(()=>gr!==void 0?gr:Wr?!1:un&&un.requiredMark!==void 0?un.requiredMark:!0,[Wr,gr,un]),Zr=Kr!=null?Kr:un==null?void 0:un.colon,pa=Dt("form",Nn),la=(0,Le.Z)(pa),[$r,xa,Ra]=se(pa,la),Ma=x()(pa,`${pa}-${sr}`,{[`${pa}-hide-required-mark`]:ia===!1,[`${pa}-rtl`]:on==="rtl",[`${pa}-${ha}`]:ha},Ra,la,xa,un==null?void 0:un.className,kn,er),[$a]=nt(fr),{__INTERNAL__:Ta}=$a;Ta.name=Gr;const Ua=(0,S.useMemo)(()=>({name:Gr,labelAlign:ur,labelCol:zr,labelWrap:Pr,wrapperCol:ra,vertical:sr==="vertical",colon:Zr,requiredMark:ia,itemRef:Ta.itemRef,form:$a,feedbackIcons:aa}),[Gr,ur,zr,ra,sr,Zr,ia,$a,aa]);S.useImperativeHandle(st,()=>$a);const Ya=(ba,Lr)=>{if(ba){let da={block:"nearest"};typeof ba=="object"&&(da=ba),$a.scrollToField(Lr,da)}},Ga=ba=>{if(Er==null||Er(ba),ba.errorFields.length){const Lr=ba.errorFields[0].name;if(wr!==void 0){Ya(wr,Lr);return}un&&un.scrollToFirstError!==void 0&&Ya(un.scrollToFirstError,Lr)}};return $r(S.createElement(R.pg.Provider,{value:wa},S.createElement(Ft.n,{disabled:Sr},S.createElement(bt.Z.Provider,{value:ha},S.createElement(R.RV,{validateMessages:Ea},S.createElement(R.q3.Provider,{value:Ua},S.createElement(Ct.ZP,Object.assign({id:Gr},Ca,{name:Gr,onFinishFailed:Ga,form:$a,style:Object.assign(Object.assign({},un==null?void 0:un.style),oa),className:Ma}))))))))};var _e=S.forwardRef(Oe),rt=i(30470),Ze=i(42550),xt=i(96159),$e=i(27288),mt=i(50344);function jt(le){if(typeof le=="function")return le;const st=(0,mt.Z)(le);return st.length<=1?st[0]:st}const kt=()=>{const{status:le,errors:st=[],warnings:Mt=[]}=(0,S.useContext)(R.aM);return{status:le,errors:st,warnings:Mt}};kt.Context=R.aM;var At=kt,wt=i(75164);function Gt(le){const[st,Mt]=S.useState(le),Dt=(0,S.useRef)(null),on=(0,S.useRef)([]),un=(0,S.useRef)(!1);S.useEffect(()=>(un.current=!1,()=>{un.current=!0,wt.Z.cancel(Dt.current),Dt.current=null}),[]);function Nn(kn){un.current||(Dt.current===null&&(on.current=[],Dt.current=(0,wt.Z)(()=>{Dt.current=null,Mt(er=>{let br=er;return on.current.forEach(Sr=>{br=Sr(br)}),br})})),on.current.push(kn))}return[st,Nn]}function cn(){const{itemRef:le}=S.useContext(R.q3),st=S.useRef({});function Mt(Dt,on){const un=on&&typeof on=="object"&&on.ref,Nn=Dt.join("_");return(st.current.name!==Nn||st.current.originRef!==un)&&(st.current.name=Nn,st.current.originRef=un,st.current.ref=(0,Ze.sQ)(le(Dt),un)),st.current.ref}return Mt}var j=i(5110),ie=i(8410),ce=i(98423),T=i(92820),G=i(21584);const ve=le=>{const{formItemCls:st}=le;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${st}-control`]:{display:"flex"}}}};var Re=(0,Y.bk)(["Form","item-item"],(le,st)=>{let{rootPrefixCls:Mt}=st;const Dt=D(le,Mt);return[ve(Dt)]}),$t=le=>{const{prefixCls:st,status:Mt,wrapperCol:Dt,children:on,errors:un,warnings:Nn,_internalItemRender:kn,extra:er,help:br,fieldId:Sr,marginBottom:fr,onErrorVisibleChanged:Kr}=le,ur=`${st}-item`,Pr=S.useContext(R.q3),zr=Dt||Pr.wrapperCol||{},ra=x()(`${ur}-control`,zr.className),Wr=S.useMemo(()=>Object.assign({},Pr),[Pr]);delete Wr.labelCol,delete Wr.wrapperCol;const sr=S.createElement("div",{className:`${ur}-control-input`},S.createElement("div",{className:`${ur}-control-input-content`},on)),wr=S.useMemo(()=>({prefixCls:st,status:Mt}),[st,Mt]),gr=fr!==null||un.length||Nn.length?S.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},S.createElement(R.Rk.Provider,{value:wr},S.createElement(St,{fieldId:Sr,errors:un,warnings:Nn,help:br,helpStatus:Mt,className:`${ur}-explain-connected`,onVisibleChanged:Kr})),!!fr&&S.createElement("div",{style:{width:0,height:fr}})):null,Er={};Sr&&(Er.id=`${Sr}_extra`);const Gr=er?S.createElement("div",Object.assign({},Er,{className:`${ur}-extra`}),er):null,oa=kn&&kn.mark==="pro_table_render"&&kn.render?kn.render(le,{input:sr,errorList:gr,extra:Gr}):S.createElement(S.Fragment,null,sr,gr,Gr);return S.createElement(R.q3.Provider,{value:Wr},S.createElement(G.Z,Object.assign({},zr,{className:ra}),oa),S.createElement(Re,{prefixCls:st}))},lt=i(87462),yt=i(36688),dt=i(93771),Nt=function(st,Mt){return S.createElement(dt.Z,(0,lt.Z)({},st,{ref:Mt,icon:yt.Z}))},Xt=S.forwardRef(Nt),zt=Xt,Ut=i(24457),dn=i(10110),wn=i(83062),Vt=function(le,st){var Mt={};for(var Dt in le)Object.prototype.hasOwnProperty.call(le,Dt)&&st.indexOf(Dt)<0&&(Mt[Dt]=le[Dt]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,Dt=Object.getOwnPropertySymbols(le);on{let{prefixCls:st,label:Mt,htmlFor:Dt,labelCol:on,labelAlign:un,colon:Nn,required:kn,requiredMark:er,tooltip:br}=le;var Sr;const[fr]=(0,dn.Z)("Form"),{vertical:Kr,labelAlign:ur,labelCol:Pr,labelWrap:zr,colon:ra}=S.useContext(R.q3);if(!Mt)return null;const Wr=on||Pr||{},sr=un||ur,wr=`${st}-item-label`,gr=x()(wr,sr==="left"&&`${wr}-left`,Wr.className,{[`${wr}-wrap`]:!!zr});let Er=Mt;const Gr=Nn===!0||ra!==!1&&Nn!==!1;Gr&&!Kr&&typeof Mt=="string"&&Mt.trim()!==""&&(Er=Mt.replace(/[:|:]\s*$/,""));const aa=Jt(br);if(aa){const{icon:Ea=S.createElement(zt,null)}=aa,ia=Vt(aa,["icon"]),Zr=S.createElement(wn.Z,Object.assign({},ia),S.cloneElement(Ea,{className:`${st}-item-tooltip`,title:"",onClick:pa=>{pa.preventDefault()},tabIndex:null}));Er=S.createElement(S.Fragment,null,Er,Zr)}const wa=er==="optional",Ca=typeof er=="function";Ca?Er=er(Er,{required:!!kn}):wa&&!kn&&(Er=S.createElement(S.Fragment,null,Er,S.createElement("span",{className:`${st}-item-optional`,title:""},(fr==null?void 0:fr.optional)||((Sr=Ut.Z.Form)===null||Sr===void 0?void 0:Sr.optional))));const ha=x()({[`${st}-item-required`]:kn,[`${st}-item-required-mark-optional`]:wa||Ca,[`${st}-item-no-colon`]:!Gr});return S.createElement(G.Z,Object.assign({},Wr,{className:gr}),S.createElement("label",{htmlFor:Dt,className:ha,title:typeof Mt=="string"?Mt:""},Er))},Xn=i(76278),tr=i(17012),ar=i(26702),An=i(19267);const jn={success:Xn.Z,warning:ar.Z,error:tr.Z,validating:An.Z};function Dn(le){let{children:st,errors:Mt,warnings:Dt,hasFeedback:on,validateStatus:un,prefixCls:Nn,meta:kn,noStyle:er}=le;const br=`${Nn}-item`,{feedbackIcons:Sr}=S.useContext(R.q3),fr=Ie(Mt,Dt,kn,null,!!on,un),{isFormItemInput:Kr,status:ur,hasFeedback:Pr,feedbackIcon:zr}=S.useContext(R.aM),ra=S.useMemo(()=>{var Wr;let sr;if(on){const gr=on!==!0&&on.icons||Sr,Er=fr&&((Wr=gr==null?void 0:gr({status:fr,errors:Mt,warnings:Dt}))===null||Wr===void 0?void 0:Wr[fr]),Gr=fr&&jn[fr];sr=Er!==!1&&Gr?S.createElement("span",{className:x()(`${br}-feedback-icon`,`${br}-feedback-icon-${fr}`)},Er||S.createElement(Gr,null)):null}const wr={status:fr||"",errors:Mt,warnings:Dt,hasFeedback:!!on,feedbackIcon:sr,isFormItemInput:!0};return er&&(wr.status=(fr!=null?fr:ur)||"",wr.isFormItemInput=Kr,wr.hasFeedback=!!(on!=null?on:Pr),wr.feedbackIcon=on!==void 0?wr.feedbackIcon:zr),wr},[fr,on,er,Kr,ur]);return S.createElement(R.aM.Provider,{value:ra},st)}var Un=function(le,st){var Mt={};for(var Dt in le)Object.prototype.hasOwnProperty.call(le,Dt)&&st.indexOf(Dt)<0&&(Mt[Dt]=le[Dt]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,Dt=Object.getOwnPropertySymbols(le);on{if(aa&&gr.current){const la=getComputedStyle(gr.current);ha(parseInt(la.marginBottom,10))}},[aa,wa]);const Ea=la=>{la||ha(null)},Zr=function(){let la=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const $r=la?Er:br.errors,xa=la?Gr:br.warnings;return Ie($r,xa,br,"",!!Sr,er)}(),pa=x()(sr,Mt,Dt,{[`${sr}-with-help`]:oa||Er.length||Gr.length,[`${sr}-has-feedback`]:Zr&&Sr,[`${sr}-has-success`]:Zr==="success",[`${sr}-has-warning`]:Zr==="warning",[`${sr}-has-error`]:Zr==="error",[`${sr}-is-validating`]:Zr==="validating",[`${sr}-hidden`]:fr});return S.createElement("div",{className:pa,style:on,ref:gr},S.createElement(T.Z,Object.assign({className:`${sr}-row`},(0,ce.Z)(Wr,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),S.createElement(tn,Object.assign({htmlFor:ur},le,{requiredMark:wr,required:Pr!=null?Pr:zr,prefixCls:st})),S.createElement($t,Object.assign({},le,br,{errors:Er,warnings:Gr,prefixCls:st,status:Zr,help:un,marginBottom:Ca,onErrorVisibleChanged:Ea}),S.createElement(R.qI.Provider,{value:ra},S.createElement(Dn,{prefixCls:st,meta:br,errors:br.errors,warnings:br.warnings,hasFeedback:Sr,validateStatus:Zr},Kr)))),!!Ca&&S.createElement("div",{className:`${sr}-margin-offset`,style:{marginBottom:-Ca}}))}const mr="__SPLIT__",_n=null;function Tn(le,st){const Mt=Object.keys(le),Dt=Object.keys(st);return Mt.length===Dt.length&&Mt.every(on=>{const un=le[on],Nn=st[on];return un===Nn||typeof un=="function"||typeof Nn=="function"})}const Mn=S.memo(le=>{let{children:st}=le;return st},(le,st)=>Tn(le.control,st.control)&&le.update===st.update&&le.childProps.length===st.childProps.length&&le.childProps.every((Mt,Dt)=>Mt===st.childProps[Dt]));function qn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function gn(le){const{name:st,noStyle:Mt,className:Dt,dependencies:on,prefixCls:un,shouldUpdate:Nn,rules:kn,children:er,required:br,label:Sr,messageVariables:fr,trigger:Kr="onChange",validateTrigger:ur,hidden:Pr,help:zr}=le,{getPrefixCls:ra}=S.useContext(Wt.E_),{name:Wr}=S.useContext(R.q3),sr=jt(er),wr=typeof sr=="function",gr=S.useContext(R.qI),{validateTrigger:Er}=S.useContext(Ct.zb),Gr=ur!==void 0?ur:Er,oa=st!=null,aa=ra("form",un),wa=(0,Le.Z)(aa),[Ca,ha,Ea]=se(aa,wa),ia=(0,$e.ln)("Form.Item"),Zr=S.useContext(Ct.ZM),pa=S.useRef(),[la,$r]=Gt({}),[xa,Ra]=(0,rt.Z)(()=>qn()),Ma=Lr=>{const da=Zr==null?void 0:Zr.getKey(Lr.name);if(Ra(Lr.destroy?qn():Lr,!0),Mt&&zr!==!1&&gr){let re=Lr.name;if(Lr.destroy)re=pa.current||re;else if(da!==void 0){const[Fe,gt]=da;re=[Fe].concat((0,s.Z)(gt)),pa.current=re}gr(Lr,re)}},$a=(Lr,da)=>{$r(re=>{const Fe=Object.assign({},re),On=[].concat((0,s.Z)(Lr.name.slice(0,-1)),(0,s.Z)(da)).join(mr);return Lr.destroy?delete Fe[On]:Fe[On]=Lr,Fe})},[Ta,Ua]=S.useMemo(()=>{const Lr=(0,s.Z)(xa.errors),da=(0,s.Z)(xa.warnings);return Object.values(la).forEach(re=>{Lr.push.apply(Lr,(0,s.Z)(re.errors||[])),da.push.apply(da,(0,s.Z)(re.warnings||[]))}),[Lr,da]},[la,xa.errors,xa.warnings]),Ya=cn();function Ga(Lr,da,re){return Mt&&!Pr?S.createElement(Dn,{prefixCls:aa,hasFeedback:le.hasFeedback,validateStatus:le.validateStatus,meta:xa,errors:Ta,warnings:Ua,noStyle:!0},Lr):S.createElement(lr,Object.assign({key:"row"},le,{className:x()(Dt,Ea,wa,ha),prefixCls:aa,fieldId:da,isRequired:re,errors:Ta,warnings:Ua,meta:xa,onSubItemMetaChange:$a}),Lr)}if(!oa&&!wr&&!on)return Ca(Ga(sr));let ba={};return typeof Sr=="string"?ba.label=Sr:st&&(ba.label=String(st)),fr&&(ba=Object.assign(Object.assign({},ba),fr)),Ca(S.createElement(Ct.gN,Object.assign({},le,{messageVariables:ba,trigger:Kr,validateTrigger:Gr,onMetaChange:Ma}),(Lr,da,re)=>{const Fe=We(st).length&&da?da.name:[],gt=pt(Fe,Wr),On=br!==void 0?br:!!(kn&&kn.some(vr=>{if(vr&&typeof vr=="object"&&vr.required&&!vr.warningOnly)return!0;if(typeof vr=="function"){const yr=vr(re);return yr&&yr.required&&!yr.warningOnly}return!1})),pr=Object.assign({},Lr);let Rr=null;if(Array.isArray(sr)&&oa)Rr=sr;else if(!(wr&&(!(Nn||on)||oa))){if(!(on&&!wr&&!oa))if(S.isValidElement(sr)){const vr=Object.assign(Object.assign({},sr.props),pr);if(vr.id||(vr.id=gt),zr||Ta.length>0||Ua.length>0||le.extra){const ma=[];(zr||Ta.length>0)&&ma.push(`${gt}_help`),le.extra&&ma.push(`${gt}_extra`),vr["aria-describedby"]=ma.join(" ")}Ta.length>0&&(vr["aria-invalid"]="true"),On&&(vr["aria-required"]="true"),(0,Ze.Yr)(sr)&&(vr.ref=Ya(Fe,sr)),new Set([].concat((0,s.Z)(We(Kr)),(0,s.Z)(We(Gr)))).forEach(ma=>{vr[ma]=function(){for(var Ia,io,uo,So,fo,Ki=arguments.length,Ci=new Array(Ki),Qo=0;Qo{var{prefixCls:st,children:Mt}=le,Dt=ca(le,["prefixCls","children"]);const{getPrefixCls:on}=S.useContext(Wt.E_),un=on("form",st),Nn=S.useMemo(()=>({prefixCls:un,status:"error"}),[un]);return S.createElement(Ct.aV,Object.assign({},Dt),(kn,er,br)=>S.createElement(R.Rk.Provider,{value:Nn},Mt(kn.map(Sr=>Object.assign(Object.assign({},Sr),{fieldKey:Sr.key})),er,{errors:br.errors,warnings:br.warnings})))};function cr(){const{form:le}=(0,S.useContext)(R.q3);return le}const nr=_e;nr.Item=dr,nr.List=Tr,nr.ErrorList=St,nr.useForm=nt,nr.useFormInstance=cr,nr.useWatch=Ct.qo,nr.Provider=R.RV,nr.create=()=>{};var na=nr},82586:function(F,k,i){"use strict";i.d(k,{Z:function(){return Ce},n:function(){return tt}});var s=i(67294),y=i(93967),x=i.n(y),I=i(67656),S=i(42550),M=i(78290),R=i(9708),A=i(53124),V=i(98866),q=i(35792),me=i(98675),o=i(65223),w=i(27833),Y=i(4173),H=i(72922),te=i(47673);function we(it){return!!(it.prefix||it.suffix||it.allowClear||it.showCount)}var Xe=function(it,ft){var pe={};for(var he in it)Object.prototype.hasOwnProperty.call(it,he)&&ft.indexOf(he)<0&&(pe[he]=it[he]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,he=Object.getOwnPropertySymbols(it);_{var pe;const{prefixCls:he,bordered:_=!0,status:D,size:se,disabled:Le,onBlur:Ge,onFocus:Rt,suffix:de,allowClear:St,addonAfter:Ct,addonBefore:Wt,className:Ft,style:an,styles:bt,rootClassName:Et,onChange:Pt,classNames:Se,variant:ze}=it,Qe=Xe(it,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ae,direction:Pe,input:be}=s.useContext(A.E_),Ee=Ae("input",he),ut=(0,s.useRef)(null),We=(0,q.Z)(Ee),[pt,Ie,X]=(0,te.ZP)(Ee,We),{compactSize:nt,compactItemClassnames:ue}=(0,Y.ri)(Ee,Pe),Ne=(0,me.Z)(ce=>{var T;return(T=se!=null?se:nt)!==null&&T!==void 0?T:ce}),Oe=s.useContext(V.Z),Je=Le!=null?Le:Oe,{status:_e,hasFeedback:rt,feedbackIcon:Ze}=(0,s.useContext)(o.aM),xt=(0,R.F)(_e,D),$e=we(it)||!!rt,mt=(0,s.useRef)($e),jt=(0,H.Z)(ut,!0),kt=ce=>{jt(),Ge==null||Ge(ce)},At=ce=>{jt(),Rt==null||Rt(ce)},wt=ce=>{jt(),Pt==null||Pt(ce)},Gt=(rt||de)&&s.createElement(s.Fragment,null,de,rt&&Ze),cn=(0,M.Z)(St!=null?St:be==null?void 0:be.allowClear),[j,ie]=(0,w.Z)(ze,_);return pt(s.createElement(I.Z,Object.assign({ref:(0,S.sQ)(ft,ut),prefixCls:Ee,autoComplete:be==null?void 0:be.autoComplete},Qe,{disabled:Je,onBlur:kt,onFocus:At,style:Object.assign(Object.assign({},be==null?void 0:be.style),an),styles:Object.assign(Object.assign({},be==null?void 0:be.styles),bt),suffix:Gt,allowClear:cn,className:x()(Ft,Et,X,We,ue,be==null?void 0:be.className),onChange:wt,addonAfter:Ct&&s.createElement(Y.BR,null,s.createElement(o.Ux,{override:!0,status:!0},Ct)),addonBefore:Wt&&s.createElement(Y.BR,null,s.createElement(o.Ux,{override:!0,status:!0},Wt)),classNames:Object.assign(Object.assign(Object.assign({},Se),be==null?void 0:be.classNames),{input:x()({[`${Ee}-sm`]:Ne==="small",[`${Ee}-lg`]:Ne==="large",[`${Ee}-rtl`]:Pe==="rtl"},Se==null?void 0:Se.input,(pe=be==null?void 0:be.classNames)===null||pe===void 0?void 0:pe.input,Ie),variant:x()({[`${Ee}-${j}`]:ie},(0,R.Z)(Ee,xt)),affixWrapper:x()({[`${Ee}-affix-wrapper-sm`]:Ne==="small",[`${Ee}-affix-wrapper-lg`]:Ne==="large",[`${Ee}-affix-wrapper-rtl`]:Pe==="rtl"},Ie),wrapper:x()({[`${Ee}-group-rtl`]:Pe==="rtl"},Ie),groupWrapper:x()({[`${Ee}-group-wrapper-sm`]:Ne==="small",[`${Ee}-group-wrapper-lg`]:Ne==="large",[`${Ee}-group-wrapper-rtl`]:Pe==="rtl",[`${Ee}-group-wrapper-${j}`]:ie},(0,R.Z)(`${Ee}-group-wrapper`,xt,rt),Ie)})})))})},70006:function(F,k,i){"use strict";i.d(k,{Z:function(){return be}});var s=i(67294),y=i(93967),x=i.n(y),I=i(87462),S=i(4942),M=i(1413),R=i(74902),A=i(97685),V=i(91),q=i(67656),me=i(82234),o=i(87887),w=i(21770),Y=i(71002),H=i(9220),te=i(8410),we=i(75164),Xe=` - min-height:0 !important; - max-height:none !important; - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; - pointer-events: none !important; -`,tt=["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"],ke={},Ce;function it(Ee){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,We=Ee.getAttribute("id")||Ee.getAttribute("data-reactid")||Ee.getAttribute("name");if(ut&&ke[We])return ke[We];var pt=window.getComputedStyle(Ee),Ie=pt.getPropertyValue("box-sizing")||pt.getPropertyValue("-moz-box-sizing")||pt.getPropertyValue("-webkit-box-sizing"),X=parseFloat(pt.getPropertyValue("padding-bottom"))+parseFloat(pt.getPropertyValue("padding-top")),nt=parseFloat(pt.getPropertyValue("border-bottom-width"))+parseFloat(pt.getPropertyValue("border-top-width")),ue=tt.map(function(Oe){return"".concat(Oe,":").concat(pt.getPropertyValue(Oe))}).join(";"),Ne={sizingStyle:ue,paddingSize:X,borderSize:nt,boxSizing:Ie};return ut&&We&&(ke[We]=Ne),Ne}function ft(Ee){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ce||(Ce=document.createElement("textarea"),Ce.setAttribute("tab-index","-1"),Ce.setAttribute("aria-hidden","true"),document.body.appendChild(Ce)),Ee.getAttribute("wrap")?Ce.setAttribute("wrap",Ee.getAttribute("wrap")):Ce.removeAttribute("wrap");var Ie=it(Ee,ut),X=Ie.paddingSize,nt=Ie.borderSize,ue=Ie.boxSizing,Ne=Ie.sizingStyle;Ce.setAttribute("style","".concat(Ne,";").concat(Xe)),Ce.value=Ee.value||Ee.placeholder||"";var Oe=void 0,Je=void 0,_e,rt=Ce.scrollHeight;if(ue==="border-box"?rt+=nt:ue==="content-box"&&(rt-=X),We!==null||pt!==null){Ce.value=" ";var Ze=Ce.scrollHeight-X;We!==null&&(Oe=Ze*We,ue==="border-box"&&(Oe=Oe+X+nt),rt=Math.max(Oe,rt)),pt!==null&&(Je=Ze*pt,ue==="border-box"&&(Je=Je+X+nt),_e=rt>Je?"":"hidden",rt=Math.min(Je,rt))}var xt={height:rt,overflowY:_e,resize:"none"};return Oe&&(xt.minHeight=Oe),Je&&(xt.maxHeight=Je),xt}var pe=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],he=0,_=1,D=2,se=s.forwardRef(function(Ee,ut){var We=Ee,pt=We.prefixCls,Ie=We.onPressEnter,X=We.defaultValue,nt=We.value,ue=We.autoSize,Ne=We.onResize,Oe=We.className,Je=We.style,_e=We.disabled,rt=We.onChange,Ze=We.onInternalAutoSize,xt=(0,V.Z)(We,pe),$e=(0,w.Z)(X,{value:nt,postState:function(Jt){return Jt!=null?Jt:""}}),mt=(0,A.Z)($e,2),jt=mt[0],kt=mt[1],At=function(Jt){kt(Jt.target.value),rt==null||rt(Jt)},wt=s.useRef();s.useImperativeHandle(ut,function(){return{textArea:wt.current}});var Gt=s.useMemo(function(){return ue&&(0,Y.Z)(ue)==="object"?[ue.minRows,ue.maxRows]:[]},[ue]),cn=(0,A.Z)(Gt,2),j=cn[0],ie=cn[1],ce=!!ue,T=function(){try{if(document.activeElement===wt.current){var Jt=wt.current,ln=Jt.selectionStart,tn=Jt.selectionEnd,Xn=Jt.scrollTop;wt.current.setSelectionRange(ln,tn),wt.current.scrollTop=Xn}}catch(tr){}},G=s.useState(D),ve=(0,A.Z)(G,2),Re=ve[0],Me=ve[1],$t=s.useState(),lt=(0,A.Z)($t,2),yt=lt[0],dt=lt[1],Nt=function(){Me(he)};(0,te.Z)(function(){ce&&Nt()},[nt,j,ie,ce]),(0,te.Z)(function(){if(Re===he)Me(_);else if(Re===_){var Vt=ft(wt.current,!1,j,ie);Me(D),dt(Vt)}else T()},[Re]);var Xt=s.useRef(),zt=function(){we.Z.cancel(Xt.current)},Ut=function(Jt){Re===D&&(Ne==null||Ne(Jt),ue&&(zt(),Xt.current=(0,we.Z)(function(){Nt()})))};s.useEffect(function(){return zt},[]);var dn=ce?yt:null,wn=(0,M.Z)((0,M.Z)({},Je),dn);return(Re===he||Re===_)&&(wn.overflowY="hidden",wn.overflowX="hidden"),s.createElement(H.Z,{onResize:Ut,disabled:!(ue||Ne)},s.createElement("textarea",(0,I.Z)({},xt,{ref:wt,style:wn,className:x()(pt,Oe,(0,S.Z)({},"".concat(pt,"-disabled"),_e)),disabled:_e,value:jt,onChange:At})))}),Le=se,Ge=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Rt=s.forwardRef(function(Ee,ut){var We,pt,Ie=Ee.defaultValue,X=Ee.value,nt=Ee.onFocus,ue=Ee.onBlur,Ne=Ee.onChange,Oe=Ee.allowClear,Je=Ee.maxLength,_e=Ee.onCompositionStart,rt=Ee.onCompositionEnd,Ze=Ee.suffix,xt=Ee.prefixCls,$e=xt===void 0?"rc-textarea":xt,mt=Ee.showCount,jt=Ee.count,kt=Ee.className,At=Ee.style,wt=Ee.disabled,Gt=Ee.hidden,cn=Ee.classNames,j=Ee.styles,ie=Ee.onResize,ce=(0,V.Z)(Ee,Ge),T=(0,w.Z)(Ie,{value:X,defaultValue:Ie}),G=(0,A.Z)(T,2),ve=G[0],Re=G[1],Me=ve==null?"":String(ve),$t=s.useState(!1),lt=(0,A.Z)($t,2),yt=lt[0],dt=lt[1],Nt=s.useRef(!1),Xt=s.useState(null),zt=(0,A.Z)(Xt,2),Ut=zt[0],dn=zt[1],wn=(0,s.useRef)(null),Vt=function(){var nr;return(nr=wn.current)===null||nr===void 0?void 0:nr.textArea},Jt=function(){Vt().focus()};(0,s.useImperativeHandle)(ut,function(){return{resizableTextArea:wn.current,focus:Jt,blur:function(){Vt().blur()}}}),(0,s.useEffect)(function(){dt(function(cr){return!wt&&cr})},[wt]);var ln=s.useState(null),tn=(0,A.Z)(ln,2),Xn=tn[0],tr=tn[1];s.useEffect(function(){if(Xn){var cr;(cr=Vt()).setSelectionRange.apply(cr,(0,R.Z)(Xn))}},[Xn]);var ar=(0,me.Z)(jt,mt),An=(We=ar.max)!==null&&We!==void 0?We:Je,jn=Number(An)>0,Dn=ar.strategy(Me),Un=!!An&&Dn>An,lr=function(nr,na){var le=na;!Nt.current&&ar.exceedFormatter&&ar.max&&ar.strategy(na)>ar.max&&(le=ar.exceedFormatter(na,{max:ar.max}),na!==le&&tr([Vt().selectionStart||0,Vt().selectionEnd||0])),Re(le),(0,o.rJ)(nr.currentTarget,nr,Ne,le)},mr=function(nr){Nt.current=!0,_e==null||_e(nr)},_n=function(nr){Nt.current=!1,lr(nr,nr.currentTarget.value),rt==null||rt(nr)},Tn=function(nr){lr(nr,nr.target.value)},Mn=function(nr){var na=ce.onPressEnter,le=ce.onKeyDown;nr.key==="Enter"&&na&&na(nr),le==null||le(nr)},qn=function(nr){dt(!0),nt==null||nt(nr)},gn=function(nr){dt(!1),ue==null||ue(nr)},bn=function(nr){Re(""),Jt(),(0,o.rJ)(Vt(),nr,Ne)},dr=Ze,ca;ar.show&&(ar.showFormatter?ca=ar.showFormatter({value:Me,count:Dn,maxLength:An}):ca="".concat(Dn).concat(jn?" / ".concat(An):""),dr=s.createElement(s.Fragment,null,dr,s.createElement("span",{className:x()("".concat($e,"-data-count"),cn==null?void 0:cn.count),style:j==null?void 0:j.count},ca)));var ga=function(nr){var na;ie==null||ie(nr),(na=Vt())!==null&&na!==void 0&&na.style.height&&dn(!0)},Tr=!ce.autoSize&&!mt&&!Oe;return s.createElement(q.Q,{value:Me,allowClear:Oe,handleReset:bn,suffix:dr,prefixCls:$e,classNames:(0,M.Z)((0,M.Z)({},cn),{},{affixWrapper:x()(cn==null?void 0:cn.affixWrapper,(pt={},(0,S.Z)(pt,"".concat($e,"-show-count"),mt),(0,S.Z)(pt,"".concat($e,"-textarea-allow-clear"),Oe),pt))}),disabled:wt,focused:yt,className:x()(kt,Un&&"".concat($e,"-out-of-range")),style:(0,M.Z)((0,M.Z)({},At),Ut&&!Tr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ca=="string"?ca:void 0}},hidden:Gt},s.createElement(Le,(0,I.Z)({},ce,{maxLength:Je,onKeyDown:Mn,onChange:Tn,onFocus:qn,onBlur:gn,onCompositionStart:mr,onCompositionEnd:_n,className:x()(cn==null?void 0:cn.textarea),style:(0,M.Z)((0,M.Z)({},j==null?void 0:j.textarea),{},{resize:At==null?void 0:At.resize}),disabled:wt,prefixCls:$e,onResize:ga,ref:wn})))}),de=Rt,St=de,Ct=i(78290),Wt=i(9708),Ft=i(53124),an=i(98866),bt=i(35792),Et=i(98675),Pt=i(65223),Se=i(27833),ze=i(82586),Qe=i(47673),Ae=function(Ee,ut){var We={};for(var pt in Ee)Object.prototype.hasOwnProperty.call(Ee,pt)&&ut.indexOf(pt)<0&&(We[pt]=Ee[pt]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,pt=Object.getOwnPropertySymbols(Ee);Ie{var We,pt;const{prefixCls:Ie,bordered:X=!0,size:nt,disabled:ue,status:Ne,allowClear:Oe,classNames:Je,rootClassName:_e,className:rt,style:Ze,styles:xt,variant:$e}=Ee,mt=Ae(Ee,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:jt,direction:kt,textArea:At}=s.useContext(Ft.E_),wt=(0,Et.Z)(nt),Gt=s.useContext(an.Z),cn=ue!=null?ue:Gt,{status:j,hasFeedback:ie,feedbackIcon:ce}=s.useContext(Pt.aM),T=(0,Wt.F)(j,Ne),G=s.useRef(null);s.useImperativeHandle(ut,()=>{var Xt;return{resizableTextArea:(Xt=G.current)===null||Xt===void 0?void 0:Xt.resizableTextArea,focus:zt=>{var Ut,dn;(0,ze.n)((dn=(Ut=G.current)===null||Ut===void 0?void 0:Ut.resizableTextArea)===null||dn===void 0?void 0:dn.textArea,zt)},blur:()=>{var zt;return(zt=G.current)===null||zt===void 0?void 0:zt.blur()}}});const ve=jt("input",Ie),Re=(0,bt.Z)(ve),[Me,$t,lt]=(0,Qe.ZP)(ve,Re),[yt,dt]=(0,Se.Z)($e,X),Nt=(0,Ct.Z)(Oe!=null?Oe:At==null?void 0:At.allowClear);return Me(s.createElement(St,Object.assign({autoComplete:At==null?void 0:At.autoComplete},mt,{style:Object.assign(Object.assign({},At==null?void 0:At.style),Ze),styles:Object.assign(Object.assign({},At==null?void 0:At.styles),xt),disabled:cn,allowClear:Nt,className:x()(lt,Re,rt,_e,At==null?void 0:At.className),classNames:Object.assign(Object.assign(Object.assign({},Je),At==null?void 0:At.classNames),{textarea:x()({[`${ve}-sm`]:wt==="small",[`${ve}-lg`]:wt==="large"},$t,Je==null?void 0:Je.textarea,(We=At==null?void 0:At.classNames)===null||We===void 0?void 0:We.textarea),variant:x()({[`${ve}-${yt}`]:dt},(0,Wt.Z)(ve,T)),affixWrapper:x()(`${ve}-textarea-affix-wrapper`,{[`${ve}-affix-wrapper-rtl`]:kt==="rtl",[`${ve}-affix-wrapper-sm`]:wt==="small",[`${ve}-affix-wrapper-lg`]:wt==="large",[`${ve}-textarea-show-count`]:Ee.showCount||((pt=Ee.count)===null||pt===void 0?void 0:pt.show)},$t)}),prefixCls:ve,suffix:ie&&s.createElement("span",{className:`${ve}-textarea-suffix`},ce),ref:G})))})},72922:function(F,k,i){"use strict";i.d(k,{Z:function(){return y}});var s=i(67294);function y(x,I){const S=(0,s.useRef)([]),M=()=>{S.current.push(setTimeout(()=>{var R,A,V,q;!((R=x.current)===null||R===void 0)&&R.input&&((A=x.current)===null||A===void 0?void 0:A.input.getAttribute("type"))==="password"&&(!((V=x.current)===null||V===void 0)&&V.input.hasAttribute("value"))&&((q=x.current)===null||q===void 0||q.input.removeAttribute("value"))}))};return(0,s.useEffect)(()=>(I&&M(),()=>S.current.forEach(R=>{R&&clearTimeout(R)})),[]),M}},96365:function(F,k,i){"use strict";i.d(k,{Z:function(){return Wt}});var s=i(67294),y=i(93967),x=i.n(y),I=i(53124),S=i(65223),M=i(47673),A=Ft=>{const{getPrefixCls:an,direction:bt}=(0,s.useContext)(I.E_),{prefixCls:Et,className:Pt}=Ft,Se=an("input-group",Et),ze=an("input"),[Qe,Ae]=(0,M.ZP)(ze),Pe=x()(Se,{[`${Se}-lg`]:Ft.size==="large",[`${Se}-sm`]:Ft.size==="small",[`${Se}-compact`]:Ft.compact,[`${Se}-rtl`]:bt==="rtl"},Ae,Pt),be=(0,s.useContext)(S.aM),Ee=(0,s.useMemo)(()=>Object.assign(Object.assign({},be),{isFormItemInput:!1}),[be]);return Qe(s.createElement("span",{className:Pe,style:Ft.style,onMouseEnter:Ft.onMouseEnter,onMouseLeave:Ft.onMouseLeave,onFocus:Ft.onFocus,onBlur:Ft.onBlur},s.createElement(S.aM.Provider,{value:Ee},Ft.children)))},V=i(82586),q=i(87462),me=i(42003),o=i(93771),w=function(an,bt){return s.createElement(o.Z,(0,q.Z)({},an,{ref:bt,icon:me.Z}))},Y=s.forwardRef(w),H=Y,te=i(1208),we=i(98423),Xe=i(42550),tt=i(72922),ke=function(Ft,an){var bt={};for(var Et in Ft)Object.prototype.hasOwnProperty.call(Ft,Et)&&an.indexOf(Et)<0&&(bt[Et]=Ft[Et]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Et=Object.getOwnPropertySymbols(Ft);PtFt?s.createElement(te.Z,null):s.createElement(H,null),it={click:"onClick",hover:"onMouseOver"};var pe=s.forwardRef((Ft,an)=>{const{visibilityToggle:bt=!0}=Ft,Et=typeof bt=="object"&&bt.visible!==void 0,[Pt,Se]=(0,s.useState)(()=>Et?bt.visible:!1),ze=(0,s.useRef)(null);s.useEffect(()=>{Et&&Se(bt.visible)},[Et,bt]);const Qe=(0,tt.Z)(ze),Ae=()=>{const{disabled:Je}=Ft;Je||(Pt&&Qe(),Se(_e=>{var rt;const Ze=!_e;return typeof bt=="object"&&((rt=bt.onVisibleChange)===null||rt===void 0||rt.call(bt,Ze)),Ze}))},Pe=Je=>{const{action:_e="click",iconRender:rt=Ce}=Ft,Ze=it[_e]||"",xt=rt(Pt),$e={[Ze]:Ae,className:`${Je}-icon`,key:"passwordIcon",onMouseDown:mt=>{mt.preventDefault()},onMouseUp:mt=>{mt.preventDefault()}};return s.cloneElement(s.isValidElement(xt)?xt:s.createElement("span",null,xt),$e)},{className:be,prefixCls:Ee,inputPrefixCls:ut,size:We}=Ft,pt=ke(Ft,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ie}=s.useContext(I.E_),X=Ie("input",ut),nt=Ie("input-password",Ee),ue=bt&&Pe(nt),Ne=x()(nt,be,{[`${nt}-${We}`]:!!We}),Oe=Object.assign(Object.assign({},(0,we.Z)(pt,["suffix","iconRender","visibilityToggle"])),{type:Pt?"text":"password",className:Ne,prefixCls:X,suffix:ue});return We&&(Oe.size=We),s.createElement(V.Z,Object.assign({ref:(0,Xe.sQ)(an,ze)},Oe))}),he=i(25783),_=i(96159),D=i(14726),se=i(98675),Le=i(4173),Ge=function(Ft,an){var bt={};for(var Et in Ft)Object.prototype.hasOwnProperty.call(Ft,Et)&&an.indexOf(Et)<0&&(bt[Et]=Ft[Et]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Et=Object.getOwnPropertySymbols(Ft);Pt{const{prefixCls:bt,inputPrefixCls:Et,className:Pt,size:Se,suffix:ze,enterButton:Qe=!1,addonAfter:Ae,loading:Pe,disabled:be,onSearch:Ee,onChange:ut,onCompositionStart:We,onCompositionEnd:pt}=Ft,Ie=Ge(Ft,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:X,direction:nt}=s.useContext(I.E_),ue=s.useRef(!1),Ne=X("input-search",bt),Oe=X("input",Et),{compactSize:Je}=(0,Le.ri)(Ne,nt),_e=(0,se.Z)(ce=>{var T;return(T=Se!=null?Se:Je)!==null&&T!==void 0?T:ce}),rt=s.useRef(null),Ze=ce=>{ce&&ce.target&&ce.type==="click"&&Ee&&Ee(ce.target.value,ce,{source:"clear"}),ut&&ut(ce)},xt=ce=>{var T;document.activeElement===((T=rt.current)===null||T===void 0?void 0:T.input)&&ce.preventDefault()},$e=ce=>{var T,G;Ee&&Ee((G=(T=rt.current)===null||T===void 0?void 0:T.input)===null||G===void 0?void 0:G.value,ce,{source:"input"})},mt=ce=>{ue.current||Pe||$e(ce)},jt=typeof Qe=="boolean"?s.createElement(he.Z,null):null,kt=`${Ne}-button`;let At;const wt=Qe||{},Gt=wt.type&&wt.type.__ANT_BUTTON===!0;Gt||wt.type==="button"?At=(0,_.Tm)(wt,Object.assign({onMouseDown:xt,onClick:ce=>{var T,G;(G=(T=wt==null?void 0:wt.props)===null||T===void 0?void 0:T.onClick)===null||G===void 0||G.call(T,ce),$e(ce)},key:"enterButton"},Gt?{className:kt,size:_e}:{})):At=s.createElement(D.ZP,{className:kt,type:Qe?"primary":void 0,size:_e,disabled:be,key:"enterButton",onMouseDown:xt,onClick:$e,loading:Pe,icon:jt},Qe),Ae&&(At=[At,(0,_.Tm)(Ae,{key:"addonAfter"})]);const cn=x()(Ne,{[`${Ne}-rtl`]:nt==="rtl",[`${Ne}-${_e}`]:!!_e,[`${Ne}-with-button`]:!!Qe},Pt),j=ce=>{ue.current=!0,We==null||We(ce)},ie=ce=>{ue.current=!1,pt==null||pt(ce)};return s.createElement(V.Z,Object.assign({ref:(0,Xe.sQ)(rt,an),onPressEnter:mt},Ie,{size:_e,onCompositionStart:j,onCompositionEnd:ie,prefixCls:Oe,addonAfter:At,suffix:ze,onChange:Ze,className:cn,disabled:be}))}),St=i(70006);const Ct=V.Z;Ct.Group=A,Ct.Search=de,Ct.TextArea=St.Z,Ct.Password=pe;var Wt=Ct},71194:function(F,k,i){"use strict";i.d(k,{B4:function(){return me},QA:function(){return A},eh:function(){return o}});var s=i(14747),y=i(16932),x=i(50438),I=i(45503),S=i(91945),M=i(87107);function R(w){return{position:w,inset:0}}const A=w=>{const{componentCls:Y,antCls:H}=w;return[{[`${Y}-root`]:{[`${Y}${H}-zoom-enter, ${Y}${H}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:w.motionDurationSlow,userSelect:"none"},[`${Y}${H}-zoom-leave ${Y}-content`]:{pointerEvents:"none"},[`${Y}-mask`]:Object.assign(Object.assign({},R("fixed")),{zIndex:w.zIndexPopupBase,height:"100%",backgroundColor:w.colorBgMask,pointerEvents:"none",[`${Y}-hidden`]:{display:"none"}}),[`${Y}-wrap`]:Object.assign(Object.assign({},R("fixed")),{zIndex:w.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${Y}-root`]:(0,y.J$)(w)}]},V=w=>{const{componentCls:Y}=w;return[{[`${Y}-root`]:{[`${Y}-wrap-rtl`]:{direction:"rtl"},[`${Y}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[Y]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${w.screenSMMax}px)`]:{[Y]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,M.bf)(w.marginXS)} auto`},[`${Y}-centered`]:{[Y]:{flex:1}}}}},{[Y]:Object.assign(Object.assign({},(0,s.Wf)(w)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,M.bf)(w.calc(w.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:w.paddingLG,[`${Y}-title`]:{margin:0,color:w.titleColor,fontWeight:w.fontWeightStrong,fontSize:w.titleFontSize,lineHeight:w.titleLineHeight,wordWrap:"break-word"},[`${Y}-content`]:{position:"relative",backgroundColor:w.contentBg,backgroundClip:"padding-box",border:0,borderRadius:w.borderRadiusLG,boxShadow:w.boxShadow,pointerEvents:"auto",padding:w.contentPadding},[`${Y}-close`]:Object.assign({position:"absolute",top:w.calc(w.modalHeaderHeight).sub(w.modalCloseBtnSize).div(2).equal(),insetInlineEnd:w.calc(w.modalHeaderHeight).sub(w.modalCloseBtnSize).div(2).equal(),zIndex:w.calc(w.zIndexPopupBase).add(10).equal(),padding:0,color:w.modalCloseIconColor,fontWeight:w.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:w.borderRadiusSM,width:w.modalCloseBtnSize,height:w.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${w.motionDurationMid}, background-color ${w.motionDurationMid}`,"&-x":{display:"flex",fontSize:w.fontSizeLG,fontStyle:"normal",lineHeight:`${(0,M.bf)(w.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:w.modalCloseIconHoverColor,backgroundColor:w.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:w.colorBgTextActive}},(0,s.Qy)(w)),[`${Y}-header`]:{color:w.colorText,background:w.headerBg,borderRadius:`${(0,M.bf)(w.borderRadiusLG)} ${(0,M.bf)(w.borderRadiusLG)} 0 0`,marginBottom:w.headerMarginBottom,padding:w.headerPadding,borderBottom:w.headerBorderBottom},[`${Y}-body`]:{fontSize:w.fontSize,lineHeight:w.lineHeight,wordWrap:"break-word",padding:w.bodyPadding},[`${Y}-footer`]:{textAlign:"end",background:w.footerBg,marginTop:w.footerMarginTop,padding:w.footerPadding,borderTop:w.footerBorderTop,borderRadius:w.footerBorderRadius,[`> ${w.antCls}-btn + ${w.antCls}-btn`]:{marginInlineStart:w.marginXS}},[`${Y}-open`]:{overflow:"hidden"}})},{[`${Y}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${Y}-content, - ${Y}-body, - ${Y}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${Y}-confirm-body`]:{marginBottom:"auto"}}}]},q=w=>{const{componentCls:Y}=w;return{[`${Y}-root`]:{[`${Y}-wrap-rtl`]:{direction:"rtl",[`${Y}-confirm-body`]:{direction:"rtl"}}}}},me=w=>{const Y=w.padding,H=w.fontSizeHeading5,te=w.lineHeightHeading5;return(0,I.TS)(w,{modalHeaderHeight:w.calc(w.calc(te).mul(H).equal()).add(w.calc(Y).mul(2).equal()).equal(),modalFooterBorderColorSplit:w.colorSplit,modalFooterBorderStyle:w.lineType,modalFooterBorderWidth:w.lineWidth,modalCloseIconColor:w.colorIcon,modalCloseIconHoverColor:w.colorIconHover,modalCloseBtnSize:w.controlHeight,modalConfirmIconSize:w.fontHeight,modalTitleHeight:w.calc(w.titleFontSize).mul(w.titleLineHeight).equal()})},o=w=>({footerBg:"transparent",headerBg:w.colorBgElevated,titleLineHeight:w.lineHeightHeading5,titleFontSize:w.fontSizeHeading5,contentBg:w.colorBgElevated,titleColor:w.colorTextHeading,contentPadding:w.wireframe?0:`${(0,M.bf)(w.paddingMD)} ${(0,M.bf)(w.paddingContentHorizontalLG)}`,headerPadding:w.wireframe?`${(0,M.bf)(w.padding)} ${(0,M.bf)(w.paddingLG)}`:0,headerBorderBottom:w.wireframe?`${(0,M.bf)(w.lineWidth)} ${w.lineType} ${w.colorSplit}`:"none",headerMarginBottom:w.wireframe?0:w.marginXS,bodyPadding:w.wireframe?w.paddingLG:0,footerPadding:w.wireframe?`${(0,M.bf)(w.paddingXS)} ${(0,M.bf)(w.padding)}`:0,footerBorderTop:w.wireframe?`${(0,M.bf)(w.lineWidth)} ${w.lineType} ${w.colorSplit}`:"none",footerBorderRadius:w.wireframe?`0 0 ${(0,M.bf)(w.borderRadiusLG)} ${(0,M.bf)(w.borderRadiusLG)}`:0,footerMarginTop:w.wireframe?0:w.marginSM,confirmBodyPadding:w.wireframe?`${(0,M.bf)(w.padding*2)} ${(0,M.bf)(w.padding*2)} ${(0,M.bf)(w.paddingLG)}`:0,confirmIconMarginInlineEnd:w.wireframe?w.margin:w.marginSM,confirmBtnsMarginTop:w.wireframe?w.marginLG:w.marginSM});k.ZP=(0,S.I$)("Modal",w=>{const Y=me(w);return[V(Y),q(Y),A(Y),(0,x._y)(Y,"zoom")]},o,{unitless:{titleLineHeight:!0}})},38703:function(F,k,i){"use strict";i.d(k,{Z:function(){return ce}});var s=i(67294),y=i(76278),x=i(64894),I=i(17012),S=i(62208),M=i(93967),R=i.n(M),A=i(98423),V=i(53124),q=i(87462),me=i(1413),o=i(91),w={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Y=function(){var G=(0,s.useRef)([]),ve=(0,s.useRef)(null);return(0,s.useEffect)(function(){var Re=Date.now(),Me=!1;G.current.forEach(function($t){if($t){Me=!0;var lt=$t.style;lt.transitionDuration=".3s, .3s, .3s, .06s",ve.current&&Re-ve.current<100&&(lt.transitionDuration="0s, 0s")}}),Me&&(ve.current=Date.now())}),G.current},H=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],te=function(G){var ve=(0,me.Z)((0,me.Z)({},w),G),Re=ve.className,Me=ve.percent,$t=ve.prefixCls,lt=ve.strokeColor,yt=ve.strokeLinecap,dt=ve.strokeWidth,Nt=ve.style,Xt=ve.trailColor,zt=ve.trailWidth,Ut=ve.transition,dn=(0,o.Z)(ve,H);delete dn.gapPosition;var wn=Array.isArray(Me)?Me:[Me],Vt=Array.isArray(lt)?lt:[lt],Jt=Y(),ln=dt/2,tn=100-dt/2,Xn="M ".concat(yt==="round"?ln:0,",").concat(ln,` - L `).concat(yt==="round"?tn:100,",").concat(ln),tr="0 0 100 ".concat(dt),ar=0;return s.createElement("svg",(0,q.Z)({className:R()("".concat($t,"-line"),Re),viewBox:tr,preserveAspectRatio:"none",style:Nt},dn),s.createElement("path",{className:"".concat($t,"-line-trail"),d:Xn,strokeLinecap:yt,stroke:Xt,strokeWidth:zt||dt,fillOpacity:"0"}),wn.map(function(An,jn){var Dn=1;switch(yt){case"round":Dn=1-dt/100;break;case"square":Dn=1-dt/2/100;break;default:Dn=1;break}var Un={strokeDasharray:"".concat(An*Dn,"px, 100px"),strokeDashoffset:"-".concat(ar,"px"),transition:Ut||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},lr=Vt[jn]||Vt[Vt.length-1];return ar+=An,s.createElement("path",{key:jn,className:"".concat($t,"-line-path"),d:Xn,strokeLinecap:yt,stroke:lr,strokeWidth:dt,fillOpacity:"0",ref:function(_n){Jt[jn]=_n},style:Un})}))},we=te,Xe=i(71002),tt=i(97685),ke=i(98924),Ce=0,it=(0,ke.Z)();function ft(){var T;return it?(T=Ce,Ce+=1):T="TEST_OR_SSR",T}var pe=function(T){var G=s.useState(),ve=(0,tt.Z)(G,2),Re=ve[0],Me=ve[1];return s.useEffect(function(){Me("rc_progress_".concat(ft()))},[]),T||Re},he=function(G){var ve=G.bg,Re=G.children;return s.createElement("div",{style:{width:"100%",height:"100%",background:ve}},Re)};function _(T,G){return Object.keys(T).map(function(ve){var Re=parseFloat(ve),Me="".concat(Math.floor(Re*G),"%");return"".concat(T[ve]," ").concat(Me)})}var D=s.forwardRef(function(T,G){var ve=T.prefixCls,Re=T.color,Me=T.gradientId,$t=T.radius,lt=T.style,yt=T.ptg,dt=T.strokeLinecap,Nt=T.strokeWidth,Xt=T.size,zt=T.gapDegree,Ut=Re&&(0,Xe.Z)(Re)==="object",dn=Ut?"#FFF":void 0,wn=Xt/2,Vt=s.createElement("circle",{className:"".concat(ve,"-circle-path"),r:$t,cx:wn,cy:wn,stroke:dn,strokeLinecap:dt,strokeWidth:Nt,opacity:yt===0?0:1,style:lt,ref:G});if(!Ut)return Vt;var Jt="".concat(Me,"-conic"),ln=zt?"".concat(180+zt/2,"deg"):"0deg",tn=_(Re,(360-zt)/360),Xn=_(Re,1),tr="conic-gradient(from ".concat(ln,", ").concat(tn.join(", "),")"),ar="linear-gradient(to ".concat(zt?"bottom":"top",", ").concat(Xn.join(", "),")");return s.createElement(s.Fragment,null,s.createElement("mask",{id:Jt},Vt),s.createElement("foreignObject",{x:0,y:0,width:Xt,height:Xt,mask:"url(#".concat(Jt,")")},s.createElement(he,{bg:ar},s.createElement(he,{bg:tr}))))}),se=D,Le=100,Ge=function(G,ve,Re,Me,$t,lt,yt,dt,Nt,Xt){var zt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ut=Re/100*360*((360-lt)/360),dn=lt===0?0:{bottom:0,top:180,left:90,right:-90}[yt],wn=(100-Me)/100*ve;Nt==="round"&&Me!==100&&(wn+=Xt/2,wn>=ve&&(wn=ve-.01));var Vt=Le/2;return{stroke:typeof dt=="string"?dt:void 0,strokeDasharray:"".concat(ve,"px ").concat(G),strokeDashoffset:wn+zt,transform:"rotate(".concat($t+Ut+dn,"deg)"),transformOrigin:"".concat(Vt,"px ").concat(Vt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Rt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function de(T){var G=T!=null?T:[];return Array.isArray(G)?G:[G]}var St=function(G){var ve=(0,me.Z)((0,me.Z)({},w),G),Re=ve.id,Me=ve.prefixCls,$t=ve.steps,lt=ve.strokeWidth,yt=ve.trailWidth,dt=ve.gapDegree,Nt=dt===void 0?0:dt,Xt=ve.gapPosition,zt=ve.trailColor,Ut=ve.strokeLinecap,dn=ve.style,wn=ve.className,Vt=ve.strokeColor,Jt=ve.percent,ln=(0,o.Z)(ve,Rt),tn=Le/2,Xn=pe(Re),tr="".concat(Xn,"-gradient"),ar=tn-lt/2,An=Math.PI*2*ar,jn=Nt>0?90+Nt/2:-90,Dn=An*((360-Nt)/360),Un=(0,Xe.Z)($t)==="object"?$t:{count:$t,space:2},lr=Un.count,mr=Un.space,_n=de(Jt),Tn=de(Vt),Mn=Tn.find(function(Tr){return Tr&&(0,Xe.Z)(Tr)==="object"}),qn=Mn&&(0,Xe.Z)(Mn)==="object",gn=qn?"butt":Ut,bn=Ge(An,Dn,0,100,jn,Nt,Xt,zt,gn,lt),dr=Y(),ca=function(){var cr=0;return _n.map(function(nr,na){var le=Tn[na]||Tn[Tn.length-1],st=Ge(An,Dn,cr,nr,jn,Nt,Xt,le,gn,lt);return cr+=nr,s.createElement(se,{key:na,color:le,ptg:nr,radius:ar,prefixCls:Me,gradientId:tr,style:st,strokeLinecap:gn,strokeWidth:lt,gapDegree:Nt,ref:function(Dt){dr[na]=Dt},size:Le})}).reverse()},ga=function(){var cr=Math.round(lr*(_n[0]/100)),nr=100/lr,na=0;return new Array(lr).fill(null).map(function(le,st){var Mt=st<=cr-1?Tn[0]:zt,Dt=Mt&&(0,Xe.Z)(Mt)==="object"?"url(#".concat(tr,")"):void 0,on=Ge(An,Dn,na,nr,jn,Nt,Xt,Mt,"butt",lt,mr);return na+=(Dn-on.strokeDashoffset+mr)*100/Dn,s.createElement("circle",{key:st,className:"".concat(Me,"-circle-path"),r:ar,cx:tn,cy:tn,stroke:Dt,strokeWidth:lt,opacity:1,style:on,ref:function(Nn){dr[st]=Nn}})})};return s.createElement("svg",(0,q.Z)({className:R()("".concat(Me,"-circle"),wn),viewBox:"0 0 ".concat(Le," ").concat(Le),style:dn,id:Re,role:"presentation"},ln),!lr&&s.createElement("circle",{className:"".concat(Me,"-circle-trail"),r:ar,cx:tn,cy:tn,stroke:zt,strokeLinecap:gn,strokeWidth:yt||lt,style:bn}),lr?ga():ca())},Ct=St,Wt={Line:we,Circle:Ct},Ft=i(83062),an=i(78589);function bt(T){return!T||T<0?0:T>100?100:T}function Et(T){let{success:G,successPercent:ve}=T,Re=ve;return G&&"progress"in G&&(Re=G.progress),G&&"percent"in G&&(Re=G.percent),Re}const Pt=T=>{let{percent:G,success:ve,successPercent:Re}=T;const Me=bt(Et({success:ve,successPercent:Re}));return[Me,bt(bt(G)-Me)]},Se=T=>{let{success:G={},strokeColor:ve}=T;const{strokeColor:Re}=G;return[Re||an.ez.green,ve||null]},ze=(T,G,ve)=>{var Re,Me,$t,lt;let yt=-1,dt=-1;if(G==="step"){const Nt=ve.steps,Xt=ve.strokeWidth;typeof T=="string"||typeof T=="undefined"?(yt=T==="small"?2:14,dt=Xt!=null?Xt:8):typeof T=="number"?[yt,dt]=[T,T]:[yt=14,dt=8]=T,yt*=Nt}else if(G==="line"){const Nt=ve==null?void 0:ve.strokeWidth;typeof T=="string"||typeof T=="undefined"?dt=Nt||(T==="small"?6:8):typeof T=="number"?[yt,dt]=[T,T]:[yt=-1,dt=8]=T}else(G==="circle"||G==="dashboard")&&(typeof T=="string"||typeof T=="undefined"?[yt,dt]=T==="small"?[60,60]:[120,120]:typeof T=="number"?[yt,dt]=[T,T]:(yt=(Me=(Re=T[0])!==null&&Re!==void 0?Re:T[1])!==null&&Me!==void 0?Me:120,dt=(lt=($t=T[0])!==null&&$t!==void 0?$t:T[1])!==null&<!==void 0?lt:120));return[yt,dt]},Qe=3,Ae=T=>Qe/T*100;var be=T=>{const{prefixCls:G,trailColor:ve=null,strokeLinecap:Re="round",gapPosition:Me,gapDegree:$t,width:lt=120,type:yt,children:dt,success:Nt,size:Xt=lt}=T,[zt,Ut]=ze(Xt,"circle");let{strokeWidth:dn}=T;dn===void 0&&(dn=Math.max(Ae(zt),6));const wn={width:zt,height:Ut,fontSize:zt*.15+6},Vt=s.useMemo(()=>{if($t||$t===0)return $t;if(yt==="dashboard")return 75},[$t,yt]),Jt=Me||yt==="dashboard"&&"bottom"||void 0,ln=Object.prototype.toString.call(T.strokeColor)==="[object Object]",tn=Se({success:Nt,strokeColor:T.strokeColor}),Xn=R()(`${G}-inner`,{[`${G}-circle-gradient`]:ln}),tr=s.createElement(Ct,{percent:Pt(T),strokeWidth:dn,trailWidth:dn,strokeColor:tn,strokeLinecap:Re,trailColor:ve,prefixCls:G,gapDegree:Vt,gapPosition:Jt});return s.createElement("div",{className:Xn,style:wn},zt<=20?s.createElement(Ft.Z,{title:dt},s.createElement("span",null,tr)):s.createElement(s.Fragment,null,tr,dt))},Ee=i(87107),ut=i(14747),We=i(91945),pt=i(45503);const Ie="--progress-line-stroke-color",X="--progress-percent",nt=T=>{const G=T?"100%":"-100%";return new Ee.E4(`antProgress${T?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${G}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${G}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ue=T=>{const{componentCls:G,iconCls:ve}=T;return{[G]:Object.assign(Object.assign({},(0,ut.Wf)(T)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:T.fontSize},[`${G}-outer`]:{display:"inline-block",width:"100%"},[`&${G}-show-info`]:{[`${G}-outer`]:{marginInlineEnd:`calc(-2em - ${(0,Ee.bf)(T.marginXS)})`,paddingInlineEnd:`calc(2em + ${(0,Ee.bf)(T.paddingXS)})`}},[`${G}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:T.remainingColor,borderRadius:T.lineBorderRadius},[`${G}-inner:not(${G}-circle-gradient)`]:{[`${G}-circle-path`]:{stroke:T.defaultColor}},[`${G}-success-bg, ${G}-bg`]:{position:"relative",background:T.defaultColor,borderRadius:T.lineBorderRadius,transition:`all ${T.motionDurationSlow} ${T.motionEaseInOutCirc}`},[`${G}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Ie})`]},height:"100%",width:`calc(1 / var(${X}) * 100%)`,display:"block"}},[`${G}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:T.colorSuccess},[`${G}-text`]:{display:"inline-block",width:"2em",marginInlineStart:T.marginXS,color:T.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ve]:{fontSize:T.fontSize}},[`&${G}-status-active`]:{[`${G}-bg::before`]:{position:"absolute",inset:0,backgroundColor:T.colorBgContainer,borderRadius:T.lineBorderRadius,opacity:0,animationName:nt(),animationDuration:T.progressActiveMotionDuration,animationTimingFunction:T.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${G}-rtl${G}-status-active`]:{[`${G}-bg::before`]:{animationName:nt(!0)}},[`&${G}-status-exception`]:{[`${G}-bg`]:{backgroundColor:T.colorError},[`${G}-text`]:{color:T.colorError}},[`&${G}-status-exception ${G}-inner:not(${G}-circle-gradient)`]:{[`${G}-circle-path`]:{stroke:T.colorError}},[`&${G}-status-success`]:{[`${G}-bg`]:{backgroundColor:T.colorSuccess},[`${G}-text`]:{color:T.colorSuccess}},[`&${G}-status-success ${G}-inner:not(${G}-circle-gradient)`]:{[`${G}-circle-path`]:{stroke:T.colorSuccess}}})}},Ne=T=>{const{componentCls:G,iconCls:ve}=T;return{[G]:{[`${G}-circle-trail`]:{stroke:T.remainingColor},[`&${G}-circle ${G}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${G}-circle ${G}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:T.circleTextColor,fontSize:T.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ve]:{fontSize:T.circleIconFontSize}},[`${G}-circle&-status-exception`]:{[`${G}-text`]:{color:T.colorError}},[`${G}-circle&-status-success`]:{[`${G}-text`]:{color:T.colorSuccess}}},[`${G}-inline-circle`]:{lineHeight:1,[`${G}-inner`]:{verticalAlign:"bottom"}}}},Oe=T=>{const{componentCls:G}=T;return{[G]:{[`${G}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:T.progressStepMinWidth,marginInlineEnd:T.progressStepMarginInlineEnd,backgroundColor:T.remainingColor,transition:`all ${T.motionDurationSlow}`,"&-active":{backgroundColor:T.defaultColor}}}}}},Je=T=>{const{componentCls:G,iconCls:ve}=T;return{[G]:{[`${G}-small&-line, ${G}-small&-line ${G}-text ${ve}`]:{fontSize:T.fontSizeSM}}}},_e=T=>({circleTextColor:T.colorText,defaultColor:T.colorInfo,remainingColor:T.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${T.fontSize/T.fontSizeSM}em`});var rt=(0,We.I$)("Progress",T=>{const G=T.calc(T.marginXXS).div(2).equal(),ve=(0,pt.TS)(T,{progressStepMarginInlineEnd:G,progressStepMinWidth:G,progressActiveMotionDuration:"2.4s"});return[ue(ve),Ne(ve),Oe(ve),Je(ve)]},_e),Ze=function(T,G){var ve={};for(var Re in T)Object.prototype.hasOwnProperty.call(T,Re)&&G.indexOf(Re)<0&&(ve[Re]=T[Re]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Re=Object.getOwnPropertySymbols(T);Me{let G=[];return Object.keys(T).forEach(ve=>{const Re=parseFloat(ve.replace(/%/g,""));isNaN(Re)||G.push({key:Re,value:T[ve]})}),G=G.sort((ve,Re)=>ve.key-Re.key),G.map(ve=>{let{key:Re,value:Me}=ve;return`${Me} ${Re}%`}).join(", ")},$e=(T,G)=>{const{from:ve=an.ez.blue,to:Re=an.ez.blue,direction:Me=G==="rtl"?"to left":"to right"}=T,$t=Ze(T,["from","to","direction"]);if(Object.keys($t).length!==0){const yt=xt($t),dt=`linear-gradient(${Me}, ${yt})`;return{background:dt,[Ie]:dt}}const lt=`linear-gradient(${Me}, ${ve}, ${Re})`;return{background:lt,[Ie]:lt}};var jt=T=>{const{prefixCls:G,direction:ve,percent:Re,size:Me,strokeWidth:$t,strokeColor:lt,strokeLinecap:yt="round",children:dt,trailColor:Nt=null,success:Xt}=T,zt=lt&&typeof lt!="string"?$e(lt,ve):{[Ie]:lt,background:lt},Ut=yt==="square"||yt==="butt"?0:void 0,dn=Me!=null?Me:[-1,$t||(Me==="small"?6:8)],[wn,Vt]=ze(dn,"line",{strokeWidth:$t}),Jt={backgroundColor:Nt||void 0,borderRadius:Ut},ln=Object.assign(Object.assign({width:`${bt(Re)}%`,height:Vt,borderRadius:Ut},zt),{[X]:bt(Re)/100}),tn=Et(T),Xn={width:`${bt(tn)}%`,height:Vt,borderRadius:Ut,backgroundColor:Xt==null?void 0:Xt.strokeColor},tr={width:wn<0?"100%":wn,height:Vt};return s.createElement(s.Fragment,null,s.createElement("div",{className:`${G}-outer`,style:tr},s.createElement("div",{className:`${G}-inner`,style:Jt},s.createElement("div",{className:`${G}-bg`,style:ln}),tn!==void 0?s.createElement("div",{className:`${G}-success-bg`,style:Xn}):null)),dt)},At=T=>{const{size:G,steps:ve,percent:Re=0,strokeWidth:Me=8,strokeColor:$t,trailColor:lt=null,prefixCls:yt,children:dt}=T,Nt=Math.round(ve*(Re/100)),Xt=G==="small"?2:14,zt=G!=null?G:[Xt,Me],[Ut,dn]=ze(zt,"step",{steps:ve,strokeWidth:Me}),wn=Ut/ve,Vt=new Array(ve);for(let Jt=0;Jt{const{prefixCls:ve,className:Re,rootClassName:Me,steps:$t,strokeColor:lt,percent:yt=0,size:dt="default",showInfo:Nt=!0,type:Xt="line",status:zt,format:Ut,style:dn}=T,wn=wt(T,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Vt=s.useMemo(()=>{var Tn,Mn;const qn=Et(T);return parseInt(qn!==void 0?(Tn=qn!=null?qn:0)===null||Tn===void 0?void 0:Tn.toString():(Mn=yt!=null?yt:0)===null||Mn===void 0?void 0:Mn.toString(),10)},[yt,T.success,T.successPercent]),Jt=s.useMemo(()=>!cn.includes(zt)&&Vt>=100?"success":zt||"normal",[zt,Vt]),{getPrefixCls:ln,direction:tn,progress:Xn}=s.useContext(V.E_),tr=ln("progress",ve),[ar,An,jn]=rt(tr),Dn=s.useMemo(()=>{if(!Nt)return null;const Tn=Et(T);let Mn;const qn=Ut||(bn=>`${bn}%`),gn=Xt==="line";return Ut||Jt!=="exception"&&Jt!=="success"?Mn=qn(bt(yt),bt(Tn)):Jt==="exception"?Mn=gn?s.createElement(I.Z,null):s.createElement(S.Z,null):Jt==="success"&&(Mn=gn?s.createElement(y.Z,null):s.createElement(x.Z,null)),s.createElement("span",{className:`${tr}-text`,title:typeof Mn=="string"?Mn:void 0},Mn)},[Nt,yt,Vt,Jt,Xt,tr,Ut]),Un=Array.isArray(lt)?lt[0]:lt,lr=typeof lt=="string"||Array.isArray(lt)?lt:void 0;let mr;Xt==="line"?mr=$t?s.createElement(At,Object.assign({},T,{strokeColor:lr,prefixCls:tr,steps:$t}),Dn):s.createElement(jt,Object.assign({},T,{strokeColor:Un,prefixCls:tr,direction:tn}),Dn):(Xt==="circle"||Xt==="dashboard")&&(mr=s.createElement(be,Object.assign({},T,{strokeColor:Un,prefixCls:tr,progressStatus:Jt}),Dn));const _n=R()(tr,`${tr}-status-${Jt}`,`${tr}-${Xt==="dashboard"&&"circle"||$t&&"steps"||Xt}`,{[`${tr}-inline-circle`]:Xt==="circle"&&ze(dt,"circle")[0]<=20,[`${tr}-show-info`]:Nt,[`${tr}-${dt}`]:typeof dt=="string",[`${tr}-rtl`]:tn==="rtl"},Xn==null?void 0:Xn.className,Re,Me,An,jn);return ar(s.createElement("div",Object.assign({ref:G,style:Object.assign(Object.assign({},Xn==null?void 0:Xn.style),dn),className:_n,role:"progressbar","aria-valuenow":Vt},(0,A.Z)(wn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),mr))}),ce=ie},78045:function(F,k,i){"use strict";i.d(k,{ZP:function(){return Et}});var s=i(67294),y=i(93967),x=i.n(y),I=i(21770),S=i(64217),M=i(53124),R=i(98675);const A=s.createContext(null),V=A.Provider;var q=A;const me=s.createContext(null),o=me.Provider;var w=i(50132),Y=i(42550),H=i(45353),te=i(17415),we=i(98866),Xe=i(65223),tt=i(87107),ke=i(14747),Ce=i(91945),it=i(45503);const ft=Pt=>{const{componentCls:Se,antCls:ze}=Pt,Qe=`${Se}-group`;return{[Qe]:Object.assign(Object.assign({},(0,ke.Wf)(Pt)),{display:"inline-block",fontSize:0,[`&${Qe}-rtl`]:{direction:"rtl"},[`${ze}-badge ${ze}-badge-count`]:{zIndex:1},[`> ${ze}-badge:not(:first-child) > ${ze}-button-wrapper`]:{borderInlineStart:"none"}})}},pe=Pt=>{const{componentCls:Se,wrapperMarginInlineEnd:ze,colorPrimary:Qe,radioSize:Ae,motionDurationSlow:Pe,motionDurationMid:be,motionEaseInOutCirc:Ee,colorBgContainer:ut,colorBorder:We,lineWidth:pt,colorBgContainerDisabled:Ie,colorTextDisabled:X,paddingXS:nt,dotColorDisabled:ue,lineType:Ne,radioColor:Oe,radioBgColor:Je,calc:_e}=Pt,rt=`${Se}-inner`,Ze=4,xt=_e(Ae).sub(_e(Ze).mul(2)),$e=_e(1).mul(Ae).equal();return{[`${Se}-wrapper`]:Object.assign(Object.assign({},(0,ke.Wf)(Pt)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:ze,cursor:"pointer",[`&${Se}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Pt.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Se}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,tt.bf)(pt)} ${Ne} ${Qe}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Se]:Object.assign(Object.assign({},(0,ke.Wf)(Pt)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Se}-wrapper:hover &, - &:hover ${rt}`]:{borderColor:Qe},[`${Se}-input:focus-visible + ${rt}`]:Object.assign({},(0,ke.oN)(Pt)),[`${Se}:hover::after, ${Se}-wrapper:hover &::after`]:{visibility:"visible"},[`${Se}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:$e,height:$e,marginBlockStart:_e(1).mul(Ae).div(-2).equal(),marginInlineStart:_e(1).mul(Ae).div(-2).equal(),backgroundColor:Oe,borderBlockStart:0,borderInlineStart:0,borderRadius:$e,transform:"scale(0)",opacity:0,transition:`all ${Pe} ${Ee}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:$e,height:$e,backgroundColor:ut,borderColor:We,borderStyle:"solid",borderWidth:pt,borderRadius:"50%",transition:`all ${be}`},[`${Se}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Se}-checked`]:{[rt]:{borderColor:Qe,backgroundColor:Je,"&::after":{transform:`scale(${Pt.calc(Pt.dotSize).div(Ae).equal()})`,opacity:1,transition:`all ${Pe} ${Ee}`}}},[`${Se}-disabled`]:{cursor:"not-allowed",[rt]:{backgroundColor:Ie,borderColor:We,cursor:"not-allowed","&::after":{backgroundColor:ue}},[`${Se}-input`]:{cursor:"not-allowed"},[`${Se}-disabled + span`]:{color:X,cursor:"not-allowed"},[`&${Se}-checked`]:{[rt]:{"&::after":{transform:`scale(${_e(xt).div(Ae).equal({unit:!1})})`}}}},[`span${Se} + *`]:{paddingInlineStart:nt,paddingInlineEnd:nt}})}},he=Pt=>{const{buttonColor:Se,controlHeight:ze,componentCls:Qe,lineWidth:Ae,lineType:Pe,colorBorder:be,motionDurationSlow:Ee,motionDurationMid:ut,buttonPaddingInline:We,fontSize:pt,buttonBg:Ie,fontSizeLG:X,controlHeightLG:nt,controlHeightSM:ue,paddingXS:Ne,borderRadius:Oe,borderRadiusSM:Je,borderRadiusLG:_e,buttonCheckedBg:rt,buttonSolidCheckedColor:Ze,colorTextDisabled:xt,colorBgContainerDisabled:$e,buttonCheckedBgDisabled:mt,buttonCheckedColorDisabled:jt,colorPrimary:kt,colorPrimaryHover:At,colorPrimaryActive:wt,buttonSolidCheckedBg:Gt,buttonSolidCheckedHoverBg:cn,buttonSolidCheckedActiveBg:j,calc:ie}=Pt;return{[`${Qe}-button-wrapper`]:{position:"relative",display:"inline-block",height:ze,margin:0,paddingInline:We,paddingBlock:0,color:Se,fontSize:pt,lineHeight:(0,tt.bf)(ie(ze).sub(ie(Ae).mul(2)).equal()),background:Ie,border:`${(0,tt.bf)(Ae)} ${Pe} ${be}`,borderBlockStartWidth:ie(Ae).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:Ae,cursor:"pointer",transition:[`color ${ut}`,`background ${ut}`,`box-shadow ${ut}`].join(","),a:{color:Se},[`> ${Qe}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:ie(Ae).mul(-1).equal(),insetInlineStart:ie(Ae).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Ae,paddingInline:0,backgroundColor:be,transition:`background-color ${Ee}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,tt.bf)(Ae)} ${Pe} ${be}`,borderStartStartRadius:Oe,borderEndStartRadius:Oe},"&:last-child":{borderStartEndRadius:Oe,borderEndEndRadius:Oe},"&:first-child:last-child":{borderRadius:Oe},[`${Qe}-group-large &`]:{height:nt,fontSize:X,lineHeight:(0,tt.bf)(ie(nt).sub(ie(Ae).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_e,borderEndStartRadius:_e},"&:last-child":{borderStartEndRadius:_e,borderEndEndRadius:_e}},[`${Qe}-group-small &`]:{height:ue,paddingInline:ie(Ne).sub(Ae).equal(),paddingBlock:0,lineHeight:(0,tt.bf)(ie(ue).sub(ie(Ae).mul(2)).equal()),"&:first-child":{borderStartStartRadius:Je,borderEndStartRadius:Je},"&:last-child":{borderStartEndRadius:Je,borderEndEndRadius:Je}},"&:hover":{position:"relative",color:kt},"&:has(:focus-visible)":Object.assign({},(0,ke.oN)(Pt)),[`${Qe}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Qe}-button-wrapper-disabled)`]:{zIndex:1,color:kt,background:rt,borderColor:kt,"&::before":{backgroundColor:kt},"&:first-child":{borderColor:kt},"&:hover":{color:At,borderColor:At,"&::before":{backgroundColor:At}},"&:active":{color:wt,borderColor:wt,"&::before":{backgroundColor:wt}}},[`${Qe}-group-solid &-checked:not(${Qe}-button-wrapper-disabled)`]:{color:Ze,background:Gt,borderColor:Gt,"&:hover":{color:Ze,background:cn,borderColor:cn},"&:active":{color:Ze,background:j,borderColor:j}},"&-disabled":{color:xt,backgroundColor:$e,borderColor:be,cursor:"not-allowed","&:first-child, &:hover":{color:xt,backgroundColor:$e,borderColor:be}},[`&-disabled${Qe}-button-wrapper-checked`]:{color:jt,backgroundColor:mt,borderColor:be,boxShadow:"none"}}}},_=Pt=>{const{wireframe:Se,padding:ze,marginXS:Qe,lineWidth:Ae,fontSizeLG:Pe,colorText:be,colorBgContainer:Ee,colorTextDisabled:ut,controlItemBgActiveDisabled:We,colorTextLightSolid:pt,colorPrimary:Ie,colorPrimaryHover:X,colorPrimaryActive:nt,colorWhite:ue}=Pt,Ne=4,Oe=Pe,Je=Se?Oe-Ne*2:Oe-(Ne+Ae)*2;return{radioSize:Oe,dotSize:Je,dotColorDisabled:ut,buttonSolidCheckedColor:pt,buttonSolidCheckedBg:Ie,buttonSolidCheckedHoverBg:X,buttonSolidCheckedActiveBg:nt,buttonBg:Ee,buttonCheckedBg:Ee,buttonColor:be,buttonCheckedBgDisabled:We,buttonCheckedColorDisabled:ut,buttonPaddingInline:ze-Ae,wrapperMarginInlineEnd:Qe,radioColor:Se?Ie:ue,radioBgColor:Se?Ee:Ie}};var D=(0,Ce.I$)("Radio",Pt=>{const{controlOutline:Se,controlOutlineWidth:ze}=Pt,Qe=`0 0 0 ${(0,tt.bf)(ze)} ${Se}`,Ae=Qe,Pe=(0,it.TS)(Pt,{radioFocusShadow:Qe,radioButtonFocusShadow:Ae});return[ft(Pe),pe(Pe),he(Pe)]},_,{unitless:{radioSize:!0,dotSize:!0}}),se=i(35792),Le=function(Pt,Se){var ze={};for(var Qe in Pt)Object.prototype.hasOwnProperty.call(Pt,Qe)&&Se.indexOf(Qe)<0&&(ze[Qe]=Pt[Qe]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Qe=Object.getOwnPropertySymbols(Pt);Ae{var ze,Qe;const Ae=s.useContext(q),Pe=s.useContext(me),{getPrefixCls:be,direction:Ee,radio:ut}=s.useContext(M.E_),We=s.useRef(null),pt=(0,Y.sQ)(Se,We),{isFormItemInput:Ie}=s.useContext(Xe.aM),X=j=>{var ie,ce;(ie=Pt.onChange)===null||ie===void 0||ie.call(Pt,j),(ce=Ae==null?void 0:Ae.onChange)===null||ce===void 0||ce.call(Ae,j)},{prefixCls:nt,className:ue,rootClassName:Ne,children:Oe,style:Je,title:_e}=Pt,rt=Le(Pt,["prefixCls","className","rootClassName","children","style","title"]),Ze=be("radio",nt),xt=((Ae==null?void 0:Ae.optionType)||Pe)==="button",$e=xt?`${Ze}-button`:Ze,mt=(0,se.Z)(Ze),[jt,kt,At]=D(Ze,mt),wt=Object.assign({},rt),Gt=s.useContext(we.Z);Ae&&(wt.name=Ae.name,wt.onChange=X,wt.checked=Pt.value===Ae.value,wt.disabled=(ze=wt.disabled)!==null&&ze!==void 0?ze:Ae.disabled),wt.disabled=(Qe=wt.disabled)!==null&&Qe!==void 0?Qe:Gt;const cn=x()(`${$e}-wrapper`,{[`${$e}-wrapper-checked`]:wt.checked,[`${$e}-wrapper-disabled`]:wt.disabled,[`${$e}-wrapper-rtl`]:Ee==="rtl",[`${$e}-wrapper-in-form-item`]:Ie},ut==null?void 0:ut.className,ue,Ne,kt,At,mt);return jt(s.createElement(H.Z,{component:"Radio",disabled:wt.disabled},s.createElement("label",{className:cn,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),Je),onMouseEnter:Pt.onMouseEnter,onMouseLeave:Pt.onMouseLeave,title:_e},s.createElement(w.Z,Object.assign({},wt,{className:x()(wt.className,!xt&&te.A),type:"radio",prefixCls:$e,ref:pt})),Oe!==void 0?s.createElement("span",null,Oe):null)))};var de=s.forwardRef(Ge);const St=s.forwardRef((Pt,Se)=>{const{getPrefixCls:ze,direction:Qe}=s.useContext(M.E_),[Ae,Pe]=(0,I.Z)(Pt.defaultValue,{value:Pt.value}),be=j=>{const ie=Ae,ce=j.target.value;"value"in Pt||Pe(ce);const{onChange:T}=Pt;T&&ce!==ie&&T(j)},{prefixCls:Ee,className:ut,rootClassName:We,options:pt,buttonStyle:Ie="outline",disabled:X,children:nt,size:ue,style:Ne,id:Oe,onMouseEnter:Je,onMouseLeave:_e,onFocus:rt,onBlur:Ze}=Pt,xt=ze("radio",Ee),$e=`${xt}-group`,mt=(0,se.Z)(xt),[jt,kt,At]=D(xt,mt);let wt=nt;pt&&pt.length>0&&(wt=pt.map(j=>typeof j=="string"||typeof j=="number"?s.createElement(de,{key:j.toString(),prefixCls:xt,disabled:X,value:j,checked:Ae===j},j):s.createElement(de,{key:`radio-group-value-options-${j.value}`,prefixCls:xt,disabled:j.disabled||X,value:j.value,checked:Ae===j.value,title:j.title,style:j.style,id:j.id,required:j.required},j.label)));const Gt=(0,R.Z)(ue),cn=x()($e,`${$e}-${Ie}`,{[`${$e}-${Gt}`]:Gt,[`${$e}-rtl`]:Qe==="rtl"},ut,We,kt,At,mt);return jt(s.createElement("div",Object.assign({},(0,S.Z)(Pt,{aria:!0,data:!0}),{className:cn,style:Ne,onMouseEnter:Je,onMouseLeave:_e,onFocus:rt,onBlur:Ze,id:Oe,ref:Se}),s.createElement(V,{value:{onChange:be,value:Ae,disabled:Pt.disabled,name:Pt.name,optionType:Pt.optionType}},wt)))});var Ct=s.memo(St),Wt=function(Pt,Se){var ze={};for(var Qe in Pt)Object.prototype.hasOwnProperty.call(Pt,Qe)&&Se.indexOf(Qe)<0&&(ze[Qe]=Pt[Qe]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Qe=Object.getOwnPropertySymbols(Pt);Ae{const{getPrefixCls:ze}=s.useContext(M.E_),{prefixCls:Qe}=Pt,Ae=Wt(Pt,["prefixCls"]),Pe=ze("radio",Qe);return s.createElement(o,{value:"button"},s.createElement(de,Object.assign({prefixCls:Pe},Ae,{type:"radio",ref:Se})))};var an=s.forwardRef(Ft);const bt=de;bt.Button=an,bt.Group=Ct,bt.__ANT_RADIO=!0;var Et=bt},71230:function(F,k,i){"use strict";var s=i(92820);k.Z=s.Z},16932:function(F,k,i){"use strict";i.d(k,{J$:function(){return S}});var s=i(87107),y=i(93590);const x=new s.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),I=new s.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),S=function(M){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:A}=M,V=`${A}-fade`,q=R?"&":"";return[(0,y.R)(V,x,I,M.motionDurationMid,R),{[` - ${q}${V}-enter, - ${q}${V}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${q}${V}-leave`]:{animationTimingFunction:"linear"}}]}},32157:function(F,k,i){"use strict";i.d(k,{TM:function(){return w},Yk:function(){return o}});var s=i(87107),y=i(63185),x=i(14747),I=i(33507),S=i(45503),M=i(91945);const R=new s.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),A=(H,te)=>({[`.${H}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${te.motionDurationSlow}`}}}),V=(H,te)=>({[`.${H}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:te.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,s.bf)(te.lineWidthBold)} solid ${te.colorPrimary}`,borderRadius:"50%",content:'""'}}}),q=(H,te)=>{const{treeCls:we,treeNodeCls:Xe,treeNodePadding:tt,titleHeight:ke,nodeSelectedBg:Ce,nodeHoverBg:it}=te,ft=te.paddingXS;return{[we]:Object.assign(Object.assign({},(0,x.Wf)(te)),{background:te.colorBgContainer,borderRadius:te.borderRadius,transition:`background-color ${te.motionDurationSlow}`,[`&${we}-rtl`]:{[`${we}-switcher`]:{"&_close":{[`${we}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${we}-active-focused)`]:Object.assign({},(0,x.oN)(te)),[`${we}-list-holder-inner`]:{alignItems:"flex-start"},[`&${we}-block-node`]:{[`${we}-list-holder-inner`]:{alignItems:"stretch",[`${we}-node-content-wrapper`]:{flex:"auto"},[`${Xe}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:tt,insetInlineStart:0,border:`1px solid ${te.colorPrimary}`,opacity:0,animationName:R,animationDuration:te.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Xe}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${(0,s.bf)(tt)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${we}-node-content-wrapper`]:{color:te.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${we}-node-content-wrapper`]:{background:te.controlItemBgHover},[`&:not(${Xe}-disabled).filter-node ${we}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${we}-draggable-icon`]:{flexShrink:0,width:ke,lineHeight:`${(0,s.bf)(ke)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${te.motionDurationSlow}`,[`${Xe}:hover &`]:{opacity:.45}},[`&${Xe}-disabled`]:{[`${we}-draggable-icon`]:{visibility:"hidden"}}}},[`${we}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ke}},[`${we}-draggable-icon`]:{visibility:"hidden"},[`${we}-switcher`]:Object.assign(Object.assign({},A(H,te)),{position:"relative",flex:"none",alignSelf:"stretch",width:ke,margin:0,lineHeight:`${(0,s.bf)(ke)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${te.motionDurationSlow}`,borderRadius:te.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${we}-switcher-noop):hover`]:{backgroundColor:te.colorBgTextHover},"&_close":{[`${we}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:te.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:te.calc(ke).div(2).equal(),bottom:te.calc(tt).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:te.calc(te.calc(ke).div(2).equal()).mul(.8).equal(),height:te.calc(ke).div(2).equal(),borderBottom:`1px solid ${te.colorBorder}`,content:'""'}}}),[`${we}-checkbox`]:{top:"initial",marginInlineEnd:ft,alignSelf:"flex-start",marginTop:te.marginXXS},[`${we}-node-content-wrapper, ${we}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ke,margin:0,padding:`0 ${(0,s.bf)(te.calc(te.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${(0,s.bf)(ke)}`,background:"transparent",borderRadius:te.borderRadius,cursor:"pointer",transition:`all ${te.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:it},[`&${we}-node-selected`]:{backgroundColor:Ce},[`${we}-iconEle`]:{display:"inline-block",width:ke,height:ke,lineHeight:`${(0,s.bf)(ke)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${we}-unselectable ${we}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${we}-node-content-wrapper`]:Object.assign({lineHeight:`${(0,s.bf)(ke)}`,userSelect:"none"},V(H,te)),[`${Xe}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${te.colorPrimary}`}},"&-show-line":{[`${we}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:te.calc(ke).div(2).equal(),bottom:te.calc(tt).mul(-1).equal(),borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${we}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Xe}-leaf-last`]:{[`${we}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${(0,s.bf)(te.calc(ke).div(2).equal())} !important`}}}}})}},me=H=>{const{treeCls:te,treeNodeCls:we,treeNodePadding:Xe,directoryNodeSelectedBg:tt,directoryNodeSelectedColor:ke}=H;return{[`${te}${te}-directory`]:{[we]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Xe,insetInlineStart:0,transition:`background-color ${H.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:H.controlItemBgHover}},"> *":{zIndex:1},[`${te}-switcher`]:{transition:`color ${H.motionDurationMid}`},[`${te}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${te}-node-selected`]:{color:ke,background:"transparent"}},"&-selected":{[` - &:hover::before, - &::before - `]:{background:tt},[`${te}-switcher`]:{color:ke},[`${te}-node-content-wrapper`]:{color:ke,background:"transparent"}}}}}},o=(H,te)=>{const we=`.${H}`,Xe=`${we}-treenode`,tt=te.calc(te.paddingXS).div(2).equal(),ke=(0,S.TS)(te,{treeCls:we,treeNodeCls:Xe,treeNodePadding:tt});return[q(H,ke),me(ke)]},w=H=>{const{controlHeightSM:te}=H;return{titleHeight:te,nodeHoverBg:H.controlItemBgHover,nodeSelectedBg:H.controlItemBgActive}},Y=H=>{const{colorTextLightSolid:te,colorPrimary:we}=H;return Object.assign(Object.assign({},w(H)),{directoryNodeSelectedColor:te,directoryNodeSelectedBg:we})};k.ZP=(0,M.I$)("Tree",(H,te)=>{let{prefixCls:we}=te;return[{[H.componentCls]:(0,y.C2)(`${we}-checkbox`,H)},o(we,H),(0,I.Z)(H)]},Y)},77632:function(F,k,i){"use strict";i.d(k,{Z:function(){return he}});var s=i(67294),y=i(87462),x={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},I=x,S=i(93771),M=function(D,se){return s.createElement(S.Z,(0,y.Z)({},D,{ref:se,icon:I}))},R=s.forwardRef(M),A=R,V=i(5309),q=i(19267),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},o=me,w=function(D,se){return s.createElement(S.Z,(0,y.Z)({},D,{ref:se,icon:o}))},Y=s.forwardRef(w),H=Y,te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},we=te,Xe=function(D,se){return s.createElement(S.Z,(0,y.Z)({},D,{ref:se,icon:we}))},tt=s.forwardRef(Xe),ke=tt,Ce=i(93967),it=i.n(Ce),ft=i(96159),he=_=>{const{prefixCls:D,switcherIcon:se,treeNodeProps:Le,showLine:Ge}=_,{isLeaf:Rt,expanded:de,loading:St}=Le;if(St)return s.createElement(q.Z,{className:`${D}-switcher-loading-icon`});let Ct;if(Ge&&typeof Ge=="object"&&(Ct=Ge.showLeafIcon),Rt){if(!Ge)return null;if(typeof Ct!="boolean"&&Ct){const an=typeof Ct=="function"?Ct(Le):Ct,bt=`${D}-switcher-line-custom-icon`;return s.isValidElement(an)?(0,ft.Tm)(an,{className:it()(an.props.className||"",bt)}):an}return Ct?s.createElement(V.Z,{className:`${D}-switcher-line-icon`}):s.createElement("span",{className:`${D}-switcher-leaf-line`})}const Wt=`${D}-switcher-icon`,Ft=typeof se=="function"?se(Le):se;return s.isValidElement(Ft)?(0,ft.Tm)(Ft,{className:it()(Ft.props.className||"",Wt)}):Ft!==void 0?Ft:Ge?de?s.createElement(H,{className:`${D}-switcher-line-icon`}):s.createElement(ke,{className:`${D}-switcher-line-icon`}):s.createElement(A,{className:Wt})}},1208:function(F,k,i){"use strict";var s=i(87462),y=i(67294),x=i(5717),I=i(93771),S=function(A,V){return y.createElement(I.Z,(0,s.Z)({},A,{ref:V,icon:x.Z}))},M=y.forwardRef(S);k.Z=M},5309:function(F,k,i){"use strict";i.d(k,{Z:function(){return A}});var s=i(87462),y=i(67294),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},I=x,S=i(93771),M=function(q,me){return y.createElement(S.Z,(0,s.Z)({},q,{ref:me,icon:I}))},R=y.forwardRef(M),A=R},59542:function(F){(function(k,i){F.exports=i()})(this,function(){"use strict";var k="day";return function(i,s,y){var x=function(M){return M.add(4-M.isoWeekday(),k)},I=s.prototype;I.isoWeekYear=function(){return x(this).year()},I.isoWeek=function(M){if(!this.$utils().u(M))return this.add(7*(M-this.isoWeek()),k);var R,A,V,q,me=x(this),o=(R=this.isoWeekYear(),A=this.$u,V=(A?y.utc:y)().year(R).startOf("year"),q=4-V.isoWeekday(),V.isoWeekday()>4&&(q+=7),V.add(q,k));return me.diff(o,"week")+1},I.isoWeekday=function(M){return this.$utils().u(M)?this.day()||7:this.day(this.day()%7?M:M-7)};var S=I.startOf;I.startOf=function(M,R){var A=this.$utils(),V=!!A.u(R)||R;return A.p(M)==="isoweek"?V?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(M,R)}}})},96671:function(F){(function(k,i){F.exports=i()})(this,function(){"use strict";var k="month",i="quarter";return function(s,y){var x=y.prototype;x.quarter=function(M){return this.$utils().u(M)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(M-1))};var I=x.add;x.add=function(M,R){return M=Number(M),this.$utils().p(R)===i?this.add(3*M,k):I.bind(this)(M,R)};var S=x.startOf;x.startOf=function(M,R){var A=this.$utils(),V=!!A.u(R)||R;if(A.p(M)===i){var q=this.quarter()-1;return V?this.month(3*q).startOf(k).startOf("day"):this.month(3*q+2).endOf(k).endOf("day")}return S.bind(this)(M,R)}}})},84110:function(F){(function(k,i){F.exports=i()})(this,function(){"use strict";return function(k,i,s){k=k||{};var y=i.prototype,x={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function I(M,R,A,V){return y.fromToBase(M,R,A,V)}s.en.relativeTime=x,y.fromToBase=function(M,R,A,V,q){for(var me,o,w,Y=A.$locale().relativeTime||x,H=k.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],te=H.length,we=0;we0,tt<=Xe.r||!Xe.r){tt<=1&&we>0&&(Xe=H[we-1]);var ke=Y[Xe.l];q&&(tt=q(""+tt)),o=typeof ke=="string"?ke.replace("%d",tt):ke(tt,R,Xe.l,w);break}}if(R)return o;var Ce=w?Y.future:Y.past;return typeof Ce=="function"?Ce(o):Ce.replace("%s",o)},y.to=function(M,R){return I(M,R,this,!0)},y.from=function(M,R){return I(M,R,this)};var S=function(M){return M.$u?s.utc():s()};y.toNow=function(M){return this.to(S(this),M)},y.fromNow=function(M){return this.from(S(this),M)}}})},72378:function(F,k,i){F=i.nmd(F);var s=200,y="__lodash_hash_undefined__",x=800,I=16,S=9007199254740991,M="[object Arguments]",R="[object Array]",A="[object AsyncFunction]",V="[object Boolean]",q="[object Date]",me="[object Error]",o="[object Function]",w="[object GeneratorFunction]",Y="[object Map]",H="[object Number]",te="[object Null]",we="[object Object]",Xe="[object Proxy]",tt="[object RegExp]",ke="[object Set]",Ce="[object String]",it="[object Undefined]",ft="[object WeakMap]",pe="[object ArrayBuffer]",he="[object DataView]",_="[object Float32Array]",D="[object Float64Array]",se="[object Int8Array]",Le="[object Int16Array]",Ge="[object Int32Array]",Rt="[object Uint8Array]",de="[object Uint8ClampedArray]",St="[object Uint16Array]",Ct="[object Uint32Array]",Wt=/[\\^$.*+?()[\]{}|]/g,Ft=/^\[object .+?Constructor\]$/,an=/^(?:0|[1-9]\d*)$/,bt={};bt[_]=bt[D]=bt[se]=bt[Le]=bt[Ge]=bt[Rt]=bt[de]=bt[St]=bt[Ct]=!0,bt[M]=bt[R]=bt[pe]=bt[V]=bt[he]=bt[q]=bt[me]=bt[o]=bt[Y]=bt[H]=bt[we]=bt[tt]=bt[ke]=bt[Ce]=bt[ft]=!1;var Et=typeof i.g=="object"&&i.g&&i.g.Object===Object&&i.g,Pt=typeof self=="object"&&self&&self.Object===Object&&self,Se=Et||Pt||Function("return this")(),ze=k&&!k.nodeType&&k,Qe=ze&&!0&&F&&!F.nodeType&&F,Ae=Qe&&Qe.exports===ze,Pe=Ae&&Et.process,be=function(){try{var re=Qe&&Qe.require&&Qe.require("util").types;return re||Pe&&Pe.binding&&Pe.binding("util")}catch(Fe){}}(),Ee=be&&be.isTypedArray;function ut(re,Fe,gt){switch(gt.length){case 0:return re.call(Fe);case 1:return re.call(Fe,gt[0]);case 2:return re.call(Fe,gt[0],gt[1]);case 3:return re.call(Fe,gt[0],gt[1],gt[2])}return re.apply(Fe,gt)}function We(re,Fe){for(var gt=-1,On=Array(re);++gt-1}function ln(re,Fe){var gt=this.__data__,On=bn(gt,re);return On<0?(++this.size,gt.push([re,Fe])):gt[On][1]=Fe,this}Ut.prototype.clear=dn,Ut.prototype.delete=wn,Ut.prototype.get=Vt,Ut.prototype.has=Jt,Ut.prototype.set=ln;function tn(re){var Fe=-1,gt=re==null?0:re.length;for(this.clear();++Fe1?gt[pr-1]:void 0,vr=pr>2?gt[2]:void 0;for(Rr=re.length>3&&typeof Rr=="function"?(pr--,Rr):void 0,vr&&ra(gt[0],gt[1],vr)&&(Rr=pr<3?void 0:Rr,pr=1),Fe=Object(Fe);++On-1&&re%1==0&&re0){if(++Fe>=x)return arguments[0]}else Fe=0;return re.apply(void 0,arguments)}}function Ca(re){if(re!=null){try{return Je.call(re)}catch(Fe){}try{return re+""}catch(Fe){}}return""}function ha(re,Fe){return re===Fe||re!==re&&Fe!==Fe}var Ea=Tr(function(){return arguments}())?Tr:function(re){return Ma(re)&&_e.call(re,"callee")&&!cn.call(re,"callee")},ia=Array.isArray;function Zr(re){return re!=null&&xa(re.length)&&!$r(re)}function pa(re){return Ma(re)&&Zr(re)}var la=T||da;function $r(re){if(!Ra(re))return!1;var Fe=ga(re);return Fe==o||Fe==w||Fe==A||Fe==Xe}function xa(re){return typeof re=="number"&&re>-1&&re%1==0&&re<=S}function Ra(re){var Fe=typeof re;return re!=null&&(Fe=="object"||Fe=="function")}function Ma(re){return re!=null&&typeof re=="object"}function $a(re){if(!Ma(re)||ga(re)!=we)return!1;var Fe=wt(re);if(Fe===null)return!0;var gt=_e.call(Fe,"constructor")&&Fe.constructor;return typeof gt=="function"&> instanceof gt&&Je.call(gt)==xt}var Ta=Ee?pt(Ee):nr;function Ua(re){return er(re,Ya(re))}function Ya(re){return Zr(re)?Mn(re,!0):na(re)}var Ga=br(function(re,Fe,gt){le(re,Fe,gt)});function ba(re){return function(){return re}}function Lr(re){return re}function da(){return!1}F.exports=Ga},49323:function(F){var k=NaN,i="[object Symbol]",s=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,I=/^0o[0-7]+$/i,S=parseInt,M=Object.prototype,R=M.toString;function A(o){var w=typeof o;return!!o&&(w=="object"||w=="function")}function V(o){return!!o&&typeof o=="object"}function q(o){return typeof o=="symbol"||V(o)&&R.call(o)==i}function me(o){if(typeof o=="number")return o;if(q(o))return k;if(A(o)){var w=typeof o.valueOf=="function"?o.valueOf():o;o=A(w)?w+"":w}if(typeof o!="string")return o===0?o:+o;o=o.replace(s,"");var Y=x.test(o);return Y||I.test(o)?S(o.slice(2),Y?2:8):y.test(o)?k:+o}F.exports=me},18552:function(F,k,i){var s=i(10852),y=i(55639),x=s(y,"DataView");F.exports=x},1989:function(F,k,i){var s=i(51789),y=i(80401),x=i(57667),I=i(21327),S=i(81866);function M(R){var A=-1,V=R==null?0:R.length;for(this.clear();++A1?M[A-1]:void 0,q=A>2?M[2]:void 0;for(V=I.length>3&&typeof V=="function"?(A--,V):void 0,q&&y(M[0],M[1],q)&&(V=A<3?void 0:V,A=1),S=Object(S);++RY))return!1;var te=o.get(R),we=o.get(A);if(te&&we)return te==A&&we==R;var Xe=-1,tt=!0,ke=V&S?new s:void 0;for(o.set(R,A),o.set(A,R);++Xe-1&&y%1==0&&y-1}F.exports=y},54705:function(F,k,i){var s=i(18470);function y(x,I){var S=this.__data__,M=s(S,x);return M<0?(++this.size,S.push([x,I])):S[M][1]=I,this}F.exports=y},24785:function(F,k,i){var s=i(1989),y=i(38407),x=i(57071);function I(){this.size=0,this.__data__={hash:new s,map:new(x||y),string:new s}}F.exports=I},11285:function(F,k,i){var s=i(45050);function y(x){var I=s(this,x).delete(x);return this.size-=I?1:0,I}F.exports=y},96e3:function(F,k,i){var s=i(45050);function y(x){return s(this,x).get(x)}F.exports=y},49916:function(F,k,i){var s=i(45050);function y(x){return s(this,x).has(x)}F.exports=y},95265:function(F,k,i){var s=i(45050);function y(x,I){var S=s(this,x),M=S.size;return S.set(x,I),this.size+=S.size==M?0:1,this}F.exports=y},68776:function(F){function k(i){var s=-1,y=Array(i.size);return i.forEach(function(x,I){y[++s]=[I,x]}),y}F.exports=k},42634:function(F){function k(i,s){return function(y){return y==null?!1:y[i]===s&&(s!==void 0||i in Object(y))}}F.exports=k},24523:function(F,k,i){var s=i(15644),y=500;function x(I){var S=s(I,function(R){return M.size===y&&M.clear(),R}),M=S.cache;return S}F.exports=x},94536:function(F,k,i){var s=i(10852),y=s(Object,"create");F.exports=y},86916:function(F,k,i){var s=i(5569),y=s(Object.keys,Object);F.exports=y},33498:function(F){function k(i){var s=[];if(i!=null)for(var y in Object(i))s.push(y);return s}F.exports=k},31167:function(F,k,i){F=i.nmd(F);var s=i(31957),y=k&&!k.nodeType&&k,x=y&&!0&&F&&!F.nodeType&&F,I=x&&x.exports===y,S=I&&s.process,M=function(){try{var R=x&&x.require&&x.require("util").types;return R||S&&S.binding&&S.binding("util")}catch(A){}}();F.exports=M},5569:function(F){function k(i,s){return function(y){return i(s(y))}}F.exports=k},45357:function(F,k,i){var s=i(96874),y=Math.max;function x(I,S,M){return S=y(S===void 0?I.length-1:S,0),function(){for(var R=arguments,A=-1,V=y(R.length-S,0),q=Array(V);++A0){if(++I>=k)return arguments[0]}else I=0;return x.apply(void 0,arguments)}}F.exports=y},37465:function(F,k,i){var s=i(38407);function y(){this.__data__=new s,this.size=0}F.exports=y},63779:function(F){function k(i){var s=this.__data__,y=s.delete(i);return this.size=s.size,y}F.exports=k},67599:function(F){function k(i){return this.__data__.get(i)}F.exports=k},44758:function(F){function k(i){return this.__data__.has(i)}F.exports=k},34309:function(F,k,i){var s=i(38407),y=i(57071),x=i(83369),I=200;function S(M,R){var A=this.__data__;if(A instanceof s){var V=A.__data__;if(!y||V.length=V||Rt<0||tt&&de>=w}function he(){var Ge=y();if(pe(Ge))return _(Ge);H=setTimeout(he,ft(Ge))}function _(Ge){return H=void 0,ke&&me?Ce(Ge):(me=o=void 0,Y)}function D(){H!==void 0&&clearTimeout(H),we=0,me=te=o=H=void 0}function se(){return H===void 0?Y:_(y())}function Le(){var Ge=y(),Rt=pe(Ge);if(me=arguments,o=this,te=Ge,Rt){if(H===void 0)return it(te);if(tt)return clearTimeout(H),H=setTimeout(he,V),Ce(te)}return H===void 0&&(H=setTimeout(he,V)),Y}return Le.cancel=D,Le.flush=se,Le}F.exports=R},66073:function(F,k,i){F.exports=i(84486)},77813:function(F){function k(i,s){return i===s||i!==i&&s!==s}F.exports=k},84486:function(F,k,i){var s=i(77412),y=i(89881),x=i(54290),I=i(1469);function S(M,R){var A=I(M)?s:y;return A(M,x(R))}F.exports=S},2525:function(F,k,i){var s=i(47816),y=i(54290);function x(I,S){return I&&s(I,y(S))}F.exports=x},27361:function(F,k,i){var s=i(97786);function y(x,I,S){var M=x==null?void 0:s(x,I);return M===void 0?S:M}F.exports=y},79095:function(F,k,i){var s=i(13),y=i(222);function x(I,S){return I!=null&&y(I,S,s)}F.exports=x},6557:function(F){function k(i){return i}F.exports=k},35694:function(F,k,i){var s=i(9454),y=i(37005),x=Object.prototype,I=x.hasOwnProperty,S=x.propertyIsEnumerable,M=s(function(){return arguments}())?s:function(R){return y(R)&&I.call(R,"callee")&&!S.call(R,"callee")};F.exports=M},98612:function(F,k,i){var s=i(23560),y=i(41780);function x(I){return I!=null&&y(I.length)&&!s(I)}F.exports=x},29246:function(F,k,i){var s=i(98612),y=i(37005);function x(I){return y(I)&&s(I)}F.exports=x},44144:function(F,k,i){F=i.nmd(F);var s=i(55639),y=i(95062),x=k&&!k.nodeType&&k,I=x&&!0&&F&&!F.nodeType&&F,S=I&&I.exports===x,M=S?s.Buffer:void 0,R=M?M.isBuffer:void 0,A=R||y;F.exports=A},23560:function(F,k,i){var s=i(44239),y=i(13218),x="[object AsyncFunction]",I="[object Function]",S="[object GeneratorFunction]",M="[object Proxy]";function R(A){if(!y(A))return!1;var V=s(A);return V==I||V==S||V==x||V==M}F.exports=R},41780:function(F){var k=9007199254740991;function i(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=k}F.exports=i},56688:function(F,k,i){var s=i(25588),y=i(51717),x=i(31167),I=x&&x.isMap,S=I?y(I):s;F.exports=S},13218:function(F){function k(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}F.exports=k},68630:function(F,k,i){var s=i(44239),y=i(85924),x=i(37005),I="[object Object]",S=Function.prototype,M=Object.prototype,R=S.toString,A=M.hasOwnProperty,V=R.call(Object);function q(me){if(!x(me)||s(me)!=I)return!1;var o=y(me);if(o===null)return!0;var w=A.call(o,"constructor")&&o.constructor;return typeof w=="function"&&w instanceof w&&R.call(w)==V}F.exports=q},72928:function(F,k,i){var s=i(29221),y=i(51717),x=i(31167),I=x&&x.isSet,S=I?y(I):s;F.exports=S},47037:function(F,k,i){var s=i(44239),y=i(1469),x=i(37005),I="[object String]";function S(M){return typeof M=="string"||!y(M)&&x(M)&&s(M)==I}F.exports=S},36719:function(F,k,i){var s=i(38749),y=i(51717),x=i(31167),I=x&&x.isTypedArray,S=I?y(I):s;F.exports=S},3674:function(F,k,i){var s=i(14636),y=i(280),x=i(98612);function I(S){return x(S)?s(S):y(S)}F.exports=I},81704:function(F,k,i){var s=i(14636),y=i(10313),x=i(98612);function I(S){return x(S)?s(S,!0):y(S)}F.exports=I},35161:function(F,k,i){var s=i(29932),y=i(67206),x=i(69199),I=i(1469);function S(M,R){var A=I(M)?s:x;return A(M,y(R,3))}F.exports=S},15644:function(F,k,i){var s=i(83369),y="Expected a function";function x(I,S){if(typeof I!="function"||S!=null&&typeof S!="function")throw new TypeError(y);var M=function(){var R=arguments,A=S?S.apply(this,R):R[0],V=M.cache;if(V.has(A))return V.get(A);var q=I.apply(this,R);return M.cache=V.set(A,q)||V,q};return M.cache=new(x.Cache||s),M}x.Cache=s,F.exports=x},82492:function(F,k,i){var s=i(42980),y=i(21463),x=y(function(I,S,M){s(I,S,M)});F.exports=x},7771:function(F,k,i){var s=i(55639),y=function(){return s.Date.now()};F.exports=y},39601:function(F,k,i){var s=i(40371),y=i(79152),x=i(15403),I=i(40327);function S(M){return x(M)?s(I(M)):y(M)}F.exports=S},70479:function(F){function k(){return[]}F.exports=k},95062:function(F){function k(){return!1}F.exports=k},23493:function(F,k,i){var s=i(23279),y=i(13218),x="Expected a function";function I(S,M,R){var A=!0,V=!0;if(typeof S!="function")throw new TypeError(x);return y(R)&&(A="leading"in R?!!R.leading:A,V="trailing"in R?!!R.trailing:V),s(S,M,{leading:A,maxWait:M,trailing:V})}F.exports=I},14841:function(F,k,i){var s=i(27561),y=i(13218),x=i(33448),I=0/0,S=/^[-+]0x[0-9a-f]+$/i,M=/^0b[01]+$/i,R=/^0o[0-7]+$/i,A=parseInt;function V(q){if(typeof q=="number")return q;if(x(q))return I;if(y(q)){var me=typeof q.valueOf=="function"?q.valueOf():q;q=y(me)?me+"":me}if(typeof q!="string")return q===0?q:+q;q=s(q);var o=M.test(q);return o||R.test(q)?A(q.slice(2),o?2:8):S.test(q)?I:+q}F.exports=V},59881:function(F,k,i){var s=i(98363),y=i(81704);function x(I){return s(I,y(I))}F.exports=x},50132:function(F,k,i){"use strict";var s=i(87462),y=i(1413),x=i(4942),I=i(97685),S=i(91),M=i(93967),R=i.n(M),A=i(21770),V=i(67294),q=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],me=(0,V.forwardRef)(function(o,w){var Y=o.prefixCls,H=Y===void 0?"rc-checkbox":Y,te=o.className,we=o.style,Xe=o.checked,tt=o.disabled,ke=o.defaultChecked,Ce=ke===void 0?!1:ke,it=o.type,ft=it===void 0?"checkbox":it,pe=o.title,he=o.onChange,_=(0,S.Z)(o,q),D=(0,V.useRef)(null),se=(0,A.Z)(Ce,{value:Xe}),Le=(0,I.Z)(se,2),Ge=Le[0],Rt=Le[1];(0,V.useImperativeHandle)(w,function(){return{focus:function(Wt){var Ft;(Ft=D.current)===null||Ft===void 0||Ft.focus(Wt)},blur:function(){var Wt;(Wt=D.current)===null||Wt===void 0||Wt.blur()},input:D.current}});var de=R()(H,te,(0,x.Z)((0,x.Z)({},"".concat(H,"-checked"),Ge),"".concat(H,"-disabled"),tt)),St=function(Wt){tt||("checked"in o||Rt(Wt.target.checked),he==null||he({target:(0,y.Z)((0,y.Z)({},o),{},{type:ft,checked:Wt.target.checked}),stopPropagation:function(){Wt.stopPropagation()},preventDefault:function(){Wt.preventDefault()},nativeEvent:Wt.nativeEvent}))};return V.createElement("span",{className:de,title:pe,style:we},V.createElement("input",(0,s.Z)({},_,{className:"".concat(H,"-input"),ref:D,onChange:St,disabled:tt,checked:!!Ge,type:ft})),V.createElement("span",{className:"".concat(H,"-inner")}))});k.Z=me},82234:function(F,k,i){"use strict";i.d(k,{Z:function(){return R}});var s=i(91),y=i(1413),x=i(71002),I=i(67294),S=["show"];function M(A,V){if(!V.max)return!0;var q=V.strategy(A);return q<=V.max}function R(A,V){return I.useMemo(function(){var q={};V&&(q.show=(0,x.Z)(V)==="object"&&V.formatter?V.formatter:!!V),q=(0,y.Z)((0,y.Z)({},q),A);var me=q,o=me.show,w=(0,s.Z)(me,S);return(0,y.Z)((0,y.Z)({},w),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:w.strategy||function(Y){return Y.length}})},[A,V])}},67656:function(F,k,i){"use strict";i.d(k,{Q:function(){return q},Z:function(){return ke}});var s=i(1413),y=i(87462),x=i(4942),I=i(71002),S=i(93967),M=i.n(S),R=i(67294),A=i(87887),V=function(it){var ft,pe,he=it.inputElement,_=it.children,D=it.prefixCls,se=it.prefix,Le=it.suffix,Ge=it.addonBefore,Rt=it.addonAfter,de=it.className,St=it.style,Ct=it.disabled,Wt=it.readOnly,Ft=it.focused,an=it.triggerFocus,bt=it.allowClear,Et=it.value,Pt=it.handleReset,Se=it.hidden,ze=it.classes,Qe=it.classNames,Ae=it.dataAttrs,Pe=it.styles,be=it.components,Ee=_!=null?_:he,ut=(be==null?void 0:be.affixWrapper)||"span",We=(be==null?void 0:be.groupWrapper)||"span",pt=(be==null?void 0:be.wrapper)||"span",Ie=(be==null?void 0:be.groupAddon)||"span",X=(0,R.useRef)(null),nt=function(ie){var ce;(ce=X.current)!==null&&ce!==void 0&&ce.contains(ie.target)&&(an==null||an())},ue=(0,A.X3)(it),Ne=(0,R.cloneElement)(Ee,{value:Et,className:M()(Ee.props.className,!ue&&(Qe==null?void 0:Qe.variant))||null});if(ue){var Oe,Je=null;if(bt){var _e,rt=!Ct&&!Wt&&Et,Ze="".concat(D,"-clear-icon"),xt=(0,I.Z)(bt)==="object"&&bt!==null&&bt!==void 0&&bt.clearIcon?bt.clearIcon:"\u2716";Je=R.createElement("span",{onClick:Pt,onMouseDown:function(ie){return ie.preventDefault()},className:M()(Ze,(_e={},(0,x.Z)(_e,"".concat(Ze,"-hidden"),!rt),(0,x.Z)(_e,"".concat(Ze,"-has-suffix"),!!Le),_e)),role:"button",tabIndex:-1},xt)}var $e="".concat(D,"-affix-wrapper"),mt=M()($e,(Oe={},(0,x.Z)(Oe,"".concat(D,"-disabled"),Ct),(0,x.Z)(Oe,"".concat($e,"-disabled"),Ct),(0,x.Z)(Oe,"".concat($e,"-focused"),Ft),(0,x.Z)(Oe,"".concat($e,"-readonly"),Wt),(0,x.Z)(Oe,"".concat($e,"-input-with-clear-btn"),Le&&bt&&Et),Oe),ze==null?void 0:ze.affixWrapper,Qe==null?void 0:Qe.affixWrapper,Qe==null?void 0:Qe.variant),jt=(Le||bt)&&R.createElement("span",{className:M()("".concat(D,"-suffix"),Qe==null?void 0:Qe.suffix),style:Pe==null?void 0:Pe.suffix},Je,Le);Ne=R.createElement(ut,(0,y.Z)({className:mt,style:Pe==null?void 0:Pe.affixWrapper,onClick:nt},Ae==null?void 0:Ae.affixWrapper,{ref:X}),se&&R.createElement("span",{className:M()("".concat(D,"-prefix"),Qe==null?void 0:Qe.prefix),style:Pe==null?void 0:Pe.prefix},se),Ne,jt)}if((0,A.He)(it)){var kt="".concat(D,"-group"),At="".concat(kt,"-addon"),wt="".concat(kt,"-wrapper"),Gt=M()("".concat(D,"-wrapper"),kt,ze==null?void 0:ze.wrapper,Qe==null?void 0:Qe.wrapper),cn=M()(wt,(0,x.Z)({},"".concat(wt,"-disabled"),Ct),ze==null?void 0:ze.group,Qe==null?void 0:Qe.groupWrapper);Ne=R.createElement(We,{className:cn},R.createElement(pt,{className:Gt},Ge&&R.createElement(Ie,{className:At},Ge),Ne,Rt&&R.createElement(Ie,{className:At},Rt)))}return R.cloneElement(Ne,{className:M()((ft=Ne.props)===null||ft===void 0?void 0:ft.className,de)||null,style:(0,s.Z)((0,s.Z)({},(pe=Ne.props)===null||pe===void 0?void 0:pe.style),St),hidden:Se})},q=V,me=i(74902),o=i(97685),w=i(91),Y=i(21770),H=i(98423),te=i(82234),we=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Xe=(0,R.forwardRef)(function(Ce,it){var ft=Ce.autoComplete,pe=Ce.onChange,he=Ce.onFocus,_=Ce.onBlur,D=Ce.onPressEnter,se=Ce.onKeyDown,Le=Ce.prefixCls,Ge=Le===void 0?"rc-input":Le,Rt=Ce.disabled,de=Ce.htmlSize,St=Ce.className,Ct=Ce.maxLength,Wt=Ce.suffix,Ft=Ce.showCount,an=Ce.count,bt=Ce.type,Et=bt===void 0?"text":bt,Pt=Ce.classes,Se=Ce.classNames,ze=Ce.styles,Qe=Ce.onCompositionStart,Ae=Ce.onCompositionEnd,Pe=(0,w.Z)(Ce,we),be=(0,R.useState)(!1),Ee=(0,o.Z)(be,2),ut=Ee[0],We=Ee[1],pt=(0,R.useRef)(!1),Ie=(0,R.useRef)(null),X=function(Me){Ie.current&&(0,A.nH)(Ie.current,Me)},nt=(0,Y.Z)(Ce.defaultValue,{value:Ce.value}),ue=(0,o.Z)(nt,2),Ne=ue[0],Oe=ue[1],Je=Ne==null?"":String(Ne),_e=(0,R.useState)(null),rt=(0,o.Z)(_e,2),Ze=rt[0],xt=rt[1],$e=(0,te.Z)(an,Ft),mt=$e.max||Ct,jt=$e.strategy(Je),kt=!!mt&&jt>mt;(0,R.useImperativeHandle)(it,function(){return{focus:X,blur:function(){var Me;(Me=Ie.current)===null||Me===void 0||Me.blur()},setSelectionRange:function(Me,$t,lt){var yt;(yt=Ie.current)===null||yt===void 0||yt.setSelectionRange(Me,$t,lt)},select:function(){var Me;(Me=Ie.current)===null||Me===void 0||Me.select()},input:Ie.current}}),(0,R.useEffect)(function(){We(function(Re){return Re&&Rt?!1:Re})},[Rt]);var At=function(Me,$t,lt){var yt=$t;if(!pt.current&&$e.exceedFormatter&&$e.max&&$e.strategy($t)>$e.max){if(yt=$e.exceedFormatter($t,{max:$e.max}),$t!==yt){var dt,Nt;xt([((dt=Ie.current)===null||dt===void 0?void 0:dt.selectionStart)||0,((Nt=Ie.current)===null||Nt===void 0?void 0:Nt.selectionEnd)||0])}}else if(lt.source==="compositionEnd")return;Oe(yt),Ie.current&&(0,A.rJ)(Ie.current,Me,pe,yt)};(0,R.useEffect)(function(){if(Ze){var Re;(Re=Ie.current)===null||Re===void 0||Re.setSelectionRange.apply(Re,(0,me.Z)(Ze))}},[Ze]);var wt=function(Me){At(Me,Me.target.value,{source:"change"})},Gt=function(Me){pt.current=!1,At(Me,Me.currentTarget.value,{source:"compositionEnd"}),Ae==null||Ae(Me)},cn=function(Me){D&&Me.key==="Enter"&&D(Me),se==null||se(Me)},j=function(Me){We(!0),he==null||he(Me)},ie=function(Me){We(!1),_==null||_(Me)},ce=function(Me){Oe(""),X(),Ie.current&&(0,A.rJ)(Ie.current,Me,pe)},T=kt&&"".concat(Ge,"-out-of-range"),G=function(){var Me=(0,H.Z)(Ce,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return R.createElement("input",(0,y.Z)({autoComplete:ft},Me,{onChange:wt,onFocus:j,onBlur:ie,onKeyDown:cn,className:M()(Ge,(0,x.Z)({},"".concat(Ge,"-disabled"),Rt),Se==null?void 0:Se.input),style:ze==null?void 0:ze.input,ref:Ie,size:de,type:Et,onCompositionStart:function(lt){pt.current=!0,Qe==null||Qe(lt)},onCompositionEnd:Gt}))},ve=function(){var Me=Number(mt)>0;if(Wt||$e.show){var $t=$e.showFormatter?$e.showFormatter({value:Je,count:jt,maxLength:mt}):"".concat(jt).concat(Me?" / ".concat(mt):"");return R.createElement(R.Fragment,null,$e.show&&R.createElement("span",{className:M()("".concat(Ge,"-show-count-suffix"),(0,x.Z)({},"".concat(Ge,"-show-count-has-suffix"),!!Wt),Se==null?void 0:Se.count),style:(0,s.Z)({},ze==null?void 0:ze.count)},$t),Wt)}return null};return R.createElement(q,(0,y.Z)({},Pe,{prefixCls:Ge,className:M()(St,T),handleReset:ce,value:Je,focused:ut,triggerFocus:X,suffix:ve(),disabled:Rt,classes:Pt,classNames:Se,styles:ze}),G())}),tt=Xe,ke=tt},87887:function(F,k,i){"use strict";i.d(k,{He:function(){return s},X3:function(){return y},nH:function(){return S},rJ:function(){return I}});function s(M){return!!(M.addonBefore||M.addonAfter)}function y(M){return!!(M.prefix||M.suffix||M.allowClear)}function x(M,R,A){var V=R.cloneNode(!0),q=Object.create(M,{target:{value:V},currentTarget:{value:V}});return V.value=A,typeof R.selectionStart=="number"&&typeof R.selectionEnd=="number"&&(V.selectionStart=R.selectionStart,V.selectionEnd=R.selectionEnd),q}function I(M,R,A,V){if(A){var q=R;if(R.type==="click"){q=x(R,M,""),A(q);return}if(M.type!=="file"&&V!==void 0){q=x(R,M,V),A(q);return}A(q)}}function S(M,R){if(M){M.focus(R);var A=R||{},V=A.cursor;if(V){var q=M.value.length;switch(V){case"start":M.setSelectionRange(0,0);break;case"end":M.setSelectionRange(q,q);break;default:M.setSelectionRange(0,q)}}}}},64019:function(F,k,i){"use strict";i.d(k,{Z:function(){return y}});var s=i(73935);function y(x,I,S,M){var R=s.unstable_batchedUpdates?function(V){s.unstable_batchedUpdates(S,V)}:S;return x!=null&&x.addEventListener&&x.addEventListener(I,R,M),{remove:function(){x!=null&&x.removeEventListener&&x.removeEventListener(I,R,M)}}}},27678:function(F,k,i){"use strict";i.d(k,{g1:function(){return me},os:function(){return w}});var s=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},x={cssFloat:1,styleFloat:1,float:1};function I(Y){return Y.nodeType===1?Y.ownerDocument.defaultView.getComputedStyle(Y,null):{}}function S(Y,H,te){if(H=H.toLowerCase(),te==="auto"){if(H==="height")return Y.offsetHeight;if(H==="width")return Y.offsetWidth}return H in y||(y[H]=s.test(H)),y[H]?parseFloat(te)||0:te}function M(Y,H){var te=arguments.length,we=I(Y);return H=x[H]?"cssFloat"in Y.style?"cssFloat":"styleFloat":H,te===1?we:S(Y,H,we[H]||Y.style[H])}function R(Y,H,te){var we=arguments.length;if(H=x[H]?"cssFloat"in Y.style?"cssFloat":"styleFloat":H,we===3)return typeof te=="number"&&s.test(H)&&(te="".concat(te,"px")),Y.style[H]=te,te;for(var Xe in H)H.hasOwnProperty(Xe)&&R(Y,Xe,H[Xe]);return I(Y)}function A(Y){return Y===document.body?document.documentElement.clientWidth:Y.offsetWidth}function V(Y){return Y===document.body?window.innerHeight||document.documentElement.clientHeight:Y.offsetHeight}function q(){var Y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),H=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Y,height:H}}function me(){var Y=document.documentElement.clientWidth,H=window.innerHeight||document.documentElement.clientHeight;return{width:Y,height:H}}function o(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function w(Y){var H=Y.getBoundingClientRect(),te=document.documentElement;return{left:H.left+(window.pageXOffset||te.scrollLeft)-(te.clientLeft||document.body.clientLeft||0),top:H.top+(window.pageYOffset||te.scrollTop)-(te.clientTop||document.body.clientTop||0)}}},24754:function(F,k,i){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.autoprefix=void 0;var s=i(2525),y=I(s),x=Object.assign||function(R){for(var A=1;A1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){R(w,o);function w(){var Y,H,te,we;S(this,w);for(var Xe=arguments.length,tt=Array(Xe),ke=0;ke1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){R(w,o);function w(){var Y,H,te,we;S(this,w);for(var Xe=arguments.length,tt=Array(Xe),ke=0;ke0&&arguments[0]!==void 0?arguments[0]:[],w=[];return(0,A.default)(o,function(Y){Array.isArray(Y)?me(Y).map(function(H){return w.push(H)}):(0,M.default)(Y)?(0,I.default)(Y,function(H,te){H===!0&&w.push(te),w.push(te+"-"+H)}):(0,y.default)(Y)&&w.push(Y)}),w};k.default=q},79941:function(F,k,i){"use strict";var s;s={value:!0},s=s=s=s=s=void 0;var y=i(14147),x=Y(y),I=i(18556),S=Y(I),M=i(24754),R=Y(M),A=i(91765),V=Y(A),q=i(36002),me=Y(q),o=i(57742),w=Y(o);function Y(te){return te&&te.__esModule?te:{default:te}}s=V.default,s=V.default,s=me.default,s=w.default;var H=s=function(we){for(var Xe=arguments.length,tt=Array(Xe>1?Xe-1:0),ke=1;ke1&&arguments[1]!==void 0?arguments[1]:!0;I[R]=A};return y===0&&S("first-child"),y===x-1&&S("last-child"),(y===0||y%2===0)&&S("even"),Math.abs(y%2)===1&&S("odd"),S("nth-child",y),I};k.default=i},18556:function(F,k,i){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.mergeClasses=void 0;var s=i(2525),y=M(s),x=i(50361),I=M(x),S=Object.assign||function(A){for(var V=1;V1&&arguments[1]!==void 0?arguments[1]:[],me=V.default&&(0,I.default)(V.default)||{};return q.map(function(o){var w=V[o];return w&&(0,y.default)(w,function(Y,H){me[H]||(me[H]={}),me[H]=S({},me[H],w[H])}),o}),me};k.default=R},87668:function(F,k){"use strict";const{hasOwnProperty:i}=Object.prototype,s=Y();s.configure=Y,s.stringify=s,s.default=s,k.stringify=s,k.configure=Y,F.exports=s;const y=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function x(H){return H.length<5e3&&!y.test(H)?`"${H}"`:JSON.stringify(H)}function I(H){if(H.length>200)return H.sort();for(let te=1;tewe;)H[Xe]=H[Xe-1],Xe--;H[Xe]=we}return H}const S=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function M(H){return S.call(H)!==void 0&&H.length!==0}function R(H,te,we){H.length= 1`)}return we===void 0?1/0:we}function me(H){return H===1?"1 item":`${H} items`}function o(H){const te=new Set;for(const we of H)(typeof we=="string"||typeof we=="number")&&te.add(String(we));return te}function w(H){if(i.call(H,"strict")){const te=H.strict;if(typeof te!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(te)return we=>{let Xe=`Object can not safely be stringified. Received type ${typeof we}`;throw typeof we!="function"&&(Xe+=` (${we.toString()})`),new Error(Xe)}}}function Y(H){H=Yf({},H);const te=w(H);te&&(H.bigint===void 0&&(H.bigint=!1),"circularValue"in H||(H.circularValue=Error));const we=A(H),Xe=V(H,"bigint"),tt=V(H,"deterministic"),ke=q(H,"maximumDepth"),Ce=q(H,"maximumBreadth");function it(D,se,Le,Ge,Rt,de){let St=se[D];switch(typeof St=="object"&&St!==null&&typeof St.toJSON=="function"&&(St=St.toJSON(D)),St=Ge.call(se,D,St),typeof St){case"string":return x(St);case"object":{if(St===null)return"null";if(Le.indexOf(St)!==-1)return we;let Ct="",Wt=",";const Ft=de;if(Array.isArray(St)){if(St.length===0)return"[]";if(keCe){const Pe=St.length-Ce-1;Ct+=`${Wt}"... ${me(Pe)} not stringified"`}return Rt!==""&&(Ct+=` -${Ft}`),Le.pop(),`[${Ct}]`}let an=Object.keys(St);const bt=an.length;if(bt===0)return"{}";if(keCe){const ze=bt-Ce;Ct+=`${Pt}"...":${Et}"${me(ze)} not stringified"`,Pt=Wt}return Rt!==""&&Pt.length>1&&(Ct=` -${de}${Ct} -${Ft}`),Le.pop(),`{${Ct}}`}case"number":return isFinite(St)?String(St):te?te(St):"null";case"boolean":return St===!0?"true":"false";case"undefined":return;case"bigint":if(Xe)return String(St);default:return te?te(St):void 0}}function ft(D,se,Le,Ge,Rt,de){switch(typeof se=="object"&&se!==null&&typeof se.toJSON=="function"&&(se=se.toJSON(D)),typeof se){case"string":return x(se);case"object":{if(se===null)return"null";if(Le.indexOf(se)!==-1)return we;const St=de;let Ct="",Wt=",";if(Array.isArray(se)){if(se.length===0)return"[]";if(keCe){const Se=se.length-Ce-1;Ct+=`${Wt}"... ${me(Se)} not stringified"`}return Rt!==""&&(Ct+=` -${St}`),Le.pop(),`[${Ct}]`}Le.push(se);let Ft="";Rt!==""&&(de+=Rt,Wt=`, -${de}`,Ft=" ");let an="";for(const bt of Ge){const Et=ft(bt,se[bt],Le,Ge,Rt,de);Et!==void 0&&(Ct+=`${an}${x(bt)}:${Ft}${Et}`,an=Wt)}return Rt!==""&&an.length>1&&(Ct=` -${de}${Ct} -${St}`),Le.pop(),`{${Ct}}`}case"number":return isFinite(se)?String(se):te?te(se):"null";case"boolean":return se===!0?"true":"false";case"undefined":return;case"bigint":if(Xe)return String(se);default:return te?te(se):void 0}}function pe(D,se,Le,Ge,Rt){switch(typeof se){case"string":return x(se);case"object":{if(se===null)return"null";if(typeof se.toJSON=="function"){if(se=se.toJSON(D),typeof se!="object")return pe(D,se,Le,Ge,Rt);if(se===null)return"null"}if(Le.indexOf(se)!==-1)return we;const de=Rt;if(Array.isArray(se)){if(se.length===0)return"[]";if(keCe){const Ae=se.length-Ce-1;Et+=`${Pt}"... ${me(Ae)} not stringified"`}return Et+=` -${de}`,Le.pop(),`[${Et}]`}let St=Object.keys(se);const Ct=St.length;if(Ct===0)return"{}";if(keCe){const Et=Ct-Ce;Ft+=`${an}"...": "${me(Et)} not stringified"`,an=Wt}return an!==""&&(Ft=` -${Rt}${Ft} -${de}`),Le.pop(),`{${Ft}}`}case"number":return isFinite(se)?String(se):te?te(se):"null";case"boolean":return se===!0?"true":"false";case"undefined":return;case"bigint":if(Xe)return String(se);default:return te?te(se):void 0}}function he(D,se,Le){switch(typeof se){case"string":return x(se);case"object":{if(se===null)return"null";if(typeof se.toJSON=="function"){if(se=se.toJSON(D),typeof se!="object")return he(D,se,Le);if(se===null)return"null"}if(Le.indexOf(se)!==-1)return we;let Ge="";if(Array.isArray(se)){if(se.length===0)return"[]";if(keCe){const bt=se.length-Ce-1;Ge+=`,"... ${me(bt)} not stringified"`}return Le.pop(),`[${Ge}]`}let Rt=Object.keys(se);const de=Rt.length;if(de===0)return"{}";if(keCe){const Wt=de-Ce;Ge+=`${St}"...":"${me(Wt)} not stringified"`}return Le.pop(),`{${Ge}}`}case"number":return isFinite(se)?String(se):te?te(se):"null";case"boolean":return se===!0?"true":"false";case"undefined":return;case"bigint":if(Xe)return String(se);default:return te?te(se):void 0}}function _(D,se,Le){if(arguments.length>1){let Ge="";if(typeof Le=="number"?Ge=" ".repeat(Math.min(Le,10)):typeof Le=="string"&&(Ge=Le.slice(0,10)),se!=null){if(typeof se=="function")return it("",{"":D},[],se,Ge,"");if(Array.isArray(se))return ft("",D,[],o(se),Ge,"")}if(Ge.length!==0)return pe("",D,[],Ge,"")}return he("",D,[])}return _}},36459:function(F,k,i){"use strict";i.d(k,{Z:function(){return s}});function s(y){if(y==null)throw new TypeError("Cannot destructure "+y)}}}]); diff --git a/starter/src/main/resources/templates/admin/857.274c1626.async.js b/starter/src/main/resources/templates/admin/857.274c1626.async.js new file mode 100644 index 0000000000..fba0de021a --- /dev/null +++ b/starter/src/main/resources/templates/admin/857.274c1626.async.js @@ -0,0 +1,5 @@ +"use strict";var Fe=Object.defineProperty,Me=Object.defineProperties;var Je=Object.getOwnPropertyDescriptors;var ge=Object.getOwnPropertySymbols;var Re=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable;var Ae=(W,U,F)=>U in W?Fe(W,U,{enumerable:!0,configurable:!0,writable:!0,value:F}):W[U]=F,G=(W,U)=>{for(var F in U||(U={}))Re.call(U,F)&&Ae(W,F,U[F]);if(ge)for(var F of ge(U))De.call(U,F)&&Ae(W,F,U[F]);return W},Oe=(W,U)=>Me(W,Je(U));var Pe=(W,U)=>{var F={};for(var I in W)Re.call(W,I)&&U.indexOf(I)<0&&(F[I]=W[I]);if(W!=null&&ge)for(var I of ge(W))U.indexOf(I)<0&&De.call(W,I)&&(F[I]=W[I]);return F};(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[857],{50139:function(W,U,F){var I=F(67294),Z=F(61688);function Q(oe,Y){return oe===Y&&(oe!==0||1/oe===1/Y)||oe!==oe&&Y!==Y}var ce=typeof Object.is=="function"?Object.is:Q,V=Z.useSyncExternalStore,re=I.useRef,ee=I.useEffect,ne=I.useMemo,le=I.useDebugValue;U.useSyncExternalStoreWithSelector=function(oe,Y,ie,C,R){var M=re(null);if(M.current===null){var $={hasValue:!1,value:null};M.current=$}else $=M.current;M=ne(function(){function m(f){if(!P){if(P=!0,y=f,f=C(f),R!==void 0&&$.hasValue){var D=$.value;if(R(D,f))return g=D}return g=f}if(D=g,ce(y,f))return D;var _=C(f);return R!==void 0&&R(D,_)?D:(y=f,g=_)}var P=!1,y,g,v=ie===void 0?null:ie;return[function(){return m(Y())},v===null?void 0:function(){return m(v())}]},[Y,ie,C,R]);var B=V(oe,M[0],M[1]);return ee(function(){$.hasValue=!0,$.value=B},[B]),le(B),B}},52798:function(W,U,F){W.exports=F(50139)},64529:function(W,U,F){F.d(U,{Ue:function(){return ie}});const I=R=>{let M;const $=new Set,B=(D,_)=>{const T=typeof D=="function"?D(M):D;if(!Object.is(T,M)){const x=M;M=(_!=null?_:typeof T!="object"||T===null)?T:Object.assign({},M,T),$.forEach(A=>A(M,x))}},m=()=>M,v={setState:B,getState:m,getInitialState:()=>f,subscribe:D=>($.add(D),()=>$.delete(D)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),$.clear()}},f=M=R(B,m,v);return v},Z=R=>R?I(R):I;var Q=R=>(console.warn("[DEPRECATED] Default export is deprecated. Instead use import { createStore } from 'zustand/vanilla'."),Z(R)),ce=F(67294),V=F(52798);const{useDebugValue:re}=ce,{useSyncExternalStoreWithSelector:ee}=V;let ne=!1;const le=R=>R;function oe(R,M=le,$){$&&!ne&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),ne=!0);const B=ee(R.subscribe,R.getState,R.getServerState||R.getInitialState,M,$);return re(B),B}const Y=R=>{typeof R!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const M=typeof R=="function"?Z(R):R,$=(B,m)=>oe(M,B,m);return Object.assign($,M),$},ie=R=>R?Y(R):Y;var C=R=>(console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),ie(R))},782:function(W,U,F){F.d(U,{mW:function(){return ee},tJ:function(){return B}});const I=(m,P)=>(y,g,v)=>(v.dispatch=f=>(y(D=>m(D,f),!1,f),f),v.dispatchFromDevtools=!0,G({dispatch:(...f)=>v.dispatch(...f)},P)),Z=null,Q=new Map,ce=m=>{const P=Q.get(m);return P?Object.fromEntries(Object.entries(P.stores).map(([y,g])=>[y,g.getState()])):{}},V=(m,P,y)=>{if(m===void 0)return{type:"untracked",connection:P.connect(y)};const g=Q.get(y.name);if(g)return G({type:"tracked",store:m},g);const v={connection:P.connect(y),stores:{}};return Q.set(y.name,v),G({type:"tracked",store:m},v)},ee=(m,P={})=>(y,g,v)=>{const k=P,{enabled:f,anonymousActionType:D,store:_}=k,T=Pe(k,["enabled","anonymousActionType","store"]);let x;try{x=(f!=null?f:!0)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(j){}if(!x)return f&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),m(y,g,v);const O=V(_,x,T),{connection:A}=O,H=Pe(O,["connection"]);let L=!0;v.setState=(j,b,E)=>{const te=y(j,b);if(!L)return te;const de=E===void 0?{type:D||"anonymous"}:typeof E=="string"?{type:E}:E;return _===void 0?(A==null||A.send(de,g()),te):(A==null||A.send(Oe(G({},de),{type:`${_}/${de.type}`}),Oe(G({},ce(T.name)),{[_]:v.getState()})),te)};const J=(...j)=>{const b=L;L=!1,y(...j),L=b},N=m(v.setState,g,v);if(H.type==="untracked"?A==null||A.init(N):(H.stores[H.store]=v,A==null||A.init(Object.fromEntries(Object.entries(H.stores).map(([j,b])=>[j,j===H.store?N:b.getState()])))),v.dispatchFromDevtools&&typeof v.dispatch=="function"){let j=!1;const b=v.dispatch;v.dispatch=(...E)=>{E[0].type==="__setState"&&!j&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),j=!0),b(...E)}}return A.subscribe(j=>{var b;switch(j.type){case"ACTION":if(typeof j.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return ne(j.payload,E=>{if(E.type==="__setState"){if(_===void 0){J(E.state);return}Object.keys(E.state).length!==1&&console.error(` + [zustand devtools middleware] Unsupported __setState action format. + When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), + and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } + `);const te=E.state[_];if(te==null)return;JSON.stringify(v.getState())!==JSON.stringify(te)&&J(te);return}v.dispatchFromDevtools&&typeof v.dispatch=="function"&&v.dispatch(E)});case"DISPATCH":switch(j.payload.type){case"RESET":return J(N),_===void 0?A==null?void 0:A.init(v.getState()):A==null?void 0:A.init(ce(T.name));case"COMMIT":if(_===void 0){A==null||A.init(v.getState());return}return A==null?void 0:A.init(ce(T.name));case"ROLLBACK":return ne(j.state,E=>{if(_===void 0){J(E),A==null||A.init(v.getState());return}J(E[_]),A==null||A.init(ce(T.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return ne(j.state,E=>{if(_===void 0){J(E);return}JSON.stringify(v.getState())!==JSON.stringify(E[_])&&J(E[_])});case"IMPORT_STATE":{const{nextLiftedState:E}=j.payload,te=(b=E.computedStates.slice(-1)[0])==null?void 0:b.state;if(!te)return;J(_===void 0?te:te[_]),A==null||A.send(null,E);return}case"PAUSE_RECORDING":return L=!L}return}}),N},ne=(m,P)=>{let y;try{y=JSON.parse(m)}catch(g){console.error("[zustand devtools middleware] Could not parse the received json",g)}y!==void 0&&P(y)},le=m=>(P,y,g)=>{const v=g.subscribe;return g.subscribe=(D,_,T)=>{let x=D;if(_){const A=(T==null?void 0:T.equalityFn)||Object.is;let H=D(g.getState());x=L=>{const J=D(L);if(!A(H,J)){const N=H;_(H=J,N)}},T!=null&&T.fireImmediately&&_(H,H)}return v(x)},m(P,y,g)},oe=null,Y=(m,P)=>(...y)=>Object.assign({},m,P(...y));function ie(m,P){let y;try{y=m()}catch(v){return}return{getItem:v=>{var f;const D=T=>T===null?null:JSON.parse(T,P==null?void 0:P.reviver),_=(f=y.getItem(v))!=null?f:null;return _ instanceof Promise?_.then(D):D(_)},setItem:(v,f)=>y.setItem(v,JSON.stringify(f,P==null?void 0:P.replacer)),removeItem:v=>y.removeItem(v)}}const C=m=>P=>{try{const y=m(P);return y instanceof Promise?y:{then(g){return C(g)(y)},catch(g){return this}}}catch(y){return{then(g){return this},catch(g){return C(g)(y)}}}},R=(m,P)=>(y,g,v)=>{let f=G({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:O=>O,version:0,merge:(O,j)=>G(G({},j),O)},P),D=!1;const _=new Set,T=new Set;let x;try{x=f.getStorage()}catch(O){}if(!x)return m((...O)=>{console.warn(`[zustand persist middleware] Unable to update item '${f.name}', the given storage is currently unavailable.`),y(...O)},g,v);const A=C(f.serialize),H=()=>{const O=f.partialize(G({},g()));let j;const b=A({state:O,version:f.version}).then(E=>x.setItem(f.name,E)).catch(E=>{j=E});if(j)throw j;return b},L=v.setState;v.setState=(O,j)=>{L(O,j),H()};const J=m((...O)=>{y(...O),H()},g,v);let N;const k=()=>{var O;if(!x)return;D=!1,_.forEach(b=>b(g()));const j=((O=f.onRehydrateStorage)==null?void 0:O.call(f,g()))||void 0;return C(x.getItem.bind(x))(f.name).then(b=>{if(b)return f.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==f.version){if(f.migrate)return f.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var E;return N=f.merge(b,(E=g())!=null?E:J),y(N,!0),H()}).then(()=>{j==null||j(N,void 0),D=!0,T.forEach(b=>b(N))}).catch(b=>{j==null||j(void 0,b)})};return v.persist={setOptions:O=>{f=G(G({},f),O),O.getStorage&&(x=O.getStorage())},clearStorage:()=>{x==null||x.removeItem(f.name)},getOptions:()=>f,rehydrate:()=>k(),hasHydrated:()=>D,onHydrate:O=>(_.add(O),()=>{_.delete(O)}),onFinishHydration:O=>(T.add(O),()=>{T.delete(O)})},k(),N||J},M=(m,P)=>(y,g,v)=>{let f=G({storage:ie(()=>localStorage),partialize:k=>k,version:0,merge:(k,O)=>G(G({},O),k)},P),D=!1;const _=new Set,T=new Set;let x=f.storage;if(!x)return m((...k)=>{console.warn(`[zustand persist middleware] Unable to update item '${f.name}', the given storage is currently unavailable.`),y(...k)},g,v);const A=()=>{const k=f.partialize(G({},g()));return x.setItem(f.name,{state:k,version:f.version})},H=v.setState;v.setState=(k,O)=>{H(k,O),A()};const L=m((...k)=>{y(...k),A()},g,v);v.getInitialState=()=>L;let J;const N=()=>{var k,O;if(!x)return;D=!1,_.forEach(b=>{var E;return b((E=g())!=null?E:L)});const j=((O=f.onRehydrateStorage)==null?void 0:O.call(f,(k=g())!=null?k:L))||void 0;return C(x.getItem.bind(x))(f.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==f.version){if(f.migrate)return f.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var E;return J=f.merge(b,(E=g())!=null?E:L),y(J,!0),A()}).then(()=>{j==null||j(J,void 0),J=g(),D=!0,T.forEach(b=>b(J))}).catch(b=>{j==null||j(void 0,b)})};return v.persist={setOptions:k=>{f=G(G({},f),k),k.storage&&(x=k.storage)},clearStorage:()=>{x==null||x.removeItem(f.name)},getOptions:()=>f,rehydrate:()=>N(),hasHydrated:()=>D,onHydrate:k=>(_.add(k),()=>{_.delete(k)}),onFinishHydration:k=>(T.add(k),()=>{T.delete(k)})},f.skipHydration||N(),J||L},B=(m,P)=>"getStorage"in P||"serialize"in P||"deserialize"in P?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),R(m,P)):M(m,P)},71381:function(W,U,F){F.d(U,{n:function(){return Ne}});function I(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:Y(e)?2:ie(e)?3:0}function ee(e,t){return re(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ne(e,t){return re(e)===2?e.get(t):e[t]}function le(e,t,o){var r=re(e);r===2?e.set(t,o):r===3?e.add(o):e[t]=o}function oe(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Y(e){return ke&&e instanceof Map}function ie(e){return xe&&e instanceof Set}function C(e){return e.o||e.t}function R(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=je(e);delete t[S];for(var o=fe(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=$),Object.freeze(e),t&&V(e,function(o,r){return M(r,!0)},!0)),e}function $(){I(2)}function B(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function m(e){var t=we[e];return t||I(18,e),t}function P(e,t){we[e]||(we[e]=t)}function y(){return ve}function g(e,t){t&&(m("Patches"),e.u=[],e.s=[],e.v=t)}function v(e){f(e),e.p.forEach(_),e.p=null}function f(e){e===ve&&(ve=e.l)}function D(e){return ve={p:[],l:ve,h:e,m:!0,_:0}}function _(e){var t=e[S];t.i===0||t.i===1?t.j():t.g=!0}function T(e,t){t._=t.p.length;var o=t.p[0],r=e!==void 0&&e!==o;return t.h.O||m("ES5").S(t,e,r),r?(o[S].P&&(v(t),I(4)),Q(e)&&(e=x(t,e),t.l||H(t,e)),t.u&&m("Patches").M(o[S].t,e,t.u,t.s)):e=x(t,o,[]),v(t),t.u&&t.v(t.u,t.s),e!==Se?e:void 0}function x(e,t,o){if(B(t))return t;var r=t[S];if(!r)return V(t,function(u,a){return A(e,r,t,u,a,o)},!0),t;if(r.A!==e)return t;if(!r.P)return H(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var s=r.i===4||r.i===5?r.o=R(r.k):r.o,d=s,c=!1;r.i===3&&(d=new Set(s),s.clear(),c=!0),V(d,function(u,a){return A(e,r,s,u,a,o,c)}),H(e,s,!1),o&&e.u&&m("Patches").N(r,o,e.u,e.s)}return r.o}function A(e,t,o,r,s,d,c){if(Z(s)){var u=x(e,s,d&&t&&t.i!==3&&!ee(t.R,r)?d.concat(r):void 0);if(le(o,r,u),!Z(u))return;e.m=!1}else c&&o.add(s);if(Q(s)&&!B(s)){if(!e.h.D&&e._<1)return;x(e,s),t&&t.A.l||H(e,s)}}function H(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&M(t,o)}function L(e,t){var o=e[S];return(o?C(o):e)[t]}function J(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var r=Object.getOwnPropertyDescriptor(o,t);if(r)return r;o=Object.getPrototypeOf(o)}}function N(e){e.P||(e.P=!0,e.l&&N(e.l))}function k(e){e.o||(e.o=R(e.t))}function O(e,t,o){var r=Y(t)?m("MapSet").F(t,o):ie(t)?m("MapSet").T(t,o):e.O?function(s,d){var c=Array.isArray(s),u={i:c?1:0,A:d?d.A:y(),P:!1,I:!1,R:{},l:d,t:s,k:null,o:null,j:null,C:!1},a=u,n=pe;c&&(a=[u],n=ye);var i=Proxy.revocable(a,n),l=i.revoke,h=i.proxy;return u.k=h,u.j=l,h}(t,o):m("ES5").J(t,o);return(o?o.A:y()).p.push(r),r}function j(e){return Z(e)||I(22,e),function t(o){if(!Q(o))return o;var r,s=o[S],d=re(o);if(s){if(!s.P&&(s.i<4||!m("ES5").K(s)))return s.t;s.I=!0,r=b(o,d),s.I=!1}else r=b(o,d);return V(r,function(c,u){s&&ne(s.t,c)===u||le(r,c,t(u))}),d===3?new Set(r):r}(e)}function b(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return R(e)}function E(){function e(c,u){var a=d[c];return a?a.enumerable=u:d[c]=a={configurable:!0,enumerable:u,get:function(){var n=this[S];return pe.get(n,c)},set:function(n){var i=this[S];pe.set(i,c,n)}},a}function t(c){for(var u=c.length-1;u>=0;u--){var a=c[u][S];if(!a.P)switch(a.i){case 5:r(a)&&N(a);break;case 4:o(a)&&N(a)}}}function o(c){for(var u=c.t,a=c.k,n=fe(a),i=n.length-1;i>=0;i--){var l=n[i];if(l!==S){var h=u[l];if(h===void 0&&!ee(u,l))return!0;var p=a[l],w=p&&p[S];if(w?w.t!==h:!oe(p,h))return!0}}var z=!!u[S];return n.length!==fe(u).length+(z?0:1)}function r(c){var u=c.k;if(u.length!==c.t.length)return!0;var a=Object.getOwnPropertyDescriptor(u,u.length-1);if(a&&!a.get)return!0;for(var n=0;n1?K-1:0),ue=1;ue1?i-1:0),h=1;h=0;s--){var d=r[s];if(d.path.length===0&&d.op==="replace"){o=d.value;break}}s>-1&&(r=r.slice(s+1));var c=m("Patches").$;return Z(o)?c(o,r):this.produce(o,function(u){return c(u,r)})},e}(),ae=new ze,Ce=ae.produce,$e=ae.produceWithPatches.bind(ae),Le=ae.setAutoFreeze.bind(ae),Xe=ae.setUseProxies.bind(ae),qe=ae.applyPatches.bind(ae),Be=ae.createDraft.bind(ae),Ge=ae.finishDraft.bind(ae),Qe=null;const Ne=e=>(t,o,r)=>(r.setState=(s,d,...c)=>{const u=typeof s=="function"?Ce(s):s;return t(u,d,...c)},e(r.setState,o,r))}}]); diff --git a/starter/src/main/resources/templates/admin/89.6a88d3ee.async.js b/starter/src/main/resources/templates/admin/89.6a88d3ee.async.js new file mode 100644 index 0000000000..efbe1bcf3b --- /dev/null +++ b/starter/src/main/resources/templates/admin/89.6a88d3ee.async.js @@ -0,0 +1,27 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[89],{48820:function(ee,y){var r={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"};y.Z=r},66023:function(ee,y){var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};y.Z=r},42110:function(ee,y){var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};y.Z=r},78290:function(ee,y,r){var a=r(67294),C=r(17012);const c=p=>{let E;return typeof p=="object"&&(p!=null&&p.clearIcon)?E=p:p&&(E={clearIcon:a.createElement(C.Z,null)}),E};y.Z=c},9708:function(ee,y,r){r.d(y,{F:function(){return E},Z:function(){return p}});var a=r(93967),C=r.n(a);const c=null;function p(l,o,d){return C()({[`${l}-status-success`]:o==="success",[`${l}-status-warning`]:o==="warning",[`${l}-status-error`]:o==="error",[`${l}-status-validating`]:o==="validating",[`${l}-has-feedback`]:d})}const E=(l,o)=>o||l},27833:function(ee,y,r){var a=r(67294),C=r(65223);const c=["outlined","borderless","filled"],p=function(E){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const o=(0,a.useContext)(C.pg);let d;typeof E!="undefined"?d=E:l===!1?d="borderless":d=o!=null?o:"outlined";const v=c.includes(d);return[d,v]};y.Z=p},82586:function(ee,y,r){r.d(y,{Z:function(){return t},n:function(){return Se}});var a=r(67294),C=r(93967),c=r.n(C),p=r(67656),E=r(42550),l=r(78290),o=r(9708),d=r(53124),v=r(98866),x=r(35792),K=r(98675),j=r(65223),te=r(27833),ne=r(4173),xe=r(72922),n=r(47673);function u(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Ae=function(e,s){var b={};for(var R in e)Object.prototype.hasOwnProperty.call(e,R)&&s.indexOf(R)<0&&(b[R]=e[R]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,R=Object.getOwnPropertySymbols(e);Z{var b;const{prefixCls:R,bordered:Z=!0,status:F,size:ue,disabled:fe,onBlur:ie,onFocus:ge,suffix:De,allowClear:Te,addonAfter:Ce,addonBefore:pe,className:Ne,style:Pe,styles:le,rootClassName:Me,onChange:Ze,classNames:re,variant:H}=e,A=Ae(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:$e,direction:J,input:S}=a.useContext(d.E_),i=$e("input",R),U=(0,a.useRef)(null),m=(0,x.Z)(i),[g,h,L]=(0,n.ZP)(i,m),{compactSize:G,compactItemClassnames:B}=(0,ne.ri)(i,J),O=(0,K.Z)(W=>{var ye;return(ye=ue!=null?ue:G)!==null&&ye!==void 0?ye:W}),w=a.useContext(v.Z),M=fe!=null?fe:w,{status:X,hasFeedback:T,feedbackIcon:Q}=(0,a.useContext)(j.aM),_=(0,o.F)(X,F),z=u(e)||!!T,q=(0,a.useRef)(z),se=(0,xe.Z)(U,!0),me=W=>{se(),ie==null||ie(W)},$=W=>{se(),ge==null||ge(W)},D=W=>{se(),Ze==null||Ze(W)},Ee=(T||De)&&a.createElement(a.Fragment,null,De,T&&Q),V=(0,l.Z)(Te!=null?Te:S==null?void 0:S.allowClear),[Y,k]=(0,te.Z)(H,Z);return g(a.createElement(p.Z,Object.assign({ref:(0,E.sQ)(s,U),prefixCls:i,autoComplete:S==null?void 0:S.autoComplete},A,{disabled:M,onBlur:me,onFocus:$,style:Object.assign(Object.assign({},S==null?void 0:S.style),Pe),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),le),suffix:Ee,allowClear:V,className:c()(Ne,Me,L,m,B,S==null?void 0:S.className),onChange:D,addonAfter:Ce&&a.createElement(ne.BR,null,a.createElement(j.Ux,{override:!0,status:!0},Ce)),addonBefore:pe&&a.createElement(ne.BR,null,a.createElement(j.Ux,{override:!0,status:!0},pe)),classNames:Object.assign(Object.assign(Object.assign({},re),S==null?void 0:S.classNames),{input:c()({[`${i}-sm`]:O==="small",[`${i}-lg`]:O==="large",[`${i}-rtl`]:J==="rtl"},re==null?void 0:re.input,(b=S==null?void 0:S.classNames)===null||b===void 0?void 0:b.input,h),variant:c()({[`${i}-${Y}`]:k},(0,o.Z)(i,_)),affixWrapper:c()({[`${i}-affix-wrapper-sm`]:O==="small",[`${i}-affix-wrapper-lg`]:O==="large",[`${i}-affix-wrapper-rtl`]:J==="rtl"},h),wrapper:c()({[`${i}-group-rtl`]:J==="rtl"},h),groupWrapper:c()({[`${i}-group-wrapper-sm`]:O==="small",[`${i}-group-wrapper-lg`]:O==="large",[`${i}-group-wrapper-rtl`]:J==="rtl",[`${i}-group-wrapper-${Y}`]:k},(0,o.Z)(`${i}-group-wrapper`,_,T),h)})})))})},70006:function(ee,y,r){r.d(y,{Z:function(){return S}});var a=r(67294),C=r(93967),c=r.n(C),p=r(87462),E=r(4942),l=r(1413),o=r(74902),d=r(97685),v=r(91),x=r(67656),K=r(82234),j=r(87887),te=r(21770),ne=r(71002),xe=r(9220),n=r(8410),u=r(75164),Ae=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,Se=["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"],ze={},t;function e(i){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=i.getAttribute("id")||i.getAttribute("data-reactid")||i.getAttribute("name");if(U&&ze[m])return ze[m];var g=window.getComputedStyle(i),h=g.getPropertyValue("box-sizing")||g.getPropertyValue("-moz-box-sizing")||g.getPropertyValue("-webkit-box-sizing"),L=parseFloat(g.getPropertyValue("padding-bottom"))+parseFloat(g.getPropertyValue("padding-top")),G=parseFloat(g.getPropertyValue("border-bottom-width"))+parseFloat(g.getPropertyValue("border-top-width")),B=Se.map(function(w){return"".concat(w,":").concat(g.getPropertyValue(w))}).join(";"),O={sizingStyle:B,paddingSize:L,borderSize:G,boxSizing:h};return U&&m&&(ze[m]=O),O}function s(i){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;t||(t=document.createElement("textarea"),t.setAttribute("tab-index","-1"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),i.getAttribute("wrap")?t.setAttribute("wrap",i.getAttribute("wrap")):t.removeAttribute("wrap");var h=e(i,U),L=h.paddingSize,G=h.borderSize,B=h.boxSizing,O=h.sizingStyle;t.setAttribute("style","".concat(O,";").concat(Ae)),t.value=i.value||i.placeholder||"";var w=void 0,M=void 0,X,T=t.scrollHeight;if(B==="border-box"?T+=G:B==="content-box"&&(T-=L),m!==null||g!==null){t.value=" ";var Q=t.scrollHeight-L;m!==null&&(w=Q*m,B==="border-box"&&(w=w+L+G),T=Math.max(w,T)),g!==null&&(M=Q*g,B==="border-box"&&(M=M+L+G),X=T>M?"":"hidden",T=Math.min(M,T))}var _={height:T,overflowY:X,resize:"none"};return w&&(_.minHeight=w),M&&(_.maxHeight=M),_}var b=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],R=0,Z=1,F=2,ue=a.forwardRef(function(i,U){var m=i,g=m.prefixCls,h=m.onPressEnter,L=m.defaultValue,G=m.value,B=m.autoSize,O=m.onResize,w=m.className,M=m.style,X=m.disabled,T=m.onChange,Q=m.onInternalAutoSize,_=(0,v.Z)(m,b),z=(0,te.Z)(L,{value:G,postState:function(ce){return ce!=null?ce:""}}),q=(0,d.Z)(z,2),se=q[0],me=q[1],$=function(ce){me(ce.target.value),T==null||T(ce)},D=a.useRef();a.useImperativeHandle(U,function(){return{textArea:D.current}});var Ee=a.useMemo(function(){return B&&(0,ne.Z)(B)==="object"?[B.minRows,B.maxRows]:[]},[B]),V=(0,d.Z)(Ee,2),Y=V[0],k=V[1],W=!!B,ye=function(){try{if(document.activeElement===D.current){var ce=D.current,Xe=ce.selectionStart,Ge=ce.selectionEnd,Ve=ce.scrollTop;D.current.setSelectionRange(Xe,Ge),D.current.scrollTop=Ve}}catch(Qe){}},Re=a.useState(F),N=(0,d.Z)(Re,2),I=N[0],f=N[1],ae=a.useState(),he=(0,d.Z)(ae,2),ve=he[0],Oe=he[1],be=function(){f(R)};(0,n.Z)(function(){W&&be()},[G,Y,k,W]),(0,n.Z)(function(){if(I===R)f(Z);else if(I===Z){var de=s(D.current,!1,Y,k);f(F),Oe(de)}else ye()},[I]);var We=a.useRef(),Ie=function(){u.Z.cancel(We.current)},Fe=function(ce){I===F&&(O==null||O(ce),B&&(Ie(),We.current=(0,u.Z)(function(){be()})))};a.useEffect(function(){return Ie},[]);var He=W?ve:null,Le=(0,l.Z)((0,l.Z)({},M),He);return(I===R||I===Z)&&(Le.overflowY="hidden",Le.overflowX="hidden"),a.createElement(xe.Z,{onResize:Fe,disabled:!(B||O)},a.createElement("textarea",(0,p.Z)({},_,{ref:D,style:Le,className:c()(g,w,(0,E.Z)({},"".concat(g,"-disabled"),X)),disabled:X,value:se,onChange:$})))}),fe=ue,ie=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],ge=a.forwardRef(function(i,U){var m,g,h=i.defaultValue,L=i.value,G=i.onFocus,B=i.onBlur,O=i.onChange,w=i.allowClear,M=i.maxLength,X=i.onCompositionStart,T=i.onCompositionEnd,Q=i.suffix,_=i.prefixCls,z=_===void 0?"rc-textarea":_,q=i.showCount,se=i.count,me=i.className,$=i.style,D=i.disabled,Ee=i.hidden,V=i.classNames,Y=i.styles,k=i.onResize,W=(0,v.Z)(i,ie),ye=(0,te.Z)(h,{value:L,defaultValue:h}),Re=(0,d.Z)(ye,2),N=Re[0],I=Re[1],f=N==null?"":String(N),ae=a.useState(!1),he=(0,d.Z)(ae,2),ve=he[0],Oe=he[1],be=a.useRef(!1),We=a.useState(null),Ie=(0,d.Z)(We,2),Fe=Ie[0],He=Ie[1],Le=(0,a.useRef)(null),de=function(){var P;return(P=Le.current)===null||P===void 0?void 0:P.textArea},ce=function(){de().focus()};(0,a.useImperativeHandle)(U,function(){return{resizableTextArea:Le.current,focus:ce,blur:function(){de().blur()}}}),(0,a.useEffect)(function(){Oe(function(oe){return!D&&oe})},[D]);var Xe=a.useState(null),Ge=(0,d.Z)(Xe,2),Ve=Ge[0],Qe=Ge[1];a.useEffect(function(){if(Ve){var oe;(oe=de()).setSelectionRange.apply(oe,(0,o.Z)(Ve))}},[Ve]);var we=(0,K.Z)(se,q),Ke=(m=we.max)!==null&&m!==void 0?m:M,qe=Number(Ke)>0,Je=we.strategy(f),ke=!!Ke&&Je>Ke,_e=function(P,Be){var je=Be;!be.current&&we.exceedFormatter&&we.max&&we.strategy(Be)>we.max&&(je=we.exceedFormatter(Be,{max:we.max}),Be!==je&&Qe([de().selectionStart||0,de().selectionEnd||0])),I(je),(0,j.rJ)(P.currentTarget,P,O,je)},et=function(P){be.current=!0,X==null||X(P)},tt=function(P){be.current=!1,_e(P,P.currentTarget.value),T==null||T(P)},nt=function(P){_e(P,P.target.value)},rt=function(P){var Be=W.onPressEnter,je=W.onKeyDown;P.key==="Enter"&&Be&&Be(P),je==null||je(P)},at=function(P){Oe(!0),G==null||G(P)},ot=function(P){Oe(!1),B==null||B(P)},it=function(P){I(""),ce(),(0,j.rJ)(de(),P,O)},Ye=Q,Ue;we.show&&(we.showFormatter?Ue=we.showFormatter({value:f,count:Je,maxLength:Ke}):Ue="".concat(Je).concat(qe?" / ".concat(Ke):""),Ye=a.createElement(a.Fragment,null,Ye,a.createElement("span",{className:c()("".concat(z,"-data-count"),V==null?void 0:V.count),style:Y==null?void 0:Y.count},Ue)));var lt=function(P){var Be;k==null||k(P),(Be=de())!==null&&Be!==void 0&&Be.style.height&&He(!0)},st=!W.autoSize&&!q&&!w;return a.createElement(x.Q,{value:f,allowClear:w,handleReset:it,suffix:Ye,prefixCls:z,classNames:(0,l.Z)((0,l.Z)({},V),{},{affixWrapper:c()(V==null?void 0:V.affixWrapper,(g={},(0,E.Z)(g,"".concat(z,"-show-count"),q),(0,E.Z)(g,"".concat(z,"-textarea-allow-clear"),w),g))}),disabled:D,focused:ve,className:c()(me,ke&&"".concat(z,"-out-of-range")),style:(0,l.Z)((0,l.Z)({},$),Fe&&!st?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ue=="string"?Ue:void 0}},hidden:Ee},a.createElement(fe,(0,p.Z)({},W,{maxLength:M,onKeyDown:rt,onChange:nt,onFocus:at,onBlur:ot,onCompositionStart:et,onCompositionEnd:tt,className:c()(V==null?void 0:V.textarea),style:(0,l.Z)((0,l.Z)({},Y==null?void 0:Y.textarea),{},{resize:$==null?void 0:$.resize}),disabled:D,prefixCls:z,onResize:lt,ref:Le})))}),De=ge,Te=De,Ce=r(78290),pe=r(9708),Ne=r(53124),Pe=r(98866),le=r(35792),Me=r(98675),Ze=r(65223),re=r(27833),H=r(82586),A=r(47673),$e=function(i,U){var m={};for(var g in i)Object.prototype.hasOwnProperty.call(i,g)&&U.indexOf(g)<0&&(m[g]=i[g]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,g=Object.getOwnPropertySymbols(i);h{var m,g;const{prefixCls:h,bordered:L=!0,size:G,disabled:B,status:O,allowClear:w,classNames:M,rootClassName:X,className:T,style:Q,styles:_,variant:z}=i,q=$e(i,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:se,direction:me,textArea:$}=a.useContext(Ne.E_),D=(0,Me.Z)(G),Ee=a.useContext(Pe.Z),V=B!=null?B:Ee,{status:Y,hasFeedback:k,feedbackIcon:W}=a.useContext(Ze.aM),ye=(0,pe.F)(Y,O),Re=a.useRef(null);a.useImperativeHandle(U,()=>{var We;return{resizableTextArea:(We=Re.current)===null||We===void 0?void 0:We.resizableTextArea,focus:Ie=>{var Fe,He;(0,H.n)((He=(Fe=Re.current)===null||Fe===void 0?void 0:Fe.resizableTextArea)===null||He===void 0?void 0:He.textArea,Ie)},blur:()=>{var Ie;return(Ie=Re.current)===null||Ie===void 0?void 0:Ie.blur()}}});const N=se("input",h),I=(0,le.Z)(N),[f,ae,he]=(0,A.ZP)(N,I),[ve,Oe]=(0,re.Z)(z,L),be=(0,Ce.Z)(w!=null?w:$==null?void 0:$.allowClear);return f(a.createElement(Te,Object.assign({autoComplete:$==null?void 0:$.autoComplete},q,{style:Object.assign(Object.assign({},$==null?void 0:$.style),Q),styles:Object.assign(Object.assign({},$==null?void 0:$.styles),_),disabled:V,allowClear:be,className:c()(he,I,T,X,$==null?void 0:$.className),classNames:Object.assign(Object.assign(Object.assign({},M),$==null?void 0:$.classNames),{textarea:c()({[`${N}-sm`]:D==="small",[`${N}-lg`]:D==="large"},ae,M==null?void 0:M.textarea,(m=$==null?void 0:$.classNames)===null||m===void 0?void 0:m.textarea),variant:c()({[`${N}-${ve}`]:Oe},(0,pe.Z)(N,ye)),affixWrapper:c()(`${N}-textarea-affix-wrapper`,{[`${N}-affix-wrapper-rtl`]:me==="rtl",[`${N}-affix-wrapper-sm`]:D==="small",[`${N}-affix-wrapper-lg`]:D==="large",[`${N}-textarea-show-count`]:i.showCount||((g=i.count)===null||g===void 0?void 0:g.show)},ae)}),prefixCls:N,suffix:k&&a.createElement("span",{className:`${N}-textarea-suffix`},W),ref:Re})))})},72922:function(ee,y,r){r.d(y,{Z:function(){return C}});var a=r(67294);function C(c,p){const E=(0,a.useRef)([]),l=()=>{E.current.push(setTimeout(()=>{var o,d,v,x;!((o=c.current)===null||o===void 0)&&o.input&&((d=c.current)===null||d===void 0?void 0:d.input.getAttribute("type"))==="password"&&(!((v=c.current)===null||v===void 0)&&v.input.hasAttribute("value"))&&((x=c.current)===null||x===void 0||x.input.removeAttribute("value"))}))};return(0,a.useEffect)(()=>(p&&l(),()=>E.current.forEach(o=>{o&&clearTimeout(o)})),[]),l}},47673:function(ee,y,r){r.d(y,{ik:function(){return j},nz:function(){return d},s7:function(){return te},x0:function(){return K}});var a=r(6731),C=r(14747),c=r(80110),p=r(91945),E=r(45503),l=r(20353),o=r(93900);const d=t=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:t,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),v=t=>({borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:t.activeBg}),x=t=>{const{paddingBlockLG:e,lineHeightLG:s,borderRadiusLG:b,paddingInlineLG:R}=t;return{padding:`${(0,a.bf)(e)} ${(0,a.bf)(R)}`,fontSize:t.inputFontSizeLG,lineHeight:s,borderRadius:b}},K=t=>({padding:`${(0,a.bf)(t.paddingBlockSM)} ${(0,a.bf)(t.paddingInlineSM)}`,fontSize:t.inputFontSizeSM,borderRadius:t.borderRadiusSM}),j=t=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,a.bf)(t.paddingBlock)} ${(0,a.bf)(t.paddingInline)}`,color:t.colorText,fontSize:t.inputFontSize,lineHeight:t.lineHeight,borderRadius:t.borderRadius,transition:`all ${t.motionDurationMid}`},d(t.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:t.controlHeight,lineHeight:t.lineHeight,verticalAlign:"bottom",transition:`all ${t.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},x(t)),"&-sm":Object.assign({},K(t)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),te=t=>{const{componentCls:e,antCls:s}=t;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:t.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${e}, &-lg > ${e}-group-addon`]:Object.assign({},x(t)),[`&-sm ${e}, &-sm > ${e}-group-addon`]:Object.assign({},K(t)),[`&-lg ${s}-select-single ${s}-select-selector`]:{height:t.controlHeightLG},[`&-sm ${s}-select-single ${s}-select-selector`]:{height:t.controlHeightSM},[`> ${e}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${e}-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 ${(0,a.bf)(t.paddingInline)}`,color:t.colorText,fontWeight:"normal",fontSize:t.inputFontSize,textAlign:"center",borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`,lineHeight:1,[`${s}-select`]:{margin:`${(0,a.bf)(t.calc(t.paddingBlock).add(1).mul(-1).equal())} ${(0,a.bf)(t.calc(t.paddingInline).mul(-1).equal())}`,[`&${s}-select-single:not(${s}-select-customize-input):not(${s}-pagination-size-changer)`]:{[`${s}-select-selector`]:{backgroundColor:"inherit",border:`${(0,a.bf)(t.lineWidth)} ${t.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${s}-select-selector`]:{color:t.colorPrimary}}},[`${s}-cascader-picker`]:{margin:`-9px ${(0,a.bf)(t.calc(t.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${s}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${e}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${e}-search-with-button &`]:{zIndex:0}}},[`> ${e}:first-child, ${e}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${s}-select ${s}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}-affix-wrapper`]:{[`&:not(:first-child) ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}:last-child, ${e}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${s}-select ${s}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${e}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${e}-search &`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius}},[`&:not(:first-child), ${e}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${e}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,C.dF)()),{[`${e}-group-addon, ${e}-group-wrap, > ${e}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:t.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${e}-affix-wrapper, + & > ${e}-number-affix-wrapper, + & > ${s}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:t.calc(t.lineWidth).mul(-1).equal(),borderInlineEndWidth:t.lineWidth},[`${e}`]:{float:"none"},[`& > ${s}-select > ${s}-select-selector, + & > ${s}-select-auto-complete ${e}, + & > ${s}-cascader-picker ${e}, + & > ${e}-group-wrapper ${e}`]:{borderInlineEndWidth:t.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${s}-select-focused`]:{zIndex:1},[`& > ${s}-select > ${s}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${s}-select:first-child > ${s}-select-selector, + & > ${s}-select-auto-complete:first-child ${e}, + & > ${s}-cascader-picker:first-child ${e}`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius},[`& > *:last-child, + & > ${s}-select:last-child > ${s}-select-selector, + & > ${s}-cascader-picker:last-child ${e}, + & > ${s}-cascader-picker-focused:last-child ${e}`]:{borderInlineEndWidth:t.lineWidth,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius},[`& > ${s}-select-auto-complete ${e}`]:{verticalAlign:"top"},[`${e}-group-wrapper + ${e}-group-wrapper`]:{marginInlineStart:t.calc(t.lineWidth).mul(-1).equal(),[`${e}-affix-wrapper`]:{borderRadius:0}},[`${e}-group-wrapper:not(:last-child)`]:{[`&${e}-search > ${e}-group`]:{[`& > ${e}-group-addon > ${e}-search-button`]:{borderRadius:0},[`& > ${e}`]:{borderStartStartRadius:t.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:t.borderRadius}}}})}},ne=t=>{const{componentCls:e,controlHeightSM:s,lineWidth:b,calc:R}=t,Z=16,F=R(s).sub(R(b).mul(2)).sub(Z).div(2).equal();return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Wf)(t)),j(t)),(0,o.qG)(t)),(0,o.H8)(t)),(0,o.Mu)(t)),{'&[type="color"]':{height:t.controlHeight,[`&${e}-lg`]:{height:t.controlHeightLG},[`&${e}-sm`]:{height:s,paddingTop:F,paddingBottom:F}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},xe=t=>{const{componentCls:e}=t;return{[`${e}-clear-icon`]:{margin:0,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"&:hover":{color:t.colorTextTertiary},"&:active":{color:t.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,a.bf)(t.inputAffixPadding)}`}}}},n=t=>{const{componentCls:e,inputAffixPadding:s,colorTextDescription:b,motionDurationSlow:R,colorIcon:Z,colorIconHover:F,iconCls:ue}=t;return{[`${e}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},j(t)),{display:"inline-flex",[`&:not(${e}-disabled):hover`]:{zIndex:1,[`${e}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${e}`]:{padding:0,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"'},[`${e}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:t.paddingXS}},"&-show-count-suffix":{color:b},"&-show-count-has-suffix":{marginInlineEnd:t.paddingXXS},"&-prefix":{marginInlineEnd:s},"&-suffix":{marginInlineStart:s}}}),xe(t)),{[`${ue}${e}-password-icon`]:{color:Z,cursor:"pointer",transition:`all ${R}`,"&:hover":{color:F}}})}},u=t=>{const{componentCls:e,borderRadiusLG:s,borderRadiusSM:b}=t;return{[`${e}-group`]:Object.assign(Object.assign(Object.assign({},(0,C.Wf)(t)),te(t)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${e}-group-addon`]:{borderRadius:s,fontSize:t.inputFontSizeLG}},"&-sm":{[`${e}-group-addon`]:{borderRadius:b}}},(0,o.ir)(t)),(0,o.S5)(t)),{[`&:not(${e}-compact-first-item):not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}, ${e}-group-addon`]:{borderRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-first-item`]:{[`${e}, ${e}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-last-item`]:{[`${e}, ${e}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Ae=t=>{const{componentCls:e,antCls:s}=t,b=`${e}-search`;return{[b]:{[`${e}`]:{"&:hover, &:focus":{borderColor:t.colorPrimaryHover,[`+ ${e}-group-addon ${b}-button:not(${s}-btn-primary)`]:{borderInlineStartColor:t.colorPrimaryHover}}},[`${e}-affix-wrapper`]:{borderRadius:0},[`${e}-lg`]:{lineHeight:t.calc(t.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${e}-group`]:{[`> ${e}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${b}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${b}-button:not(${s}-btn-primary)`]:{color:t.colorTextDescription,"&:hover":{color:t.colorPrimaryHover},"&:active":{color:t.colorPrimaryActive},[`&${s}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${b}-button`]:{height:t.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${b}-button`]:{height:t.controlHeightLG},[`&-small ${b}-button`]:{height:t.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${e}-compact-item`]:{[`&:not(${e}-compact-last-item)`]:{[`${e}-group-addon`]:{[`${e}-search-button`]:{marginInlineEnd:t.calc(t.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${e}-compact-first-item)`]:{[`${e},${e}-affix-wrapper`]:{borderRadius:0}},[`> ${e}-group-addon ${e}-search-button, + > ${e}, + ${e}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${e}-affix-wrapper-focused`]:{zIndex:2}}}}},Se=t=>{const{componentCls:e,paddingLG:s}=t,b=`${e}-textarea`;return{[b]:{position:"relative","&-show-count":{[`> ${e}`]:{height:"100%"},[`${e}-data-count`]:{position:"absolute",bottom:t.calc(t.fontSize).mul(t.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:t.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${e}`]:{paddingInlineEnd:s}},[`&-affix-wrapper${b}-has-feedback`]:{[`${e}`]:{paddingInlineEnd:s}},[`&-affix-wrapper${e}-affix-wrapper`]:{padding:0,[`> textarea${e}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${e}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${e}-clear-icon`]:{position:"absolute",insetInlineEnd:t.paddingXS,insetBlockStart:t.paddingXS},[`${b}-suffix`]:{position:"absolute",top:0,insetInlineEnd:t.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},ze=t=>{const{componentCls:e}=t;return{[`${e}-out-of-range`]:{[`&, & input, & textarea, ${e}-show-count-suffix, ${e}-data-count`]:{color:t.colorError}}}};y.ZP=(0,p.I$)("Input",t=>{const e=(0,E.TS)(t,(0,l.e)(t));return[ne(e),Se(e),n(e),u(e),Ae(e),ze(e),(0,c.c)(e)]},l.T)},20353:function(ee,y,r){r.d(y,{T:function(){return c},e:function(){return C}});var a=r(45503);function C(p){return(0,a.TS)(p,{inputAffixPadding:p.paddingXXS})}const c=p=>{const{controlHeight:E,fontSize:l,lineHeight:o,lineWidth:d,controlHeightSM:v,controlHeightLG:x,fontSizeLG:K,lineHeightLG:j,paddingSM:te,controlPaddingHorizontalSM:ne,controlPaddingHorizontal:xe,colorFillAlter:n,colorPrimaryHover:u,colorPrimary:Ae,controlOutlineWidth:Se,controlOutline:ze,colorErrorOutline:t,colorWarningOutline:e,colorBgContainer:s}=p;return{paddingBlock:Math.max(Math.round((E-l*o)/2*10)/10-d,0),paddingBlockSM:Math.max(Math.round((v-l*o)/2*10)/10-d,0),paddingBlockLG:Math.ceil((x-K*j)/2*10)/10-d,paddingInline:te-d,paddingInlineSM:ne-d,paddingInlineLG:xe-d,addonBg:n,activeBorderColor:Ae,hoverBorderColor:u,activeShadow:`0 0 0 ${Se}px ${ze}`,errorActiveShadow:`0 0 0 ${Se}px ${t}`,warningActiveShadow:`0 0 0 ${Se}px ${e}`,hoverBg:s,activeBg:s,inputFontSize:l,inputFontSizeLG:K,inputFontSizeSM:l}}},93900:function(ee,y,r){r.d(y,{$U:function(){return E},H8:function(){return te},Mu:function(){return x},S5:function(){return xe},Xy:function(){return p},ir:function(){return v},qG:function(){return o}});var a=r(6731),C=r(45503);const c=n=>({borderColor:n.hoverBorderColor,backgroundColor:n.hoverBg}),p=n=>({color:n.colorTextDisabled,backgroundColor:n.colorBgContainerDisabled,borderColor:n.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},c((0,C.TS)(n,{hoverBorderColor:n.colorBorder,hoverBg:n.colorBgContainerDisabled})))}),E=(n,u)=>({background:n.colorBgContainer,borderWidth:n.lineWidth,borderStyle:n.lineType,borderColor:u.borderColor,"&:hover":{borderColor:u.hoverBorderColor,backgroundColor:n.hoverBg},"&:focus, &:focus-within":{borderColor:u.activeBorderColor,boxShadow:u.activeShadow,outline:0,backgroundColor:n.activeBg}}),l=(n,u)=>({[`&${n.componentCls}-status-${u.status}:not(${n.componentCls}-disabled)`]:Object.assign(Object.assign({},E(n,u)),{[`${n.componentCls}-prefix, ${n.componentCls}-suffix`]:{color:u.affixColor}})}),o=(n,u)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},E(n,{borderColor:n.colorBorder,hoverBorderColor:n.hoverBorderColor,activeBorderColor:n.activeBorderColor,activeShadow:n.activeShadow})),{[`&${n.componentCls}-disabled, &[disabled]`]:Object.assign({},p(n))}),l(n,{status:"error",borderColor:n.colorError,hoverBorderColor:n.colorErrorBorderHover,activeBorderColor:n.colorError,activeShadow:n.errorActiveShadow,affixColor:n.colorError})),l(n,{status:"warning",borderColor:n.colorWarning,hoverBorderColor:n.colorWarningBorderHover,activeBorderColor:n.colorWarning,activeShadow:n.warningActiveShadow,affixColor:n.colorWarning})),u)}),d=(n,u)=>({[`&${n.componentCls}-group-wrapper-status-${u.status}`]:{[`${n.componentCls}-group-addon`]:{borderColor:u.addonBorderColor,color:u.addonColor}}}),v=n=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${n.componentCls}-group`]:{"&-addon":{background:n.addonBg,border:`${(0,a.bf)(n.lineWidth)} ${n.lineType} ${n.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},d(n,{status:"error",addonBorderColor:n.colorError,addonColor:n.colorErrorText})),d(n,{status:"warning",addonBorderColor:n.colorWarning,addonColor:n.colorWarningText})),{[`&${n.componentCls}-group-wrapper-disabled`]:{[`${n.componentCls}-group-addon`]:Object.assign({},p(n))}})}),x=(n,u)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n.componentCls}-disabled, &[disabled]`]:{color:n.colorTextDisabled}},u)}),K=(n,u)=>({background:u.bg,borderWidth:n.lineWidth,borderStyle:n.lineType,borderColor:"transparent",["input&, & input, textarea&, & textarea"]:{color:u==null?void 0:u.inputColor},"&:hover":{background:u.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:u.activeBorderColor,backgroundColor:n.activeBg}}),j=(n,u)=>({[`&${n.componentCls}-status-${u.status}:not(${n.componentCls}-disabled)`]:Object.assign(Object.assign({},K(n,u)),{[`${n.componentCls}-prefix, ${n.componentCls}-suffix`]:{color:u.affixColor}})}),te=(n,u)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},K(n,{bg:n.colorFillTertiary,hoverBg:n.colorFillSecondary,activeBorderColor:n.colorPrimary})),{[`&${n.componentCls}-disabled, &[disabled]`]:Object.assign({},p(n))}),j(n,{status:"error",bg:n.colorErrorBg,hoverBg:n.colorErrorBgHover,activeBorderColor:n.colorError,inputColor:n.colorErrorText,affixColor:n.colorError})),j(n,{status:"warning",bg:n.colorWarningBg,hoverBg:n.colorWarningBgHover,activeBorderColor:n.colorWarning,inputColor:n.colorWarningText,affixColor:n.colorWarning})),u)}),ne=(n,u)=>({[`&${n.componentCls}-group-wrapper-status-${u.status}`]:{[`${n.componentCls}-group-addon`]:{background:u.addonBg,color:u.addonColor}}}),xe=n=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${n.componentCls}-group`]:{"&-addon":{background:n.colorFillTertiary},[`${n.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,a.bf)(n.lineWidth)} ${n.lineType} ${n.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,a.bf)(n.lineWidth)} ${n.lineType} ${n.colorSplit}`}}}},ne(n,{status:"error",addonBg:n.colorErrorBg,addonColor:n.colorErrorText})),ne(n,{status:"warning",addonBg:n.colorWarningBg,addonColor:n.colorWarningText})),{[`&${n.componentCls}-group-wrapper-disabled`]:{[`${n.componentCls}-group`]:{"&-addon":{background:n.colorFillTertiary,color:n.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,a.bf)(n.lineWidth)} ${n.lineType} ${n.colorBorder}`,borderTop:`${(0,a.bf)(n.lineWidth)} ${n.lineType} ${n.colorBorder}`,borderBottom:`${(0,a.bf)(n.lineWidth)} ${n.lineType} ${n.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,a.bf)(n.lineWidth)} ${n.lineType} ${n.colorBorder}`,borderTop:`${(0,a.bf)(n.lineWidth)} ${n.lineType} ${n.colorBorder}`,borderBottom:`${(0,a.bf)(n.lineWidth)} ${n.lineType} ${n.colorBorder}`}}}})})},35918:function(ee,y,r){r.d(y,{Z:function(){return d}});var a=r(87462),C=r(67294),c={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"},p=c,E=r(93771),l=function(x,K){return C.createElement(E.Z,(0,a.Z)({},x,{ref:K,icon:p}))},o=C.forwardRef(l),d=o},13622:function(ee,y,r){var a=r(87462),C=r(67294),c=r(66023),p=r(93771),E=function(d,v){return C.createElement(p.Z,(0,a.Z)({},d,{ref:v,icon:c.Z}))},l=C.forwardRef(E);y.Z=l},82234:function(ee,y,r){r.d(y,{Z:function(){return o}});var a=r(91),C=r(1413),c=r(71002),p=r(67294),E=["show"];function l(d,v){if(!v.max)return!0;var x=v.strategy(d);return x<=v.max}function o(d,v){return p.useMemo(function(){var x={};v&&(x.show=(0,c.Z)(v)==="object"&&v.formatter?v.formatter:!!v),x=(0,C.Z)((0,C.Z)({},x),d);var K=x,j=K.show,te=(0,a.Z)(K,E);return(0,C.Z)((0,C.Z)({},te),{},{show:!!j,showFormatter:typeof j=="function"?j:void 0,strategy:te.strategy||function(ne){return ne.length}})},[d,v])}},67656:function(ee,y,r){r.d(y,{Q:function(){return x},Z:function(){return ze}});var a=r(1413),C=r(87462),c=r(4942),p=r(71002),E=r(93967),l=r.n(E),o=r(67294),d=r(87887),v=function(e){var s,b,R=e.inputElement,Z=e.children,F=e.prefixCls,ue=e.prefix,fe=e.suffix,ie=e.addonBefore,ge=e.addonAfter,De=e.className,Te=e.style,Ce=e.disabled,pe=e.readOnly,Ne=e.focused,Pe=e.triggerFocus,le=e.allowClear,Me=e.value,Ze=e.handleReset,re=e.hidden,H=e.classes,A=e.classNames,$e=e.dataAttrs,J=e.styles,S=e.components,i=Z!=null?Z:R,U=(S==null?void 0:S.affixWrapper)||"span",m=(S==null?void 0:S.groupWrapper)||"span",g=(S==null?void 0:S.wrapper)||"span",h=(S==null?void 0:S.groupAddon)||"span",L=(0,o.useRef)(null),G=function(k){var W;(W=L.current)!==null&&W!==void 0&&W.contains(k.target)&&(Pe==null||Pe())},B=(0,d.X3)(e),O=(0,o.cloneElement)(i,{value:Me,className:l()(i.props.className,!B&&(A==null?void 0:A.variant))||null});if(B){var w,M=null;if(le){var X,T=!Ce&&!pe&&Me,Q="".concat(F,"-clear-icon"),_=(0,p.Z)(le)==="object"&&le!==null&&le!==void 0&&le.clearIcon?le.clearIcon:"\u2716";M=o.createElement("span",{onClick:Ze,onMouseDown:function(k){return k.preventDefault()},className:l()(Q,(X={},(0,c.Z)(X,"".concat(Q,"-hidden"),!T),(0,c.Z)(X,"".concat(Q,"-has-suffix"),!!fe),X)),role:"button",tabIndex:-1},_)}var z="".concat(F,"-affix-wrapper"),q=l()(z,(w={},(0,c.Z)(w,"".concat(F,"-disabled"),Ce),(0,c.Z)(w,"".concat(z,"-disabled"),Ce),(0,c.Z)(w,"".concat(z,"-focused"),Ne),(0,c.Z)(w,"".concat(z,"-readonly"),pe),(0,c.Z)(w,"".concat(z,"-input-with-clear-btn"),fe&&le&&Me),w),H==null?void 0:H.affixWrapper,A==null?void 0:A.affixWrapper,A==null?void 0:A.variant),se=(fe||le)&&o.createElement("span",{className:l()("".concat(F,"-suffix"),A==null?void 0:A.suffix),style:J==null?void 0:J.suffix},M,fe);O=o.createElement(U,(0,C.Z)({className:q,style:J==null?void 0:J.affixWrapper,onClick:G},$e==null?void 0:$e.affixWrapper,{ref:L}),ue&&o.createElement("span",{className:l()("".concat(F,"-prefix"),A==null?void 0:A.prefix),style:J==null?void 0:J.prefix},ue),O,se)}if((0,d.He)(e)){var me="".concat(F,"-group"),$="".concat(me,"-addon"),D="".concat(me,"-wrapper"),Ee=l()("".concat(F,"-wrapper"),me,H==null?void 0:H.wrapper,A==null?void 0:A.wrapper),V=l()(D,(0,c.Z)({},"".concat(D,"-disabled"),Ce),H==null?void 0:H.group,A==null?void 0:A.groupWrapper);O=o.createElement(m,{className:V},o.createElement(g,{className:Ee},ie&&o.createElement(h,{className:$},ie),O,ge&&o.createElement(h,{className:$},ge)))}return o.cloneElement(O,{className:l()((s=O.props)===null||s===void 0?void 0:s.className,De)||null,style:(0,a.Z)((0,a.Z)({},(b=O.props)===null||b===void 0?void 0:b.style),Te),hidden:re})},x=v,K=r(74902),j=r(97685),te=r(91),ne=r(21770),xe=r(98423),n=r(82234),u=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Ae=(0,o.forwardRef)(function(t,e){var s=t.autoComplete,b=t.onChange,R=t.onFocus,Z=t.onBlur,F=t.onPressEnter,ue=t.onKeyDown,fe=t.prefixCls,ie=fe===void 0?"rc-input":fe,ge=t.disabled,De=t.htmlSize,Te=t.className,Ce=t.maxLength,pe=t.suffix,Ne=t.showCount,Pe=t.count,le=t.type,Me=le===void 0?"text":le,Ze=t.classes,re=t.classNames,H=t.styles,A=t.onCompositionStart,$e=t.onCompositionEnd,J=(0,te.Z)(t,u),S=(0,o.useState)(!1),i=(0,j.Z)(S,2),U=i[0],m=i[1],g=(0,o.useRef)(!1),h=(0,o.useRef)(null),L=function(f){h.current&&(0,d.nH)(h.current,f)},G=(0,ne.Z)(t.defaultValue,{value:t.value}),B=(0,j.Z)(G,2),O=B[0],w=B[1],M=O==null?"":String(O),X=(0,o.useState)(null),T=(0,j.Z)(X,2),Q=T[0],_=T[1],z=(0,n.Z)(Pe,Ne),q=z.max||Ce,se=z.strategy(M),me=!!q&&se>q;(0,o.useImperativeHandle)(e,function(){return{focus:L,blur:function(){var f;(f=h.current)===null||f===void 0||f.blur()},setSelectionRange:function(f,ae,he){var ve;(ve=h.current)===null||ve===void 0||ve.setSelectionRange(f,ae,he)},select:function(){var f;(f=h.current)===null||f===void 0||f.select()},input:h.current}}),(0,o.useEffect)(function(){m(function(I){return I&&ge?!1:I})},[ge]);var $=function(f,ae,he){var ve=ae;if(!g.current&&z.exceedFormatter&&z.max&&z.strategy(ae)>z.max){if(ve=z.exceedFormatter(ae,{max:z.max}),ae!==ve){var Oe,be;_([((Oe=h.current)===null||Oe===void 0?void 0:Oe.selectionStart)||0,((be=h.current)===null||be===void 0?void 0:be.selectionEnd)||0])}}else if(he.source==="compositionEnd")return;w(ve),h.current&&(0,d.rJ)(h.current,f,b,ve)};(0,o.useEffect)(function(){if(Q){var I;(I=h.current)===null||I===void 0||I.setSelectionRange.apply(I,(0,K.Z)(Q))}},[Q]);var D=function(f){$(f,f.target.value,{source:"change"})},Ee=function(f){g.current=!1,$(f,f.currentTarget.value,{source:"compositionEnd"}),$e==null||$e(f)},V=function(f){F&&f.key==="Enter"&&F(f),ue==null||ue(f)},Y=function(f){m(!0),R==null||R(f)},k=function(f){m(!1),Z==null||Z(f)},W=function(f){w(""),L(),h.current&&(0,d.rJ)(h.current,f,b)},ye=me&&"".concat(ie,"-out-of-range"),Re=function(){var f=(0,xe.Z)(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return o.createElement("input",(0,C.Z)({autoComplete:s},f,{onChange:D,onFocus:Y,onBlur:k,onKeyDown:V,className:l()(ie,(0,c.Z)({},"".concat(ie,"-disabled"),ge),re==null?void 0:re.input),style:H==null?void 0:H.input,ref:h,size:De,type:Me,onCompositionStart:function(he){g.current=!0,A==null||A(he)},onCompositionEnd:Ee}))},N=function(){var f=Number(q)>0;if(pe||z.show){var ae=z.showFormatter?z.showFormatter({value:M,count:se,maxLength:q}):"".concat(se).concat(f?" / ".concat(q):"");return o.createElement(o.Fragment,null,z.show&&o.createElement("span",{className:l()("".concat(ie,"-show-count-suffix"),(0,c.Z)({},"".concat(ie,"-show-count-has-suffix"),!!pe),re==null?void 0:re.count),style:(0,a.Z)({},H==null?void 0:H.count)},ae),pe)}return null};return o.createElement(x,(0,C.Z)({},J,{prefixCls:ie,className:l()(Te,ye),handleReset:W,value:M,focused:U,triggerFocus:L,suffix:N(),disabled:ge,classes:Ze,classNames:re,styles:H}),Re())}),Se=Ae,ze=Se},87887:function(ee,y,r){r.d(y,{He:function(){return a},X3:function(){return C},nH:function(){return E},rJ:function(){return p}});function a(l){return!!(l.addonBefore||l.addonAfter)}function C(l){return!!(l.prefix||l.suffix||l.allowClear)}function c(l,o,d){var v=o.cloneNode(!0),x=Object.create(l,{target:{value:v},currentTarget:{value:v}});return v.value=d,typeof o.selectionStart=="number"&&typeof o.selectionEnd=="number"&&(v.selectionStart=o.selectionStart,v.selectionEnd=o.selectionEnd),x}function p(l,o,d,v){if(d){var x=o;if(o.type==="click"){x=c(o,l,""),d(x);return}if(l.type!=="file"&&v!==void 0){x=c(o,l,v),d(x);return}d(x)}}function E(l,o){if(l){l.focus(o);var d=o||{},v=d.cursor;if(v){var x=l.value.length;switch(v){case"start":l.setSelectionRange(0,0);break;case"end":l.setSelectionRange(x,x);break;default:l.setSelectionRange(0,x)}}}}}}]); diff --git a/starter/src/main/resources/templates/admin/905.6762d1ca.async.js b/starter/src/main/resources/templates/admin/905.5935f7c9.async.js similarity index 66% rename from starter/src/main/resources/templates/admin/905.6762d1ca.async.js rename to starter/src/main/resources/templates/admin/905.5935f7c9.async.js index 1bc365719b..ff09228dab 100644 --- a/starter/src/main/resources/templates/admin/905.6762d1ca.async.js +++ b/starter/src/main/resources/templates/admin/905.5935f7c9.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[905],{29905:function(t1,u,r){r.d(u,{ZP:function(){return U}});var e=r(67294),f=r(76278),L=r(17012),v=r(26702),B=r(87462),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},g=C,D=r(93771),W=function(l,a){return e.createElement(D.Z,(0,B.Z)({},l,{ref:a,icon:g}))},A=e.forwardRef(W),j=A,z=r(93967),F=r.n(z),$=r(53124),S=()=>e.createElement("svg",{width:"252",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .012)"},e.createElement("mask",{fill:"#fff"}),e.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),e.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),e.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),e.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),e.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),e.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),e.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),e.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),e.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),e.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),e.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),e.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),e.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),e.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),e.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),e.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),e.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),e.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),e.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),e.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),e.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),e.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),e.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),e.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),e.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),e.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),e.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),e.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),e.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),e.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),e.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),e.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),e.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),e.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),e.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),e.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),e.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),e.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),x=()=>e.createElement("svg",{width:"254",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),e.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .067)"},e.createElement("mask",{fill:"#fff"}),e.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),e.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),e.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),e.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),e.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),e.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),e.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),e.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),e.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),e.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),e.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),e.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),e.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),e.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),e.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),e.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),e.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),e.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),e.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),e.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),e.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),e.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),e.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),e.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),e.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),e.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),e.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),e.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),e.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),e.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),e.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),e.createElement("mask",{fill:"#fff"}),e.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),e.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),e.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),e.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),e.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),e.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),e.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),e.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),E=r(87107),H=r(91945),I=r(45503);const N=t=>{const{componentCls:l,lineHeightHeading3:a,iconCls:n,padding:s,paddingXL:o,paddingXS:M,paddingLG:i,marginXS:p,lineHeight:k}=t;return{[l]:{padding:`${(0,E.bf)(t.calc(i).mul(2).equal())} ${(0,E.bf)(o)}`,"&-rtl":{direction:"rtl"}},[`${l} ${l}-image`]:{width:t.imageWidth,height:t.imageHeight,margin:"auto"},[`${l} ${l}-icon`]:{marginBottom:i,textAlign:"center",[`& > ${n}`]:{fontSize:t.iconFontSize}},[`${l} ${l}-title`]:{color:t.colorTextHeading,fontSize:t.titleFontSize,lineHeight:a,marginBlock:p,textAlign:"center"},[`${l} ${l}-subtitle`]:{color:t.colorTextDescription,fontSize:t.subtitleFontSize,lineHeight:k,textAlign:"center"},[`${l} ${l}-content`]:{marginTop:i,padding:`${(0,E.bf)(i)} ${(0,E.bf)(t.calc(s).mul(2.5).equal())}`,backgroundColor:t.colorFillAlter},[`${l} ${l}-extra`]:{margin:t.extraMargin,textAlign:"center","& > *":{marginInlineEnd:M,"&:last-child":{marginInlineEnd:0}}}}},V=t=>{const{componentCls:l,iconCls:a}=t;return{[`${l}-success ${l}-icon > ${a}`]:{color:t.resultSuccessIconColor},[`${l}-error ${l}-icon > ${a}`]:{color:t.resultErrorIconColor},[`${l}-info ${l}-icon > ${a}`]:{color:t.resultInfoIconColor},[`${l}-warning ${l}-icon > ${a}`]:{color:t.resultWarningIconColor}}},y=t=>[N(t),V(t)],R=t=>y(t),T=t=>({titleFontSize:t.fontSizeHeading3,subtitleFontSize:t.fontSize,iconFontSize:t.fontSizeHeading3*3,extraMargin:`${t.paddingLG}px 0 0 0`});var b=(0,H.I$)("Result",t=>{const l=t.colorInfo,a=t.colorError,n=t.colorSuccess,s=t.colorWarning,o=(0,I.TS)(t,{resultInfoIconColor:l,resultErrorIconColor:a,resultSuccessIconColor:n,resultWarningIconColor:s,imageWidth:250,imageHeight:295});return[R(o)]},T),G=()=>e.createElement("svg",{width:"251",height:"294"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),e.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),e.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),e.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),e.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),e.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),e.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),e.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),e.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),e.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),e.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),e.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),e.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),e.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),e.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),e.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),e.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),e.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),e.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),e.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),e.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),e.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),e.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),e.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),e.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),e.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),e.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),e.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),e.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),e.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),e.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),e.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),e.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),e.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),e.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})));const P={success:f.Z,error:L.Z,info:v.Z,warning:j},h={404:S,500:x,403:G},Z=Object.keys(h),O=t=>{let{prefixCls:l,icon:a,status:n}=t;const s=F()(`${l}-icon`);if(Z.includes(`${n}`)){const M=h[n];return e.createElement("div",{className:`${s} ${l}-image`},e.createElement(M,null))}const o=e.createElement(P[n]);return a===null||a===!1?null:e.createElement("div",{className:s},a||o)},X=t=>{let{prefixCls:l,extra:a}=t;return a?e.createElement("div",{className:`${l}-extra`},a):null},m=t=>{let{prefixCls:l,className:a,rootClassName:n,subTitle:s,title:o,style:M,children:i,status:p="info",icon:k,extra:w}=t;const{getPrefixCls:J,direction:K,result:d}=e.useContext($.E_),c=J("result",l),[Q,Y,q]=b(c),_=F()(c,`${c}-${p}`,a,d==null?void 0:d.className,n,{[`${c}-rtl`]:K==="rtl"},Y,q),e1=Object.assign(Object.assign({},d==null?void 0:d.style),M);return Q(e.createElement("div",{className:_,style:e1},e.createElement(O,{prefixCls:c,status:p,icon:k}),e.createElement("div",{className:`${c}-title`},o),s&&e.createElement("div",{className:`${c}-subtitle`},s),e.createElement(X,{prefixCls:c,extra:w}),i&&e.createElement("div",{className:`${c}-content`},i)))};m.PRESENTED_IMAGE_403=h[403],m.PRESENTED_IMAGE_404=h[404],m.PRESENTED_IMAGE_500=h[500];var U=m}}]); +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[905],{29905:function(t1,u,r){r.d(u,{ZP:function(){return U}});var e=r(67294),f=r(76278),L=r(17012),v=r(26702),B=r(87462),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},g=C,D=r(93771),W=function(l,a){return e.createElement(D.Z,(0,B.Z)({},l,{ref:a,icon:g}))},A=e.forwardRef(W),j=A,z=r(93967),F=r.n(z),$=r(53124),S=()=>e.createElement("svg",{width:"252",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .012)"},e.createElement("mask",{fill:"#fff"}),e.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),e.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),e.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),e.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),e.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),e.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),e.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),e.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),e.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),e.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),e.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),e.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),e.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),e.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),e.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),e.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),e.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),e.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),e.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),e.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),e.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),e.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),e.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),e.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),e.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),e.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),e.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),e.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),e.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),e.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),e.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),e.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),e.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),e.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),e.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),e.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),e.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),e.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),x=()=>e.createElement("svg",{width:"254",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),e.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .067)"},e.createElement("mask",{fill:"#fff"}),e.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),e.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),e.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),e.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),e.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),e.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),e.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),e.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),e.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),e.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),e.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),e.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),e.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),e.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),e.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),e.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),e.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),e.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),e.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),e.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),e.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),e.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),e.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),e.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),e.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),e.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),e.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),e.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),e.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),e.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),e.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),e.createElement("mask",{fill:"#fff"}),e.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),e.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),e.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),e.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),e.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),e.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),e.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),e.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),E=r(6731),H=r(91945),I=r(45503);const N=t=>{const{componentCls:l,lineHeightHeading3:a,iconCls:n,padding:s,paddingXL:o,paddingXS:M,paddingLG:i,marginXS:p,lineHeight:k}=t;return{[l]:{padding:`${(0,E.bf)(t.calc(i).mul(2).equal())} ${(0,E.bf)(o)}`,"&-rtl":{direction:"rtl"}},[`${l} ${l}-image`]:{width:t.imageWidth,height:t.imageHeight,margin:"auto"},[`${l} ${l}-icon`]:{marginBottom:i,textAlign:"center",[`& > ${n}`]:{fontSize:t.iconFontSize}},[`${l} ${l}-title`]:{color:t.colorTextHeading,fontSize:t.titleFontSize,lineHeight:a,marginBlock:p,textAlign:"center"},[`${l} ${l}-subtitle`]:{color:t.colorTextDescription,fontSize:t.subtitleFontSize,lineHeight:k,textAlign:"center"},[`${l} ${l}-content`]:{marginTop:i,padding:`${(0,E.bf)(i)} ${(0,E.bf)(t.calc(s).mul(2.5).equal())}`,backgroundColor:t.colorFillAlter},[`${l} ${l}-extra`]:{margin:t.extraMargin,textAlign:"center","& > *":{marginInlineEnd:M,"&:last-child":{marginInlineEnd:0}}}}},V=t=>{const{componentCls:l,iconCls:a}=t;return{[`${l}-success ${l}-icon > ${a}`]:{color:t.resultSuccessIconColor},[`${l}-error ${l}-icon > ${a}`]:{color:t.resultErrorIconColor},[`${l}-info ${l}-icon > ${a}`]:{color:t.resultInfoIconColor},[`${l}-warning ${l}-icon > ${a}`]:{color:t.resultWarningIconColor}}},y=t=>[N(t),V(t)],R=t=>y(t),T=t=>({titleFontSize:t.fontSizeHeading3,subtitleFontSize:t.fontSize,iconFontSize:t.fontSizeHeading3*3,extraMargin:`${t.paddingLG}px 0 0 0`});var b=(0,H.I$)("Result",t=>{const l=t.colorInfo,a=t.colorError,n=t.colorSuccess,s=t.colorWarning,o=(0,I.TS)(t,{resultInfoIconColor:l,resultErrorIconColor:a,resultSuccessIconColor:n,resultWarningIconColor:s,imageWidth:250,imageHeight:295});return[R(o)]},T),G=()=>e.createElement("svg",{width:"251",height:"294"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),e.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),e.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),e.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),e.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),e.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),e.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),e.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),e.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),e.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),e.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),e.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),e.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),e.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),e.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),e.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),e.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),e.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),e.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),e.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),e.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),e.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),e.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),e.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),e.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),e.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),e.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),e.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),e.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),e.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),e.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),e.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),e.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),e.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),e.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})));const P={success:f.Z,error:L.Z,info:v.Z,warning:j},h={404:S,500:x,403:G},Z=Object.keys(h),O=t=>{let{prefixCls:l,icon:a,status:n}=t;const s=F()(`${l}-icon`);if(Z.includes(`${n}`)){const M=h[n];return e.createElement("div",{className:`${s} ${l}-image`},e.createElement(M,null))}const o=e.createElement(P[n]);return a===null||a===!1?null:e.createElement("div",{className:s},a||o)},X=t=>{let{prefixCls:l,extra:a}=t;return a?e.createElement("div",{className:`${l}-extra`},a):null},m=t=>{let{prefixCls:l,className:a,rootClassName:n,subTitle:s,title:o,style:M,children:i,status:p="info",icon:k,extra:w}=t;const{getPrefixCls:J,direction:K,result:d}=e.useContext($.E_),c=J("result",l),[Q,Y,q]=b(c),_=F()(c,`${c}-${p}`,a,d==null?void 0:d.className,n,{[`${c}-rtl`]:K==="rtl"},Y,q),e1=Object.assign(Object.assign({},d==null?void 0:d.style),M);return Q(e.createElement("div",{className:_,style:e1},e.createElement(O,{prefixCls:c,status:p,icon:k}),e.createElement("div",{className:`${c}-title`},o),s&&e.createElement("div",{className:`${c}-subtitle`},s),e.createElement(X,{prefixCls:c,extra:w}),i&&e.createElement("div",{className:`${c}-content`},i)))};m.PRESENTED_IMAGE_403=h[403],m.PRESENTED_IMAGE_404=h[404],m.PRESENTED_IMAGE_500=h[500];var U=m}}]); diff --git a/starter/src/main/resources/templates/admin/925.3332309b.async.js b/starter/src/main/resources/templates/admin/925.3332309b.async.js deleted file mode 100644 index 49e3133c55..0000000000 --- a/starter/src/main/resources/templates/admin/925.3332309b.async.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[925],{86743:function(ut,Ze,o){var a=o(30470),d=o(67294),De=o(14726),v=o(33671);function ze(Ce){return!!(Ce&&Ce.then)}const Y=Ce=>{const{type:de,children:je,prefixCls:ke,buttonProps:_,close:V,autoFocus:te,emitEvent:Z,isSilent:Te,quitOnNullishReturnValue:le,actionFn:N}=Ce,W=d.useRef(!1),y=d.useRef(null),[p,z]=(0,a.Z)(!1),H=function(){V==null||V.apply(void 0,arguments)};d.useEffect(()=>{let x=null;return te&&(x=setTimeout(()=>{var $;($=y.current)===null||$===void 0||$.focus()})),()=>{x&&clearTimeout(x)}},[]);const se=x=>{ze(x)&&(z(!0),x.then(function(){z(!1,!0),H.apply(void 0,arguments),W.current=!1},$=>{if(z(!1,!0),W.current=!1,!(Te!=null&&Te()))return Promise.reject($)}))},M=x=>{if(W.current)return;if(W.current=!0,!N){H();return}let $;if(Z){if($=N(x),le&&!ze($)){W.current=!1,H(x);return}}else if(N.length)$=N(V),W.current=!1;else if($=N(),!$){H();return}se($)};return d.createElement(De.ZP,Object.assign({},(0,v.nx)(de),{onClick:M,loading:p,prefixCls:ke},_,{ref:y}),je)};Ze.Z=Y},32409:function(ut,Ze,o){o.d(Ze,{O:function(){return j},Z:function(){return be}});var a=o(74902),d=o(67294),De=o(76278),v=o(17012),ze=o(26702),Y=o(1558),Ce=o(93967),de=o.n(Ce),je=o(87263),ke=o(33603),_=o(28459),V=o(10110),te=o(29691),Z=o(86743),Te=o(23745),N=()=>{const{autoFocusButton:n,cancelButtonProps:m,cancelTextLocale:u,isSilent:b,mergedOkCancel:S,rootPrefixCls:L,close:G,onCancel:F,onConfirm:D}=(0,d.useContext)(Te.t);return S?d.createElement(Z.Z,{isSilent:b,actionFn:F,close:function(){G==null||G.apply(void 0,arguments),D==null||D(!1)},autoFocus:n==="cancel",buttonProps:m,prefixCls:`${L}-btn`},u):null},y=()=>{const{autoFocusButton:n,close:m,isSilent:u,okButtonProps:b,rootPrefixCls:S,okTextLocale:L,okType:G,onConfirm:F,onOk:D}=(0,d.useContext)(Te.t);return d.createElement(Z.Z,{isSilent:u,type:G||"primary",actionFn:D,close:function(){m==null||m.apply(void 0,arguments),F==null||F(!0)},autoFocus:n==="ok",buttonProps:b,prefixCls:`${S}-btn`},L)},p=o(56745),z=o(87107),H=o(71194),se=o(14747),M=o(91945);const x=n=>{const{componentCls:m,titleFontSize:u,titleLineHeight:b,modalConfirmIconSize:S,fontSize:L,lineHeight:G,modalTitleHeight:F,fontHeight:D,confirmBodyPadding:$e}=n,A=`${m}-confirm`;return{[A]:{"&-rtl":{direction:"rtl"},[`${n.antCls}-modal-header`]:{display:"none"},[`${A}-body-wrapper`]:Object.assign({},(0,se.dF)()),[`&${m} ${m}-body`]:{padding:$e},[`${A}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${n.iconCls}`]:{flex:"none",fontSize:S,marginInlineEnd:n.confirmIconMarginInlineEnd,marginTop:n.calc(n.calc(D).sub(S).equal()).div(2).equal()},[`&-has-title > ${n.iconCls}`]:{marginTop:n.calc(n.calc(F).sub(S).equal()).div(2).equal()}},[`${A}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:n.marginXS,maxWidth:`calc(100% - ${(0,z.bf)(n.calc(n.modalConfirmIconSize).add(n.marginSM).equal())})`},[`${A}-title`]:{color:n.colorTextHeading,fontWeight:n.fontWeightStrong,fontSize:u,lineHeight:b},[`${A}-content`]:{color:n.colorText,fontSize:L,lineHeight:G},[`${A}-btns`]:{textAlign:"end",marginTop:n.confirmBtnsMarginTop,[`${n.antCls}-btn + ${n.antCls}-btn`]:{marginBottom:0,marginInlineStart:n.marginXS}}},[`${A}-error ${A}-body > ${n.iconCls}`]:{color:n.colorError},[`${A}-warning ${A}-body > ${n.iconCls}, - ${A}-confirm ${A}-body > ${n.iconCls}`]:{color:n.colorWarning},[`${A}-info ${A}-body > ${n.iconCls}`]:{color:n.colorInfo},[`${A}-success ${A}-body > ${n.iconCls}`]:{color:n.colorSuccess}}};var $=(0,M.bk)(["Modal","confirm"],n=>{const m=(0,H.B4)(n);return[x(m)]},H.eh,{order:-1e3}),Q=function(n,m){var u={};for(var b in n)Object.prototype.hasOwnProperty.call(n,b)&&m.indexOf(b)<0&&(u[b]=n[b]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,b=Object.getOwnPropertySymbols(n);SLe,(0,a.Z)(Object.values(Le))),ge=d.createElement(d.Fragment,null,d.createElement(N,null),d.createElement(y,null)),Ve=n.title!==void 0&&n.title!==null,fe=`${L}-body`;return d.createElement("div",{className:`${L}-body-wrapper`},d.createElement("div",{className:de()(fe,{[`${fe}-has-title`]:Ve})},Se,d.createElement("div",{className:`${L}-paragraph`},Ve&&d.createElement("span",{className:`${L}-title`},n.title),d.createElement("div",{className:`${L}-content`},n.content))),D===void 0||typeof D=="function"?d.createElement(Te.n,{value:Je},d.createElement("div",{className:`${L}-btns`},typeof D=="function"?D(ge,{OkBtn:y,CancelBtn:N}):ge)):D,d.createElement($,{prefixCls:m}))}const O=n=>{const{close:m,zIndex:u,afterClose:b,open:S,keyboard:L,centered:G,getContainer:F,maskStyle:D,direction:$e,prefixCls:A,wrapClassName:Se,rootPrefixCls:Ne,bodyStyle:Me,closable:Ie=!1,closeIcon:ue,modalRender:Xe,focusTriggerAfterClose:J,onConfirm:Le,styles:Je}=n,ge=`${A}-confirm`,Ve=n.width||416,fe=n.style||{},ie=n.mask===void 0?!0:n.mask,qe=n.maskClosable===void 0?!1:n.maskClosable,ft=de()(ge,`${ge}-${n.type}`,{[`${ge}-rtl`]:$e==="rtl"},n.className),[,st]=(0,te.ZP)(),it=d.useMemo(()=>u!==void 0?u:st.zIndexPopupBase+je.u6,[u,st]);return d.createElement(p.Z,{prefixCls:A,className:ft,wrapClassName:de()({[`${ge}-centered`]:!!n.centered},Se),onCancel:()=>{m==null||m({triggerCancel:!0}),Le==null||Le(!1)},open:S,title:"",footer:null,transitionName:(0,ke.m)(Ne||"","zoom",n.transitionName),maskTransitionName:(0,ke.m)(Ne||"","fade",n.maskTransitionName),mask:ie,maskClosable:qe,style:fe,styles:Object.assign({body:Me,mask:D},Je),width:Ve,zIndex:it,afterClose:b,keyboard:L,centered:G,getContainer:F,closable:Ie,closeIcon:ue,modalRender:Xe,focusTriggerAfterClose:J},d.createElement(j,Object.assign({},n,{confirmPrefixCls:ge})))};var be=n=>{const{rootPrefixCls:m,iconPrefixCls:u,direction:b,theme:S}=n;return d.createElement(_.ZP,{prefixCls:m,iconPrefixCls:u,direction:b,theme:S},d.createElement(O,Object.assign({},n)))}},56745:function(ut,Ze,o){o.d(Ze,{Z:function(){return se}});var a=o(67294),d=o(62208),De=o(93967),v=o.n(De),ze=o(31058),Y=o(69760),Ce=o(87263),de=o(33603),je=o(98924);const ke=()=>(0,je.Z)()&&window.document.documentElement;var _=o(43945),V=o(53124),te=o(35792),Z=o(65223),Te=o(4173),le=o(16569),N=o(4941),W=o(71194),y=function(M,x){var $={};for(var Q in M)Object.prototype.hasOwnProperty.call(M,Q)&&x.indexOf(Q)<0&&($[Q]=M[Q]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,Q=Object.getOwnPropertySymbols(M);j{p={x:M.pageX,y:M.pageY},setTimeout(()=>{p=null},100)};ke()&&document.documentElement.addEventListener("click",z,!0);var se=M=>{var x;const{getPopupContainer:$,getPrefixCls:Q,direction:j,modal:O}=a.useContext(V.E_),ee=We=>{const{onCancel:He}=M;He==null||He(We)},be=We=>{const{onOk:He}=M;He==null||He(We)},{prefixCls:n,className:m,rootClassName:u,open:b,wrapClassName:S,centered:L,getContainer:G,closeIcon:F,closable:D,focusTriggerAfterClose:$e=!0,style:A,visible:Se,width:Ne=520,footer:Me,classNames:Ie,styles:ue}=M,Xe=y(M,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),J=Q("modal",n),Le=Q(),Je=(0,te.Z)(J),[ge,Ve,fe]=(0,W.ZP)(J,Je),ie=v()(S,{[`${J}-centered`]:!!L,[`${J}-wrap-rtl`]:j==="rtl"}),qe=Me!==null&&a.createElement(N.$,Object.assign({},M,{onOk:be,onCancel:ee})),[ft,st]=(0,Y.Z)({closable:D,closeIcon:typeof F!="undefined"?F:O==null?void 0:O.closeIcon,customCloseIconRender:We=>(0,N.b)(J,We),defaultCloseIcon:a.createElement(d.Z,{className:`${J}-close-icon`}),defaultClosable:!0}),it=(0,le.H)(`.${J}-content`),[vt,tt]=(0,Ce.Cn)("Modal",Xe.zIndex);return ge(a.createElement(Te.BR,null,a.createElement(Z.Ux,{status:!0,override:!0},a.createElement(_.Z.Provider,{value:tt},a.createElement(ze.Z,Object.assign({width:Ne},Xe,{zIndex:vt,getContainer:G===void 0?$:G,prefixCls:J,rootClassName:v()(Ve,u,fe,Je),footer:qe,visible:b!=null?b:Se,mousePosition:(x=Xe.mousePosition)!==null&&x!==void 0?x:p,onClose:ee,closable:ft,closeIcon:st,focusTriggerAfterClose:$e,transitionName:(0,de.m)(Le,"zoom",M.transitionName),maskTransitionName:(0,de.m)(Le,"fade",M.maskTransitionName),className:v()(Ve,m,O==null?void 0:O.className),style:Object.assign(Object.assign({},O==null?void 0:O.style),A),classNames:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.classNames),Ie),{wrapper:v()(ie,Ie==null?void 0:Ie.wrapper)}),styles:Object.assign(Object.assign({},O==null?void 0:O.styles),ue),panelRef:it}))))))}},56080:function(ut,Ze,o){o.d(Ze,{AQ:function(){return le},Au:function(){return N},ZP:function(){return V},ai:function(){return W},cw:function(){return Z},uW:function(){return te},vq:function(){return Te}});var a=o(74902),d=o(67294),De=o(38135),v=o(53124),ze=o(28459),Y=o(32409),Ce=o(38657),de=o(83008);let je="";function ke(){return je}const _=y=>{var p,z;const{prefixCls:H,getContainer:se,direction:M}=y,x=(0,de.A)(),$=(0,d.useContext)(v.E_),Q=ke()||$.getPrefixCls(),j=H||`${Q}-modal`;let O=se;return O===!1&&(O=void 0),d.createElement(Y.Z,Object.assign({},y,{rootPrefixCls:Q,prefixCls:j,iconPrefixCls:$.iconPrefixCls,theme:$.theme,direction:M!=null?M:$.direction,locale:(z=(p=$.locale)===null||p===void 0?void 0:p.Modal)!==null&&z!==void 0?z:x,getContainer:O}))};function V(y){const p=(0,ze.w6)(),z=document.createDocumentFragment();let H=Object.assign(Object.assign({},y),{close:$,open:!0}),se;function M(){for(var j=arguments.length,O=new Array(j),ee=0;een&&n.triggerCancel);y.onCancel&&be&&y.onCancel.apply(y,[()=>{}].concat((0,a.Z)(O.slice(1))));for(let n=0;n{const O=p.getPrefixCls(void 0,ke()),ee=p.getIconPrefixCls(),be=p.getTheme(),n=d.createElement(_,Object.assign({},j));(0,De.s)(d.createElement(ze.ZP,{prefixCls:O,iconPrefixCls:ee,theme:be},p.holderRender?p.holderRender(n):n),z)})}function $(){for(var j=arguments.length,O=new Array(j),ee=0;ee{typeof y.afterClose=="function"&&y.afterClose(),M.apply(this,O)}}),H.visible&&delete H.visible,x(H)}function Q(j){typeof j=="function"?H=j(H):H=Object.assign(Object.assign({},H),j),x(H)}return x(H),Ce.Z.push($),{destroy:$,update:Q}}function te(y){return Object.assign(Object.assign({},y),{type:"warning"})}function Z(y){return Object.assign(Object.assign({},y),{type:"info"})}function Te(y){return Object.assign(Object.assign({},y),{type:"success"})}function le(y){return Object.assign(Object.assign({},y),{type:"error"})}function N(y){return Object.assign(Object.assign({},y),{type:"confirm"})}function W(y){let{rootPrefixCls:p}=y;je=p}},23745:function(ut,Ze,o){o.d(Ze,{n:function(){return De},t:function(){return d}});var a=o(67294);const d=a.createContext({}),{Provider:De}=d},38657:function(ut,Ze){const o=[];Ze.Z=o},4941:function(ut,Ze,o){o.d(Ze,{$:function(){return Te},b:function(){return Z}});var a=o(74902),d=o(67294),De=o(62208),v=o(98866),ze=o(10110),Y=o(14726),Ce=o(23745),je=()=>{const{cancelButtonProps:le,cancelTextLocale:N,onCancel:W}=(0,d.useContext)(Ce.t);return d.createElement(Y.ZP,Object.assign({onClick:W},le),N)},ke=o(33671),V=()=>{const{confirmLoading:le,okButtonProps:N,okType:W,okTextLocale:y,onOk:p}=(0,d.useContext)(Ce.t);return d.createElement(Y.ZP,Object.assign({},(0,ke.nx)(W),{loading:le,onClick:p},N),y)},te=o(83008);function Z(le,N){return d.createElement("span",{className:`${le}-close-x`},N||d.createElement(De.Z,{className:`${le}-close-icon`}))}const Te=le=>{const{okText:N,okType:W="primary",cancelText:y,confirmLoading:p,onOk:z,onCancel:H,okButtonProps:se,cancelButtonProps:M,footer:x}=le,[$]=(0,ze.Z)("Modal",(0,te.A)()),Q=N||($==null?void 0:$.okText),j=y||($==null?void 0:$.cancelText),O={confirmLoading:p,okButtonProps:se,cancelButtonProps:M,okTextLocale:Q,cancelTextLocale:j,okType:W,onOk:z,onCancel:H},ee=d.useMemo(()=>O,(0,a.Z)(Object.values(O)));let be;return typeof x=="function"||typeof x=="undefined"?(be=d.createElement(d.Fragment,null,d.createElement(je,null),d.createElement(V,null)),typeof x=="function"&&(be=x(be,{OkBtn:V,CancelBtn:je})),be=d.createElement(Ce.n,{value:ee},be)):be=x,d.createElement(v.n,{disabled:!1},be)}},94423:function(ut,Ze,o){o.d(Ze,{Z:function(){return le}});var a=o(74902),d=o(67294);function De(){const[N,W]=d.useState([]),y=d.useCallback(p=>(W(z=>[].concat((0,a.Z)(z),[p])),()=>{W(z=>z.filter(H=>H!==p))}),[]);return[N,y]}var v=o(56080),ze=o(38657),Y=o(53124),Ce=o(24457),de=o(10110),je=o(32409),ke=function(N,W){var y={};for(var p in N)Object.prototype.hasOwnProperty.call(N,p)&&W.indexOf(p)<0&&(y[p]=N[p]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,p=Object.getOwnPropertySymbols(N);z{var y,{afterClose:p,config:z}=N,H=ke(N,["afterClose","config"]);const[se,M]=d.useState(!0),[x,$]=d.useState(z),{direction:Q,getPrefixCls:j}=d.useContext(Y.E_),O=j("modal"),ee=j(),be=()=>{var b;p(),(b=x.afterClose)===null||b===void 0||b.call(x)},n=function(){M(!1);for(var b=arguments.length,S=new Array(b),L=0;LF&&F.triggerCancel);x.onCancel&&G&&x.onCancel.apply(x,[()=>{}].concat((0,a.Z)(S.slice(1))))};d.useImperativeHandle(W,()=>({destroy:n,update:b=>{$(S=>Object.assign(Object.assign({},S),b))}}));const m=(y=x.okCancel)!==null&&y!==void 0?y:x.type==="confirm",[u]=(0,de.Z)("Modal",Ce.Z.Modal);return d.createElement(je.Z,Object.assign({prefixCls:O,rootPrefixCls:ee},x,{close:n,open:se,afterClose:be,okText:x.okText||(m?u==null?void 0:u.okText:u==null?void 0:u.justOkText),direction:x.direction||Q,cancelText:x.cancelText||(u==null?void 0:u.cancelText)},H))};var V=d.forwardRef(_);let te=0;const Z=d.memo(d.forwardRef((N,W)=>{const[y,p]=De();return d.useImperativeHandle(W,()=>({patchElement:p}),[]),d.createElement(d.Fragment,null,y)}));function Te(){const N=d.useRef(null),[W,y]=d.useState([]);d.useEffect(()=>{W.length&&((0,a.Z)(W).forEach(se=>{se()}),y([]))},[W]);const p=d.useCallback(H=>function(M){var x;te+=1;const $=d.createRef();let Q;const j=new Promise(m=>{Q=m});let O=!1,ee;const be=d.createElement(V,{key:`modal-${te}`,config:H(M),ref:$,afterClose:()=>{ee==null||ee()},isSilent:()=>O,onConfirm:m=>{Q(m)}});return ee=(x=N.current)===null||x===void 0?void 0:x.patchElement(be),ee&&ze.Z.push(ee),{destroy:()=>{function m(){var u;(u=$.current)===null||u===void 0||u.destroy()}$.current?m():y(u=>[].concat((0,a.Z)(u),[m]))},update:m=>{function u(){var b;(b=$.current)===null||b===void 0||b.update(m)}$.current?u():y(b=>[].concat((0,a.Z)(b),[u]))},then:m=>(O=!0,j.then(m))}},[]);return[d.useMemo(()=>({info:p(v.cw),success:p(v.vq),error:p(v.AQ),warning:p(v.uW),confirm:p(v.Au)}),[]),d.createElement(Z,{key:"modal-holder",ref:N})]}var le=Te},48096:function(ut,Ze,o){o.d(Ze,{Z:function(){return Jn}});var a=o(67294),d=o(62208),De=o(35872),v=o(87462),ze=o(42110),Y=o(93771),Ce=function(t,r){return a.createElement(Y.Z,(0,v.Z)({},t,{ref:r,icon:ze.Z}))},de=a.forwardRef(Ce),je=de,ke=o(93967),_=o.n(ke),V=o(4942),te=o(1413),Z=o(97685),Te=o(71002),le=o(91),N=o(21770),W=o(31131),y=(0,a.createContext)(null),p=o(74902),z=o(9220),H=o(66680),se=o(42550),M=o(75164),x=function(t){var r=t.activeTabOffset,i=t.horizontal,l=t.rtl,c=t.indicator,f=c===void 0?{}:c,s=f.size,g=f.align,C=g===void 0?"center":g,R=(0,a.useState)(),E=(0,Z.Z)(R,2),I=E[0],ne=E[1],ve=(0,a.useRef)(),ae=a.useCallback(function(w){return typeof s=="function"?s(w):typeof s=="number"?s:w},[s]);function ce(){M.Z.cancel(ve.current)}return(0,a.useEffect)(function(){var w={};if(r)if(i){w.width=ae(r.width);var P=l?"right":"left";C==="start"&&(w[P]=r[P]),C==="center"&&(w[P]=r[P]+r.width/2,w.transform=l?"translateX(50%)":"translateX(-50%)"),C==="end"&&(w[P]=r[P]+r.width,w.transform="translateX(-100%)")}else w.height=ae(r.height),C==="start"&&(w.top=r.top),C==="center"&&(w.top=r.top+r.height/2,w.transform="translateY(-50%)"),C==="end"&&(w.top=r.top+r.height,w.transform="translateY(-100%)");return ce(),ve.current=(0,M.Z)(function(){ne(w)}),ce},[r,i,l,C,ae]),{style:I}},$=x,Q={width:0,height:0,left:0,top:0};function j(e,t,r){return(0,a.useMemo)(function(){for(var i,l=new Map,c=t.get((i=e[0])===null||i===void 0?void 0:i.key)||Q,f=c.left+c.width,s=0;sU?(re=oe,he.current="x"):(re=B,he.current="y"),t(-re,-re)&&T.preventDefault()}var q=(0,a.useRef)(null);q.current={onTouchStart:me,onTouchMove:Oe,onTouchEnd:Re,onWheel:ye},a.useEffect(function(){function T(h){q.current.onTouchStart(h)}function oe(h){q.current.onTouchMove(h)}function B(h){q.current.onTouchEnd(h)}function re(h){q.current.onWheel(h)}return document.addEventListener("touchmove",oe,{passive:!1}),document.addEventListener("touchend",B,{passive:!1}),e.current.addEventListener("touchstart",T,{passive:!1}),e.current.addEventListener("wheel",re),function(){document.removeEventListener("touchmove",oe),document.removeEventListener("touchend",B)}},[])}var b=o(8410);function S(e){var t=(0,a.useState)(0),r=(0,Z.Z)(t,2),i=r[0],l=r[1],c=(0,a.useRef)(0),f=(0,a.useRef)();return f.current=e,(0,b.o)(function(){var s;(s=f.current)===null||s===void 0||s.call(f)},[i]),function(){c.current===i&&(c.current+=1,l(c.current))}}function L(e){var t=(0,a.useRef)([]),r=(0,a.useState)({}),i=(0,Z.Z)(r,2),l=i[1],c=(0,a.useRef)(typeof e=="function"?e():e),f=S(function(){var g=c.current;t.current.forEach(function(C){g=C(g)}),t.current=[],c.current=g,l({})});function s(g){t.current.push(g),f()}return[c.current,s]}var G={width:0,height:0,left:0,top:0,right:0};function F(e,t,r,i,l,c,f){var s=f.tabs,g=f.tabPosition,C=f.rtl,R,E,I;return["top","bottom"].includes(g)?(R="width",E=C?"right":"left",I=Math.abs(r)):(R="height",E="top",I=-r),(0,a.useMemo)(function(){if(!s.length)return[0,0];for(var ne=s.length,ve=ne,ae=0;aeI+t){ve=ae-1;break}}for(var w=0,P=ne-1;P>=0;P-=1){var me=e.get(s[P].key)||G;if(me[E]=ve?[0,0]:[w,ve]},[e,t,i,l,c,I,g,s.map(function(ne){return ne.key}).join("_"),C])}function D(e){var t;return e instanceof Map?(t={},e.forEach(function(r,i){t[i]=r})):t=e,JSON.stringify(t)}var $e="TABS_DQ";function A(e){return String(e).replace(/"/g,$e)}function Se(e,t,r,i){return!(!r||i||e===!1||e===void 0&&(t===!1||t===null))}var Ne=a.forwardRef(function(e,t){var r=e.prefixCls,i=e.editable,l=e.locale,c=e.style;return!i||i.showAdd===!1?null:a.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:c,"aria-label":(l==null?void 0:l.addAriaLabel)||"Add tab",onClick:function(s){i.onEdit("add",{event:s})}},i.addIcon||"+")}),Me=Ne,Ie=a.forwardRef(function(e,t){var r=e.position,i=e.prefixCls,l=e.extra;if(!l)return null;var c,f={};return(0,Te.Z)(l)==="object"&&!a.isValidElement(l)?f=l:f.right=l,r==="right"&&(c=f.right),r==="left"&&(c=f.left),c?a.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},c):null}),ue=Ie,Xe=o(40228),J=o(15105),Le=J.Z.ESC,Je=J.Z.TAB;function ge(e){var t=e.visible,r=e.triggerRef,i=e.onVisibleChange,l=e.autoFocus,c=e.overlayRef,f=a.useRef(!1),s=function(){if(t){var E,I;(E=r.current)===null||E===void 0||(I=E.focus)===null||I===void 0||I.call(E),i==null||i(!1)}},g=function(){var E;return(E=c.current)!==null&&E!==void 0&&E.focus?(c.current.focus(),f.current=!0,!0):!1},C=function(E){switch(E.keyCode){case Le:s();break;case Je:{var I=!1;f.current||(I=g()),I?E.preventDefault():s();break}}};a.useEffect(function(){return t?(window.addEventListener("keydown",C),l&&(0,M.Z)(g,3),function(){window.removeEventListener("keydown",C),f.current=!1}):function(){f.current=!1}},[t])}var Ve=(0,a.forwardRef)(function(e,t){var r=e.overlay,i=e.arrow,l=e.prefixCls,c=(0,a.useMemo)(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),f=(0,se.sQ)(t,c==null?void 0:c.ref);return a.createElement(a.Fragment,null,i&&a.createElement("div",{className:"".concat(l,"-arrow")}),a.cloneElement(c,{ref:(0,se.Yr)(c)?f:void 0}))}),fe=Ve,ie={adjustX:1,adjustY:1},qe=[0,0],ft={topLeft:{points:["bl","tl"],overflow:ie,offset:[0,-4],targetOffset:qe},top:{points:["bc","tc"],overflow:ie,offset:[0,-4],targetOffset:qe},topRight:{points:["br","tr"],overflow:ie,offset:[0,-4],targetOffset:qe},bottomLeft:{points:["tl","bl"],overflow:ie,offset:[0,4],targetOffset:qe},bottom:{points:["tc","bc"],overflow:ie,offset:[0,4],targetOffset:qe},bottomRight:{points:["tr","br"],overflow:ie,offset:[0,4],targetOffset:qe}},st=ft,it=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function vt(e,t){var r,i=e.arrow,l=i===void 0?!1:i,c=e.prefixCls,f=c===void 0?"rc-dropdown":c,s=e.transitionName,g=e.animation,C=e.align,R=e.placement,E=R===void 0?"bottomLeft":R,I=e.placements,ne=I===void 0?st:I,ve=e.getPopupContainer,ae=e.showAction,ce=e.hideAction,w=e.overlayClassName,P=e.overlayStyle,me=e.visible,Oe=e.trigger,Re=Oe===void 0?["hover"]:Oe,he=e.autoFocus,ye=e.overlay,q=e.children,T=e.onVisibleChange,oe=(0,le.Z)(e,it),B=a.useState(),re=(0,Z.Z)(B,2),h=re[0],U=re[1],Ke="visible"in e?me:h,Ge=a.useRef(null),_e=a.useRef(null),Ue=a.useRef(null);a.useImperativeHandle(t,function(){return Ge.current});var et=function(Ee){U(Ee),T==null||T(Ee)};ge({visible:Ke,triggerRef:Ue,onVisibleChange:et,autoFocus:he,overlayRef:_e});var ct=function(Ee){var ot=e.onOverlayClick;U(!1),ot&&ot(Ee)},at=function(){return a.createElement(fe,{ref:_e,overlay:ye,prefixCls:f,arrow:l})},K=function(){return typeof ye=="function"?at:at()},pe=function(){var Ee=e.minOverlayWidthMatchTrigger,ot=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Ee:!ot},Ye=function(){var Ee=e.openClassName;return Ee!==void 0?Ee:"".concat(f,"-open")},Fe=a.cloneElement(q,{className:_()((r=q.props)===null||r===void 0?void 0:r.className,Ke&&Ye()),ref:(0,se.Yr)(q)?(0,se.sQ)(Ue,q.ref):void 0}),Ae=ce;return!Ae&&Re.indexOf("contextMenu")!==-1&&(Ae=["click"]),a.createElement(Xe.Z,(0,v.Z)({builtinPlacements:ne},oe,{prefixCls:f,ref:Ge,popupClassName:_()(w,(0,V.Z)({},"".concat(f,"-show-arrow"),l)),popupStyle:P,action:Re,showAction:ae,hideAction:Ae,popupPlacement:E,popupAlign:C,popupTransitionName:s,popupAnimation:g,popupVisible:Ke,stretch:pe()?"minWidth":"",popup:K(),onPopupVisibleChange:et,onPopupClick:ct,getPopupContainer:ve}),Fe)}var tt=a.forwardRef(vt),We=tt,He=o(72512),mt=a.forwardRef(function(e,t){var r=e.prefixCls,i=e.id,l=e.tabs,c=e.locale,f=e.mobile,s=e.moreIcon,g=s===void 0?"More":s,C=e.moreTransitionName,R=e.style,E=e.className,I=e.editable,ne=e.tabBarGutter,ve=e.rtl,ae=e.removeAriaLabel,ce=e.onTabClick,w=e.getPopupContainer,P=e.popupClassName,me=(0,a.useState)(!1),Oe=(0,Z.Z)(me,2),Re=Oe[0],he=Oe[1],ye=(0,a.useState)(null),q=(0,Z.Z)(ye,2),T=q[0],oe=q[1],B="".concat(i,"-more-popup"),re="".concat(r,"-dropdown"),h=T!==null?"".concat(B,"-").concat(T):null,U=c==null?void 0:c.dropdownAriaLabel;function Ke(K,pe){K.preventDefault(),K.stopPropagation(),I.onEdit("remove",{key:pe,event:K})}var Ge=a.createElement(He.ZP,{onClick:function(pe){var Ye=pe.key,Fe=pe.domEvent;ce(Ye,Fe),he(!1)},prefixCls:"".concat(re,"-menu"),id:B,tabIndex:-1,role:"listbox","aria-activedescendant":h,selectedKeys:[T],"aria-label":U!==void 0?U:"expanded dropdown"},l.map(function(K){var pe=K.closable,Ye=K.disabled,Fe=K.closeIcon,Ae=K.key,Qe=K.label,Ee=Se(pe,Fe,I,Ye);return a.createElement(He.sN,{key:Ae,id:"".concat(B,"-").concat(Ae),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(Ae),disabled:Ye},a.createElement("span",null,Qe),Ee&&a.createElement("button",{type:"button","aria-label":ae||"remove",tabIndex:0,className:"".concat(re,"-menu-item-remove"),onClick:function(Ct){Ct.stopPropagation(),Ke(Ct,Ae)}},Fe||I.removeIcon||"\xD7"))}));function _e(K){for(var pe=l.filter(function(Ee){return!Ee.disabled}),Ye=pe.findIndex(function(Ee){return Ee.key===T})||0,Fe=pe.length,Ae=0;AeX?"left":"right"})}),h=(0,Z.Z)(re,2),U=h[0],Ke=h[1],Ge=O(0,function(Pe,X){!B&&ae&&ae({direction:Pe>X?"top":"bottom"})}),_e=(0,Z.Z)(Ge,2),Ue=_e[0],et=_e[1],ct=(0,a.useState)([0,0]),at=(0,Z.Z)(ct,2),K=at[0],pe=at[1],Ye=(0,a.useState)([0,0]),Fe=(0,Z.Z)(Ye,2),Ae=Fe[0],Qe=Fe[1],Ee=(0,a.useState)([0,0]),ot=(0,Z.Z)(Ee,2),Ct=ot[0],Lt=ot[1],Xt=(0,a.useState)([0,0]),wt=(0,Z.Z)(Xt,2),Yt=wt[0],xe=wt[1],$t=L(new Map),Ot=(0,Z.Z)($t,2),qn=Ot[0],_n=Ot[1],zt=j(me,qn,Ae[0]),Qt=nt(K,B),At=nt(Ae,B),Jt=nt(Ct,B),sn=nt(Yt,B),cn=QtSt?St:Pe}var _t=(0,a.useRef)(null),ta=(0,a.useState)(),dn=(0,Z.Z)(ta,2),jt=dn[0],un=dn[1];function en(){un(Date.now())}function tn(){_t.current&&clearTimeout(_t.current)}u(ye,function(Pe,X){function Be(rt,Et){rt(function(yt){var Ft=qt(yt+Et);return Ft})}return cn?(B?Be(Ke,Pe):Be(et,X),tn(),en(),!0):!1}),(0,a.useEffect)(function(){return tn(),jt&&(_t.current=setTimeout(function(){un(0)},100)),tn},[jt]);var na=F(zt,dt,B?U:Ue,At,Jt,sn,(0,te.Z)((0,te.Z)({},e),{},{tabs:me})),fn=(0,Z.Z)(na,2),aa=fn[0],oa=fn[1],vn=(0,H.Z)(function(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,X=zt.get(Pe)||{width:0,height:0,left:0,right:0,top:0};if(B){var Be=U;s?X.rightU+dt&&(Be=X.right+X.width-dt):X.left<-U?Be=-X.left:X.left+X.width>-U+dt&&(Be=-(X.left+X.width-dt)),et(0),Ke(qt(Be))}else{var rt=Ue;X.top<-Ue?rt=-X.top:X.top+X.height>-Ue+dt&&(rt=-(X.top+X.height-dt)),Ke(0),et(qt(rt))}}),Wt={};E==="top"||E==="bottom"?Wt[s?"marginRight":"marginLeft"]=I:Wt.marginTop=I;var mn=me.map(function(Pe,X){var Be=Pe.key;return a.createElement(pt,{id:l,prefixCls:P,key:Be,tab:Pe,style:X===0?void 0:Wt,closable:Pe.closable,editable:C,active:Be===f,renderWrapper:ne,removeAriaLabel:R==null?void 0:R.removeAriaLabel,onClick:function(Et){ve(Be,Et)},onFocus:function(){vn(Be),en(),ye.current&&(s||(ye.current.scrollLeft=0),ye.current.scrollTop=0)}})}),bn=function(){return _n(function(){var X,Be=new Map,rt=(X=q.current)===null||X===void 0?void 0:X.getBoundingClientRect();return me.forEach(function(Et){var yt,Ft=Et.key,xn=(yt=q.current)===null||yt===void 0?void 0:yt.querySelector('[data-node-key="'.concat(A(Ft),'"]'));if(xn){var ca=gt(xn,rt),kt=(0,Z.Z)(ca,4),da=kt[0],ua=kt[1],fa=kt[2],va=kt[3];Be.set(Ft,{width:da,height:ua,left:fa,top:va})}}),Be})};(0,a.useEffect)(function(){bn()},[me.map(function(Pe){return Pe.key}).join("_")]);var Ht=S(function(){var Pe=lt(Oe),X=lt(Re),Be=lt(he);pe([Pe[0]-X[0]-Be[0],Pe[1]-X[1]-Be[1]]);var rt=lt(oe);Lt(rt);var Et=lt(T);xe(Et);var yt=lt(q);Qe([yt[0]-rt[0],yt[1]-rt[1]]),bn()}),ra=me.slice(0,aa),ia=me.slice(oa+1),gn=[].concat((0,p.Z)(ra),(0,p.Z)(ia)),Cn=zt.get(f),la=$({activeTabOffset:Cn,horizontal:B,indicator:ce,rtl:s}),sa=la.style;(0,a.useEffect)(function(){vn()},[f,ht,St,D(Cn),D(zt),B]),(0,a.useEffect)(function(){Ht()},[s]);var hn=!!gn.length,Bt="".concat(P,"-nav-wrap"),nn,an,yn,pn;return B?s?(an=U>0,nn=U!==St):(nn=U<0,an=U!==ht):(yn=Ue<0,pn=Ue!==ht),a.createElement(z.Z,{onResize:Ht},a.createElement("div",{ref:(0,se.x1)(t,Oe),role:"tablist",className:_()("".concat(P,"-nav"),r),style:i,onKeyDown:function(){en()}},a.createElement(ue,{ref:Re,position:"left",extra:g,prefixCls:P}),a.createElement(z.Z,{onResize:Ht},a.createElement("div",{className:_()(Bt,(0,V.Z)((0,V.Z)((0,V.Z)((0,V.Z)({},"".concat(Bt,"-ping-left"),nn),"".concat(Bt,"-ping-right"),an),"".concat(Bt,"-ping-top"),yn),"".concat(Bt,"-ping-bottom"),pn)),ref:ye},a.createElement(z.Z,{onResize:Ht},a.createElement("div",{ref:q,className:"".concat(P,"-nav-list"),style:{transform:"translate(".concat(U,"px, ").concat(Ue,"px)"),transition:jt?"none":void 0}},mn,a.createElement(Me,{ref:oe,prefixCls:P,locale:R,editable:C,style:(0,te.Z)((0,te.Z)({},mn.length===0?void 0:Wt),{},{visibility:hn?"hidden":null})}),a.createElement("div",{className:_()("".concat(P,"-ink-bar"),(0,V.Z)({},"".concat(P,"-ink-bar-animated"),c.inkBar)),style:sa}))))),a.createElement(bt,(0,v.Z)({},e,{removeAriaLabel:R==null?void 0:R.removeAriaLabel,ref:T,prefixCls:P,tabs:gn,className:!hn&&ea,tabMoving:!!jt})),a.createElement(ue,{ref:he,position:"right",extra:g,prefixCls:P})))}),xt=Nt,Vt=a.forwardRef(function(e,t){var r=e.prefixCls,i=e.className,l=e.style,c=e.id,f=e.active,s=e.tabKey,g=e.children;return a.createElement("div",{id:c&&"".concat(c,"-panel-").concat(s),role:"tabpanel",tabIndex:f?0:-1,"aria-labelledby":c&&"".concat(c,"-tab-").concat(s),"aria-hidden":!f,style:l,className:_()(r,f&&"".concat(r,"-active"),i),ref:t},g)}),Pt=Vt,Tt=["renderTabBar"],It=["label","key"],Kt=function(t){var r=t.renderTabBar,i=(0,le.Z)(t,Tt),l=a.useContext(y),c=l.tabs;if(r){var f=(0,te.Z)((0,te.Z)({},i),{},{panes:c.map(function(s){var g=s.label,C=s.key,R=(0,le.Z)(s,It);return a.createElement(Pt,(0,v.Z)({tab:g,key:C,tabKey:C},R))})});return r(f,xt)}return a.createElement(xt,i)},Gt=Kt,Dt=o(82225),Ut=["key","forceRender","style","className","destroyInactiveTabPane"],we=function(t){var r=t.id,i=t.activeKey,l=t.animated,c=t.tabPosition,f=t.destroyInactiveTabPane,s=a.useContext(y),g=s.prefixCls,C=s.tabs,R=l.tabPane,E="".concat(g,"-tabpane");return a.createElement("div",{className:_()("".concat(g,"-content-holder"))},a.createElement("div",{className:_()("".concat(g,"-content"),"".concat(g,"-content-").concat(c),(0,V.Z)({},"".concat(g,"-content-animated"),R))},C.map(function(I){var ne=I.key,ve=I.forceRender,ae=I.style,ce=I.className,w=I.destroyInactiveTabPane,P=(0,le.Z)(I,Ut),me=ne===i;return a.createElement(Dt.ZP,(0,v.Z)({key:ne,visible:me,forceRender:ve,removeOnLeave:!!(f||w),leavedClassName:"".concat(E,"-hidden")},l.tabPaneMotion),function(Oe,Re){var he=Oe.style,ye=Oe.className;return a.createElement(Pt,(0,v.Z)({},P,{prefixCls:E,id:r,tabKey:ne,animated:R,active:me,style:(0,te.Z)((0,te.Z)({},ae),he),className:_()(ce,ye),ref:Re}))})})))},Zt=we,ma=o(80334);function $n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=(0,te.Z)({inkBar:!0},(0,Te.Z)(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Sn=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],on=0,En=a.forwardRef(function(e,t){var r=e.id,i=e.prefixCls,l=i===void 0?"rc-tabs":i,c=e.className,f=e.items,s=e.direction,g=e.activeKey,C=e.defaultActiveKey,R=e.editable,E=e.animated,I=e.tabPosition,ne=I===void 0?"top":I,ve=e.tabBarGutter,ae=e.tabBarStyle,ce=e.tabBarExtraContent,w=e.locale,P=e.moreIcon,me=e.moreTransitionName,Oe=e.destroyInactiveTabPane,Re=e.renderTabBar,he=e.onChange,ye=e.onTabClick,q=e.onTabScroll,T=e.getPopupContainer,oe=e.popupClassName,B=e.indicator,re=(0,le.Z)(e,Sn),h=a.useMemo(function(){return(f||[]).filter(function(xe){return xe&&(0,Te.Z)(xe)==="object"&&"key"in xe})},[f]),U=s==="rtl",Ke=$n(E),Ge=(0,a.useState)(!1),_e=(0,Z.Z)(Ge,2),Ue=_e[0],et=_e[1];(0,a.useEffect)(function(){et((0,W.Z)())},[]);var ct=(0,N.Z)(function(){var xe;return(xe=h[0])===null||xe===void 0?void 0:xe.key},{value:g,defaultValue:C}),at=(0,Z.Z)(ct,2),K=at[0],pe=at[1],Ye=(0,a.useState)(function(){return h.findIndex(function(xe){return xe.key===K})}),Fe=(0,Z.Z)(Ye,2),Ae=Fe[0],Qe=Fe[1];(0,a.useEffect)(function(){var xe=h.findIndex(function(Ot){return Ot.key===K});if(xe===-1){var $t;xe=Math.max(0,Math.min(Ae,h.length-1)),pe(($t=h[xe])===null||$t===void 0?void 0:$t.key)}Qe(xe)},[h.map(function(xe){return xe.key}).join("_"),K,Ae]);var Ee=(0,N.Z)(null,{value:r}),ot=(0,Z.Z)(Ee,2),Ct=ot[0],Lt=ot[1];(0,a.useEffect)(function(){r||(Lt("rc-tabs-".concat(on)),on+=1)},[]);function Xt(xe,$t){ye==null||ye(xe,$t);var Ot=xe!==K;pe(xe),Ot&&(he==null||he(xe))}var wt={id:Ct,activeKey:K,animated:Ke,tabPosition:ne,rtl:U,mobile:Ue},Yt=(0,te.Z)((0,te.Z)({},wt),{},{editable:R,locale:w,moreIcon:P,moreTransitionName:me,tabBarGutter:ve,onTabClick:Xt,onTabScroll:q,extra:ce,style:ae,panes:null,getPopupContainer:T,popupClassName:oe,indicator:B});return a.createElement(y.Provider,{value:{tabs:h,prefixCls:l}},a.createElement("div",(0,v.Z)({ref:t,id:r,className:_()(l,"".concat(l,"-").concat(ne),(0,V.Z)((0,V.Z)((0,V.Z)({},"".concat(l,"-mobile"),Ue),"".concat(l,"-editable"),R),"".concat(l,"-rtl"),U),c)},re),a.createElement(Gt,(0,v.Z)({},Yt,{renderTabBar:Re})),a.createElement(Zt,(0,v.Z)({destroyInactiveTabPane:Oe},wt,{animated:Ke}))))}),Pn=En,Tn=Pn,On=o(53124),Rn=o(35792),Nn=o(98675),In=o(33603);const Zn={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Mn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},Zn),{motionName:(0,In.m)(e,"switch")})),r}var Ln=o(50344),wn=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);lt)}function Bn(e,t){if(e)return e;const r=(0,Ln.Z)(t).map(i=>{if(a.isValidElement(i)){const{key:l,props:c}=i,f=c||{},{tab:s}=f,g=wn(f,["tab"]);return Object.assign(Object.assign({key:String(l)},g),{label:s})}return null});return An(r)}var k=o(87107),Mt=o(14747),Dn=o(91945),zn=o(45503),rn=o(67771),jn=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[(0,rn.oN)(e,"slide-up"),(0,rn.oN)(e,"slide-down")]]};const Wn=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:i,cardGutter:l,colorBorderSecondary:c,itemSelectedColor:f}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:i,border:`${(0,k.bf)(e.lineWidth)} ${e.lineType} ${c}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:f,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,k.bf)(l)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,k.bf)(e.borderRadiusLG)} ${(0,k.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,k.bf)(e.borderRadiusLG)} ${(0,k.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,k.bf)(l)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,k.bf)(e.borderRadiusLG)} 0 0 ${(0,k.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,k.bf)(e.borderRadiusLG)} ${(0,k.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Hn=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:i}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,Mt.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,k.bf)(i)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Mt.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,k.bf)(e.paddingXXS)} ${(0,k.bf)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Fn=e=>{const{componentCls:t,margin:r,colorBorderSecondary:i,horizontalMargin:l,verticalItemPadding:c,verticalItemMargin:f,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:l,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,k.bf)(e.lineWidth)} ${e.lineType} ${i}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, - right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:c,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:f},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,k.bf)(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,k.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,k.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},kn=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:i,horizontalItemPaddingSM:l,horizontalItemPaddingLG:c}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,k.bf)(e.borderRadius)} ${(0,k.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,k.bf)(e.borderRadius)} ${(0,k.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,k.bf)(e.borderRadius)} ${(0,k.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,k.bf)(e.borderRadius)} 0 0 ${(0,k.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i}}}}}},Vn=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:i,iconCls:l,tabsHorizontalItemMargin:c,horizontalItemPadding:f,itemSelectedColor:s,itemColor:g}=e,C=`${t}-tab`;return{[C]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:f,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:g,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},(0,Mt.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${C}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:i},[`&${C}-active ${C}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${C}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${C}-disabled ${C}-btn, &${C}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${C}-remove ${l}`]:{margin:0},[`${l}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${C} + ${C}`]:{margin:{_skip_check_:!0,value:c}}}},Kn=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:i,cardGutter:l,calc:c}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[i]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,k.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,k.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,k.bf)(c(e.marginXXS).mul(-1).equal())},[i]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:l},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Gn=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:i,cardGutter:l,itemHoverColor:c,itemActiveColor:f,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:r,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:i,minHeight:i,marginLeft:{_skip_check_:!0,value:l},padding:`0 ${(0,k.bf)(e.paddingXS)}`,background:"transparent",border:`${(0,k.bf)(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${(0,k.bf)(e.borderRadiusLG)} ${(0,k.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:c},"&:active, &:focus:not(:focus-visible)":{color:f}},(0,Mt.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Vn(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Un=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}};var Xn=(0,Dn.I$)("Tabs",e=>{const t=(0,zn.TS)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,k.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,k.bf)(e.horizontalItemGutter)}`});return[kn(t),Kn(t),Fn(t),Hn(t),Wn(t),Gn(t),jn(t)]},Un),Yn=()=>null,Qn=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l{var t,r,i,l,c,f,s,g;const{type:C,className:R,rootClassName:E,size:I,onEdit:ne,hideAdd:ve,centered:ae,addIcon:ce,removeIcon:w,moreIcon:P,popupClassName:me,children:Oe,items:Re,animated:he,style:ye,indicatorSize:q,indicator:T}=e,oe=Qn(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:B}=oe,{direction:re,tabs:h,getPrefixCls:U,getPopupContainer:Ke}=a.useContext(On.E_),Ge=U("tabs",B),_e=(0,Rn.Z)(Ge),[Ue,et,ct]=Xn(Ge,_e);let at;C==="editable-card"&&(at={onEdit:(Ee,ot)=>{let{key:Ct,event:Lt}=ot;ne==null||ne(Ee==="add"?Lt:Ct,Ee)},removeIcon:(t=w!=null?w:h==null?void 0:h.removeIcon)!==null&&t!==void 0?t:a.createElement(d.Z,null),addIcon:(ce!=null?ce:h==null?void 0:h.addIcon)||a.createElement(je,null),showAdd:ve!==!0});const K=U(),pe=(0,Nn.Z)(I),Ye=Bn(Re,Oe),Fe=Mn(Ge,he),Ae=Object.assign(Object.assign({},h==null?void 0:h.style),ye),Qe={align:(r=T==null?void 0:T.align)!==null&&r!==void 0?r:(i=h==null?void 0:h.indicator)===null||i===void 0?void 0:i.align,size:(s=(c=(l=T==null?void 0:T.size)!==null&&l!==void 0?l:q)!==null&&c!==void 0?c:(f=h==null?void 0:h.indicator)===null||f===void 0?void 0:f.size)!==null&&s!==void 0?s:h==null?void 0:h.indicatorSize};return Ue(a.createElement(Tn,Object.assign({direction:re,getPopupContainer:Ke,moreTransitionName:`${K}-slide-up`},oe,{items:Ye,className:_()({[`${Ge}-${pe}`]:pe,[`${Ge}-card`]:["card","editable-card"].includes(C),[`${Ge}-editable-card`]:C==="editable-card",[`${Ge}-centered`]:ae},h==null?void 0:h.className,R,E,et,ct,_e),popupClassName:_()(me,et,ct,_e),style:Ae,editable:at,moreIcon:(g=P!=null?P:h==null?void 0:h.moreIcon)!==null&&g!==void 0?g:a.createElement(De.Z,null),prefixCls:Ge,animated:Fe,indicator:Qe})))};ln.TabPane=Yn;var Jn=ln},31058:function(ut,Ze,o){o.d(Ze,{s:function(){return se},Z:function(){return be}});var a=o(87462),d=o(97685),De=o(2788),v=o(67294),ze=v.createContext({}),Y=o(1413),Ce=o(93967),de=o.n(Ce),je=o(94999),ke=o(7028),_=o(15105),V=o(64217);function te(n,m,u){var b=m;return!b&&u&&(b="".concat(n,"-").concat(u)),b}function Z(n,m){var u=n["page".concat(m?"Y":"X","Offset")],b="scroll".concat(m?"Top":"Left");if(typeof u!="number"){var S=n.document;u=S.documentElement[b],typeof u!="number"&&(u=S.body[b])}return u}function Te(n){var m=n.getBoundingClientRect(),u={left:m.left,top:m.top},b=n.ownerDocument,S=b.defaultView||b.parentWindow;return u.left+=Z(S),u.top+=Z(S,!0),u}var le=o(82225),N=o(71002),W=o(42550),y=v.memo(function(n){var m=n.children;return m},function(n,m){var u=m.shouldUpdate;return!u}),p={width:0,height:0,overflow:"hidden",outline:"none"},z={outline:"none"},H=v.forwardRef(function(n,m){var u=n.prefixCls,b=n.className,S=n.style,L=n.title,G=n.ariaId,F=n.footer,D=n.closable,$e=n.closeIcon,A=n.onClose,Se=n.children,Ne=n.bodyStyle,Me=n.bodyProps,Ie=n.modalRender,ue=n.onMouseDown,Xe=n.onMouseUp,J=n.holderRef,Le=n.visible,Je=n.forceRender,ge=n.width,Ve=n.height,fe=n.classNames,ie=n.styles,qe=v.useContext(ze),ft=qe.panel,st=(0,W.x1)(J,ft),it=(0,v.useRef)(),vt=(0,v.useRef)(),tt=(0,v.useRef)();v.useImperativeHandle(m,function(){return{focus:function(){var nt;(nt=tt.current)===null||nt===void 0||nt.focus()},changeActive:function(nt){var Nt=document,xt=Nt.activeElement;nt&&xt===vt.current?it.current.focus():!nt&&xt===it.current&&vt.current.focus()}}});var We={};ge!==void 0&&(We.width=ge),Ve!==void 0&&(We.height=Ve);var He;F&&(He=v.createElement("div",{className:de()("".concat(u,"-footer"),fe==null?void 0:fe.footer),style:(0,Y.Z)({},ie==null?void 0:ie.footer)},F));var mt;L&&(mt=v.createElement("div",{className:de()("".concat(u,"-header"),fe==null?void 0:fe.header),style:(0,Y.Z)({},ie==null?void 0:ie.header)},v.createElement("div",{className:"".concat(u,"-title"),id:G},L)));var bt=(0,v.useMemo)(function(){return(0,N.Z)(D)==="object"&&D!==null?D:D?{closeIcon:$e!=null?$e:v.createElement("span",{className:"".concat(u,"-close-x")})}:{}},[D,$e]),Rt=(0,V.Z)(bt,!0),pt;D&&(pt=v.createElement("button",(0,a.Z)({type:"button",onClick:A,"aria-label":"Close"},Rt,{className:"".concat(u,"-close")}),bt.closeIcon));var gt=v.createElement("div",{className:de()("".concat(u,"-content"),fe==null?void 0:fe.content),style:ie==null?void 0:ie.content},pt,mt,v.createElement("div",(0,a.Z)({className:de()("".concat(u,"-body"),fe==null?void 0:fe.body),style:(0,Y.Z)((0,Y.Z)({},Ne),ie==null?void 0:ie.body)},Me),Se),He);return v.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":L?G:null,"aria-modal":"true",ref:st,style:(0,Y.Z)((0,Y.Z)({},S),We),className:de()(u,b),onMouseDown:ue,onMouseUp:Xe},v.createElement("div",{tabIndex:0,ref:it,style:p,"aria-hidden":"true"}),v.createElement("div",{ref:tt,tabIndex:-1,style:z},v.createElement(y,{shouldUpdate:Le||Je},Ie?Ie(gt):gt)),v.createElement("div",{tabIndex:0,ref:vt,style:p,"aria-hidden":"true"}))}),se=H,M=v.forwardRef(function(n,m){var u=n.prefixCls,b=n.title,S=n.style,L=n.className,G=n.visible,F=n.forceRender,D=n.destroyOnClose,$e=n.motionName,A=n.ariaId,Se=n.onVisibleChanged,Ne=n.mousePosition,Me=(0,v.useRef)(),Ie=v.useState(),ue=(0,d.Z)(Ie,2),Xe=ue[0],J=ue[1],Le={};Xe&&(Le.transformOrigin=Xe);function Je(){var ge=Te(Me.current);J(Ne?"".concat(Ne.x-ge.left,"px ").concat(Ne.y-ge.top,"px"):"")}return v.createElement(le.ZP,{visible:G,onVisibleChanged:Se,onAppearPrepare:Je,onEnterPrepare:Je,forceRender:F,motionName:$e,removeOnLeave:D,ref:Me},function(ge,Ve){var fe=ge.className,ie=ge.style;return v.createElement(se,(0,a.Z)({},n,{ref:m,title:b,ariaId:A,prefixCls:u,holderRef:Ve,style:(0,Y.Z)((0,Y.Z)((0,Y.Z)({},ie),S),Le),className:de()(L,fe)}))})});M.displayName="Content";var x=M;function $(n){var m=n.prefixCls,u=n.style,b=n.visible,S=n.maskProps,L=n.motionName,G=n.className;return v.createElement(le.ZP,{key:"mask",visible:b,motionName:L,leavedClassName:"".concat(m,"-mask-hidden")},function(F,D){var $e=F.className,A=F.style;return v.createElement("div",(0,a.Z)({ref:D,style:(0,Y.Z)((0,Y.Z)({},A),u),className:de()("".concat(m,"-mask"),$e,G)},S))})}var Q=o(80334);function j(n){var m=n.prefixCls,u=m===void 0?"rc-dialog":m,b=n.zIndex,S=n.visible,L=S===void 0?!1:S,G=n.keyboard,F=G===void 0?!0:G,D=n.focusTriggerAfterClose,$e=D===void 0?!0:D,A=n.wrapStyle,Se=n.wrapClassName,Ne=n.wrapProps,Me=n.onClose,Ie=n.afterOpenChange,ue=n.afterClose,Xe=n.transitionName,J=n.animation,Le=n.closable,Je=Le===void 0?!0:Le,ge=n.mask,Ve=ge===void 0?!0:ge,fe=n.maskTransitionName,ie=n.maskAnimation,qe=n.maskClosable,ft=qe===void 0?!0:qe,st=n.maskStyle,it=n.maskProps,vt=n.rootClassName,tt=n.classNames,We=n.styles,He=(0,v.useRef)(),mt=(0,v.useRef)(),bt=(0,v.useRef)(),Rt=v.useState(L),pt=(0,d.Z)(Rt,2),gt=pt[0],lt=pt[1],nt=(0,ke.Z)();function Nt(){(0,je.Z)(mt.current,document.activeElement)||(He.current=document.activeElement)}function xt(){if(!(0,je.Z)(mt.current,document.activeElement)){var we;(we=bt.current)===null||we===void 0||we.focus()}}function Vt(we){if(we)xt();else{if(lt(!1),Ve&&He.current&&$e){try{He.current.focus({preventScroll:!0})}catch(Zt){}He.current=null}gt&&(ue==null||ue())}Ie==null||Ie(we)}function Pt(we){Me==null||Me(we)}var Tt=(0,v.useRef)(!1),It=(0,v.useRef)(),Kt=function(){clearTimeout(It.current),Tt.current=!0},Gt=function(){It.current=setTimeout(function(){Tt.current=!1})},Dt=null;ft&&(Dt=function(Zt){Tt.current?Tt.current=!1:mt.current===Zt.target&&Pt(Zt)});function Ut(we){if(F&&we.keyCode===_.Z.ESC){we.stopPropagation(),Pt(we);return}L&&we.keyCode===_.Z.TAB&&bt.current.changeActive(!we.shiftKey)}return(0,v.useEffect)(function(){L&&(lt(!0),Nt())},[L]),(0,v.useEffect)(function(){return function(){clearTimeout(It.current)}},[]),v.createElement("div",(0,a.Z)({className:de()("".concat(u,"-root"),vt)},(0,V.Z)(n,{data:!0})),v.createElement($,{prefixCls:u,visible:Ve&&L,motionName:te(u,fe,ie),style:(0,Y.Z)((0,Y.Z)({zIndex:b},st),We==null?void 0:We.mask),maskProps:it,className:tt==null?void 0:tt.mask}),v.createElement("div",(0,a.Z)({tabIndex:-1,onKeyDown:Ut,className:de()("".concat(u,"-wrap"),Se,tt==null?void 0:tt.wrapper),ref:mt,onClick:Dt,style:(0,Y.Z)((0,Y.Z)((0,Y.Z)({zIndex:b},A),We==null?void 0:We.wrapper),{},{display:gt?null:"none"})},Ne),v.createElement(x,(0,a.Z)({},n,{onMouseDown:Kt,onMouseUp:Gt,ref:bt,closable:Je,ariaId:nt,prefixCls:u,visible:L&>,onClose:Pt,onVisibleChanged:Vt,motionName:te(u,Xe,J)}))))}var O=function(m){var u=m.visible,b=m.getContainer,S=m.forceRender,L=m.destroyOnClose,G=L===void 0?!1:L,F=m.afterClose,D=m.panelRef,$e=v.useState(u),A=(0,d.Z)($e,2),Se=A[0],Ne=A[1],Me=v.useMemo(function(){return{panel:D}},[D]);return v.useEffect(function(){u&&Ne(!0)},[u]),!S&&G&&!Se?null:v.createElement(ze.Provider,{value:Me},v.createElement(De.Z,{open:u||S||Se,autoDestroy:!1,getContainer:b,autoLock:u||Se},v.createElement(j,(0,a.Z)({},m,{destroyOnClose:G,afterClose:function(){F==null||F(),Ne(!1)}}))))};O.displayName="Dialog";var ee=O,be=ee}}]); diff --git a/starter/src/main/resources/templates/admin/928.0ae01f2e.async.js b/starter/src/main/resources/templates/admin/928.0ae01f2e.async.js new file mode 100644 index 0000000000..761124fd23 --- /dev/null +++ b/starter/src/main/resources/templates/admin/928.0ae01f2e.async.js @@ -0,0 +1,5 @@ +"use strict";var Ar=Object.defineProperty,Tr=Object.defineProperties;var Ir=Object.getOwnPropertyDescriptors;var yt=Object.getOwnPropertySymbols;var Sn=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable;var Ft=Math.pow,Dn=(L,S,g)=>S in L?Ar(L,S,{enumerable:!0,configurable:!0,writable:!0,value:g}):L[S]=g,x=(L,S)=>{for(var g in S||(S={}))Sn.call(S,g)&&Dn(L,g,S[g]);if(yt)for(var g of yt(S))Rn.call(S,g)&&Dn(L,g,S[g]);return L},B=(L,S)=>Tr(L,Ir(S));var wt=(L,S)=>{var g={};for(var s in L)Sn.call(L,s)&&S.indexOf(s)<0&&(g[s]=L[s]);if(L!=null&&yt)for(var s of yt(L))S.indexOf(s)<0&&Rn.call(L,s)&&(g[s]=L[s]);return g};var On=(L,S,g)=>new Promise((s,F)=>{var d=A=>{try{_(g.next(A))}catch(Y){F(Y)}},k=A=>{try{_(g.throw(A))}catch(Y){F(Y)}},_=A=>A.done?s(A.value):Promise.resolve(A.value).then(d,k);_((g=g.apply(L,S)).next())});(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[928],{11475:function(L,S,g){g.d(S,{Z:function(){return q}});var s=g(1413),F=g(67294),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},k=d,_=g(89099),A=function(V,re){return F.createElement(_.Z,(0,s.Z)((0,s.Z)({},V),{},{ref:re,icon:k}))},Y=F.forwardRef(A),q=Y},64789:function(L,S,g){g.d(S,{Z:function(){return q}});var s=g(1413),F=g(67294),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},k=d,_=g(89099),A=function(V,re){return F.createElement(_.Z,(0,s.Z)((0,s.Z)({},V),{},{ref:re,icon:k}))},Y=F.forwardRef(A),q=Y},26859:function(L,S,g){var s=g(1413),F=g(67294),d=g(94737),k=g(89099),_=function(q,ie){return F.createElement(k.Z,(0,s.Z)((0,s.Z)({},q),{},{ref:ie,icon:d.Z}))},A=F.forwardRef(_);S.Z=A},31199:function(L,S,g){var s=g(1413),F=g(91),d=g(67294),k=g(64791),_=g(85893),A=["fieldProps","min","proFieldProps","max"],Y=function(V,re){var me=V.fieldProps,ye=V.min,T=V.proFieldProps,Z=V.max,J=(0,F.Z)(V,A);return(0,_.jsx)(k.Z,(0,s.Z)({valueType:"digit",fieldProps:(0,s.Z)({min:ye,max:Z},me),ref:re,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:T},J))},q=d.forwardRef(Y);S.Z=q},64317:function(L,S,g){var s=g(1413),F=g(91),d=g(22270),k=g(67294),_=g(66758),A=g(64791),Y=g(85893),q=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],ie=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],V=function(J,Oe){var X=J.fieldProps,ue=J.children,we=J.params,de=J.proFieldProps,Ce=J.mode,fe=J.valueEnum,xe=J.request,Ee=J.showSearch,Me=J.options,b=(0,F.Z)(J,q),E=(0,k.useContext)(_.Z);return(0,Y.jsx)(A.Z,(0,s.Z)((0,s.Z)({valueEnum:(0,d.h)(fe),request:xe,params:we,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,s.Z)({options:Me,mode:Ce,showSearch:Ee,getPopupContainer:E.getPopupContainer},X),ref:Oe,proFieldProps:de},b),{},{children:ue}))},re=k.forwardRef(function(Z,J){var Oe=Z.fieldProps,X=Z.children,ue=Z.params,we=Z.proFieldProps,de=Z.mode,Ce=Z.valueEnum,fe=Z.request,xe=Z.options,Ee=(0,F.Z)(Z,ie),Me=(0,s.Z)({options:xe,mode:de||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},Oe),b=(0,k.useContext)(_.Z);return(0,Y.jsx)(A.Z,(0,s.Z)((0,s.Z)({valueEnum:(0,d.h)(Ce),request:fe,params:ue,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,s.Z)({getPopupContainer:b.getPopupContainer},Me),ref:J,proFieldProps:we},Ee),{},{children:X}))}),me=k.forwardRef(V),ye=re,T=me;T.SearchSelect=ye,T.displayName="ProFormComponent",S.Z=T},60887:function(L,S,g){g.d(S,{LB:function(){return fr},O1:function(){return gr},Zj:function(){return br}});var s=g(67294),F=g(73935),d=g(24285);const k={display:"none"};function _(e){let{id:t,value:n}=e;return s.createElement("div",{id:t,style:k},n)}function A(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return s.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function Y(){const[e,t]=(0,s.useState)("");return{announce:(0,s.useCallback)(r=>{r!=null&&t(r)},[]),announcement:e}}const q=(0,s.createContext)(null);function ie(e){const t=(0,s.useContext)(q);(0,s.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function V(){const[e]=(0,s.useState)(()=>new Set),t=(0,s.useCallback)(r=>(e.add(r),()=>e.delete(r)),[e]);return[(0,s.useCallback)(r=>{let{type:i,event:o}=r;e.forEach(l=>{var c;return(c=l[i])==null?void 0:c.call(l,o)})},[e]),t]}const re={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},me={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function ye(e){let{announcements:t=me,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=re}=e;const{announce:o,announcement:l}=Y(),c=(0,d.Ld)("DndLiveRegion"),[u,f]=(0,s.useState)(!1);if((0,s.useEffect)(()=>{f(!0)},[]),ie((0,s.useMemo)(()=>({onDragStart(h){let{active:w}=h;o(t.onDragStart({active:w}))},onDragMove(h){let{active:w,over:m}=h;t.onDragMove&&o(t.onDragMove({active:w,over:m}))},onDragOver(h){let{active:w,over:m}=h;o(t.onDragOver({active:w,over:m}))},onDragEnd(h){let{active:w,over:m}=h;o(t.onDragEnd({active:w,over:m}))},onDragCancel(h){let{active:w,over:m}=h;o(t.onDragCancel({active:w,over:m}))}}),[o,t])),!u)return null;const p=s.createElement(s.Fragment,null,s.createElement(_,{id:r,value:i.draggable}),s.createElement(A,{id:c,announcement:l}));return n?(0,F.createPortal)(p,n):p}var T;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(T||(T={}));function Z(){}function J(e,t){return useMemo(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function Oe(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(r=>r!=null),[...t])}const X=Object.freeze({x:0,y:0});function ue(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function we(e,t){const n=getEventCoordinates(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function de(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Ce(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function fe(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function xe(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function Ee(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Me=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=Ee(t,t.left,t.top),o=[];for(const l of r){const{id:c}=l,u=n.get(c);if(u){const f=ue(Ee(u),i);o.push({id:c,data:{droppableContainer:l,value:f}})}}return o.sort(de)},b=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=fe(t),o=[];for(const l of r){const{id:c}=l,u=n.get(c);if(u){const f=fe(u),p=i.reduce((w,m,N)=>w+ue(f[N],m),0),h=Number((p/4).toFixed(4));o.push({id:c,data:{droppableContainer:l,value:h}})}}return o.sort(de)};function E(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),l=i-r,c=o-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:l}=o,c=n.get(l);if(c){const u=E(c,t);u>0&&i.push({id:l,data:{droppableContainer:o,value:u}})}}return i.sort(Ce)};function a(e,t){const{top:n,left:r,bottom:i,right:o}=t;return n<=e.y&&e.y<=i&&r<=e.x&&e.x<=o}const v=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const o of t){const{id:l}=o,c=n.get(l);if(c&&a(r,c)){const f=fe(c).reduce((h,w)=>h+ue(r,w),0),p=Number((f/4).toFixed(4));i.push({id:l,data:{droppableContainer:o,value:p}})}}return i.sort(de)};function y(e,t,n){return B(x({},e),{scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1})}function U(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:X}function $(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;oB(x({},l),{top:l.top+e*c.y,bottom:l.bottom+e*c.y,left:l.left+e*c.x,right:l.right+e*c.x}),x({},n))}}const Fe=$(1);function Pe(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Je(e,t,n){const r=Pe(t);if(!r)return e;const{scaleX:i,scaleY:o,x:l,y:c}=r,u=e.left-l-(1-i)*parseFloat(n),f=e.top-c-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),p=i?e.width/i:e.width,h=o?e.height/o:e.height;return{width:p,height:h,top:f,right:u+p,bottom:f+h,left:u}}const ke={ignoreTransform:!1};function ee(e,t){t===void 0&&(t=ke);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:f,transformOrigin:p}=(0,d.Jj)(e).getComputedStyle(e);f&&(n=Je(n,f,p))}const{top:r,left:i,width:o,height:l,bottom:c,right:u}=n;return{top:r,left:i,width:o,height:l,bottom:c,right:u}}function ze(e){return ee(e,{ignoreTransform:!0})}function Ct(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Ae(e,t){return t===void 0&&(t=(0,d.Jj)(e).getComputedStyle(e)),t.position==="fixed"}function xt(e,t){t===void 0&&(t=(0,d.Jj)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function Ge(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if((0,d.qk)(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,d.Re)(i)||(0,d.vZ)(i)||n.includes(i))return n;const o=(0,d.Jj)(e).getComputedStyle(i);return i!==e&&xt(i,o)&&n.push(i),Ae(i,o)?n:r(i.parentNode)}return e?r(e):n}function lt(e){const[t]=Ge(e,1);return t!=null?t:null}function He(e){return!d.Nq||!e?null:(0,d.FJ)(e)?e:(0,d.UG)(e)?(0,d.qk)(e)||e===(0,d.r3)(e).scrollingElement?window:(0,d.Re)(e)?e:null:null}function ct(e){return(0,d.FJ)(e)?e.scrollX:e.scrollLeft}function _e(e){return(0,d.FJ)(e)?e.scrollY:e.scrollTop}function Et(e){return{x:ct(e),y:_e(e)}}var Q;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Q||(Q={}));function zt(e){return!d.Nq||!e?!1:e===document.scrollingElement}function Bt(e){const t={x:0,y:0},n=zt(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,l=e.scrollTop>=r.y,c=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:l,isRight:c,maxScroll:r,minScroll:t}}const Mn={x:.2,y:.2};function Pn(e,t,n,r,i){let{top:o,left:l,right:c,bottom:u}=n;r===void 0&&(r=10),i===void 0&&(i=Mn);const{isTop:f,isBottom:p,isLeft:h,isRight:w}=Bt(e),m={x:0,y:0},N={x:0,y:0},C={height:t.height*i.y,width:t.width*i.x};return!f&&o<=t.top+C.height?(m.y=Q.Backward,N.y=r*Math.abs((t.top+C.height-o)/C.height)):!p&&u>=t.bottom-C.height&&(m.y=Q.Forward,N.y=r*Math.abs((t.bottom-C.height-u)/C.height)),!w&&c>=t.right-C.width?(m.x=Q.Forward,N.x=r*Math.abs((t.right-C.width-c)/C.width)):!h&&l<=t.left+C.width&&(m.x=Q.Backward,N.x=r*Math.abs((t.left+C.width-l)/C.width)),{direction:m,speed:N}}function An(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:l}=window;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function $t(e){return e.reduce((t,n)=>(0,d.IH)(t,Et(n)),X)}function Tn(e){return e.reduce((t,n)=>t+ct(n),0)}function In(e){return e.reduce((t,n)=>t+_e(n),0)}function Wt(e,t){if(t===void 0&&(t=ee),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);lt(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Ln=[["x",["left","right"],Tn],["y",["top","bottom"],In]];class Dt{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ge(n),i=$t(r);this.rect=x({},t),this.width=t.width,this.height=t.height;for(const[o,l,c]of Ln)for(const u of l)Object.defineProperty(this,u,{get:()=>{const f=c(r),p=i[o]-f;return this.rect[u]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ve{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Nn(e){const{EventTarget:t}=(0,d.Jj)(e);return e instanceof t?e:(0,d.r3)(e)}function St(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(Ft(n,2)+Ft(r,2))>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var le;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(le||(le={}));function kt(e){e.preventDefault()}function jn(e){e.stopPropagation()}var z;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(z||(z={}));const _t={start:[z.Space,z.Enter],cancel:[z.Esc],end:[z.Space,z.Enter]},Fn=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case z.Right:return B(x({},n),{x:n.x+25});case z.Left:return B(x({},n),{x:n.x-25});case z.Down:return B(x({},n),{y:n.y+25});case z.Up:return B(x({},n),{y:n.y-25})}};class Ut{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Ve((0,d.r3)(n)),this.windowListeners=new Ve((0,d.Jj)(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(le.Resize,this.handleCancel),this.windowListeners.add(le.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(le.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Wt(r),n(X)}handleKeyDown(t){if((0,d.vd)(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=_t,coordinateGetter:l=Fn,scrollBehavior:c="smooth"}=i,{code:u}=t;if(o.end.includes(u)){this.handleEnd(t);return}if(o.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:f}=r.current,p=f?{x:f.left,y:f.top}:X;this.referenceCoordinates||(this.referenceCoordinates=p);const h=l(t,{active:n,context:r.current,currentCoordinates:p});if(h){const w=(0,d.$X)(h,p),m={x:0,y:0},{scrollableAncestors:N}=r.current;for(const C of N){const D=t.code,{isTop:M,isRight:j,isLeft:R,isBottom:te,maxScroll:W,minScroll:K}=Bt(C),P=An(C),I={x:Math.min(D===z.Right?P.right-P.width/2:P.right,Math.max(D===z.Right?P.left:P.left+P.width/2,h.x)),y:Math.min(D===z.Down?P.bottom-P.height/2:P.bottom,Math.max(D===z.Down?P.top:P.top+P.height/2,h.y))},G=D===z.Right&&!j||D===z.Left&&!R,oe=D===z.Down&&!te||D===z.Up&&!M;if(G&&I.x!==h.x){const H=C.scrollLeft+w.x,De=D===z.Right&&H<=W.x||D===z.Left&&H>=K.x;if(De&&!w.y){C.scrollTo({left:H,behavior:c});return}De?m.x=C.scrollLeft-H:m.x=D===z.Right?C.scrollLeft-W.x:C.scrollLeft-K.x,m.x&&C.scrollBy({left:-m.x,behavior:c});break}else if(oe&&I.y!==h.y){const H=C.scrollTop+w.y,De=D===z.Down&&H<=W.y||D===z.Up&&H>=K.y;if(De&&!w.x){C.scrollTo({top:H,behavior:c});return}De?m.y=C.scrollTop-H:m.y=D===z.Down?C.scrollTop-W.y:C.scrollTop-K.y,m.y&&C.scrollBy({top:-m.y,behavior:c});break}}this.handleMove(t,(0,d.IH)((0,d.$X)(h,this.referenceCoordinates),m))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Ut.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=_t,onActivation:i}=t,{active:o}=n;const{code:l}=e.nativeEvent;if(r.start.includes(l)){const c=o.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function Kt(e){return!!(e&&"distance"in e)}function Zt(e){return!!(e&&"delay"in e)}class Rt{constructor(t,n,r){var i;r===void 0&&(r=Nn(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:l}=o;this.props=t,this.events=n,this.document=(0,d.r3)(l),this.documentListeners=new Ve(this.document),this.listeners=new Ve(r),this.windowListeners=new Ve((0,d.Jj)(l)),this.initialCoordinates=(i=(0,d.DC)(o))!=null?i:X,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(le.Resize,this.handleCancel),this.windowListeners.add(le.DragStart,kt),this.windowListeners.add(le.VisibilityChange,this.handleCancel),this.windowListeners.add(le.ContextMenu,kt),this.documentListeners.add(le.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Zt(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(Kt(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(le.Click,jn,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(le.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:l,options:{activationConstraint:c}}=o;if(!i)return;const u=(n=(0,d.DC)(t))!=null?n:X,f=(0,d.$X)(i,u);if(!r&&c){if(Kt(c)){if(c.tolerance!=null&&St(f,c.tolerance))return this.handleCancel();if(St(f,c.distance))return this.handleStart()}return Zt(c)&&St(f,c.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),l(u)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===z.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const zn={move:{name:"pointermove"},end:{name:"pointerup"}};class Xt extends Rt{constructor(t){const{event:n}=t,r=(0,d.r3)(n.target);super(t,zn,r)}}Xt.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Bn={move:{name:"mousemove"},end:{name:"mouseup"}};var Ot;(function(e){e[e.RightClick=2]="RightClick"})(Ot||(Ot={}));class $n extends Rt{constructor(t){super(t,Bn,(0,d.r3)(t.event.target))}}$n.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Ot.RightClick?!1:(r==null||r({event:n}),!0)}}];const Mt={move:{name:"touchmove"},end:{name:"touchend"}};class Wn extends Rt{constructor(t){super(t,Mt)}static setup(){return window.addEventListener(Mt.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Mt.move.name,t)};function t(){}}}Wn.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var Qe;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Qe||(Qe={}));var ut;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ut||(ut={}));function kn(e){let{acceleration:t,activator:n=Qe.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:l=5,order:c=ut.TreeOrder,pointerCoordinates:u,scrollableAncestors:f,scrollableAncestorRects:p,delta:h,threshold:w}=e;const m=Un({delta:h,disabled:!o}),[N,C]=(0,d.Yz)(),D=(0,s.useRef)({x:0,y:0}),M=(0,s.useRef)({x:0,y:0}),j=(0,s.useMemo)(()=>{switch(n){case Qe.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case Qe.DraggableRect:return i}},[n,i,u]),R=(0,s.useRef)(null),te=(0,s.useCallback)(()=>{const K=R.current;if(!K)return;const P=D.current.x*M.current.x,I=D.current.y*M.current.y;K.scrollBy(P,I)},[]),W=(0,s.useMemo)(()=>c===ut.TreeOrder?[...f].reverse():f,[c,f]);(0,s.useEffect)(()=>{if(!o||!f.length||!j){C();return}for(const K of W){if((r==null?void 0:r(K))===!1)continue;const P=f.indexOf(K),I=p[P];if(!I)continue;const{direction:G,speed:oe}=Pn(K,I,j,t,w);for(const H of["x","y"])m[H][G[H]]||(oe[H]=0,G[H]=0);if(oe.x>0||oe.y>0){C(),R.current=K,N(te,l),D.current=oe,M.current=G;return}}D.current={x:0,y:0},M.current={x:0,y:0},C()},[t,te,r,C,o,l,JSON.stringify(j),JSON.stringify(m),N,f,W,p,JSON.stringify(w)])}const _n={x:{[Q.Backward]:!1,[Q.Forward]:!1},y:{[Q.Backward]:!1,[Q.Forward]:!1}};function Un(e){let{delta:t,disabled:n}=e;const r=(0,d.D9)(t);return(0,d.Gj)(i=>{if(n||!r||!i)return _n;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Q.Backward]:i.x[Q.Backward]||o.x===-1,[Q.Forward]:i.x[Q.Forward]||o.x===1},y:{[Q.Backward]:i.y[Q.Backward]||o.y===-1,[Q.Forward]:i.y[Q.Forward]||o.y===1}}},[n,t,r])}function Kn(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return(0,d.Gj)(i=>{var o;return t===null?null:(o=r!=null?r:i)!=null?o:null},[r,t])}function Zn(e,t){return(0,s.useMemo)(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,r)}));return[...n,...o]},[]),[e,t])}var qe;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(qe||(qe={}));var Pt;(function(e){e.Optimized="optimized"})(Pt||(Pt={}));const Yt=new Map;function Xn(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,l]=(0,s.useState)(null),{frequency:c,measure:u,strategy:f}=i,p=(0,s.useRef)(e),h=D(),w=(0,d.Ey)(h),m=(0,s.useCallback)(function(M){M===void 0&&(M=[]),!w.current&&l(j=>j===null?M:j.concat(M.filter(R=>!j.includes(R))))},[w]),N=(0,s.useRef)(null),C=(0,d.Gj)(M=>{if(h&&!n)return Yt;if(!M||M===Yt||p.current!==e||o!=null){const j=new Map;for(let R of e){if(!R)continue;if(o&&o.length>0&&!o.includes(R.id)&&R.rect.current){j.set(R.id,R.rect.current);continue}const te=R.node.current,W=te?new Dt(u(te),te):null;R.rect.current=W,W&&j.set(R.id,W)}return j}return M},[e,o,n,h,u]);return(0,s.useEffect)(()=>{p.current=e},[e]),(0,s.useEffect)(()=>{h||m()},[n,h]),(0,s.useEffect)(()=>{o&&o.length>0&&l(null)},[JSON.stringify(o)]),(0,s.useEffect)(()=>{h||typeof c!="number"||N.current!==null||(N.current=setTimeout(()=>{m(),N.current=null},c))},[c,h,m,...r]),{droppableRects:C,measureDroppableContainers:m,measuringScheduled:o!=null};function D(){switch(f){case qe.Always:return!1;case qe.BeforeDragging:return n;default:return!n}}}function Jt(e,t){return(0,d.Gj)(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Yn(e,t){return Jt(e,t)}function Jn(e){let{callback:t,disabled:n}=e;const r=(0,d.zX)(t),i=(0,s.useMemo)(()=>{if(n||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return(0,s.useEffect)(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function dt(e){let{callback:t,disabled:n}=e;const r=(0,d.zX)(t),i=(0,s.useMemo)(()=>{if(n||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return(0,s.useEffect)(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Gn(e){return new Dt(ee(e),e)}function Gt(e,t,n){t===void 0&&(t=Gn);const[r,i]=(0,s.useReducer)(c,null),o=Jn({callback(u){if(e)for(const f of u){const{type:p,target:h}=f;if(p==="childList"&&h instanceof HTMLElement&&h.contains(e)){i();break}}}}),l=dt({callback:i});return(0,d.LI)(()=>{i(),e?(l==null||l.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),o==null||o.disconnect())},[e]),r;function c(u){if(!e)return null;if(e.isConnected===!1){var f;return(f=u!=null?u:n)!=null?f:null}const p=t(e);return JSON.stringify(u)===JSON.stringify(p)?u:p}}function Hn(e){const t=Jt(e);return U(e,t)}const Ht=[];function Vn(e){const t=(0,s.useRef)(e),n=(0,d.Gj)(r=>e?r&&r!==Ht&&e&&t.current&&e.parentNode===t.current.parentNode?r:Ge(e):Ht,[e]);return(0,s.useEffect)(()=>{t.current=e},[e]),n}function Qn(e){const[t,n]=(0,s.useState)(null),r=(0,s.useRef)(e),i=(0,s.useCallback)(o=>{const l=He(o.target);l&&n(c=>c?(c.set(l,Et(l)),new Map(c)):null)},[]);return(0,s.useEffect)(()=>{const o=r.current;if(e!==o){l(o);const c=e.map(u=>{const f=He(u);return f?(f.addEventListener("scroll",i,{passive:!0}),[f,Et(f)]):null}).filter(u=>u!=null);n(c.length?new Map(c):null),r.current=e}return()=>{l(e),l(o)};function l(c){c.forEach(u=>{const f=He(u);f==null||f.removeEventListener("scroll",i)})}},[i,e]),(0,s.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((o,l)=>(0,d.IH)(o,l),X):$t(e):X,[e,t])}function Vt(e,t){t===void 0&&(t=[]);const n=(0,s.useRef)(null);return(0,s.useEffect)(()=>{n.current=null},t),(0,s.useEffect)(()=>{const r=e!==X;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?(0,d.$X)(e,n.current):X}function qn(e){(0,s.useEffect)(()=>{if(!d.Nq)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function er(e,t){return(0,s.useMemo)(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=l=>{o(l,t)},n},{}),[e,t])}function Qt(e){return(0,s.useMemo)(()=>e?Ct(e):null,[e])}const At=[];function tr(e,t){t===void 0&&(t=ee);const[n]=e,r=Qt(n?(0,d.Jj)(n):null),[i,o]=(0,s.useReducer)(c,At),l=dt({callback:o});return e.length>0&&i===At&&o(),(0,d.LI)(()=>{e.length?e.forEach(u=>l==null?void 0:l.observe(u)):(l==null||l.disconnect(),o())},[e]),i;function c(){return e.length?e.map(u=>zt(u)?r:new Dt(t(u),u)):At}}function qt(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,d.Re)(t)?t:e}function nr(e){let{measure:t}=e;const[n,r]=(0,s.useState)(null),i=(0,s.useCallback)(f=>{for(const{target:p}of f)if((0,d.Re)(p)){r(h=>{const w=t(p);return h?B(x({},h),{width:w.width,height:w.height}):w});break}},[t]),o=dt({callback:i}),l=(0,s.useCallback)(f=>{const p=qt(f);o==null||o.disconnect(),p&&(o==null||o.observe(p)),r(p?t(p):null)},[t,o]),[c,u]=(0,d.wm)(l);return(0,s.useMemo)(()=>({nodeRef:c,rect:n,setRef:u}),[n,c,u])}const rr=[{sensor:Xt,options:{}},{sensor:Ut,options:{}}],or={current:{}},ft={draggable:{measure:ze},droppable:{measure:ze,strategy:qe.WhileDragging,frequency:Pt.Optimized},dragOverlay:{measure:ee}};class et extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const ir={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new et,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Z},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ft,measureDroppableContainers:Z,windowRect:null,measuringScheduled:!1},en={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Z,draggableNodes:new Map,over:null,measureDroppableContainers:Z},tt=(0,s.createContext)(en),tn=(0,s.createContext)(ir);function sr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new et}}}function ar(e,t){switch(t.type){case T.DragStart:return B(x({},e),{draggable:B(x({},e.draggable),{initialCoordinates:t.initialCoordinates,active:t.active})});case T.DragMove:return e.draggable.active?B(x({},e),{draggable:B(x({},e.draggable),{translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}})}):e;case T.DragEnd:case T.DragCancel:return B(x({},e),{draggable:B(x({},e.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case T.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new et(e.droppable.containers);return i.set(r,n),B(x({},e),{droppable:B(x({},e.droppable),{containers:i})})}case T.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const l=new et(e.droppable.containers);return l.set(n,B(x({},o),{disabled:i})),B(x({},e),{droppable:B(x({},e.droppable),{containers:l})})}case T.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new et(e.droppable.containers);return o.delete(n),B(x({},e),{droppable:B(x({},e.droppable),{containers:o})})}default:return e}}function lr(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=(0,s.useContext)(tt),o=(0,d.D9)(r),l=(0,d.D9)(n==null?void 0:n.id);return(0,s.useEffect)(()=>{if(!t&&!r&&o&&l!=null){if(!(0,d.vd)(o)||document.activeElement===o.target)return;const c=i.get(l);if(!c)return;const{activatorNode:u,node:f}=c;if(!u.current&&!f.current)return;requestAnimationFrame(()=>{for(const p of[u.current,f.current]){if(!p)continue;const h=(0,d.so)(p);if(h){h.focus();break}}})}},[r,t,i,l,o]),null}function cr(e,t){let i=t,{transform:n}=i,r=wt(i,["transform"]);return e!=null&&e.length?e.reduce((o,l)=>l(x({transform:o},r)),n):n}function ur(e){return(0,s.useMemo)(()=>({draggable:x(x({},ft.draggable),e==null?void 0:e.draggable),droppable:x(x({},ft.droppable),e==null?void 0:e.droppable),dragOverlay:x(x({},ft.dragOverlay),e==null?void 0:e.dragOverlay)}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function dr(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=(0,s.useRef)(!1),{x:l,y:c}=typeof i=="boolean"?{x:i,y:i}:i;(0,d.LI)(()=>{if(!l&&!c||!t){o.current=!1;return}if(o.current||!r)return;const f=t==null?void 0:t.node.current;if(!f||f.isConnected===!1)return;const p=n(f),h=U(p,r);if(l||(h.x=0),c||(h.y=0),o.current=!0,Math.abs(h.x)>0||Math.abs(h.y)>0){const w=lt(f);w&&w.scrollBy({top:h.y,left:h.x})}},[t,l,c,r,n])}const Tt=(0,s.createContext)(B(x({},X),{scaleX:1,scaleY:1}));var Te;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Te||(Te={}));const fr=(0,s.memo)(function(t){var n,r,i,o;let xn=t,{id:l,accessibility:c,autoScroll:u=!0,children:f,sensors:p=rr,collisionDetection:h=O,measuring:w,modifiers:m}=xn,N=wt(xn,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const C=(0,s.useReducer)(ar,void 0,sr),[D,M]=C,[j,R]=V(),[te,W]=(0,s.useState)(Te.Uninitialized),K=te===Te.Initialized,{draggable:{active:P,nodes:I,translate:G},droppable:{containers:oe}}=D,H=P?I.get(P):null,De=(0,s.useRef)({initial:null,translated:null}),Se=(0,s.useMemo)(()=>{var ne;return P!=null?{id:P,data:(ne=H==null?void 0:H.data)!=null?ne:or,rect:De}:null},[P,H]),Ie=(0,s.useRef)(null),[on,sn]=(0,s.useState)(null),[Re,an]=(0,s.useState)(null),nt=(0,d.Ey)(N,Object.values(N)),It=(0,d.Ld)("DndDescribedBy",l),ln=(0,s.useMemo)(()=>oe.getEnabled(),[oe]),Be=ur(w),{droppableRects:Ue,measureDroppableContainers:ht,measuringScheduled:cn}=Xn(ln,{dragging:K,dependencies:[G.x,G.y],config:Be.droppable}),he=Kn(I,P),un=(0,s.useMemo)(()=>Re?(0,d.DC)(Re):null,[Re]),dn=Pr(),fn=Yn(he,Be.draggable.measure);dr({activeNode:P?I.get(P):null,config:dn.layoutShiftCompensation,initialRect:fn,measure:Be.draggable.measure});const ve=Gt(he,Be.draggable.measure,fn),Lt=Gt(he?he.parentElement:null),$e=(0,s.useRef)({activatorEvent:null,active:null,activeNode:he,collisionRect:null,collisions:null,droppableRects:Ue,draggableNodes:I,draggingNode:null,draggingNodeRect:null,droppableContainers:oe,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),hn=oe.getNodeFor((n=$e.current.over)==null?void 0:n.id),We=nr({measure:Be.dragOverlay.measure}),vt=(r=We.nodeRef.current)!=null?r:he,Ke=K?(i=We.rect)!=null?i:ve:null,vn=!!(We.nodeRef.current&&We.rect),gn=Hn(vn?null:ve),Nt=Qt(vt?(0,d.Jj)(vt):null),Le=Vn(K?hn!=null?hn:he:null),gt=tr(Le),pt=cr(m,{transform:{x:G.x-gn.x,y:G.y-gn.y,scaleX:1,scaleY:1},activatorEvent:Re,active:Se,activeNodeRect:ve,containerNodeRect:Lt,draggingNodeRect:Ke,over:$e.current.over,overlayNodeRect:We.rect,scrollableAncestors:Le,scrollableAncestorRects:gt,windowRect:Nt}),pn=un?(0,d.IH)(un,G):null,mn=Qn(Le),xr=Vt(mn),Er=Vt(mn,[ve]),Ze=(0,d.IH)(pt,xr),Xe=Ke?Fe(Ke,pt):null,rt=Se&&Xe?h({active:Se,collisionRect:Xe,droppableRects:Ue,droppableContainers:ln,pointerCoordinates:pn}):null,bn=xe(rt,"id"),[Ne,yn]=(0,s.useState)(null),Dr=vn?pt:(0,d.IH)(pt,Er),Sr=y(Dr,(o=Ne==null?void 0:Ne.rect)!=null?o:null,ve),wn=(0,s.useCallback)((ne,se)=>{let{sensor:ae,options:je}=se;if(Ie.current==null)return;const ce=I.get(Ie.current);if(!ce)return;const ge=ne.nativeEvent,be=new ae({active:Ie.current,activeNode:ce,event:ge,options:je,context:$e,onStart(pe){const ot=Ie.current;if(ot==null)return;const it=I.get(ot);if(!it)return;const{onDragStart:mt}=nt.current,bt={active:{id:ot,data:it.data,rect:De}};(0,F.unstable_batchedUpdates)(()=>{mt==null||mt(bt),W(Te.Initializing),M({type:T.DragStart,initialCoordinates:pe,active:ot}),j({type:"onDragStart",event:bt})})},onMove(pe){M({type:T.DragMove,coordinates:pe})},onEnd:Ye(T.DragEnd),onCancel:Ye(T.DragCancel)});(0,F.unstable_batchedUpdates)(()=>{sn(be),an(ne.nativeEvent)});function Ye(pe){return function(){return On(this,null,function*(){const{active:it,collisions:mt,over:bt,scrollAdjustedTranslate:En}=$e.current;let st=null;if(it&&En){const{cancelDrop:at}=nt.current;st={activatorEvent:ge,active:it,collisions:mt,delta:En,over:bt},pe===T.DragEnd&&typeof at=="function"&&(yield Promise.resolve(at(st)))&&(pe=T.DragCancel)}Ie.current=null,(0,F.unstable_batchedUpdates)(()=>{M({type:pe}),W(Te.Uninitialized),yn(null),sn(null),an(null);const at=pe===T.DragEnd?"onDragEnd":"onDragCancel";if(st){const jt=nt.current[at];jt==null||jt(st),j({type:at,event:st})}})})}}},[I]),Rr=(0,s.useCallback)((ne,se)=>(ae,je)=>{const ce=ae.nativeEvent,ge=I.get(je);if(Ie.current!==null||!ge||ce.dndKit||ce.defaultPrevented)return;const be={active:ge};ne(ae,se.options,be)===!0&&(ce.dndKit={capturedBy:se.sensor},Ie.current=je,wn(ae,se))},[I,wn]),Cn=Zn(p,Rr);qn(p),(0,d.LI)(()=>{ve&&te===Te.Initializing&&W(Te.Initialized)},[ve,te]),(0,s.useEffect)(()=>{const{onDragMove:ne}=nt.current,{active:se,activatorEvent:ae,collisions:je,over:ce}=$e.current;if(!se||!ae)return;const ge={active:se,activatorEvent:ae,collisions:je,delta:{x:Ze.x,y:Ze.y},over:ce};(0,F.unstable_batchedUpdates)(()=>{ne==null||ne(ge),j({type:"onDragMove",event:ge})})},[Ze.x,Ze.y]),(0,s.useEffect)(()=>{const{active:ne,activatorEvent:se,collisions:ae,droppableContainers:je,scrollAdjustedTranslate:ce}=$e.current;if(!ne||Ie.current==null||!se||!ce)return;const{onDragOver:ge}=nt.current,be=je.get(bn),Ye=be&&be.rect.current?{id:be.id,rect:be.rect.current,data:be.data,disabled:be.disabled}:null,pe={active:ne,activatorEvent:se,collisions:ae,delta:{x:ce.x,y:ce.y},over:Ye};(0,F.unstable_batchedUpdates)(()=>{yn(Ye),ge==null||ge(pe),j({type:"onDragOver",event:pe})})},[bn]),(0,d.LI)(()=>{$e.current={activatorEvent:Re,active:Se,activeNode:he,collisionRect:Xe,collisions:rt,droppableRects:Ue,draggableNodes:I,draggingNode:vt,draggingNodeRect:Ke,droppableContainers:oe,over:Ne,scrollableAncestors:Le,scrollAdjustedTranslate:Ze},De.current={initial:Ke,translated:Xe}},[Se,he,rt,Xe,I,vt,Ke,Ue,oe,Ne,Le,Ze]),kn(B(x({},dn),{delta:G,draggingRect:Xe,pointerCoordinates:pn,scrollableAncestors:Le,scrollableAncestorRects:gt}));const Or=(0,s.useMemo)(()=>({active:Se,activeNode:he,activeNodeRect:ve,activatorEvent:Re,collisions:rt,containerNodeRect:Lt,dragOverlay:We,draggableNodes:I,droppableContainers:oe,droppableRects:Ue,over:Ne,measureDroppableContainers:ht,scrollableAncestors:Le,scrollableAncestorRects:gt,measuringConfiguration:Be,measuringScheduled:cn,windowRect:Nt}),[Se,he,ve,Re,rt,Lt,We,I,oe,Ue,Ne,ht,Le,gt,Be,cn,Nt]),Mr=(0,s.useMemo)(()=>({activatorEvent:Re,activators:Cn,active:Se,activeNodeRect:ve,ariaDescribedById:{draggable:It},dispatch:M,draggableNodes:I,over:Ne,measureDroppableContainers:ht}),[Re,Cn,Se,ve,M,It,I,Ne,ht]);return s.createElement(q.Provider,{value:R},s.createElement(tt.Provider,{value:Mr},s.createElement(tn.Provider,{value:Or},s.createElement(Tt.Provider,{value:Sr},f)),s.createElement(lr,{disabled:(c==null?void 0:c.restoreFocus)===!1})),s.createElement(ye,B(x({},c),{hiddenTextDescribedById:It})));function Pr(){const ne=(on==null?void 0:on.autoScrollEnabled)===!1,se=typeof u=="object"?u.enabled===!1:u===!1,ae=K&&!ne&&!se;return typeof u=="object"?B(x({},u),{enabled:ae}):{enabled:ae}}}),hr=(0,s.createContext)(null),nn="button",vr="Droppable";function gr(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=(0,d.Ld)(vr),{activators:l,activatorEvent:c,active:u,activeNodeRect:f,ariaDescribedById:p,draggableNodes:h,over:w}=(0,s.useContext)(tt),{role:m=nn,roleDescription:N="draggable",tabIndex:C=0}=i!=null?i:{},D=(u==null?void 0:u.id)===t,M=(0,s.useContext)(D?Tt:hr),[j,R]=(0,d.wm)(),[te,W]=(0,d.wm)(),K=er(l,t),P=(0,d.Ey)(n);(0,d.LI)(()=>(h.set(t,{id:t,key:o,node:j,activatorNode:te,data:P}),()=>{const G=h.get(t);G&&G.key===o&&h.delete(t)}),[h,t]);const I=(0,s.useMemo)(()=>({role:m,tabIndex:C,"aria-disabled":r,"aria-pressed":D&&m===nn?!0:void 0,"aria-roledescription":N,"aria-describedby":p.draggable}),[r,m,C,D,N,p.draggable]);return{active:u,activatorEvent:c,activeNodeRect:f,attributes:I,isDragging:D,listeners:r?void 0:K,node:j,over:w,setNodeRef:R,setActivatorNodeRef:W,transform:M}}function Lr(){return useContext(tn)}const pr="Droppable",mr={timeout:25};function br(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=(0,d.Ld)(pr),{active:l,dispatch:c,over:u,measureDroppableContainers:f}=(0,s.useContext)(tt),p=(0,s.useRef)({disabled:n}),h=(0,s.useRef)(!1),w=(0,s.useRef)(null),m=(0,s.useRef)(null),{disabled:N,updateMeasurementsFor:C,timeout:D}=x(x({},mr),i),M=(0,d.Ey)(C!=null?C:r),j=(0,s.useCallback)(()=>{if(!h.current){h.current=!0;return}m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{f(Array.isArray(M.current)?M.current:[M.current]),m.current=null},D)},[D]),R=dt({callback:j,disabled:N||!l}),te=(0,s.useCallback)((I,G)=>{R&&(G&&(R.unobserve(G),h.current=!1),I&&R.observe(I))},[R]),[W,K]=(0,d.wm)(te),P=(0,d.Ey)(t);return(0,s.useEffect)(()=>{!R||!W.current||(R.disconnect(),h.current=!1,R.observe(W.current))},[W,R]),(0,d.LI)(()=>(c({type:T.RegisterDroppable,element:{id:r,key:o,disabled:n,node:W,rect:w,data:P}}),()=>c({type:T.UnregisterDroppable,key:o,id:r})),[r]),(0,s.useEffect)(()=>{n!==p.current.disabled&&(c({type:T.SetDroppableDisabled,id:r,key:o,disabled:n}),p.current.disabled=n)},[r,o,n,c]),{active:l,rect:w,isOver:(u==null?void 0:u.id)===r,node:W,over:u,setNodeRef:K}}function Nr(e){let{animation:t,children:n}=e;const[r,i]=useState(null),[o,l]=useState(null),c=usePrevious(n);return!n&&!r&&c&&i(c),useIsomorphicLayoutEffect(()=>{if(!o)return;const u=r==null?void 0:r.key,f=r==null?void 0:r.props.id;if(u==null||f==null){i(null);return}Promise.resolve(t(f,o)).then(()=>{i(null)})},[t,r,o]),React.createElement(React.Fragment,null,n,r?cloneElement(r,{ref:l}):null)}const yr={x:0,y:0,scaleX:1,scaleY:1};function jr(e){let{children:t}=e;return React.createElement(tt.Provider,{value:en},React.createElement(Tt.Provider,{value:yr},t))}const Fr={position:"fixed",touchAction:"none"},zr=e=>isKeyboardEvent(e)?"transform 250ms ease":void 0,Br=null,wr={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:d.ux.Transform.toString(t)},{transform:d.ux.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:l}=e;if(o!=null&&o.active)for(const[c,u]of Object.entries(o.active))u!==void 0&&(i[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,u));if(o!=null&&o.dragOverlay)for(const[c,u]of Object.entries(o.dragOverlay))u!==void 0&&r.node.style.setProperty(c,u);return l!=null&&l.active&&n.node.classList.add(l.active),l!=null&&l.dragOverlay&&r.node.classList.add(l.dragOverlay),function(){for(const[u,f]of Object.entries(i))n.node.style.setProperty(u,f);l!=null&&l.active&&n.node.classList.remove(l.active)}})({styles:{active:{opacity:"0"}}})};function kr(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return useEvent((o,l)=>{if(t===null)return;const c=n.get(o);if(!c)return;const u=c.node.current;if(!u)return;const f=qt(l);if(!f)return;const{transform:p}=getWindow(l).getComputedStyle(l),h=Pe(p);if(!h)return;const w=typeof t=="function"?t:Cr(t);return Wt(u,i.draggable.measure),w({active:{id:o,data:c.data,node:u,rect:i.draggable.measure(u)},draggableNodes:n,dragOverlay:{node:l,rect:i.dragOverlay.measure(f)},droppableContainers:r,measuringConfiguration:i,transform:h})})}function Cr(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}=x(x({},wr),e);return o=>{let j=o,{active:l,dragOverlay:c,transform:u}=j,f=wt(j,["active","dragOverlay","transform"]);if(!t)return;const p={x:c.rect.left-l.rect.left,y:c.rect.top-l.rect.top},h={scaleX:u.scaleX!==1?l.rect.width*u.scaleX/c.rect.width:1,scaleY:u.scaleY!==1?l.rect.height*u.scaleY/c.rect.height:1},w=x({x:u.x-p.x,y:u.y-p.y},h),m=i(B(x({},f),{active:l,dragOverlay:c,transform:{initial:u,final:w}})),[N]=m,C=m[m.length-1];if(JSON.stringify(N)===JSON.stringify(C))return;const D=r==null?void 0:r(x({active:l,dragOverlay:c},f)),M=c.node.animate(m,{duration:t,easing:n,fill:"forwards"});return new Promise(R=>{M.onfinish=()=>{D==null||D(),R()}})}}let rn=0;function _r(e){return useMemo(()=>{if(e!=null)return rn++,rn},[e])}const Ur=null},24285:function(L,S,g){g.d(S,{$X:function(){return Ce},D9:function(){return Oe},DC:function(){return Me},Ey:function(){return T},FJ:function(){return k},Gj:function(){return Z},IH:function(){return de},Jj:function(){return A},LI:function(){return re},Ld:function(){return ue},Nq:function(){return d},Re:function(){return q},UG:function(){return _},Yz:function(){return ye},qk:function(){return Y},r3:function(){return V},so:function(){return O},ux:function(){return b},vZ:function(){return ie},vd:function(){return xe},wm:function(){return J},zX:function(){return me}});var s=g(67294);function F(){for(var a=arguments.length,v=new Array(a),y=0;yU=>{v.forEach($=>$(U))},v)}const d=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function k(a){const v=Object.prototype.toString.call(a);return v==="[object Window]"||v==="[object global]"}function _(a){return"nodeType"in a}function A(a){var v,y;return a?k(a)?a:_(a)&&(v=(y=a.ownerDocument)==null?void 0:y.defaultView)!=null?v:window:window}function Y(a){const{Document:v}=A(a);return a instanceof v}function q(a){return k(a)?!1:a instanceof A(a).HTMLElement}function ie(a){return a instanceof A(a).SVGElement}function V(a){return a?k(a)?a.document:_(a)?Y(a)?a:q(a)||ie(a)?a.ownerDocument:document:document:document}const re=d?s.useLayoutEffect:s.useEffect;function me(a){const v=(0,s.useRef)(a);return re(()=>{v.current=a}),(0,s.useCallback)(function(){for(var y=arguments.length,U=new Array(y),$=0;${a.current=setInterval(U,$)},[]),y=(0,s.useCallback)(()=>{a.current!==null&&(clearInterval(a.current),a.current=null)},[]);return[v,y]}function T(a,v){v===void 0&&(v=[a]);const y=(0,s.useRef)(a);return re(()=>{y.current!==a&&(y.current=a)},v),y}function Z(a,v){const y=(0,s.useRef)();return(0,s.useMemo)(()=>{const U=a(y.current);return y.current=U,U},[...v])}function J(a){const v=me(a),y=(0,s.useRef)(null),U=(0,s.useCallback)($=>{$!==y.current&&(v==null||v($,y.current)),y.current=$},[]);return[y,U]}function Oe(a){const v=(0,s.useRef)();return(0,s.useEffect)(()=>{v.current=a},[a]),v.current}let X={};function ue(a,v){return(0,s.useMemo)(()=>{if(v)return v;const y=X[a]==null?0:X[a]+1;return X[a]=y,a+"-"+y},[a,v])}function we(a){return function(v){for(var y=arguments.length,U=new Array(y>1?y-1:0),$=1;${const Je=Object.entries(Pe);for(const[ke,ee]of Je){const ze=Fe[ke];ze!=null&&(Fe[ke]=ze+a*ee)}return Fe},x({},v))}}const de=we(1),Ce=we(-1);function fe(a){return"clientX"in a&&"clientY"in a}function xe(a){if(!a)return!1;const{KeyboardEvent:v}=A(a.target);return v&&a instanceof v}function Ee(a){if(!a)return!1;const{TouchEvent:v}=A(a.target);return v&&a instanceof v}function Me(a){if(Ee(a)){if(a.touches&&a.touches.length){const{clientX:v,clientY:y}=a.touches[0];return{x:v,y}}else if(a.changedTouches&&a.changedTouches.length){const{clientX:v,clientY:y}=a.changedTouches[0];return{x:v,y}}}return fe(a)?{x:a.clientX,y:a.clientY}:null}const b=Object.freeze({Translate:{toString(a){if(!a)return;const{x:v,y}=a;return"translate3d("+(v?Math.round(v):0)+"px, "+(y?Math.round(y):0)+"px, 0)"}},Scale:{toString(a){if(!a)return;const{scaleX:v,scaleY:y}=a;return"scaleX("+v+") scaleY("+y+")"}},Transform:{toString(a){if(a)return[b.Translate.toString(a),b.Scale.toString(a)].join(" ")}},Transition:{toString(a){let{property:v,duration:y,easing:U}=a;return v+" "+y+"ms "+U}}}),E="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function O(a){return a.matches(E)?a:a.querySelector(E)}},86250:function(L,S,g){g.d(S,{Z:function(){return Me}});var s=g(67294),F=g(93967),d=g.n(F),k=g(98423),_=g(98065),A=g(53124),Y=g(91945),q=g(45503);const ie=["wrap","nowrap","wrap-reverse"],V=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],re=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],me=(b,E)=>{const O={};return ie.forEach(a=>{O[`${b}-wrap-${a}`]=E.wrap===a}),O},ye=(b,E)=>{const O={};return re.forEach(a=>{O[`${b}-align-${a}`]=E.align===a}),O[`${b}-align-stretch`]=!E.align&&!!E.vertical,O},T=(b,E)=>{const O={};return V.forEach(a=>{O[`${b}-justify-${a}`]=E.justify===a}),O};function Z(b,E){return d()(Object.assign(Object.assign(Object.assign({},me(b,E)),ye(b,E)),T(b,E)))}var J=Z;const Oe=b=>{const{componentCls:E}=b;return{[E]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},X=b=>{const{componentCls:E}=b;return{[E]:{"&-gap-small":{gap:b.flexGapSM},"&-gap-middle":{gap:b.flexGap},"&-gap-large":{gap:b.flexGapLG}}}},ue=b=>{const{componentCls:E}=b,O={};return ie.forEach(a=>{O[`${E}-wrap-${a}`]={flexWrap:a}}),O},we=b=>{const{componentCls:E}=b,O={};return re.forEach(a=>{O[`${E}-align-${a}`]={alignItems:a}}),O},de=b=>{const{componentCls:E}=b,O={};return V.forEach(a=>{O[`${E}-justify-${a}`]={justifyContent:a}}),O},Ce=()=>({});var fe=(0,Y.I$)("Flex",b=>{const{paddingXS:E,padding:O,paddingLG:a}=b,v=(0,q.TS)(b,{flexGapSM:E,flexGap:O,flexGapLG:a});return[Oe(v),X(v),ue(v),we(v),de(v)]},Ce,{resetStyle:!1}),xe=function(b,E){var O={};for(var a in b)Object.prototype.hasOwnProperty.call(b,a)&&E.indexOf(a)<0&&(O[a]=b[a]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,a=Object.getOwnPropertySymbols(b);v{const{prefixCls:O,rootClassName:a,className:v,style:y,flex:U,gap:$,children:Fe,vertical:Pe=!1,component:Je="div"}=b,ke=xe(b,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:ee,direction:ze,getPrefixCls:Ct}=s.useContext(A.E_),Ae=Ct("flex",O),[xt,Ge,lt]=fe(Ae),He=Pe!=null?Pe:ee==null?void 0:ee.vertical,ct=d()(v,a,ee==null?void 0:ee.className,Ae,Ge,lt,J(Ae,b),{[`${Ae}-rtl`]:ze==="rtl",[`${Ae}-gap-${$}`]:(0,_.n)($),[`${Ae}-vertical`]:He}),_e=Object.assign(Object.assign({},ee==null?void 0:ee.style),y);return U&&(_e.flex=U),$&&!(0,_.n)($)&&(_e.gap=$),xt(s.createElement(Je,Object.assign({ref:E,className:ct,style:_e},(0,k.Z)(ke,["justify","wrap","align"])),Fe))})}}]); diff --git a/starter/src/main/resources/templates/admin/96.2d359926.async.js b/starter/src/main/resources/templates/admin/96.2d359926.async.js new file mode 100644 index 0000000000..26150e35c2 --- /dev/null +++ b/starter/src/main/resources/templates/admin/96.2d359926.async.js @@ -0,0 +1,3 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[96],{48096:function(vn,Et,y){y.d(Et,{Z:function(){return Ua}});var a=y(67294),Pt=y(84481),Rt=y(48001),oe=y(87462),wt=y(42110),It=y(93771),Nt=function(t,n){return a.createElement(It.Z,(0,oe.Z)({},t,{ref:n,icon:wt.Z}))},Lt=a.forwardRef(Nt),Zt=Lt,Mt=y(93967),X=y.n(Mt),Y=y(4942),ae=y(1413),N=y(97685),Me=y(71002),he=y(91),Ke=y(21770),Ot=y(31131),Te=(0,a.createContext)(null),Xe=y(74902),Oe=y(9220),zt=y(66680),pe=y(42550),ze=y(75164),At=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,l=t.indicator,c=l===void 0?{}:l,o=c.size,s=c.align,d=s===void 0?"center":s,m=(0,a.useState)(),f=(0,N.Z)(m,2),g=f[0],E=f[1],L=(0,a.useRef)(),P=a.useCallback(function(h){return typeof o=="function"?o(h):typeof o=="number"?o:h},[o]);function I(){ze.Z.cancel(L.current)}return(0,a.useEffect)(function(){var h={};if(n)if(r){h.width=P(n.width);var v=i?"right":"left";d==="start"&&(h[v]=n[v]),d==="center"&&(h[v]=n[v]+n.width/2,h.transform=i?"translateX(50%)":"translateX(-50%)"),d==="end"&&(h[v]=n[v]+n.width,h.transform="translateX(-100%)")}else h.height=P(n.height),d==="start"&&(h.top=n.top),d==="center"&&(h.top=n.top+n.height/2,h.transform="translateY(-50%)"),d==="end"&&(h.top=n.top+n.height,h.transform="translateY(-100%)");return I(),L.current=(0,ze.Z)(function(){E(h)}),I},[n,r,i,d,P]),{style:g}},Bt=At,Fe={width:0,height:0,left:0,top:0};function _t(e,t,n){return(0,a.useMemo)(function(){for(var r,i=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Fe,c=l.left+l.width,o=0;oC?(w=R,M.current="x"):(w=p,M.current="y"),t(-w,-w)&&b.preventDefault()}var T=(0,a.useRef)(null);T.current={onTouchStart:Z,onTouchMove:D,onTouchEnd:W,onWheel:O},a.useEffect(function(){function b(u){T.current.onTouchStart(u)}function R(u){T.current.onTouchMove(u)}function p(u){T.current.onTouchEnd(u)}function w(u){T.current.onWheel(u)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",p,{passive:!1}),e.current.addEventListener("touchstart",b,{passive:!1}),e.current.addEventListener("wheel",w),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",p)}},[])}var Ht=y(8410);function Je(e){var t=(0,a.useState)(0),n=(0,N.Z)(t,2),r=n[0],i=n[1],l=(0,a.useRef)(0),c=(0,a.useRef)();return c.current=e,(0,Ht.o)(function(){var o;(o=c.current)===null||o===void 0||o.call(c)},[r]),function(){l.current===r&&(l.current+=1,i(l.current))}}function kt(e){var t=(0,a.useRef)([]),n=(0,a.useState)({}),r=(0,N.Z)(n,2),i=r[1],l=(0,a.useRef)(typeof e=="function"?e():e),c=Je(function(){var s=l.current;t.current.forEach(function(d){s=d(s)}),t.current=[],l.current=s,i({})});function o(s){t.current.push(s),c()}return[l.current,o]}var qe={width:0,height:0,left:0,top:0,right:0};function Gt(e,t,n,r,i,l,c){var o=c.tabs,s=c.tabPosition,d=c.rtl,m,f,g;return["top","bottom"].includes(s)?(m="width",f=d?"right":"left",g=Math.abs(n)):(m="height",f="top",g=-n),(0,a.useMemo)(function(){if(!o.length)return[0,0];for(var E=o.length,L=E,P=0;Pg+t){L=P-1;break}}for(var h=0,v=E-1;v>=0;v-=1){var Z=e.get(o[v].key)||qe;if(Z[f]=L?[0,0]:[h,L]},[e,t,r,i,l,g,s,o.map(function(E){return E.key}).join("_"),d])}function et(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var jt="TABS_DQ";function tt(e){return String(e).replace(/"/g,jt)}function at(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Vt=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,l=e.style;return!r||r.showAdd===!1?null:a.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:l,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(o){r.onEdit("add",{event:o})}},r.addIcon||"+")}),nt=Vt,Kt=a.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var l,c={};return(0,Me.Z)(i)==="object"&&!a.isValidElement(i)?c=i:c.right=i,n==="right"&&(l=c.right),n==="left"&&(l=c.left),l?a.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),rt=Kt,Xt=y(40228),ne=y(15105),Ft=ne.Z.ESC,Ut=ne.Z.TAB;function Yt(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,l=e.overlayRef,c=a.useRef(!1),o=function(){if(t){var f,g;(f=n.current)===null||f===void 0||(g=f.focus)===null||g===void 0||g.call(f),r==null||r(!1)}},s=function(){var f;return(f=l.current)!==null&&f!==void 0&&f.focus?(l.current.focus(),c.current=!0,!0):!1},d=function(f){switch(f.keyCode){case Ft:o();break;case Ut:{var g=!1;c.current||(g=s()),g?f.preventDefault():o();break}}};a.useEffect(function(){return t?(window.addEventListener("keydown",d),i&&(0,ze.Z)(s,3),function(){window.removeEventListener("keydown",d),c.current=!1}):function(){c.current=!1}},[t])}var Qt=(0,a.forwardRef)(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,l=(0,a.useMemo)(function(){var o;return typeof n=="function"?o=n():o=n,o},[n]),c=(0,pe.sQ)(t,l==null?void 0:l.ref);return a.createElement(a.Fragment,null,r&&a.createElement("div",{className:"".concat(i,"-arrow")}),a.cloneElement(l,{ref:(0,pe.Yr)(l)?c:void 0}))}),Jt=Qt,ve={adjustX:1,adjustY:1},be=[0,0],qt={topLeft:{points:["bl","tl"],overflow:ve,offset:[0,-4],targetOffset:be},top:{points:["bc","tc"],overflow:ve,offset:[0,-4],targetOffset:be},topRight:{points:["br","tr"],overflow:ve,offset:[0,-4],targetOffset:be},bottomLeft:{points:["tl","bl"],overflow:ve,offset:[0,4],targetOffset:be},bottom:{points:["tc","bc"],overflow:ve,offset:[0,4],targetOffset:be},bottomRight:{points:["tr","br"],overflow:ve,offset:[0,4],targetOffset:be}},ea=qt,ta=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function aa(e,t){var n,r=e.arrow,i=r===void 0?!1:r,l=e.prefixCls,c=l===void 0?"rc-dropdown":l,o=e.transitionName,s=e.animation,d=e.align,m=e.placement,f=m===void 0?"bottomLeft":m,g=e.placements,E=g===void 0?ea:g,L=e.getPopupContainer,P=e.showAction,I=e.hideAction,h=e.overlayClassName,v=e.overlayStyle,Z=e.visible,D=e.trigger,W=D===void 0?["hover"]:D,M=e.autoFocus,O=e.overlay,T=e.children,b=e.onVisibleChange,R=(0,he.Z)(e,ta),p=a.useState(),w=(0,N.Z)(p,2),u=w[0],C=w[1],j="visible"in e?Z:u,V=a.useRef(null),Q=a.useRef(null),K=a.useRef(null);a.useImperativeHandle(t,function(){return V.current});var J=function(B){C(B),b==null||b(B)};Yt({visible:j,triggerRef:K,onVisibleChange:J,autoFocus:M,overlayRef:Q});var re=function(B){var ee=e.onOverlayClick;C(!1),ee&&ee(B)},q=function(){return a.createElement(Jt,{ref:Q,overlay:O,prefixCls:c,arrow:i})},S=function(){return typeof O=="function"?q:q()},z=function(){var B=e.minOverlayWidthMatchTrigger,ee=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?B:!ee},F=function(){var B=e.openClassName;return B!==void 0?B:"".concat(c,"-open")},G=a.cloneElement(T,{className:X()((n=T.props)===null||n===void 0?void 0:n.className,j&&F()),ref:(0,pe.Yr)(T)?(0,pe.sQ)(K,T.ref):void 0}),H=I;return!H&&W.indexOf("contextMenu")!==-1&&(H=["click"]),a.createElement(Xt.Z,(0,oe.Z)({builtinPlacements:E},R,{prefixCls:c,ref:V,popupClassName:X()(h,(0,Y.Z)({},"".concat(c,"-show-arrow"),i)),popupStyle:v,action:W,showAction:P,hideAction:H,popupPlacement:f,popupAlign:d,popupTransitionName:o,popupAnimation:s,popupVisible:j,stretch:z()?"minWidth":"",popup:S(),onPopupVisibleChange:J,onPopupClick:re,getPopupContainer:L}),G)}var na=a.forwardRef(aa),ra=na,it=y(72512),ia=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,l=e.locale,c=e.mobile,o=e.moreIcon,s=o===void 0?"More":o,d=e.moreTransitionName,m=e.style,f=e.className,g=e.editable,E=e.tabBarGutter,L=e.rtl,P=e.removeAriaLabel,I=e.onTabClick,h=e.getPopupContainer,v=e.popupClassName,Z=(0,a.useState)(!1),D=(0,N.Z)(Z,2),W=D[0],M=D[1],O=(0,a.useState)(null),T=(0,N.Z)(O,2),b=T[0],R=T[1],p="".concat(r,"-more-popup"),w="".concat(n,"-dropdown"),u=b!==null?"".concat(p,"-").concat(b):null,C=l==null?void 0:l.dropdownAriaLabel;function j(S,z){S.preventDefault(),S.stopPropagation(),g.onEdit("remove",{key:z,event:S})}var V=a.createElement(it.ZP,{onClick:function(z){var F=z.key,G=z.domEvent;I(F,G),M(!1)},prefixCls:"".concat(w,"-menu"),id:p,tabIndex:-1,role:"listbox","aria-activedescendant":u,selectedKeys:[b],"aria-label":C!==void 0?C:"expanded dropdown"},i.map(function(S){var z=S.closable,F=S.disabled,G=S.closeIcon,H=S.key,U=S.label,B=at(z,G,g,F);return a.createElement(it.sN,{key:H,id:"".concat(p,"-").concat(H),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(H),disabled:F},a.createElement("span",null,U),B&&a.createElement("button",{type:"button","aria-label":P||"remove",tabIndex:0,className:"".concat(w,"-menu-item-remove"),onClick:function(le){le.stopPropagation(),j(le,H)}},G||g.removeIcon||"\xD7"))}));function Q(S){for(var z=i.filter(function(B){return!B.disabled}),F=z.findIndex(function(B){return B.key===b})||0,G=z.length,H=0;Hx?"left":"right"})}),u=(0,N.Z)(w,2),C=u[0],j=u[1],V=Ue(0,function(_,x){!p&&P&&P({direction:_>x?"top":"bottom"})}),Q=(0,N.Z)(V,2),K=Q[0],J=Q[1],re=(0,a.useState)([0,0]),q=(0,N.Z)(re,2),S=q[0],z=q[1],F=(0,a.useState)([0,0]),G=(0,N.Z)(F,2),H=G[0],U=G[1],B=(0,a.useState)([0,0]),ee=(0,N.Z)(B,2),le=ee[0],$e=ee[1],Ae=(0,a.useState)([0,0]),Se=(0,N.Z)(Ae,2),Be=Se[0],A=Se[1],de=kt(new Map),ge=(0,N.Z)(de,2),Ya=ge[0],Qa=ge[1],Re=_t(Z,Ya,H[0]),_e=Pe(S,p),Ce=Pe(H,p),De=Pe(le,p),ut=Pe(Be,p),ft=_eue?ue:_}var He=(0,a.useRef)(null),qa=(0,a.useState)(),vt=(0,N.Z)(qa,2),we=vt[0],bt=vt[1];function ke(){bt(Date.now())}function Ge(){He.current&&clearTimeout(He.current)}Wt(O,function(_,x){function k(te,fe){te(function(se){var Le=We(se+fe);return Le})}return ft?(p?k(j,_):k(J,x),Ge(),ke(),!0):!1}),(0,a.useEffect)(function(){return Ge(),we&&(He.current=setTimeout(function(){bt(0)},100)),Ge},[we]);var en=Gt(Re,ie,p?C:K,Ce,De,ut,(0,ae.Z)((0,ae.Z)({},e),{},{tabs:Z})),mt=(0,N.Z)(en,2),tn=mt[0],an=mt[1],gt=(0,zt.Z)(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,x=Re.get(_)||{width:0,height:0,left:0,right:0,top:0};if(p){var k=C;o?x.rightC+ie&&(k=x.right+x.width-ie):x.left<-C?k=-x.left:x.left+x.width>-C+ie&&(k=-(x.left+x.width-ie)),J(0),j(We(k))}else{var te=K;x.top<-K?te=-x.top:x.top+x.height>-K+ie&&(te=-(x.top+x.height-ie)),j(0),J(We(te))}}),Ie={};f==="top"||f==="bottom"?Ie[o?"marginRight":"marginLeft"]=g:Ie.marginTop=g;var ht=Z.map(function(_,x){var k=_.key;return a.createElement(ca,{id:i,prefixCls:v,key:k,tab:_,style:x===0?void 0:Ie,closable:_.closable,editable:d,active:k===c,renderWrapper:E,removeAriaLabel:m==null?void 0:m.removeAriaLabel,onClick:function(fe){L(k,fe)},onFocus:function(){gt(k),ke(),O.current&&(o||(O.current.scrollLeft=0),O.current.scrollTop=0)}})}),pt=function(){return Qa(function(){var x,k=new Map,te=(x=T.current)===null||x===void 0?void 0:x.getBoundingClientRect();return Z.forEach(function(fe){var se,Le=fe.key,Tt=(se=T.current)===null||se===void 0?void 0:se.querySelector('[data-node-key="'.concat(tt(Le),'"]'));if(Tt){var cn=sa(Tt,te),Ze=(0,N.Z)(cn,4),sn=Ze[0],dn=Ze[1],un=Ze[2],fn=Ze[3];k.set(Le,{width:sn,height:dn,left:un,top:fn})}}),k})};(0,a.useEffect)(function(){pt()},[Z.map(function(_){return _.key}).join("_")]);var Ne=Je(function(){var _=me(D),x=me(W),k=me(M);z([_[0]-x[0]-k[0],_[1]-x[1]-k[1]]);var te=me(R);$e(te);var fe=me(b);A(fe);var se=me(T);U([se[0]-te[0],se[1]-te[1]]),pt()}),nn=Z.slice(0,tn),rn=Z.slice(an+1),yt=[].concat((0,Xe.Z)(nn),(0,Xe.Z)(rn)),$t=Re.get(c),on=Bt({activeTabOffset:$t,horizontal:p,indicator:I,rtl:o}),ln=on.style;(0,a.useEffect)(function(){gt()},[c,ce,ue,et($t),et(Re),p]),(0,a.useEffect)(function(){Ne()},[o]);var St=!!yt.length,xe="".concat(v,"-nav-wrap"),je,Ve,Ct,xt;return p?o?(Ve=C>0,je=C!==ue):(je=C<0,Ve=C!==ce):(Ct=K<0,xt=K!==ce),a.createElement(Oe.Z,{onResize:Ne},a.createElement("div",{ref:(0,pe.x1)(t,D),role:"tablist",className:X()("".concat(v,"-nav"),n),style:r,onKeyDown:function(){ke()}},a.createElement(rt,{ref:W,position:"left",extra:s,prefixCls:v}),a.createElement(Oe.Z,{onResize:Ne},a.createElement("div",{className:X()(xe,(0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(xe,"-ping-left"),je),"".concat(xe,"-ping-right"),Ve),"".concat(xe,"-ping-top"),Ct),"".concat(xe,"-ping-bottom"),xt)),ref:O},a.createElement(Oe.Z,{onResize:Ne},a.createElement("div",{ref:T,className:"".concat(v,"-nav-list"),style:{transform:"translate(".concat(C,"px, ").concat(K,"px)"),transition:we?"none":void 0}},ht,a.createElement(nt,{ref:R,prefixCls:v,locale:m,editable:d,style:(0,ae.Z)((0,ae.Z)({},ht.length===0?void 0:Ie),{},{visibility:St?"hidden":null})}),a.createElement("div",{className:X()("".concat(v,"-ink-bar"),(0,Y.Z)({},"".concat(v,"-ink-bar-animated"),l.inkBar)),style:ln}))))),a.createElement(oa,(0,oe.Z)({},e,{removeAriaLabel:m==null?void 0:m.removeAriaLabel,ref:b,prefixCls:v,tabs:yt,className:!St&&Ja,tabMoving:!!we})),a.createElement(rt,{ref:M,position:"right",extra:s,prefixCls:v})))}),ot=da,ua=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,l=e.id,c=e.active,o=e.tabKey,s=e.children;return a.createElement("div",{id:l&&"".concat(l,"-panel-").concat(o),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(o),"aria-hidden":!c,style:i,className:X()(n,c&&"".concat(n,"-active"),r),ref:t},s)}),lt=ua,fa=["renderTabBar"],va=["label","key"],ba=function(t){var n=t.renderTabBar,r=(0,he.Z)(t,fa),i=a.useContext(Te),l=i.tabs;if(n){var c=(0,ae.Z)((0,ae.Z)({},r),{},{panes:l.map(function(o){var s=o.label,d=o.key,m=(0,he.Z)(o,va);return a.createElement(lt,(0,oe.Z)({tab:s,key:d,tabKey:d},m))})});return n(c,ot)}return a.createElement(ot,r)},ma=ba,ga=y(82225),ha=["key","forceRender","style","className","destroyInactiveTabPane"],pa=function(t){var n=t.id,r=t.activeKey,i=t.animated,l=t.tabPosition,c=t.destroyInactiveTabPane,o=a.useContext(Te),s=o.prefixCls,d=o.tabs,m=i.tabPane,f="".concat(s,"-tabpane");return a.createElement("div",{className:X()("".concat(s,"-content-holder"))},a.createElement("div",{className:X()("".concat(s,"-content"),"".concat(s,"-content-").concat(l),(0,Y.Z)({},"".concat(s,"-content-animated"),m))},d.map(function(g){var E=g.key,L=g.forceRender,P=g.style,I=g.className,h=g.destroyInactiveTabPane,v=(0,he.Z)(g,ha),Z=E===r;return a.createElement(ga.ZP,(0,oe.Z)({key:E,visible:Z,forceRender:L,removeOnLeave:!!(c||h),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(D,W){var M=D.style,O=D.className;return a.createElement(lt,(0,oe.Z)({},v,{prefixCls:f,id:n,tabKey:E,animated:m,active:Z,style:(0,ae.Z)((0,ae.Z)({},P),M),className:X()(I,O),ref:W}))})})))},ya=pa,bn=y(80334);function $a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=(0,ae.Z)({inkBar:!0},(0,Me.Z)(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Sa=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],ct=0,Ca=a.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,l=e.className,c=e.items,o=e.direction,s=e.activeKey,d=e.defaultActiveKey,m=e.editable,f=e.animated,g=e.tabPosition,E=g===void 0?"top":g,L=e.tabBarGutter,P=e.tabBarStyle,I=e.tabBarExtraContent,h=e.locale,v=e.moreIcon,Z=e.moreTransitionName,D=e.destroyInactiveTabPane,W=e.renderTabBar,M=e.onChange,O=e.onTabClick,T=e.onTabScroll,b=e.getPopupContainer,R=e.popupClassName,p=e.indicator,w=(0,he.Z)(e,Sa),u=a.useMemo(function(){return(c||[]).filter(function(A){return A&&(0,Me.Z)(A)==="object"&&"key"in A})},[c]),C=o==="rtl",j=$a(f),V=(0,a.useState)(!1),Q=(0,N.Z)(V,2),K=Q[0],J=Q[1];(0,a.useEffect)(function(){J((0,Ot.Z)())},[]);var re=(0,Ke.Z)(function(){var A;return(A=u[0])===null||A===void 0?void 0:A.key},{value:s,defaultValue:d}),q=(0,N.Z)(re,2),S=q[0],z=q[1],F=(0,a.useState)(function(){return u.findIndex(function(A){return A.key===S})}),G=(0,N.Z)(F,2),H=G[0],U=G[1];(0,a.useEffect)(function(){var A=u.findIndex(function(ge){return ge.key===S});if(A===-1){var de;A=Math.max(0,Math.min(H,u.length-1)),z((de=u[A])===null||de===void 0?void 0:de.key)}U(A)},[u.map(function(A){return A.key}).join("_"),S,H]);var B=(0,Ke.Z)(null,{value:n}),ee=(0,N.Z)(B,2),le=ee[0],$e=ee[1];(0,a.useEffect)(function(){n||($e("rc-tabs-".concat(ct)),ct+=1)},[]);function Ae(A,de){O==null||O(A,de);var ge=A!==S;z(A),ge&&(M==null||M(A))}var Se={id:le,activeKey:S,animated:j,tabPosition:E,rtl:C,mobile:K},Be=(0,ae.Z)((0,ae.Z)({},Se),{},{editable:m,locale:h,moreIcon:v,moreTransitionName:Z,tabBarGutter:L,onTabClick:Ae,onTabScroll:T,extra:I,style:P,panes:null,getPopupContainer:b,popupClassName:R,indicator:p});return a.createElement(Te.Provider,{value:{tabs:u,prefixCls:i}},a.createElement("div",(0,oe.Z)({ref:t,id:n,className:X()(i,"".concat(i,"-").concat(E),(0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(i,"-mobile"),K),"".concat(i,"-editable"),m),"".concat(i,"-rtl"),C),l)},w),a.createElement(ma,(0,oe.Z)({},Be,{renderTabBar:W})),a.createElement(ya,(0,oe.Z)({destroyInactiveTabPane:D},Se,{animated:j}))))}),xa=Ca,Ta=xa,Ea=y(53124),Pa=y(35792),Ra=y(98675),wa=y(33603);const Ia={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Na(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},Ia),{motionName:(0,wa.m)(e,"switch")})),n}var La=y(50344),Za=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it)}function Oa(e,t){if(e)return e;const n=(0,La.Z)(t).map(r=>{if(a.isValidElement(r)){const{key:i,props:l}=r,c=l||{},{tab:o}=c,s=Za(c,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:o})}return null});return Ma(n)}var $=y(6731),ye=y(14747),za=y(91945),Aa=y(45503),st=y(67771),Ba=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,st.oN)(e,"slide-up"),(0,st.oN)(e,"slide-down")]]};const _a=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:l,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${(0,$.bf)(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,$.bf)(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,$.bf)(e.borderRadiusLG)} ${(0,$.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,$.bf)(e.borderRadiusLG)} ${(0,$.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,$.bf)(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,$.bf)(e.borderRadiusLG)} 0 0 ${(0,$.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,$.bf)(e.borderRadiusLG)} ${(0,$.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Da=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,ye.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,$.bf)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ye.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,$.bf)(e.paddingXXS)} ${(0,$.bf)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Wa=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:l,verticalItemMargin:c,calc:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,$.bf)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:o(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,$.bf)(o(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,$.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:o(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,$.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ha=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,$.bf)(e.borderRadius)} ${(0,$.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,$.bf)(e.borderRadius)} ${(0,$.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,$.bf)(e.borderRadius)} ${(0,$.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,$.bf)(e.borderRadius)} 0 0 ${(0,$.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},ka=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:l,horizontalItemPadding:c,itemSelectedColor:o,itemColor:s}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,ye.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:o,textShadow:e.tabsActiveTextShadow},[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:l}}}},Ga=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,$.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,$.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,$.bf)(l(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ja=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:l,itemActiveColor:c,colorBorderSecondary:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ye.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${(0,$.bf)(e.paddingXS)}`,background:"transparent",border:`${(0,$.bf)(e.lineWidth)} ${e.lineType} ${o}`,borderRadius:`${(0,$.bf)(e.borderRadiusLG)} ${(0,$.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:c}},(0,ye.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),ka(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Va=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}};var Ka=(0,za.I$)("Tabs",e=>{const t=(0,Aa.TS)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,$.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,$.bf)(e.horizontalItemGutter)}`});return[Ha(t),Ga(t),Wa(t),Da(t),_a(t),ja(t),Ba(t)]},Va),Xa=()=>null,Fa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,l,c,o,s;const{type:d,className:m,rootClassName:f,size:g,onEdit:E,hideAdd:L,centered:P,addIcon:I,removeIcon:h,moreIcon:v,popupClassName:Z,children:D,items:W,animated:M,style:O,indicatorSize:T,indicator:b}=e,R=Fa(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:p}=R,{direction:w,tabs:u,getPrefixCls:C,getPopupContainer:j}=a.useContext(Ea.E_),V=C("tabs",p),Q=(0,Pa.Z)(V),[K,J,re]=Ka(V,Q);let q;d==="editable-card"&&(q={onEdit:(B,ee)=>{let{key:le,event:$e}=ee;E==null||E(B==="add"?$e:le,B)},removeIcon:(t=h!=null?h:u==null?void 0:u.removeIcon)!==null&&t!==void 0?t:a.createElement(Pt.Z,null),addIcon:(I!=null?I:u==null?void 0:u.addIcon)||a.createElement(Zt,null),showAdd:L!==!0});const S=C(),z=(0,Ra.Z)(g),F=Oa(W,D),G=Na(V,M),H=Object.assign(Object.assign({},u==null?void 0:u.style),O),U={align:(n=b==null?void 0:b.align)!==null&&n!==void 0?n:(r=u==null?void 0:u.indicator)===null||r===void 0?void 0:r.align,size:(o=(l=(i=b==null?void 0:b.size)!==null&&i!==void 0?i:T)!==null&&l!==void 0?l:(c=u==null?void 0:u.indicator)===null||c===void 0?void 0:c.size)!==null&&o!==void 0?o:u==null?void 0:u.indicatorSize};return K(a.createElement(Ta,Object.assign({direction:w,getPopupContainer:j,moreTransitionName:`${S}-slide-up`},R,{items:F,className:X()({[`${V}-${z}`]:z,[`${V}-card`]:["card","editable-card"].includes(d),[`${V}-editable-card`]:d==="editable-card",[`${V}-centered`]:P},u==null?void 0:u.className,m,f,J,re,Q),popupClassName:X()(Z,J,re,Q),style:H,editable:q,moreIcon:(s=v!=null?v:u==null?void 0:u.moreIcon)!==null&&s!==void 0?s:a.createElement(Rt.Z,null),prefixCls:V,animated:G,indicator:U})))};dt.TabPane=Xa;var Ua=dt}}]); diff --git a/starter/src/main/resources/templates/admin/984.08839846.async.js b/starter/src/main/resources/templates/admin/984.08839846.async.js deleted file mode 100644 index 14c6769a8e..0000000000 --- a/starter/src/main/resources/templates/admin/984.08839846.async.js +++ /dev/null @@ -1,234 +0,0 @@ -(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[984],{64789:function(Bn,xt,f){"use strict";f.d(xt,{Z:function(){return je}});var L=f(1413),K=f(67294),st={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Ne=st,P=f(91146),g=function(Ke,Ge){return K.createElement(P.Z,(0,L.Z)((0,L.Z)({},Ke),{},{ref:Ge,icon:Ne}))},u=K.forwardRef(g),je=u},58128:function(Bn,xt,f){"use strict";f.d(xt,{Z:function(){return ya}});var L=f(1413),K=f(4942),st=f(71002),Ne=f(97685),P=f(91),g=f(87462),u=f(67294),je=f(50756),ne=f(93967),Ke=f.n(ne),Ge=f(86500),Ue=f(1350),Ce=2,Xe=.16,rt=.05,ut=.05,We=.15,a=5,lt=4,Zt=[{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 ee(Q){var j=Q.r,fe=Q.g,ze=Q.b,jt=(0,Ge.py)(j,fe,ze);return{h:jt.h*360,s:jt.s,v:jt.v}}function J(Q){var j=Q.r,fe=Q.g,ze=Q.b;return"#".concat((0,Ge.vq)(j,fe,ze,!1))}function Ee(Q,j,fe){var ze=fe/100,jt={r:(j.r-Q.r)*ze+Q.r,g:(j.g-Q.g)*ze+Q.g,b:(j.b-Q.b)*ze+Q.b};return jt}function Ie(Q,j,fe){var ze;return Math.round(Q.h)>=60&&Math.round(Q.h)<=240?ze=fe?Math.round(Q.h)-Ce*j:Math.round(Q.h)+Ce*j:ze=fe?Math.round(Q.h)+Ce*j:Math.round(Q.h)-Ce*j,ze<0?ze+=360:ze>=360&&(ze-=360),ze}function pe(Q,j,fe){if(Q.h===0&&Q.s===0)return Q.s;var ze;return fe?ze=Q.s-Xe*j:j===lt?ze=Q.s+Xe:ze=Q.s+rt*j,ze>1&&(ze=1),fe&&j===a&&ze>.1&&(ze=.1),ze<.06&&(ze=.06),Number(ze.toFixed(2))}function Le(Q,j,fe){var ze;return fe?ze=Q.v+ut*j:ze=Q.v-We*j,ze>1&&(ze=1),Number(ze.toFixed(2))}function le(Q){for(var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=[],ze=(0,Ue.uA)(Q),jt=a;jt>0;jt-=1){var Yt=ee(ze),_n=J((0,Ue.uA)({h:Ie(Yt,jt,!0),s:pe(Yt,jt,!0),v:Le(Yt,jt,!0)}));fe.push(_n)}fe.push(J(ze));for(var $n=1;$n<=lt;$n+=1){var er=ee(ze),ar=J((0,Ue.uA)({h:Ie(er,$n),s:pe(er,$n),v:Le(er,$n)}));fe.push(ar)}return j.theme==="dark"?Zt.map(function(zn){var jn=zn.index,tr=zn.opacity,ur=J(Ee((0,Ue.uA)(j.backgroundColor||"#141414"),(0,Ue.uA)(fe[jn]),tr*100));return ur}):fe}var ge={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"},w={},Re={};Object.keys(ge).forEach(function(Q){w[Q]=le(ge[Q]),w[Q].primary=w[Q][5],Re[Q]=le(ge[Q],{theme:"dark",backgroundColor:"#141414"}),Re[Q].primary=Re[Q][5]});var Te=w.red,Se=w.volcano,q=w.gold,ce=w.orange,Oe=w.yellow,ke=w.lime,_e=w.green,C=w.cyan,Lt=w.blue,gt=w.geekblue,Wt=w.purple,Bt=w.magenta,kt=w.grey,Vt=w.grey,yn=(0,u.createContext)({}),qt=yn,Tt=f(44958),Jn=f(27571),kn=f(80334);function mt(Q){return Q.replace(/-(.)/g,function(j,fe){return fe.toUpperCase()})}function zt(Q,j){(0,kn.ZP)(Q,"[@ant-design/icons] ".concat(j))}function on(Q){return(0,st.Z)(Q)==="object"&&typeof Q.name=="string"&&typeof Q.theme=="string"&&((0,st.Z)(Q.icon)==="object"||typeof Q.icon=="function")}function tn(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(Q).reduce(function(j,fe){var ze=Q[fe];switch(fe){case"class":j.className=ze,delete j.class;break;default:delete j[fe],j[mt(fe)]=ze}return j},{})}function En(Q,j,fe){return fe?u.createElement(Q.tag,(0,L.Z)((0,L.Z)({key:j},tn(Q.attrs)),fe),(Q.children||[]).map(function(ze,jt){return En(ze,"".concat(j,"-").concat(Q.tag,"-").concat(jt))})):u.createElement(Q.tag,(0,L.Z)({key:j},tn(Q.attrs)),(Q.children||[]).map(function(ze,jt){return En(ze,"".concat(j,"-").concat(Q.tag,"-").concat(jt))}))}function At(Q){return le(Q)[0]}function vn(Q){return Q?Array.isArray(Q)?Q:[Q]:[]}var Dn={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Qn=` -.anticon { - display: inline-flex; - alignItems: center; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,Hn=function(j){var fe=(0,u.useContext)(qt),ze=fe.csp,jt=fe.prefixCls,Yt=Qn;jt&&(Yt=Yt.replace(/anticon/g,jt)),(0,u.useEffect)(function(){var _n=j.current,$n=(0,Jn.A)(_n);(0,Tt.hq)(Yt,"@ant-design-icons",{prepend:!0,csp:ze,attachTo:$n})},[])},it=["icon","className","onClick","style","primaryColor","secondaryColor"],An={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function pr(Q){var j=Q.primaryColor,fe=Q.secondaryColor;An.primaryColor=j,An.secondaryColor=fe||At(j),An.calculated=!!fe}function sr(){return(0,L.Z)({},An)}var Wn=function(j){var fe=j.icon,ze=j.className,jt=j.onClick,Yt=j.style,_n=j.primaryColor,$n=j.secondaryColor,er=(0,P.Z)(j,it),ar=u.useRef(),zn=An;if(_n&&(zn={primaryColor:_n,secondaryColor:$n||At(_n)}),Hn(ar),zt(on(fe),"icon should be icon definiton, but got ".concat(fe)),!on(fe))return null;var jn=fe;return jn&&typeof jn.icon=="function"&&(jn=(0,L.Z)((0,L.Z)({},jn),{},{icon:jn.icon(zn.primaryColor,zn.secondaryColor)})),En(jn.icon,"svg-".concat(jn.name),(0,L.Z)((0,L.Z)({className:ze,onClick:jt,style:Yt,"data-icon":jn.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},er),{},{ref:ar}))};Wn.displayName="IconReact",Wn.getTwoToneColors=sr,Wn.setTwoToneColors=pr;var rr=Wn;function Or(Q){var j=vn(Q),fe=(0,Ne.Z)(j,2),ze=fe[0],jt=fe[1];return rr.setTwoToneColors({primaryColor:ze,secondaryColor:jt})}function cr(){var Q=rr.getTwoToneColors();return Q.calculated?[Q.primaryColor,Q.secondaryColor]:Q.primaryColor}var fo=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Or(Lt.primary);var Ar=u.forwardRef(function(Q,j){var fe=Q.className,ze=Q.icon,jt=Q.spin,Yt=Q.rotate,_n=Q.tabIndex,$n=Q.onClick,er=Q.twoToneColor,ar=(0,P.Z)(Q,fo),zn=u.useContext(qt),jn=zn.prefixCls,tr=jn===void 0?"anticon":jn,ur=zn.rootClassName,so=Ke()(ur,tr,(0,K.Z)((0,K.Z)({},"".concat(tr,"-").concat(ze.name),!!ze.name),"".concat(tr,"-spin"),!!jt||ze.name==="loading"),fe),qr=_n;qr===void 0&&$n&&(qr=-1);var So=Yt?{msTransform:"rotate(".concat(Yt,"deg)"),transform:"rotate(".concat(Yt,"deg)")}:void 0,_r=vn(er),Zo=(0,Ne.Z)(_r,2),Ko=Zo[0],Mo=Zo[1];return u.createElement("span",(0,g.Z)({role:"img","aria-label":ze.name},ar,{ref:j,tabIndex:qr,onClick:$n,className:so}),u.createElement(rr,{icon:ze,primaryColor:Ko,secondaryColor:Mo,style:So}))});Ar.displayName="AntdIcon",Ar.getTwoToneColor=cr,Ar.setTwoToneColor=Or;var $o=Ar,Gt=function(j,fe){return u.createElement($o,(0,g.Z)({},j,{ref:fe,icon:je.Z}))},an=u.forwardRef(Gt),Et=an,Ct=f(48874),dn=f(28459),Vn=f(48096),or=f(25378),io=f(97435),Co=f(21770),vo=f(80171),dr=f(71230),Ir=f(15746),Kr=f(87107),Un=f(98082),jr=new Kr.E4("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Yr=function(j){return(0,K.Z)({},j.componentCls,(0,K.Z)((0,K.Z)({"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},"".concat(j.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),"".concat(j.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:j.borderRadius,animationName:jr,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}))};function Ho(Q){return(0,Un.Xj)("ProCardLoading",function(j){var fe=(0,L.Z)((0,L.Z)({},j),{},{componentCls:".".concat(Q)});return[Yr(fe)]})}var St=f(85893),Mr=function(j){var fe=j.style,ze=j.prefix,jt=Ho(ze||"ant-pro-card"),Yt=jt.wrapSSR;return Yt((0,St.jsxs)("div",{className:"".concat(ze,"-loading-content"),style:fe,children:[(0,St.jsx)(dr.Z,{gutter:8,children:(0,St.jsx)(Ir.Z,{span:22,children:(0,St.jsx)("div",{className:"".concat(ze,"-loading-block")})})}),(0,St.jsxs)(dr.Z,{gutter:8,children:[(0,St.jsx)(Ir.Z,{span:8,children:(0,St.jsx)("div",{className:"".concat(ze,"-loading-block")})}),(0,St.jsx)(Ir.Z,{span:15,children:(0,St.jsx)("div",{className:"".concat(ze,"-loading-block")})})]}),(0,St.jsxs)(dr.Z,{gutter:8,children:[(0,St.jsx)(Ir.Z,{span:6,children:(0,St.jsx)("div",{className:"".concat(ze,"-loading-block")})}),(0,St.jsx)(Ir.Z,{span:18,children:(0,St.jsx)("div",{className:"".concat(ze,"-loading-block")})})]}),(0,St.jsxs)(dr.Z,{gutter:8,children:[(0,St.jsx)(Ir.Z,{span:13,children:(0,St.jsx)("div",{className:"".concat(ze,"-loading-block")})}),(0,St.jsx)(Ir.Z,{span:9,children:(0,St.jsx)("div",{className:"".concat(ze,"-loading-block")})})]}),(0,St.jsxs)(dr.Z,{gutter:8,children:[(0,St.jsx)(Ir.Z,{span:4,children:(0,St.jsx)("div",{className:"".concat(ze,"-loading-block")})}),(0,St.jsx)(Ir.Z,{span:3,children:(0,St.jsx)("div",{className:"".concat(ze,"-loading-block")})}),(0,St.jsx)(Ir.Z,{span:16,children:(0,St.jsx)("div",{className:"".concat(ze,"-loading-block")})})]})]}))},un=Mr,In=f(67159),wn=f(50344),qn=f(34155),Xn=["tab","children"],Tn=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function Gn(Q){return Q.filter(function(j){return j})}function gr(Q,j,fe){if(Q)return Q.map(function(jt){return(0,L.Z)((0,L.Z)({},jt),{},{children:(0,St.jsx)(Fn,(0,L.Z)((0,L.Z)({},fe==null?void 0:fe.cardProps),{},{children:jt.children}))})});(0,kn.ET)(!fe,"Tabs.TabPane is deprecated. Please use `items` directly.");var ze=(0,wn.Z)(j).map(function(jt){if(u.isValidElement(jt)){var Yt=jt.key,_n=jt.props,$n=_n||{},er=$n.tab,ar=$n.children,zn=(0,P.Z)($n,Xn),jn=(0,L.Z)((0,L.Z)({key:String(Yt)},zn),{},{children:(0,St.jsx)(Fn,(0,L.Z)((0,L.Z)({},fe==null?void 0:fe.cardProps),{},{children:ar})),label:er});return jn}return null});return Gn(ze)}var hr=function(j){var fe=(0,u.useContext)(dn.ZP.ConfigContext),ze=fe.getPrefixCls;if(In.Z.startsWith("5"))return(0,St.jsx)(St.Fragment,{});var jt=j.key,Yt=j.tab,_n=j.tabKey,$n=j.disabled,er=j.destroyInactiveTabPane,ar=j.children,zn=j.className,jn=j.style,tr=j.cardProps,ur=(0,P.Z)(j,Tn),so=ze("pro-card-tabpane"),qr=Ke()(so,zn);return(0,St.jsx)(Vn.Z.TabPane,(0,L.Z)((0,L.Z)({tabKey:_n,tab:Yt,className:qr,style:jn,disabled:$n,destroyInactiveTabPane:er},ur),{},{children:(0,St.jsx)(Fn,(0,L.Z)((0,L.Z)({},tr),{},{children:ar}))}),jt)},Jr=hr,Tr=function(j){return{backgroundColor:j.controlItemBgActive,borderColor:j.controlOutline}},Wo=function(j){var fe=j.componentCls;return(0,K.Z)((0,K.Z)((0,K.Z)({},fe,(0,L.Z)((0,L.Z)({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:j.colorBgContainer,borderRadius:j.borderRadius},Un.Wf===null||Un.Wf===void 0?void 0:(0,Un.Wf)(j)),{},(0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)({"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(j.lineWidth,"px ").concat(j.lineType," ").concat(j.colorSplit)},"&-hoverable":(0,K.Z)({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(fe,"-checked:hover"),{borderColor:j.controlOutline}),"&-checked":(0,L.Z)((0,L.Z)({},Tr(j)),{},{"&::after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"6px solid ".concat(j.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":(0,L.Z)({},Tr(j)),"&&-ghost":(0,K.Z)({backgroundColor:"transparent"},"> ".concat(fe),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:j.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},"".concat(fe,"-body-direction-column"),{flexDirection:"column"}),"".concat(fe,"-body-wrap"),{flexWrap:"wrap"}),"&&-collapse",(0,K.Z)({},"> ".concat(fe),{"&-header":{paddingBlockEnd:j.padding,borderBlockEnd:0},"&-body":{display:"none"}})),"".concat(fe,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:j.paddingLG,paddingBlock:j.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:j.padding},borderBlockEnd:"".concat(j.lineWidth,"px ").concat(j.lineType," ").concat(j.colorSplit)},"&-collapsible":{cursor:"pointer"}}),"".concat(fe,"-title"),{color:j.colorText,fontWeight:500,fontSize:j.fontSizeLG,lineHeight:j.lineHeight}),"".concat(fe,"-extra"),{color:j.colorText}),"".concat(fe,"-type-inner"),(0,K.Z)({},"".concat(fe,"-header"),{backgroundColor:j.colorFillAlter})),"".concat(fe,"-collapsible-icon"),{marginInlineEnd:j.marginXS,color:j.colorIconHover,":hover":{color:j.colorPrimaryHover},"& svg":{transition:"transform ".concat(j.motionDurationMid)}}),"".concat(fe,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:j.paddingLG,paddingBlock:j.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),"&&-size-small",(0,K.Z)((0,K.Z)({},fe,{"&-header":{paddingInline:j.paddingSM,paddingBlock:j.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:j.paddingXS}},"&-title":{fontSize:j.fontSize},"&-body":{paddingInline:j.paddingSM,paddingBlock:j.paddingSM}}),"".concat(fe,"-header").concat(fe,"-header-collapsible"),{paddingBlock:j.paddingXS})))),"".concat(fe,"-col"),(0,K.Z)((0,K.Z)({},"&".concat(fe,"-split-vertical"),{borderInlineEnd:"".concat(j.lineWidth,"px ").concat(j.lineType," ").concat(j.colorSplit)}),"&".concat(fe,"-split-horizontal"),{borderBlockEnd:"".concat(j.lineWidth,"px ").concat(j.lineType," ").concat(j.colorSplit)})),"".concat(fe,"-tabs"),(0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)({},"".concat(j.antCls,"-tabs-top > ").concat(j.antCls,"-tabs-nav"),(0,K.Z)({marginBlockEnd:0},"".concat(j.antCls,"-tabs-nav-list"),{marginBlockStart:j.marginXS,paddingInlineStart:j.padding})),"".concat(j.antCls,"-tabs-bottom > ").concat(j.antCls,"-tabs-nav"),(0,K.Z)({marginBlockEnd:0},"".concat(j.antCls,"-tabs-nav-list"),{paddingInlineStart:j.padding})),"".concat(j.antCls,"-tabs-left"),(0,K.Z)({},"".concat(j.antCls,"-tabs-content-holder"),(0,K.Z)({},"".concat(j.antCls,"-tabs-content"),(0,K.Z)({},"".concat(j.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(j.antCls,"-tabs-left > ").concat(j.antCls,"-tabs-nav"),(0,K.Z)({marginInlineEnd:0},"".concat(j.antCls,"-tabs-nav-list"),{paddingBlockStart:j.padding})),"".concat(j.antCls,"-tabs-right"),(0,K.Z)({},"".concat(j.antCls,"-tabs-content-holder"),(0,K.Z)({},"".concat(j.antCls,"-tabs-content"),(0,K.Z)({},"".concat(j.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(j.antCls,"-tabs-right > ").concat(j.antCls,"-tabs-nav"),(0,K.Z)({},"".concat(j.antCls,"-tabs-nav-list"),{paddingBlockStart:j.padding})))},bo=24,xo=function(j,fe){var ze=fe.componentCls;return j===0?(0,K.Z)({},"".concat(ze,"-col-0"),{display:"none"}):(0,K.Z)({},"".concat(ze,"-col-").concat(j),{flexShrink:0,width:"".concat(j/bo*100,"%")})},yr=function(j){return Array(bo+1).fill(1).map(function(fe,ze){return xo(ze,j)})};function ct(Q){return(0,Un.Xj)("ProCard",function(j){var fe=(0,L.Z)((0,L.Z)({},j),{},{componentCls:".".concat(Q)});return[Wo(fe),yr(fe)]})}var Cr=["className","style","bodyStyle","headStyle","title","subTitle","extra","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],mo=u.forwardRef(function(Q,j){var fe,ze=Q.className,jt=Q.style,Yt=Q.bodyStyle,_n=Q.headStyle,$n=Q.title,er=Q.subTitle,ar=Q.extra,zn=Q.wrap,jn=zn===void 0?!1:zn,tr=Q.layout,ur=Q.loading,so=Q.gutter,qr=so===void 0?0:so,So=Q.tooltip,_r=Q.split,Zo=Q.headerBordered,Ko=Zo===void 0?!1:Zo,Mo=Q.bordered,pn=Mo===void 0?!1:Mo,Do=Q.boxShadow,go=Do===void 0?!1:Do,na=Q.children,Vo=Q.size,Z=Q.actions,H=Q.ghost,U=H===void 0?!1:H,k=Q.hoverable,W=k===void 0?!1:k,ie=Q.direction,Ze=Q.collapsed,ye=Q.collapsible,be=ye===void 0?!1:ye,$e=Q.collapsibleIconRender,Be=Q.defaultCollapsed,Pe=Be===void 0?!1:Be,Me=Q.onCollapse,De=Q.checked,Qe=Q.onChecked,ft=Q.tabs,pt=Q.type,wt=(0,P.Z)(Q,Cr),Nt=(0,u.useContext)(dn.ZP.ConfigContext),Pt=Nt.getPrefixCls,Kt=(0,or.Z)()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},Mt=(0,Co.Z)(Pe,{value:Ze,onChange:Me}),nn=(0,Ne.Z)(Mt,2),Jt=nn[0],ln=nn[1],$t=["xxl","xl","lg","md","sm","xs"],sn=gr(ft==null?void 0:ft.items,na,ft),Pn=function(en){var bn=[0,0],Kn=Array.isArray(en)?en:[en,0];return Kn.forEach(function(xn,Sn){if((0,st.Z)(xn)==="object")for(var Pr=0;Pr<$t.length;Pr+=1){var Br=$t[Pr];if(Kt[Br]&&xn[Br]!==void 0){bn[Sn]=xn[Br];break}}else bn[Sn]=xn||0}),bn},cn=function(en,bn){return en?bn:{}},Ot=function(en){var bn=en;if((0,st.Z)(en)==="object")for(var Kn=0;Kn<$t.length;Kn+=1){var xn=$t[Kn];if(Kt!=null&&Kt[xn]&&(en==null?void 0:en[xn])!==void 0){bn=en[xn];break}}var Sn=cn(typeof bn=="string"&&/\d%|\dpx/i.test(bn),{width:bn,flexShrink:0});return{span:bn,colSpanStyle:Sn}},Je=Pt("pro-card"),Dt=ct(Je),Rt=Dt.wrapSSR,tt=Dt.hashId,vt=Pn(qr),Ut=(0,Ne.Z)(vt,2),Cn=Ut[0],gn=Ut[1],nr=!1,Dr=u.Children.toArray(na),zr=Dr.map(function(On,en){var bn;if(On!=null&&(bn=On.type)!==null&&bn!==void 0&&bn.isProCard){nr=!0;var Kn=On.props.colSpan,xn=Ot(Kn),Sn=xn.span,Pr=xn.colSpanStyle,Br=Ke()(["".concat(Je,"-col")],tt,(0,K.Z)((0,K.Z)((0,K.Z)({},"".concat(Je,"-split-vertical"),_r==="vertical"&&en!==Dr.length-1),"".concat(Je,"-split-horizontal"),_r==="horizontal"&&en!==Dr.length-1),"".concat(Je,"-col-").concat(Sn),typeof Sn=="number"&&Sn>=0&&Sn<=24)),Hr=Rt((0,St.jsx)("div",{style:(0,L.Z)((0,L.Z)((0,L.Z)({},Pr),cn(Cn>0,{paddingInlineEnd:Cn/2,paddingInlineStart:Cn/2})),cn(gn>0,{paddingBlockStart:gn/2,paddingBlockEnd:gn/2})),className:Br,children:u.cloneElement(On)}));return u.cloneElement(Hr,{key:"pro-card-col-".concat((On==null?void 0:On.key)||en)})}return On}),br=Ke()("".concat(Je),ze,tt,(fe={},(0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)((0,K.Z)(fe,"".concat(Je,"-border"),pn),"".concat(Je,"-box-shadow"),go),"".concat(Je,"-contain-card"),nr),"".concat(Je,"-loading"),ur),"".concat(Je,"-split"),_r==="vertical"||_r==="horizontal"),"".concat(Je,"-ghost"),U),"".concat(Je,"-hoverable"),W),"".concat(Je,"-size-").concat(Vo),Vo),"".concat(Je,"-type-").concat(pt),pt),"".concat(Je,"-collapse"),Jt),(0,K.Z)(fe,"".concat(Je,"-checked"),De))),_t=Ke()("".concat(Je,"-body"),tt,(0,K.Z)((0,K.Z)((0,K.Z)({},"".concat(Je,"-body-center"),tr==="center"),"".concat(Je,"-body-direction-column"),_r==="horizontal"||ie==="column"),"".concat(Je,"-body-wrap"),jn&&nr)),Lr=Yt,lr=u.isValidElement(ur)?ur:(0,St.jsx)(un,{prefix:Je,style:(Yt==null?void 0:Yt.padding)===0||(Yt==null?void 0:Yt.padding)==="0px"?{padding:24}:void 0}),xr=be&&Ze===void 0&&($e?$e({collapsed:Jt}):(0,St.jsx)(Et,{rotate:Jt?void 0:90,className:"".concat(Je,"-collapsible-icon ").concat(tt).trim()}));return Rt((0,St.jsxs)("div",(0,L.Z)((0,L.Z)({className:br,style:jt,ref:j,onClick:function(en){var bn;Qe==null||Qe(en),wt==null||(bn=wt.onClick)===null||bn===void 0||bn.call(wt,en)}},(0,io.Z)(wt,["prefixCls","colSpan"])),{},{children:[($n||ar||xr)&&(0,St.jsxs)("div",{className:Ke()("".concat(Je,"-header"),tt,(0,K.Z)((0,K.Z)({},"".concat(Je,"-header-border"),Ko||pt==="inner"),"".concat(Je,"-header-collapsible"),xr)),style:_n,onClick:function(){xr&&ln(!Jt)},children:[(0,St.jsxs)("div",{className:"".concat(Je,"-title ").concat(tt).trim(),children:[xr,(0,St.jsx)(Ct.G,{label:$n,tooltip:So,subTitle:er})]}),ar&&(0,St.jsx)("div",{className:"".concat(Je,"-extra ").concat(tt).trim(),onClick:function(en){return en.stopPropagation()},children:ar})]}),ft?(0,St.jsx)("div",{className:"".concat(Je,"-tabs ").concat(tt).trim(),children:(0,St.jsx)(Vn.Z,(0,L.Z)((0,L.Z)({onChange:ft.onChange},ft),{},{items:sn,children:ur?lr:na}))}):(0,St.jsx)("div",{className:_t,style:Lr,children:ur?lr:zr}),Z?(0,St.jsx)(vo.Z,{actions:Z,prefixCls:Je}):null]})))}),Fn=mo,Oo=function(j){var fe=j.componentCls;return(0,K.Z)({},fe,{"&-divider":{flex:"none",width:j.lineWidth,marginInline:j.marginXS,marginBlock:j.marginLG,backgroundColor:j.colorSplit,"&-horizontal":{width:"initial",height:j.lineWidth,marginInline:j.marginLG,marginBlock:j.marginXS}},"&&-size-small &-divider":{marginBlock:j.marginLG,marginInline:j.marginXS,"&-horizontal":{marginBlock:j.marginXS,marginInline:j.marginLG}}})};function ea(Q){return(0,Un.Xj)("ProCardDivider",function(j){var fe=(0,L.Z)((0,L.Z)({},j),{},{componentCls:".".concat(Q)});return[Oo(fe)]})}var ha=function(j){var fe=(0,u.useContext)(dn.ZP.ConfigContext),ze=fe.getPrefixCls,jt=ze("pro-card"),Yt="".concat(jt,"-divider"),_n=ea(jt),$n=_n.wrapSSR,er=_n.hashId,ar=j.className,zn=j.style,jn=zn===void 0?{}:zn,tr=j.type,ur=Ke()(Yt,ar,er,(0,K.Z)({},"".concat(Yt,"-").concat(tr),tr));return $n((0,St.jsx)("div",{className:ur,style:jn}))},ta=ha,Qr=function(j){return(0,St.jsx)(Fn,(0,L.Z)({bodyStyle:{padding:0}},j))},po=Fn;po.isProCard=!0,po.Divider=ta,po.TabPane=Jr,po.Group=Qr;var ya=po},80171:function(Bn,xt,f){"use strict";f.d(xt,{Z:function(){return Ge}});var L=f(93967),K=f.n(L),st=f(67294),Ne=f(1413),P=f(4942),g=f(98082),u=function(Ce){var Xe=Ce.componentCls,rt=Ce.antCls;return(0,P.Z)({},"".concat(Xe,"-actions"),(0,P.Z)((0,P.Z)({marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:Ce.marginXS,background:Ce.colorBgContainer,borderBlockStart:"".concat(Ce.lineWidth,"px ").concat(Ce.lineType," ").concat(Ce.colorSplit),minHeight:42},"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:Ce.colorTextSecondary,transition:"color 0.3s","&:hover":{color:Ce.colorPrimaryHover}}),"& > li > div",{flex:1,width:"100%",marginBlock:Ce.marginSM,marginInline:0,color:Ce.colorTextSecondary,textAlign:"center",a:{color:Ce.colorTextSecondary,transition:"color 0.3s","&:hover":{color:Ce.colorPrimaryHover}},div:(0,P.Z)((0,P.Z)({position:"relative",display:"block",minWidth:32,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight,cursor:"pointer","&:hover":{color:Ce.colorPrimaryHover,transition:"color 0.3s"}},"a:not(".concat(rt,`-btn), - > .anticon`),{display:"inline-block",width:"100%",color:Ce.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:Ce.colorPrimaryHover}}),".anticon",{fontSize:Ce.cardActionIconSize,lineHeight:"22px"}),"&:not(:last-child)":{borderInlineEnd:"".concat(Ce.lineWidth,"px ").concat(Ce.lineType," ").concat(Ce.colorSplit)}}))};function je(Ue){return(0,g.Xj)("ProCardActions",function(Ce){var Xe=(0,Ne.Z)((0,Ne.Z)({},Ce),{},{componentCls:".".concat(Ue),cardActionIconSize:16});return[u(Xe)]})}var ne=f(85893),Ke=function(Ce){var Xe=Ce.actions,rt=Ce.prefixCls,ut=je(rt),We=ut.wrapSSR,a=ut.hashId;return Array.isArray(Xe)&&Xe!==null&&Xe!==void 0&&Xe.length?We((0,ne.jsx)("ul",{className:K()("".concat(rt,"-actions"),a),children:Xe.map(function(lt,Zt){return(0,ne.jsx)("li",{style:{width:"".concat(100/Xe.length,"%"),padding:0,margin:0},className:K()("".concat(rt,"-actions-item"),a),children:lt},"action-".concat(Zt))})})):We((0,ne.jsx)("ul",{className:K()("".concat(rt,"-actions"),a),children:Xe}))},Ge=Ke},53775:function(Bn,xt,f){"use strict";f.d(xt,{Z:function(){return mv}});var L=f(74165),K=f(15861),st=f(71002),Ne=f(97685),P=f(4942),g=f(74902),u=f(1413),je=f(91),ne=f(58128),Ke=ne.Z,Ge=f(2514),Ue=f(34994),Ce=Ue.A,Xe=f(10915),rt=f(98082),ut=f(84506),We=f(87462),a=f(67294),lt=f(15294),Zt=f(62914),ee=function(e,r){return a.createElement(Zt.Z,(0,We.Z)({},e,{ref:r,icon:lt.Z}))},J=a.forwardRef(ee),Ee=J,Ie=f(45360),pe=f(8232),Le=f(86738),le=f(84164),ge=f(21770),w=f(88306),Re=f(8880),Te=f(80334),Se=f(48171),q=f(10178),ce=f(41036),Oe=f(27068),ke=f(26369),_e=f(92210),C=f(85893),Lt=["map_row_parentKey"],gt=["map_row_parentKey","map_row_key"],Wt=["map_row_key"],Bt=function(e){return(Ie.ZP.warn||Ie.ZP.warning)(e)},kt=function(e){return Array.isArray(e)?e.join(","):e};function Vt(t,e){var r,n=t.getRowKey,o=t.row,s=t.data,i=t.childrenColumnName,l=i===void 0?"children":i,c=(r=kt(t.key))===null||r===void 0?void 0:r.toString(),d=new Map;function v(y,S,p){y.forEach(function(x,h){var b=(p||0)*10+h,E=n(x,b).toString();x&&(0,st.Z)(x)==="object"&&l in x&&v(x[l]||[],E,b);var R=(0,u.Z)((0,u.Z)({},x),{},{map_row_key:E,children:void 0,map_row_parentKey:S});delete R.children,S||delete R.map_row_parentKey,d.set(E,R)})}e==="top"&&d.set(c,(0,u.Z)((0,u.Z)({},d.get(c)),o)),v(s),e==="update"&&d.set(c,(0,u.Z)((0,u.Z)({},d.get(c)),o)),e==="delete"&&d.delete(c);var m=function(S){var p=new Map,x=[],h=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;S.forEach(function(R){if(R.map_row_parentKey&&!R.map_row_key){var $=R.map_row_parentKey,A=(0,je.Z)(R,Lt);if(p.has($)||p.set($,[]),E){var V;(V=p.get($))===null||V===void 0||V.push(A)}}})};return h(e==="top"),S.forEach(function(b){if(b.map_row_parentKey&&b.map_row_key){var E,R=b.map_row_parentKey,$=b.map_row_key,A=(0,je.Z)(b,gt);p.has($)&&(A[l]=p.get($)),p.has(R)||p.set(R,[]),(E=p.get(R))===null||E===void 0||E.push(A)}}),h(e==="update"),S.forEach(function(b){if(!b.map_row_parentKey){var E=b.map_row_key,R=(0,je.Z)(b,Wt);if(E&&p.has(E)){var $=(0,u.Z)((0,u.Z)({},R),{},(0,P.Z)({},l,p.get(E)));x.push($);return}x.push(R)}}),x};return m(d)}function yn(t,e){var r=t.recordKey,n=t.onSave,o=t.row,s=t.children,i=t.newLineConfig,l=t.editorType,c=t.tableName,d=(0,a.useContext)(ce.J),v=pe.Z.useFormInstance(),m=(0,ge.Z)(!1),y=(0,Ne.Z)(m,2),S=y[0],p=y[1],x=(0,Se.J)((0,K.Z)((0,L.Z)().mark(function h(){var b,E,R,$,A,V,D,B,O;return(0,L.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.prev=0,E=l==="Map",R=[c,Array.isArray(r)?r[0]:r].map(function(M){return M==null?void 0:M.toString()}).flat(1).filter(Boolean),p(!0),I.next=6,v.validateFields(R,{recursive:!0});case 6:return $=(d==null||(b=d.getFieldFormatValue)===null||b===void 0?void 0:b.call(d,R))||v.getFieldValue(R),Array.isArray(r)&&r.length>1&&(A=(0,ut.Z)(r),V=A.slice(1),D=(0,w.Z)($,V),(0,Re.Z)($,V,D)),B=E?(0,Re.Z)({},R,$):$,I.next=11,n==null?void 0:n(r,(0,_e.T)({},o,B),o,i);case 11:return O=I.sent,p(!1),I.abrupt("return",O);case 16:throw I.prev=16,I.t0=I.catch(0),console.log(I.t0),p(!1),I.t0;case 21:case"end":return I.stop()}},h,null,[[0,16]])})));return(0,a.useImperativeHandle)(e,function(){return{save:x}},[x]),(0,C.jsxs)("a",{onClick:function(){var h=(0,K.Z)((0,L.Z)().mark(function b(E){return(0,L.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:return E.stopPropagation(),E.preventDefault(),$.prev=2,$.next=5,x();case 5:$.next=9;break;case 7:$.prev=7,$.t0=$.catch(2);case 9:case"end":return $.stop()}},b,null,[[2,7]])}));return function(b){return h.apply(this,arguments)}}(),children:[S?(0,C.jsx)(Ee,{style:{marginInlineEnd:8}}):null,s||"\u4FDD\u5B58"]},"save")}var qt=function(e){var r=e.recordKey,n=e.onDelete,o=e.row,s=e.children,i=e.deletePopconfirmMessage,l=(0,ge.Z)(function(){return!1}),c=(0,Ne.Z)(l,2),d=c[0],v=c[1],m=(0,Se.J)((0,K.Z)((0,L.Z)().mark(function y(){var S;return(0,L.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,v(!0),x.next=4,n==null?void 0:n(r,o);case 4:return S=x.sent,v(!1),x.abrupt("return",S);case 9:return x.prev=9,x.t0=x.catch(0),console.log(x.t0),v(!1),x.abrupt("return",null);case 14:case"end":return x.stop()}},y,null,[[0,9]])})));return s!==!1?(0,C.jsx)(Le.Z,{title:i,onConfirm:function(){return m()},children:(0,C.jsxs)("a",{children:[d?(0,C.jsx)(Ee,{style:{marginInlineEnd:8}}):null,s||"\u5220\u9664"]})},"delete"):null},Tt=function(e){var r=e.recordKey,n=e.tableName,o=e.newLineConfig,s=e.editorType,i=e.onCancel,l=e.cancelEditable,c=e.row,d=e.cancelText,v=(0,a.useContext)(ce.J),m=pe.Z.useFormInstance();return(0,C.jsx)("a",{onClick:function(){var y=(0,K.Z)((0,L.Z)().mark(function S(p){var x,h,b,E,R,$;return(0,L.Z)().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return p.stopPropagation(),p.preventDefault(),h=s==="Map",b=[n,r].flat(1).filter(Boolean),E=(v==null||(x=v.getFieldFormatValue)===null||x===void 0?void 0:x.call(v,b))||(m==null?void 0:m.getFieldValue(b)),R=h?(0,Re.Z)({},b,E):E,V.next=8,i==null?void 0:i(r,R,c,o);case 8:return $=V.sent,V.next=11,l(r);case 11:return m.setFieldsValue((0,P.Z)({},"".concat(r),h?(0,w.Z)(c,b):c)),V.abrupt("return",$);case 13:case"end":return V.stop()}},S)}));return function(S){return y.apply(this,arguments)}}(),children:d||"\u53D6\u6D88"},"cancel")};function Jn(t,e){var r=e.recordKey,n=e.newLineConfig,o=e.saveText,s=e.deleteText,i=(0,a.forwardRef)(yn),l=(0,a.createRef)();return{save:(0,C.jsx)(i,(0,u.Z)((0,u.Z)({},e),{},{row:t,ref:l,children:o}),"save"+r),saveRef:l,delete:(n==null?void 0:n.options.recordKey)!==r?(0,C.jsx)(qt,(0,u.Z)((0,u.Z)({},e),{},{row:t,children:s}),"delete"+r):void 0,cancel:(0,C.jsx)(Tt,(0,u.Z)((0,u.Z)({},e),{},{row:t}),"cancel"+r)}}function kn(t){var e=(0,a.useState)(void 0),r=(0,Ne.Z)(e,2),n=r[0],o=r[1],s=function(){var N=new Map,G=function ae(se,ve){se==null||se.forEach(function(de,he){var oe,ue=ve==null?he.toString():ve+"_"+he.toString();N.set(ue,kt(t.getRowKey(de,-1))),N.set((oe=kt(t.getRowKey(de,-1)))===null||oe===void 0?void 0:oe.toString(),ue),t.childrenColumnName&&de[t.childrenColumnName]&&ae(de[t.childrenColumnName],ue)})};return G(t.dataSource),N},i=(0,a.useMemo)(function(){return s()},[]),l=(0,a.useRef)(i),c=(0,a.useRef)(void 0);(0,Oe.Au)(function(){l.current=s()},[t.dataSource]),c.current=n;var d=t.type||"single",v=(0,le.Z)(t.dataSource,"children",t.getRowKey),m=(0,Ne.Z)(v,1),y=m[0],S=(0,ge.Z)([],{value:t.editableKeys,onChange:t.onChange?function(te){var N,G,ae;t==null||(N=t.onChange)===null||N===void 0||N.call(t,(G=te==null?void 0:te.filter(function(se){return se!==void 0}))!==null&&G!==void 0?G:[],(ae=te==null?void 0:te.map(function(se){return y(se)}).filter(function(se){return se!==void 0}))!==null&&ae!==void 0?ae:[])}:void 0}),p=(0,Ne.Z)(S,2),x=p[0],h=p[1],b=(0,a.useMemo)(function(){var te=d==="single"?x==null?void 0:x.slice(0,1):x;return new Set(te)},[(x||[]).join(","),d]),E=(0,ke.D)(x),R=(0,Se.J)(function(te){var N,G,ae,se,ve=(N=t.getRowKey(te,te.index))===null||N===void 0||(G=N.toString)===null||G===void 0?void 0:G.call(N),de=(ae=t.getRowKey(te,-1))===null||ae===void 0||(se=ae.toString)===null||se===void 0?void 0:se.call(ae),he=x==null?void 0:x.map(function(Ae){return Ae==null?void 0:Ae.toString()}),oe=(E==null?void 0:E.map(function(Ae){return Ae==null?void 0:Ae.toString()}))||[],ue=t.tableName&&!!(oe!=null&&oe.includes(de))||!!(oe!=null&&oe.includes(ve));return{recordKey:de,isEditable:t.tableName&&(he==null?void 0:he.includes(de))||(he==null?void 0:he.includes(ve)),preIsEditable:ue}}),$=(0,Se.J)(function(te){return b.size>0&&d==="single"&&t.onlyOneLineEditorAlertMessage!==!1?(Bt(t.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(b.add(te),h(Array.from(b)),!0)}),A=(0,Se.J)(function(){var te=(0,K.Z)((0,L.Z)().mark(function N(G,ae){var se,ve;return(0,L.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(se=kt(G).toString(),ve=l.current.get(se),!(!b.has(se)&&ve&&(ae==null||ae)&&t.tableName)){he.next=5;break}return A(ve,!1),he.abrupt("return");case 5:return n&&n.options.recordKey===G&&o(void 0),b.delete(se),b.delete(kt(G)),h(Array.from(b)),he.abrupt("return",!0);case 10:case"end":return he.stop()}},N)}));return function(N,G){return te.apply(this,arguments)}}()),V=(0,q.D)((0,K.Z)((0,L.Z)().mark(function te(){var N,G,ae,se,ve=arguments;return(0,L.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:for(G=ve.length,ae=new Array(G),se=0;se0&&d==="single"&&t.onlyOneLineEditorAlertMessage!==!1)return Bt(t.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var G=t.getRowKey(te,-1);if(!G&&G!==0)throw(0,Te.ET)(!!G,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key - https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(b.add(G),h(Array.from(b)),(N==null?void 0:N.newRecordType)==="dataSource"||t.tableName){var ae,se={data:t.dataSource,getRowKey:t.getRowKey,row:(0,u.Z)((0,u.Z)({},te),{},{map_row_parentKey:N!=null&&N.parentKey?(ae=kt(N==null?void 0:N.parentKey))===null||ae===void 0?void 0:ae.toString():void 0}),key:G,childrenColumnName:t.childrenColumnName||"children"};t.setDataSource(Vt(se,(N==null?void 0:N.position)==="top"?"top":"update"))}else o({defaultValue:te,options:(0,u.Z)((0,u.Z)({},N),{},{recordKey:G})});return!0}),I=(0,Xe.YB)(),M=(t==null?void 0:t.saveText)||I.getMessage("editableTable.action.save","\u4FDD\u5B58"),re=(t==null?void 0:t.deleteText)||I.getMessage("editableTable.action.delete","\u5220\u9664"),z=(t==null?void 0:t.cancelText)||I.getMessage("editableTable.action.cancel","\u53D6\u6D88"),T=(0,Se.J)(function(){var te=(0,K.Z)((0,L.Z)().mark(function N(G,ae,se,ve){var de,he,oe,ue,Ae,Ve,ot;return(0,L.Z)().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return dt.next=2,t==null||(de=t.onSave)===null||de===void 0?void 0:de.call(t,G,ae,se,ve);case 2:return ue=dt.sent,dt.next=5,A(G);case 5:if(Ae=ve||c.current||{},Ve=Ae.options,!(!(Ve!=null&&Ve.parentKey)&&(Ve==null?void 0:Ve.recordKey)===G)){dt.next=9;break}return(Ve==null?void 0:Ve.position)==="top"?t.setDataSource([ae].concat((0,g.Z)(t.dataSource))):t.setDataSource([].concat((0,g.Z)(t.dataSource),[ae])),dt.abrupt("return",ue);case 9:return ot={data:t.dataSource,getRowKey:t.getRowKey,row:Ve?(0,u.Z)((0,u.Z)({},ae),{},{map_row_parentKey:(he=kt((oe=Ve==null?void 0:Ve.parentKey)!==null&&oe!==void 0?oe:""))===null||he===void 0?void 0:he.toString()}):ae,key:G,childrenColumnName:t.childrenColumnName||"children"},t.setDataSource(Vt(ot,(Ve==null?void 0:Ve.position)==="top"?"top":"update")),dt.next=13,A(G);case 13:return dt.abrupt("return",ue);case 14:case"end":return dt.stop()}},N)}));return function(N,G,ae,se){return te.apply(this,arguments)}}()),X=(0,Se.J)(function(){var te=(0,K.Z)((0,L.Z)().mark(function N(G,ae){var se,ve,de;return(0,L.Z)().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return ve={data:t.dataSource,getRowKey:t.getRowKey,row:ae,key:G,childrenColumnName:t.childrenColumnName||"children"},oe.next=3,t==null||(se=t.onDelete)===null||se===void 0?void 0:se.call(t,G,ae);case 3:return de=oe.sent,oe.next=6,A(G,!1);case 6:return t.setDataSource(Vt(ve,"delete")),oe.abrupt("return",de);case 8:case"end":return oe.stop()}},N)}));return function(N,G){return te.apply(this,arguments)}}()),_=(0,Se.J)(function(){var te=(0,K.Z)((0,L.Z)().mark(function N(G,ae,se,ve){var de,he;return(0,L.Z)().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,t==null||(de=t.onCancel)===null||de===void 0?void 0:de.call(t,G,ae,se,ve);case 2:return he=ue.sent,ue.abrupt("return",he);case 4:case"end":return ue.stop()}},N)}));return function(N,G,ae,se){return te.apply(this,arguments)}}()),we=function(N){var G=t.getRowKey(N,N.index),ae={saveText:M,cancelText:z,deleteText:re,addEditRecord:F,recordKey:G,cancelEditable:A,index:N.index,tableName:t.tableName,newLineConfig:n,onCancel:_,onDelete:X,onSave:T,editableKeys:x,setEditableRowKeys:h,deletePopconfirmMessage:t.deletePopconfirmMessage||"".concat(I.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?")},se=Jn(N,ae);return t.tableName?B.current.set(l.current.get(kt(G))||kt(G),se.saveRef):B.current.set(kt(G),se.saveRef),t.actionRender?t.actionRender(N,ae,{save:se.save,delete:se.delete,cancel:se.cancel}):[se.save,se.delete,se.cancel]};return{editableKeys:x,setEditableRowKeys:h,isEditable:R,actionRender:we,startEditable:$,cancelEditable:A,addEditRecord:F,saveEditable:O,newLineRecord:n,preEditableKeys:E,onValuesChange:D,getRealIndex:t.getRealIndex}}var mt=f(51812),zt=f(53914),on=f(78164),tn=f(64778);function En(t){return null}var At=En;function vn(t){return null}var Dn=vn,Qn=f(33275),Hn=f(93967),it=f.n(Hn),An=f(8290),pr=f(98423);function sr(t,e){return t._antProxy=t._antProxy||{},Object.keys(e).forEach(r=>{if(!(r in t._antProxy)){const n=t[r];t._antProxy[r]=n,t[r]=e[r]}}),t}function Wn(t,e){return(0,a.useImperativeHandle)(t,()=>{const r=e(),{nativeElement:n}=r;return typeof Proxy!="undefined"?new Proxy(n,{get(o,s){return r[s]?r[s]:Reflect.get(o,s)}}):sr(n,r)})}var rr=f(75164);function Or(t,e,r,n){const o=r-e;return t/=n/2,t<1?o/2*t*t*t+e:o/2*((t-=2)*t*t+2)+e}function cr(t){return t!=null&&t===t.window}function fo(t,e){var r,n;if(typeof window=="undefined")return 0;const o=e?"scrollTop":"scrollLeft";let s=0;return cr(t)?s=t[e?"pageYOffset":"pageXOffset"]:t instanceof Document?s=t.documentElement[o]:(t instanceof HTMLElement||t)&&(s=t[o]),t&&!cr(t)&&typeof s!="number"&&(s=(n=((r=t.ownerDocument)!==null&&r!==void 0?r:t).documentElement)===null||n===void 0?void 0:n[o]),s}function Ar(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:r=()=>window,callback:n,duration:o=450}=e,s=r(),i=fo(s,!0),l=Date.now(),c=()=>{const v=Date.now()-l,m=Or(v>o?o:v,i,t,o);cr(s)?s.scrollTo(window.pageXOffset,m):s instanceof Document||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=m:s.scrollTop=m,v{o(s,d),d.stopPropagation()},className:it()(c,{[`${c}-spaced`]:!l,[`${c}-expanded`]:l&&i,[`${c}-collapsed`]:l&&!i}),"aria-label":i?t.collapse:t.expand,"aria-expanded":i})}}var dr=vo;function Ir(t){return(r,n)=>{const o=r.querySelector(`.${t}-container`);let s=n;if(o){const i=getComputedStyle(o),l=parseInt(i.borderLeftWidth,10),c=parseInt(i.borderRightWidth,10);s=n-l-c}return s}}function Kr(t,e){return"key"in t&&t.key!==void 0&&t.key!==null?t.key:t.dataIndex?Array.isArray(t.dataIndex)?t.dataIndex.join("."):t.dataIndex:e}function Un(t,e){return e?`${e}-${t}`:`${t}`}function jr(t,e){return typeof t=="function"?t(e):t}function Yr(t,e){const r=jr(t,e);return Object.prototype.toString.call(r)==="[object Object]"?"":r}var Ho={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},St=Ho,Mr=f(93771),un=function(e,r){return a.createElement(Mr.Z,(0,We.Z)({},e,{ref:r,icon:St}))},In=a.forwardRef(un),wn=In,qn=f(91881),Xn=f(57838);function Tn(t){const e=a.useRef(t),r=(0,Xn.Z)();return[()=>e.current,n=>{e.current=n,r()}]}var Gn=f(14726),gr=f(84567),hr=f(18108),Jr=f(32983),Tr=f(68508),Wo=f(76529),bo=f(78045),xo=f(15671),yr=f(43144),ct=f(97326),Cr=f(32531),mo=f(29388),Fn=f(15105),Oo=f(64217),ea=f(69610);function ha(t){var e=t.dropPosition,r=t.dropLevelOffset,n=t.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(e){case-1:o.top=0,o.left=-r*n;break;case 1:o.bottom=0,o.left=-r*n;break;case 0:o.bottom=0,o.left=n;break}return a.createElement("div",{style:o})}var ta=f(36459),Qr=f(8410),po=f(85344),ya=f(82225),Q=f(56261);function j(t,e){var r=a.useState(!1),n=(0,Ne.Z)(r,2),o=n[0],s=n[1];(0,Qr.Z)(function(){if(o)return t(),function(){e()}},[o]),(0,Qr.Z)(function(){return s(!0),function(){s(!1)}},[])}var fe=f(26052),ze=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],jt=function(e,r){var n=e.className,o=e.style,s=e.motion,i=e.motionNodes,l=e.motionType,c=e.onMotionStart,d=e.onMotionEnd,v=e.active,m=e.treeNodeRequiredProps,y=(0,je.Z)(e,ze),S=a.useState(!0),p=(0,Ne.Z)(S,2),x=p[0],h=p[1],b=a.useContext(ea.k),E=b.prefixCls,R=i&&l!=="hide";(0,Qr.Z)(function(){i&&R!==x&&h(R)},[i]);var $=function(){i&&c()},A=a.useRef(!1),V=function(){i&&!A.current&&(A.current=!0,d())};j($,V);var D=function(O){R===O&&V()};return i?a.createElement(ya.ZP,(0,We.Z)({ref:r,visible:x},s,{motionAppear:l==="show",onVisibleChanged:D}),function(B,O){var F=B.className,I=B.style;return a.createElement("div",{ref:O,className:it()("".concat(E,"-treenode-motion"),F),style:I},i.map(function(M){var re=Object.assign({},((0,ta.Z)(M.data),M.data)),z=M.title,T=M.key,X=M.isStart,_=M.isEnd;delete re.children;var we=(0,fe.H8)(T,m);return a.createElement(Q.Z,(0,We.Z)({},re,we,{title:z,active:v,data:M.data,key:T,isStart:X,isEnd:_}))}))}):a.createElement(Q.Z,(0,We.Z)({domRef:r,className:n,style:o},y,{active:v}))};jt.displayName="MotionTreeNode";var Yt=a.forwardRef(jt),_n=Yt;function $n(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=t.length,n=e.length;if(Math.abs(r-n)!==1)return{add:!1,key:null};function o(s,i){var l=new Map;s.forEach(function(d){l.set(d,!0)});var c=i.filter(function(d){return!l.has(d)});return c.length===1?c[0]:null}return r ").concat(e);return e}var Ko=a.forwardRef(function(t,e){var r=t.prefixCls,n=t.data,o=t.selectable,s=t.checkable,i=t.expandedKeys,l=t.selectedKeys,c=t.checkedKeys,d=t.loadedKeys,v=t.loadingKeys,m=t.halfCheckedKeys,y=t.keyEntities,S=t.disabled,p=t.dragging,x=t.dragOverNodeKey,h=t.dropPosition,b=t.motion,E=t.height,R=t.itemHeight,$=t.virtual,A=t.focusable,V=t.activeItem,D=t.focused,B=t.tabIndex,O=t.onKeyDown,F=t.onFocus,I=t.onBlur,M=t.onActiveChange,re=t.onListChangeStart,z=t.onListChangeEnd,T=(0,je.Z)(t,ar),X=a.useRef(null),_=a.useRef(null);a.useImperativeHandle(e,function(){return{scrollTo:function(yt){X.current.scrollTo(yt)},getIndentWidth:function(){return _.current.offsetWidth}}});var we=a.useState(i),te=(0,Ne.Z)(we,2),N=te[0],G=te[1],ae=a.useState(n),se=(0,Ne.Z)(ae,2),ve=se[0],de=se[1],he=a.useState(n),oe=(0,Ne.Z)(he,2),ue=oe[0],Ae=oe[1],Ve=a.useState([]),ot=(0,Ne.Z)(Ve,2),Xt=ot[0],dt=ot[1],Ft=a.useState(null),rn=(0,Ne.Z)(Ft,2),Mn=rn[0],xe=rn[1],Y=a.useRef(n);Y.current=n;function me(){var nt=Y.current;de(nt),Ae(nt),dt([]),xe(null),z()}(0,Qr.Z)(function(){G(i);var nt=$n(N,i);if(nt.key!==null)if(nt.add){var yt=ve.findIndex(function(lo){var Fr=lo.key;return Fr===nt.key}),Nn=So(er(ve,n,nt.key),$,E,R),fn=ve.slice();fn.splice(yt+1,0,qr),Ae(fn),dt(Nn),xe("show")}else{var vr=n.findIndex(function(lo){var Fr=lo.key;return Fr===nt.key}),Zn=So(er(n,ve,nt.key),$,E,R),ao=n.slice();ao.splice(vr+1,0,qr),Ae(ao),dt(Zn),xe("hide")}else ve!==n&&(de(n),Ae(n))},[i,n]),a.useEffect(function(){p||me()},[p]);var Ye=b?ue:n,ht={expandedKeys:i,selectedKeys:l,loadedKeys:d,loadingKeys:v,checkedKeys:c,halfCheckedKeys:m,dragOverNodeKey:x,dropPosition:h,keyEntities:y};return a.createElement(a.Fragment,null,D&&V&&a.createElement("span",{style:zn,"aria-live":"assertive"},Zo(V)),a.createElement("div",null,a.createElement("input",{style:zn,disabled:A===!1||S,tabIndex:A!==!1?B:null,onKeyDown:O,onFocus:F,onBlur:I,value:"",onChange:jn,"aria-label":"for screen reader"})),a.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},a.createElement("div",{className:"".concat(r,"-indent")},a.createElement("div",{ref:_,className:"".concat(r,"-indent-unit")}))),a.createElement(po.Z,(0,We.Z)({},T,{data:Ye,itemKey:_r,height:E,fullHeight:!1,virtual:$,itemHeight:R,prefixCls:"".concat(r,"-list"),ref:X,onVisibleChange:function(yt,Nn){var fn=new Set(yt),vr=Nn.filter(function(Zn){return!fn.has(Zn)});vr.some(function(Zn){return _r(Zn)===tr})&&me()}}),function(nt){var yt=nt.pos,Nn=Object.assign({},((0,ta.Z)(nt.data),nt.data)),fn=nt.title,vr=nt.key,Zn=nt.isStart,ao=nt.isEnd,lo=(0,fe.km)(vr,yt);delete Nn.key,delete Nn.children;var Fr=(0,fe.H8)(lo,ht);return a.createElement(_n,(0,We.Z)({},Nn,Fr,{title:fn,active:!!V&&vr===V.key,pos:yt,data:nt.data,isStart:Zn,isEnd:ao,motion:b,motionNodes:vr===tr?Xt:null,motionType:Mn,onMotionStart:re,onMotionEnd:me,treeNodeRequiredProps:ht,onMouseMove:function(){M(null)}}))}))});Ko.displayName="NodeList";var Mo=Ko,pn=f(29873),Do=f(97153),go=f(3596),na=10,Vo=function(t){(0,Cr.Z)(r,t);var e=(0,mo.Z)(r);function r(){var n;(0,xo.Z)(this,r);for(var o=arguments.length,s=new Array(o),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,m=n.state,y=m.dragChildrenKeys,S=m.dropPosition,p=m.dropTargetKey,x=m.dropTargetPos,h=m.dropAllowed;if(h){var b=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),p!==null){var E=(0,u.Z)((0,u.Z)({},(0,fe.H8)(p,n.getTreeNodeRequiredProps())),{},{active:((d=n.getActiveItem())===null||d===void 0?void 0:d.key)===p,data:(0,go.Z)(n.state.keyEntities,p).node}),R=y.indexOf(p)!==-1;(0,Te.ZP)(!R,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var $=(0,pn.yx)(x),A={event:l,node:(0,fe.F)(E),dragNode:n.dragNode?(0,fe.F)(n.dragNode.props):null,dragNodesKeys:[n.dragNode.props.eventKey].concat(y),dropToGap:S!==0,dropPosition:S+Number($[$.length-1])};v||b==null||b(A),n.dragNode=null}}}),(0,P.Z)((0,ct.Z)(n),"cleanDragState",function(){var l=n.state.draggingNodeKey;l!==null&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null}),(0,P.Z)((0,ct.Z)(n),"triggerExpandActionExpand",function(l,c){var d=n.state,v=d.expandedKeys,m=d.flattenNodes,y=c.expanded,S=c.key,p=c.isLeaf;if(!(p||l.shiftKey||l.metaKey||l.ctrlKey)){var x=m.filter(function(b){return b.key===S})[0],h=(0,fe.F)((0,u.Z)((0,u.Z)({},(0,fe.H8)(S,n.getTreeNodeRequiredProps())),{},{data:x.data}));n.setExpandedKeys(y?(0,pn._5)(v,S):(0,pn.L0)(v,S)),n.onNodeExpand(l,h)}}),(0,P.Z)((0,ct.Z)(n),"onNodeClick",function(l,c){var d=n.props,v=d.onClick,m=d.expandAction;m==="click"&&n.triggerExpandActionExpand(l,c),v==null||v(l,c)}),(0,P.Z)((0,ct.Z)(n),"onNodeDoubleClick",function(l,c){var d=n.props,v=d.onDoubleClick,m=d.expandAction;m==="doubleClick"&&n.triggerExpandActionExpand(l,c),v==null||v(l,c)}),(0,P.Z)((0,ct.Z)(n),"onNodeSelect",function(l,c){var d=n.state.selectedKeys,v=n.state,m=v.keyEntities,y=v.fieldNames,S=n.props,p=S.onSelect,x=S.multiple,h=c.selected,b=c[y.key],E=!h;E?x?d=(0,pn.L0)(d,b):d=[b]:d=(0,pn._5)(d,b);var R=d.map(function($){var A=(0,go.Z)(m,$);return A?A.node:null}).filter(function($){return $});n.setUncontrolledState({selectedKeys:d}),p==null||p(d,{event:"select",selected:E,node:c,selectedNodes:R,nativeEvent:l.nativeEvent})}),(0,P.Z)((0,ct.Z)(n),"onNodeCheck",function(l,c,d){var v=n.state,m=v.keyEntities,y=v.checkedKeys,S=v.halfCheckedKeys,p=n.props,x=p.checkStrictly,h=p.onCheck,b=c.key,E,R={event:"check",node:c,checked:d,nativeEvent:l.nativeEvent};if(x){var $=d?(0,pn.L0)(y,b):(0,pn._5)(y,b),A=(0,pn._5)(S,b);E={checked:$,halfChecked:A},R.checkedNodes=$.map(function(I){return(0,go.Z)(m,I)}).filter(function(I){return I}).map(function(I){return I.node}),n.setUncontrolledState({checkedKeys:$})}else{var V=(0,Do.S)([].concat((0,g.Z)(y),[b]),!0,m),D=V.checkedKeys,B=V.halfCheckedKeys;if(!d){var O=new Set(D);O.delete(b);var F=(0,Do.S)(Array.from(O),{checked:!1,halfCheckedKeys:B},m);D=F.checkedKeys,B=F.halfCheckedKeys}E=D,R.checkedNodes=[],R.checkedNodesPositions=[],R.halfCheckedKeys=B,D.forEach(function(I){var M=(0,go.Z)(m,I);if(M){var re=M.node,z=M.pos;R.checkedNodes.push(re),R.checkedNodesPositions.push({node:re,pos:z})}}),n.setUncontrolledState({checkedKeys:D},!1,{halfCheckedKeys:B})}h==null||h(E,R)}),(0,P.Z)((0,ct.Z)(n),"onNodeLoad",function(l){var c=l.key,d=new Promise(function(v,m){n.setState(function(y){var S=y.loadedKeys,p=S===void 0?[]:S,x=y.loadingKeys,h=x===void 0?[]:x,b=n.props,E=b.loadData,R=b.onLoad;if(!E||p.indexOf(c)!==-1||h.indexOf(c)!==-1)return null;var $=E(l);return $.then(function(){var A=n.state.loadedKeys,V=(0,pn.L0)(A,c);R==null||R(V,{event:"load",node:l}),n.setUncontrolledState({loadedKeys:V}),n.setState(function(D){return{loadingKeys:(0,pn._5)(D.loadingKeys,c)}}),v()}).catch(function(A){if(n.setState(function(D){return{loadingKeys:(0,pn._5)(D.loadingKeys,c)}}),n.loadingRetryTimes[c]=(n.loadingRetryTimes[c]||0)+1,n.loadingRetryTimes[c]>=na){var V=n.state.loadedKeys;(0,Te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:(0,pn.L0)(V,c)}),v()}m(A)}),{loadingKeys:(0,pn.L0)(h,c)}})});return d.catch(function(){}),d}),(0,P.Z)((0,ct.Z)(n),"onNodeMouseEnter",function(l,c){var d=n.props.onMouseEnter;d==null||d({event:l,node:c})}),(0,P.Z)((0,ct.Z)(n),"onNodeMouseLeave",function(l,c){var d=n.props.onMouseLeave;d==null||d({event:l,node:c})}),(0,P.Z)((0,ct.Z)(n),"onNodeContextMenu",function(l,c){var d=n.props.onRightClick;d&&(l.preventDefault(),d({event:l,node:c}))}),(0,P.Z)((0,ct.Z)(n),"onFocus",function(){var l=n.props.onFocus;n.setState({focused:!0});for(var c=arguments.length,d=new Array(c),v=0;v1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!n.destroyed){var v=!1,m=!0,y={};Object.keys(l).forEach(function(S){if(S in n.props){m=!1;return}v=!0,y[S]=l[S]}),v&&(!c||m)&&n.setState((0,u.Z)((0,u.Z)({},y),d))}}),(0,P.Z)((0,ct.Z)(n),"scrollTo",function(l){n.listRef.current.scrollTo(l)}),n}return(0,yr.Z)(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,s=o.activeKey,i=o.itemScrollOffset,l=i===void 0?0:i;s!==void 0&&s!==this.state.activeKey&&(this.setState({activeKey:s}),s!==null&&this.scrollTo({key:s,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,s=o.focused,i=o.flattenNodes,l=o.keyEntities,c=o.draggingNodeKey,d=o.activeKey,v=o.dropLevelOffset,m=o.dropContainerKey,y=o.dropTargetKey,S=o.dropPosition,p=o.dragOverNodeKey,x=o.indent,h=this.props,b=h.prefixCls,E=h.className,R=h.style,$=h.showLine,A=h.focusable,V=h.tabIndex,D=V===void 0?0:V,B=h.selectable,O=h.showIcon,F=h.icon,I=h.switcherIcon,M=h.draggable,re=h.checkable,z=h.checkStrictly,T=h.disabled,X=h.motion,_=h.loadData,we=h.filterTreeNode,te=h.height,N=h.itemHeight,G=h.virtual,ae=h.titleRender,se=h.dropIndicatorRender,ve=h.onContextMenu,de=h.onScroll,he=h.direction,oe=h.rootClassName,ue=h.rootStyle,Ae=(0,Oo.Z)(this.props,{aria:!0,data:!0}),Ve;return M&&((0,st.Z)(M)==="object"?Ve=M:typeof M=="function"?Ve={nodeDraggable:M}:Ve={}),a.createElement(ea.k.Provider,{value:{prefixCls:b,selectable:B,showIcon:O,icon:F,switcherIcon:I,draggable:Ve,draggingNodeKey:c,checkable:re,checkStrictly:z,disabled:T,keyEntities:l,dropLevelOffset:v,dropContainerKey:m,dropTargetKey:y,dropPosition:S,dragOverNodeKey:p,indent:x,direction:he,dropIndicatorRender:se,loadData:_,filterTreeNode:we,titleRender:ae,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},a.createElement("div",{role:"tree",className:it()(b,E,oe,(0,P.Z)((0,P.Z)((0,P.Z)({},"".concat(b,"-show-line"),$),"".concat(b,"-focused"),s),"".concat(b,"-active-focused"),d!==null)),style:ue},a.createElement(Mo,(0,We.Z)({ref:this.listRef,prefixCls:b,style:R,data:i,disabled:T,selectable:B,checkable:!!re,motion:X,dragging:c!==null,height:te,itemHeight:N,virtual:G,focusable:A,focused:s,tabIndex:D,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ve,onScroll:de},this.getTreeNodeRequiredProps(),Ae))))}}],[{key:"getDerivedStateFromProps",value:function(o,s){var i=s.prevProps,l={prevProps:o};function c(V){return!i&&V in o||i&&i[V]!==o[V]}var d,v=s.fieldNames;if(c("fieldNames")&&(v=(0,fe.w$)(o.fieldNames),l.fieldNames=v),c("treeData")?d=o.treeData:c("children")&&((0,Te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),d=(0,fe.zn)(o.children)),d){l.treeData=d;var m=(0,fe.I8)(d,{fieldNames:v});l.keyEntities=(0,u.Z)((0,P.Z)({},tr,so),m.keyEntities)}var y=l.keyEntities||s.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!i&&o.defaultExpandParent?(0,pn.r7)(o.expandedKeys,y):o.expandedKeys;else if(!i&&o.defaultExpandAll){var S=(0,u.Z)({},y);delete S[tr],l.expandedKeys=Object.keys(S).map(function(V){return S[V].key})}else!i&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?(0,pn.r7)(o.defaultExpandedKeys,y):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,d||l.expandedKeys){var p=(0,fe.oH)(d||s.treeData,l.expandedKeys||s.expandedKeys,v);l.flattenNodes=p}if(o.selectable&&(c("selectedKeys")?l.selectedKeys=(0,pn.BT)(o.selectedKeys,o):!i&&o.defaultSelectedKeys&&(l.selectedKeys=(0,pn.BT)(o.defaultSelectedKeys,o))),o.checkable){var x;if(c("checkedKeys")?x=(0,pn.E6)(o.checkedKeys)||{}:!i&&o.defaultCheckedKeys?x=(0,pn.E6)(o.defaultCheckedKeys)||{}:d&&(x=(0,pn.E6)(o.checkedKeys)||{checkedKeys:s.checkedKeys,halfCheckedKeys:s.halfCheckedKeys}),x){var h=x,b=h.checkedKeys,E=b===void 0?[]:b,R=h.halfCheckedKeys,$=R===void 0?[]:R;if(!o.checkStrictly){var A=(0,Do.S)(E,!0,y);E=A.checkedKeys,$=A.halfCheckedKeys}l.checkedKeys=E,l.halfCheckedKeys=$}}return c("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),r}(a.Component);(0,P.Z)(Vo,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ha,allowDrop:function(){return!0},expandAction:!1}),(0,P.Z)(Vo,"TreeNode",Q.Z);var Z=Vo,H=Z,U=f(5309),k={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},W=k,ie=function(e,r){return a.createElement(Mr.Z,(0,We.Z)({},e,{ref:r,icon:W}))},Ze=a.forwardRef(ie),ye=Ze,be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},$e=be,Be=function(e,r){return a.createElement(Mr.Z,(0,We.Z)({},e,{ref:r,icon:$e}))},Pe=a.forwardRef(Be),Me=Pe,De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Qe=De,ft=function(e,r){return a.createElement(Mr.Z,(0,We.Z)({},e,{ref:r,icon:Qe}))},pt=a.forwardRef(ft),wt=pt,Nt=f(33603),Pt=f(32157);const Kt=4;function Mt(t){const{dropPosition:e,dropLevelOffset:r,prefixCls:n,indent:o,direction:s="ltr"}=t,i=s==="ltr"?"left":"right",l=s==="ltr"?"right":"left",c={[i]:-r*o+Kt,[l]:0};switch(e){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=o+Kt;break}return a.createElement("div",{style:c,className:`${n}-drop-indicator`})}var nn=f(77632),ln=a.forwardRef((t,e)=>{var r;const{getPrefixCls:n,direction:o,virtual:s,tree:i}=a.useContext(Gt.E_),{prefixCls:l,className:c,showIcon:d=!1,showLine:v,switcherIcon:m,blockNode:y=!1,children:S,checkable:p=!1,selectable:x=!0,draggable:h,motion:b,style:E}=t,R=n("tree",l),$=n(),A=b!=null?b:Object.assign(Object.assign({},(0,Nt.Z)($)),{motionAppear:!1}),V=Object.assign(Object.assign({},t),{checkable:p,selectable:x,showIcon:d,motion:A,blockNode:y,showLine:!!v,dropIndicatorRender:Mt}),[D,B,O]=(0,Pt.ZP)(R),[,F]=(0,Co.ZP)(),I=F.paddingXS/2+(((r=F.Tree)===null||r===void 0?void 0:r.titleHeight)||F.controlHeightSM),M=a.useMemo(()=>{if(!h)return!1;let z={};switch(typeof h){case"function":z.nodeDraggable=h;break;case"object":z=Object.assign({},h);break;default:break}return z.icon!==!1&&(z.icon=z.icon||a.createElement(wt,null)),z},[h]),re=z=>a.createElement(nn.Z,{prefixCls:R,switcherIcon:m,treeNodeProps:z,showLine:v});return D(a.createElement(H,Object.assign({itemHeight:I,ref:e,virtual:s},V,{style:Object.assign(Object.assign({},i==null?void 0:i.style),E),prefixCls:R,className:it()({[`${R}-icon-hide`]:!d,[`${R}-block-node`]:y,[`${R}-unselectable`]:!x,[`${R}-rtl`]:o==="rtl"},i==null?void 0:i.className,c,B,O),direction:o,checkable:p&&a.createElement("span",{className:`${R}-checkbox-inner`}),selectable:x,switcherIcon:re,draggable:M}),S))}),$t;(function(t){t[t.None=0]="None",t[t.Start=1]="Start",t[t.End=2]="End"})($t||($t={}));function sn(t,e,r){const{key:n,children:o}=r;function s(i){const l=i[n],c=i[o];e(l,i)!==!1&&sn(c||[],e,r)}t.forEach(s)}function Pn(t){let{treeData:e,expandedKeys:r,startKey:n,endKey:o,fieldNames:s}=t;const i=[];let l=$t.None;if(n&&n===o)return[n];if(!n||!o)return[];function c(d){return d===n||d===o}return sn(e,d=>{if(l===$t.End)return!1;if(c(d)){if(i.push(d),l===$t.None)l=$t.Start;else if(l===$t.Start)return l=$t.End,!1}else l===$t.Start&&i.push(d);return r.includes(d)},(0,fe.w$)(s)),i}function cn(t,e,r){const n=(0,g.Z)(e),o=[];return sn(t,(s,i)=>{const l=n.indexOf(s);return l!==-1&&(o.push(i),n.splice(l,1)),!!n.length},(0,fe.w$)(r)),o}var Ot=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o{var{defaultExpandAll:r,defaultExpandParent:n,defaultExpandedKeys:o}=t,s=Ot(t,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=a.useRef(),l=a.useRef(),c=()=>{const{keyEntities:B}=(0,fe.I8)(Dt(s));let O;return r?O=Object.keys(B):n?O=(0,pn.r7)(s.expandedKeys||o||[],B):O=s.expandedKeys||o||[],O},[d,v]=a.useState(s.selectedKeys||s.defaultSelectedKeys||[]),[m,y]=a.useState(()=>c());a.useEffect(()=>{"selectedKeys"in s&&v(s.selectedKeys)},[s.selectedKeys]),a.useEffect(()=>{"expandedKeys"in s&&y(s.expandedKeys)},[s.expandedKeys]);const S=(B,O)=>{var F;return"expandedKeys"in s||y(B),(F=s.onExpand)===null||F===void 0?void 0:F.call(s,B,O)},p=(B,O)=>{var F;const{multiple:I,fieldNames:M}=s,{node:re,nativeEvent:z}=O,{key:T=""}=re,X=Dt(s),_=Object.assign(Object.assign({},O),{selected:!0}),we=(z==null?void 0:z.ctrlKey)||(z==null?void 0:z.metaKey),te=z==null?void 0:z.shiftKey;let N;I&&we?(N=B,i.current=T,l.current=N,_.selectedNodes=cn(X,N,M)):I&&te?(N=Array.from(new Set([].concat((0,g.Z)(l.current||[]),(0,g.Z)(Pn({treeData:X,expandedKeys:m,startKey:T,endKey:i.current,fieldNames:M}))))),_.selectedNodes=cn(X,N,M)):(N=[T],i.current=T,l.current=N,_.selectedNodes=cn(X,N,M)),(F=s.onSelect)===null||F===void 0||F.call(s,N,_),"selectedKeys"in s||v(N)},{getPrefixCls:x,direction:h}=a.useContext(Gt.E_),{prefixCls:b,className:E,showIcon:R=!0,expandAction:$="click"}=s,A=Ot(s,["prefixCls","className","showIcon","expandAction"]),V=x("tree",b),D=it()(`${V}-directory`,{[`${V}-directory-rtl`]:h==="rtl"},E);return a.createElement(ln,Object.assign({icon:Je,ref:e,blockNode:!0},A,{showIcon:R,expandAction:$,prefixCls:V,className:D,expandedKeys:m,selectedKeys:d,onSelect:p,onExpand:S}))};var vt=a.forwardRef(Rt);const Ut=ln;Ut.DirectoryTree=vt,Ut.TreeNode=Q.Z;var Cn=Ut,gn=f(25783),nr=f(96365);function Dr(t){let{value:e,onChange:r,filterSearch:n,tablePrefixCls:o,locale:s}=t;return n?a.createElement("div",{className:`${o}-filter-dropdown-search`},a.createElement(nr.Z,{prefix:a.createElement(gn.Z,null),placeholder:s.filterSearchPlaceholder,onChange:r,value:e,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}var zr=Dr;const br=t=>{const{keyCode:e}=t;e===Fn.Z.ENTER&&t.stopPropagation()};var Lr=a.forwardRef((t,e)=>a.createElement("div",{className:t.className,onClick:r=>r.stopPropagation(),onKeyDown:br,ref:e},t.children));function lr(t){let e=[];return(t||[]).forEach(r=>{let{value:n,children:o}=r;e.push(n),o&&(e=[].concat((0,g.Z)(e),(0,g.Z)(lr(o))))}),e}function xr(t){return t.some(e=>{let{children:r}=e;return r})}function On(t,e){return typeof e=="string"||typeof e=="number"?e==null?void 0:e.toString().toLowerCase().includes(t.trim().toLowerCase()):!1}function en(t){let{filters:e,prefixCls:r,filteredKeys:n,filterMultiple:o,searchValue:s,filterSearch:i}=t;return e.map((l,c)=>{const d=String(l.value);if(l.children)return{key:d||c,label:l.text,popupClassName:`${r}-dropdown-submenu`,children:en({filters:l.children,prefixCls:r,filteredKeys:n,filterMultiple:o,searchValue:s,filterSearch:i})};const v=o?gr.Z:bo.ZP,m={key:l.value!==void 0?d:c,label:a.createElement(a.Fragment,null,a.createElement(v,{checked:n.includes(d)}),a.createElement("span",null,l.text))};return s.trim()?typeof i=="function"?i(s,l)?m:null:On(s,l.text)?m:null:m})}function bn(t){return t||[]}function Kn(t){var e,r;const{tablePrefixCls:n,prefixCls:o,column:s,dropdownPrefixCls:i,columnKey:l,filterOnClose:c,filterMultiple:d,filterMode:v="menu",filterSearch:m=!1,filterState:y,triggerFilter:S,locale:p,children:x,getPopupContainer:h,rootClassName:b}=t,{filterDropdownOpen:E,onFilterDropdownOpenChange:R,filterResetToDefaultFilteredValue:$,defaultFilteredValue:A,filterDropdownVisible:V,onFilterDropdownVisibleChange:D}=s,[B,O]=a.useState(!1),F=!!(y&&(!((e=y.filteredKeys)===null||e===void 0)&&e.length||y.forceFiltered)),I=xe=>{O(xe),R==null||R(xe),D==null||D(xe)},M=(r=E!=null?E:V)!==null&&r!==void 0?r:B,re=y==null?void 0:y.filteredKeys,[z,T]=Tn(bn(re)),X=xe=>{let{selectedKeys:Y}=xe;T(Y)},_=(xe,Y)=>{let{node:me,checked:Ye}=Y;X(d?{selectedKeys:xe}:{selectedKeys:Ye&&me.key?[me.key]:[]})};a.useEffect(()=>{B&&X({selectedKeys:bn(re)})},[re]);const[we,te]=a.useState([]),N=xe=>{te(xe)},[G,ae]=a.useState(""),se=xe=>{const{value:Y}=xe.target;ae(Y)};a.useEffect(()=>{B||ae("")},[B]);const ve=xe=>{const Y=xe&&xe.length?xe:null;if(Y===null&&(!y||!y.filteredKeys)||(0,qn.Z)(Y,y==null?void 0:y.filteredKeys,!0))return null;S({column:s,key:l,filteredKeys:Y})},de=()=>{I(!1),ve(z())},he=function(){let{confirm:xe,closeDropdown:Y}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};xe&&ve([]),Y&&I(!1),ae(""),T($?(A||[]).map(me=>String(me)):[])},oe=function(){let{closeDropdown:xe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};xe&&I(!1),ve(z())},ue=(xe,Y)=>{Y.source==="trigger"&&(xe&&re!==void 0&&T(bn(re)),I(xe),!xe&&!s.filterDropdown&&c&&de())},Ae=it()({[`${i}-menu-without-submenu`]:!xr(s.filters||[])}),Ve=xe=>{if(xe.target.checked){const Y=lr(s==null?void 0:s.filters).map(me=>String(me));T(Y)}else T([])},ot=xe=>{let{filters:Y}=xe;return(Y||[]).map((me,Ye)=>{const ht=String(me.value),nt={title:me.text,key:me.value!==void 0?ht:String(Ye)};return me.children&&(nt.children=ot({filters:me.children})),nt})},Xt=xe=>{var Y;return Object.assign(Object.assign({},xe),{text:xe.title,value:xe.key,children:((Y=xe.children)===null||Y===void 0?void 0:Y.map(me=>Xt(me)))||[]})};let dt;if(typeof s.filterDropdown=="function")dt=s.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:xe=>X({selectedKeys:xe}),selectedKeys:z(),confirm:oe,clearFilters:he,filters:s.filters,visible:M,close:()=>{I(!1)}});else if(s.filterDropdown)dt=s.filterDropdown;else{const xe=z()||[],Y=()=>(s.filters||[]).length===0?a.createElement(Jr.Z,{image:Jr.Z.PRESENTED_IMAGE_SIMPLE,description:p.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):v==="tree"?a.createElement(a.Fragment,null,a.createElement(zr,{filterSearch:m,value:G,onChange:se,tablePrefixCls:n,locale:p}),a.createElement("div",{className:`${n}-filter-dropdown-tree`},d?a.createElement(gr.Z,{checked:xe.length===lr(s.filters).length,indeterminate:xe.length>0&&xe.lengthtypeof m=="function"?m(G,Xt(Ye)):On(G,Ye.title):void 0}))):a.createElement(a.Fragment,null,a.createElement(zr,{filterSearch:m,value:G,onChange:se,tablePrefixCls:n,locale:p}),a.createElement(Tr.Z,{selectable:!0,multiple:d,prefixCls:`${i}-menu`,className:Ae,onSelect:X,onDeselect:X,selectedKeys:xe,getPopupContainer:h,openKeys:we,onOpenChange:N,items:en({filters:s.filters||[],filterSearch:m,prefixCls:o,filteredKeys:z(),filterMultiple:d,searchValue:G})})),me=()=>$?(0,qn.Z)((A||[]).map(Ye=>String(Ye)),xe,!0):xe.length===0;dt=a.createElement(a.Fragment,null,Y(),a.createElement("div",{className:`${o}-dropdown-btns`},a.createElement(Gn.ZP,{type:"link",size:"small",disabled:me(),onClick:()=>he()},p.filterReset),a.createElement(Gn.ZP,{type:"primary",size:"small",onClick:de},p.filterConfirm)))}s.filterDropdown&&(dt=a.createElement(Wo.J,{selectable:void 0},dt));const Ft=()=>a.createElement(Lr,{className:`${o}-dropdown`},dt);let rn;typeof s.filterIcon=="function"?rn=s.filterIcon(F):s.filterIcon?rn=s.filterIcon:rn=a.createElement(wn,null);const{direction:Mn}=a.useContext(Gt.E_);return a.createElement("div",{className:`${o}-column`},a.createElement("span",{className:`${n}-column-title`},x),a.createElement(hr.Z,{dropdownRender:Ft,trigger:["click"],open:M,onOpenChange:ue,getPopupContainer:h,placement:Mn==="rtl"?"bottomLeft":"bottomRight",rootClassName:b},a.createElement("span",{role:"button",tabIndex:-1,className:it()(`${o}-trigger`,{active:F}),onClick:xe=>{xe.stopPropagation()}},rn)))}var xn=Kn;function Sn(t,e,r){let n=[];return(t||[]).forEach((o,s)=>{var i;const l=Un(s,r);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let c=o.filteredValue;"filterDropdown"in o||(c=(i=c==null?void 0:c.map(String))!==null&&i!==void 0?i:c),n.push({column:o,key:Kr(o,l),filteredKeys:c,forceFiltered:o.filtered})}else n.push({column:o,key:Kr(o,l),filteredKeys:e&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(n=[].concat((0,g.Z)(n),(0,g.Z)(Sn(o.children,e,l))))}),n}function Pr(t,e,r,n,o,s,i,l,c){return r.map((d,v)=>{const m=Un(v,l),{filterOnClose:y=!0,filterMultiple:S=!0,filterMode:p,filterSearch:x}=d;let h=d;if(h.filters||h.filterDropdown){const b=Kr(h,m),E=n.find(R=>{let{key:$}=R;return b===$});h=Object.assign(Object.assign({},h),{title:R=>a.createElement(xn,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:e,column:h,columnKey:b,filterState:E,filterOnClose:y,filterMultiple:S,filterMode:p,filterSearch:x,triggerFilter:s,locale:o,getPopupContainer:i,rootClassName:c},jr(d.title,R))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:Pr(t,e,h.children,n,o,s,i,m,c)})),h})}function Br(t){const e={};return t.forEach(r=>{let{key:n,filteredKeys:o,column:s}=r;const i=n,{filters:l,filterDropdown:c}=s;if(c)e[i]=o||null;else if(Array.isArray(o)){const d=lr(l);e[i]=d.filter(v=>o.includes(String(v)))}else e[i]=null}),e}function Hr(t,e,r){return e.reduce((n,o)=>{const{column:{onFilter:s,filters:i},filteredKeys:l}=o;return s&&l&&l.length?n.map(c=>Object.assign({},c)).filter(c=>l.some(d=>{const v=lr(i),m=v.findIndex(S=>String(S)===String(d)),y=m!==-1?v[m]:d;return c[r]&&(c[r]=Hr(c[r],e,r)),s(y,c)})):n},t)}const eo=t=>t.flatMap(e=>"children"in e?[e].concat((0,g.Z)(eo(e.children||[]))):[e]);function hn(t){let{prefixCls:e,dropdownPrefixCls:r,mergedColumns:n,onFilterChange:o,getPopupContainer:s,locale:i,rootClassName:l}=t;const c=(0,$o.ln)("Table"),d=a.useMemo(()=>eo(n||[]),[n]),[v,m]=a.useState(()=>Sn(d,!0)),y=a.useMemo(()=>{const h=Sn(d,!1);if(h.length===0)return h;let b=!0,E=!0;if(h.forEach(R=>{let{filteredKeys:$}=R;$!==void 0?b=!1:E=!1}),b){const R=(d||[]).map(($,A)=>Kr($,Un(A)));return v.filter($=>{let{key:A}=$;return R.includes(A)}).map($=>{const A=d[R.findIndex(V=>V===$.key)];return Object.assign(Object.assign({},$),{column:Object.assign(Object.assign({},$.column),A),forceFiltered:A.filtered})})}return h},[d,v]),S=a.useMemo(()=>Br(y),[y]),p=h=>{const b=y.filter(E=>{let{key:R}=E;return R!==h.key});b.push(h),m(b),o(Br(b),b)};return[h=>Pr(e,r,h,y,i,p,s,void 0,l),y,S]}var Eo=hn,Nr=f(58448),Wr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},to=Wr,wo=function(e,r){return a.createElement(Mr.Z,(0,We.Z)({},e,{ref:r,icon:to}))},Ca=a.forwardRef(wo),fr=Ca,Fa={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},ja=Fa,bl=function(e,r){return a.createElement(Mr.Z,(0,We.Z)({},e,{ref:r,icon:ja}))},La=a.forwardRef(bl),xl=La,Sr=f(83062);const ra="ascend",oa="descend";function aa(t){return typeof t.sorter=="object"&&typeof t.sorter.multiple=="number"?t.sorter.multiple:!1}function Uo(t){return typeof t=="function"?t:t&&typeof t=="object"&&t.compare?t.compare:!1}function Sl(t,e){return e?t[t.indexOf(e)+1]:t[0]}function la(t,e,r){let n=[];function o(s,i){n.push({column:s,key:Kr(s,i),multiplePriority:aa(s),sortOrder:s.sortOrder})}return(t||[]).forEach((s,i)=>{const l=Un(i,r);s.children?("sortOrder"in s&&o(s,l),n=[].concat((0,g.Z)(n),(0,g.Z)(la(s.children,e,l)))):s.sorter&&("sortOrder"in s?o(s,l):e&&s.defaultSortOrder&&n.push({column:s,key:Kr(s,l),multiplePriority:aa(s),sortOrder:s.defaultSortOrder}))}),n}function Ba(t,e,r,n,o,s,i,l){return(e||[]).map((c,d)=>{const v=Un(d,l);let m=c;if(m.sorter){const y=m.sortDirections||o,S=m.showSorterTooltip===void 0?i:m.showSorterTooltip,p=Kr(m,v),x=r.find(B=>{let{key:O}=B;return O===p}),h=x?x.sortOrder:null,b=Sl(y,h);let E;if(c.sortIcon)E=c.sortIcon({sortOrder:h});else{const B=y.includes(ra)&&a.createElement(xl,{className:it()(`${t}-column-sorter-up`,{active:h===ra})}),O=y.includes(oa)&&a.createElement(fr,{className:it()(`${t}-column-sorter-down`,{active:h===oa})});E=a.createElement("span",{className:it()(`${t}-column-sorter`,{[`${t}-column-sorter-full`]:!!(B&&O)})},a.createElement("span",{className:`${t}-column-sorter-inner`,"aria-hidden":"true"},B,O))}const{cancelSort:R,triggerAsc:$,triggerDesc:A}=s||{};let V=R;b===oa?V=A:b===ra&&(V=$);const D=typeof S=="object"?Object.assign({title:V},S):{title:V};m=Object.assign(Object.assign({},m),{className:it()(m.className,{[`${t}-column-sort`]:h}),title:B=>{const O=a.createElement("div",{className:`${t}-column-sorters`},a.createElement("span",{className:`${t}-column-title`},jr(c.title,B)),E);return S?a.createElement(Sr.Z,Object.assign({},D),O):O},onHeaderCell:B=>{const O=c.onHeaderCell&&c.onHeaderCell(B)||{},F=O.onClick,I=O.onKeyDown;O.onClick=z=>{n({column:c,key:p,sortOrder:b,multiplePriority:aa(c)}),F==null||F(z)},O.onKeyDown=z=>{z.keyCode===Fn.Z.ENTER&&(n({column:c,key:p,sortOrder:b,multiplePriority:aa(c)}),I==null||I(z))};const M=Yr(c.title,{}),re=M==null?void 0:M.toString();return h?O["aria-sort"]=h==="ascend"?"ascending":"descending":O["aria-label"]=re||"",O.className=it()(O.className,`${t}-column-has-sorters`),O.tabIndex=0,c.ellipsis&&(O.title=(M!=null?M:"").toString()),O}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:Ba(t,m.children,r,n,o,s,i,v)})),m})}function ka(t){const{column:e,sortOrder:r}=t;return{column:e,order:r,field:e.dataIndex,columnKey:e.key}}function Aa(t){const e=t.filter(r=>{let{sortOrder:n}=r;return n}).map(ka);return e.length===0&&t.length?Object.assign(Object.assign({},ka(t[t.length-1])),{column:void 0}):e.length<=1?e[0]||{}:e}function ia(t,e,r){const n=e.slice().sort((i,l)=>l.multiplePriority-i.multiplePriority),o=t.slice(),s=n.filter(i=>{let{column:{sorter:l},sortOrder:c}=i;return Uo(l)&&c});return s.length?o.sort((i,l)=>{for(let c=0;c{const l=i[r];return l?Object.assign(Object.assign({},i),{[r]:ia(l,e,r)}):i}):o}function za(t){let{prefixCls:e,mergedColumns:r,onSorterChange:n,sortDirections:o,tableLocale:s,showSorterTooltip:i}=t;const[l,c]=a.useState(la(r,!0)),d=a.useMemo(()=>{let p=!0;const x=la(r,!1);if(!x.length)return l;const h=[];function b(R){p?h.push(R):h.push(Object.assign(Object.assign({},R),{sortOrder:null}))}let E=null;return x.forEach(R=>{E===null?(b(R),R.sortOrder&&(R.multiplePriority===!1?p=!1:E=!0)):(E&&R.multiplePriority!==!1||(p=!1),b(R))}),h},[r,l]),v=a.useMemo(()=>{const p=d.map(x=>{let{column:h,sortOrder:b}=x;return{column:h,order:b}});return{sortColumns:p,sortColumn:p[0]&&p[0].column,sortOrder:p[0]&&p[0].order}},[d]);function m(p){let x;p.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?x=[p]:x=[].concat((0,g.Z)(d.filter(h=>{let{key:b}=h;return b!==p.key})),[p]),c(x),n(Aa(x),x)}return[p=>Ba(e,p,d,m,o,s,i),d,v,()=>Aa(d)]}function Xo(t,e){return t.map(r=>{const n=Object.assign({},r);return n.title=jr(r.title,e),"children"in n&&(n.children=Xo(n.children,e)),n})}function Vr(t){return[a.useCallback(r=>Xo(r,t),[t])]}var no=(0,tn.Q$)((t,e)=>{const{_renderTimes:r}=t,{_renderTimes:n}=e;return r!==n}),Fo=(0,tn.TN)((t,e)=>{const{_renderTimes:r}=t,{_renderTimes:n}=e;return r!==n}),Fe=f(87107),ro=f(10274),$r=f(14747),ba=f(91945),Ha=f(45503),Zl=t=>{const{componentCls:e,lineWidth:r,lineType:n,tableBorderColor:o,tableHeaderBg:s,tablePaddingVertical:i,tablePaddingHorizontal:l,calc:c}=t,d=`${(0,Fe.bf)(r)} ${n} ${o}`,v=(m,y,S)=>({[`&${e}-${m}`]:{[`> ${e}-container`]:{[`> ${e}-content, > ${e}-body`]:{[` - > table > tbody > tr > th, - > table > tbody > tr > td - `]:{[`> ${e}-expanded-row-fixed`]:{margin:`${(0,Fe.bf)(c(y).mul(-1).equal())} - ${(0,Fe.bf)(c(c(S).add(r)).mul(-1).equal())}`}}}}}});return{[`${e}-wrapper`]:{[`${e}${e}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${e}-title`]:{border:d,borderBottom:0},[`> ${e}-container`]:{borderInlineStart:d,borderTop:d,[` - > ${e}-content, - > ${e}-header, - > ${e}-body, - > ${e}-summary - `]:{"> table":{[` - > thead > tr > th, - > thead > tr > td, - > tbody > tr > th, - > tbody > tr > td, - > tfoot > tr > th, - > tfoot > tr > td - `]:{borderInlineEnd:d},"> thead":{"> tr:not(:last-child) > th":{borderBottom:d},"> tr > th::before":{backgroundColor:"transparent !important"}},[` - > thead > tr, - > tbody > tr, - > tfoot > tr - `]:{[`> ${e}-cell-fix-right-first::after`]:{borderInlineEnd:d}},[` - > tbody > tr > th, - > tbody > tr > td - `]:{[`> ${e}-expanded-row-fixed`]:{margin:`${(0,Fe.bf)(c(i).mul(-1).equal())} ${(0,Fe.bf)(c(c(l).add(r)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:r,bottom:0,borderInlineEnd:d,content:'""'}}}}}},[`&${e}-scroll-horizontal`]:{[`> ${e}-container > ${e}-body`]:{"> table > tbody":{[` - > tr${e}-expanded-row, - > tr${e}-placeholder - `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},v("middle",t.tablePaddingVerticalMiddle,t.tablePaddingHorizontalMiddle)),v("small",t.tablePaddingVerticalSmall,t.tablePaddingHorizontalSmall)),{[`> ${e}-footer`]:{border:d,borderTop:0}}),[`${e}-cell`]:{[`${e}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,Fe.bf)(r)} 0 ${(0,Fe.bf)(r)} ${s}`}},[`${e}-bordered ${e}-cell-scrollbar`]:{borderInlineEnd:d}}}},Ur=t=>{const{componentCls:e}=t;return{[`${e}-wrapper`]:{[`${e}-cell-ellipsis`]:Object.assign(Object.assign({},$r.vS),{wordBreak:"keep-all",[` - &${e}-cell-fix-left-last, - &${e}-cell-fix-right-first - `]:{overflow:"visible",[`${e}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${e}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},xa=t=>{const{componentCls:e}=t;return{[`${e}-wrapper`]:{[`${e}-tbody > tr${e}-placeholder`]:{textAlign:"center",color:t.colorTextDisabled,[` - &:hover > th, - &:hover > td, - `]:{background:t.colorBgContainer}}}}};const jo=t=>({color:t.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"&:focus, &:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive}});var Va=t=>{const{componentCls:e,antCls:r,motionDurationSlow:n,lineWidth:o,paddingXS:s,lineType:i,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:d,borderRadius:v,tablePaddingVertical:m,tablePaddingHorizontal:y,tableExpandedRowBg:S,paddingXXS:p,expandIconMarginTop:x,expandIconSize:h,expandIconHalfInner:b,expandIconScale:E,calc:R}=t,$=`${(0,Fe.bf)(o)} ${i} ${l}`,A=R(p).sub(o).equal();return{[`${e}-wrapper`]:{[`${e}-expand-icon-col`]:{width:d},[`${e}-row-expand-icon-cell`]:{textAlign:"center",[`${e}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${e}-row-indent`]:{height:1,float:"left"},[`${e}-row-expand-icon`]:Object.assign(Object.assign({},jo(t)),{position:"relative",float:"left",boxSizing:"border-box",width:h,height:h,padding:0,color:"inherit",lineHeight:(0,Fe.bf)(h),background:c,border:$,borderRadius:v,transform:`scale(${E})`,transition:`all ${n}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${n} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:A,insetInlineStart:A,height:o},"&::after":{top:A,bottom:A,insetInlineStart:b,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${e}-row-indent + ${e}-row-expand-icon`]:{marginTop:x,marginInlineEnd:s},[`tr${e}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:S}},[`${r}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${e}-expanded-row-fixed`]:{position:"relative",margin:`${(0,Fe.bf)(R(m).mul(-1).equal())} ${(0,Fe.bf)(R(y).mul(-1).equal())}`,padding:`${(0,Fe.bf)(m)} ${(0,Fe.bf)(y)}`}}}},Ua=t=>{const{componentCls:e,antCls:r,iconCls:n,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:s,paddingXXS:i,paddingXS:l,colorText:c,lineWidth:d,lineType:v,tableBorderColor:m,headerIconColor:y,fontSizeSM:S,tablePaddingHorizontal:p,borderRadius:x,motionDurationSlow:h,colorTextDescription:b,colorPrimary:E,tableHeaderFilterActiveBg:R,colorTextDisabled:$,tableFilterDropdownBg:A,tableFilterDropdownHeight:V,controlItemBgHover:D,controlItemBgActive:B,boxShadowSecondary:O,filterDropdownMenuBg:F,calc:I}=t,M=`${r}-dropdown`,re=`${e}-filter-dropdown`,z=`${r}-tree`,T=`${(0,Fe.bf)(d)} ${v} ${m}`;return[{[`${e}-wrapper`]:{[`${e}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${e}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:I(i).mul(-1).equal(),marginInline:`${(0,Fe.bf)(i)} ${(0,Fe.bf)(I(p).div(2).mul(-1).equal())}`,padding:`0 ${(0,Fe.bf)(i)}`,color:y,fontSize:S,borderRadius:x,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:b,background:R},"&.active":{color:E}}}},{[`${r}-dropdown`]:{[re]:Object.assign(Object.assign({},(0,$r.Wf)(t)),{minWidth:o,backgroundColor:A,borderRadius:x,boxShadow:O,overflow:"hidden",[`${M}-menu`]:{maxHeight:V,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:F,"&:empty::after":{display:"block",padding:`${(0,Fe.bf)(l)} 0`,color:$,fontSize:S,textAlign:"center",content:'"Not Found"'}},[`${re}-tree`]:{paddingBlock:`${(0,Fe.bf)(l)} 0`,paddingInline:l,[z]:{padding:0},[`${z}-treenode ${z}-node-content-wrapper:hover`]:{backgroundColor:D},[`${z}-treenode-checkbox-checked ${z}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:B}}},[`${re}-search`]:{padding:l,borderBottom:T,"&-input":{input:{minWidth:s},[n]:{color:$}}},[`${re}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${re}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,Fe.bf)(I(l).sub(d).equal())} ${(0,Fe.bf)(l)}`,overflow:"hidden",borderTop:T}})}},{[`${r}-dropdown ${re}, ${re}-submenu`]:{[`${r}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Xa=t=>{const{componentCls:e,lineWidth:r,colorSplit:n,motionDurationSlow:o,zIndexTableFixed:s,tableBg:i,zIndexTableSticky:l,calc:c}=t,d=n;return{[`${e}-wrapper`]:{[` - ${e}-cell-fix-left, - ${e}-cell-fix-right - `]:{position:"sticky !important",zIndex:s,background:i},[` - ${e}-cell-fix-left-first::after, - ${e}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(r).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${e}-cell-fix-left-all::after`]:{display:"none"},[` - ${e}-cell-fix-right-first::after, - ${e}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:c(r).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${e}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${e}-ping-left`]:{[`&:not(${e}-has-fix-left) ${e}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${d}`},[` - ${e}-cell-fix-left-first::after, - ${e}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${d}`},[`${e}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${e}-ping-right`]:{[`&:not(${e}-has-fix-right) ${e}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${d}`},[` - ${e}-cell-fix-right-first::after, - ${e}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${d}`}},[`${e}-fixed-column-gapped`]:{[` - ${e}-cell-fix-left-first::after, - ${e}-cell-fix-left-last::after, - ${e}-cell-fix-right-first::after, - ${e}-cell-fix-right-last::after - `]:{boxShadow:"none"}}}}},Lo=t=>{const{componentCls:e,antCls:r,margin:n}=t;return{[`${e}-wrapper`]:{[`${e}-pagination${r}-pagination`]:{margin:`${(0,Fe.bf)(n)} 0`},[`${e}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:t.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},wl=t=>{const{componentCls:e,tableRadius:r}=t;return{[`${e}-wrapper`]:{[e]:{[`${e}-title, ${e}-header`]:{borderRadius:`${(0,Fe.bf)(r)} ${(0,Fe.bf)(r)} 0 0`},[`${e}-title + ${e}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${e}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:r,borderStartEndRadius:r,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:r},"> *:last-child":{borderStartEndRadius:r}}},"&-footer":{borderRadius:`0 0 ${(0,Fe.bf)(r)} ${(0,Fe.bf)(r)}`}}}}},Il=t=>{const{componentCls:e}=t;return{[`${e}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${e}-pagination-left`]:{justifyContent:"flex-end"},[`${e}-pagination-right`]:{justifyContent:"flex-start"},[`${e}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${e}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${e}-row-indent`]:{float:"right"}}}}},ca=t=>{const{componentCls:e,antCls:r,iconCls:n,fontSizeIcon:o,padding:s,paddingXS:i,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:d,tableSelectedRowBg:v,tableSelectedRowHoverBg:m,tableRowHoverBg:y,tablePaddingHorizontal:S,calc:p}=t;return{[`${e}-wrapper`]:{[`${e}-selection-col`]:{width:d,[`&${e}-selection-col-with-dropdown`]:{width:p(d).add(o).add(p(s).div(4)).equal()}},[`${e}-bordered ${e}-selection-col`]:{width:p(d).add(p(i).mul(2)).equal(),[`&${e}-selection-col-with-dropdown`]:{width:p(d).add(o).add(p(s).div(4)).add(p(i).mul(2)).equal()}},[` - table tr th${e}-selection-column, - table tr td${e}-selection-column, - ${e}-selection-column - `]:{paddingInlineEnd:t.paddingXS,paddingInlineStart:t.paddingXS,textAlign:"center",[`${r}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${e}-selection-column${e}-cell-fix-left`]:{zIndex:t.zIndexTableFixed+1},[`table tr th${e}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${e}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${e}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${t.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,Fe.bf)(p(S).div(4).equal()),[n]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${e}-tbody`]:{[`${e}-row`]:{[`&${e}-row-selected`]:{[`> ${e}-cell`]:{background:v,"&-row-hover":{background:m}}},[`> ${e}-cell-row-hover`]:{background:y}}}}}},Nl=t=>{const{componentCls:e,tableExpandColumnWidth:r,calc:n}=t,o=(s,i,l,c)=>({[`${e}${e}-${s}`]:{fontSize:c,[` - ${e}-title, - ${e}-footer, - ${e}-cell, - ${e}-thead > tr > th, - ${e}-tbody > tr > th, - ${e}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${(0,Fe.bf)(i)} ${(0,Fe.bf)(l)}`},[`${e}-filter-trigger`]:{marginInlineEnd:(0,Fe.bf)(n(l).div(2).mul(-1).equal())},[`${e}-expanded-row-fixed`]:{margin:`${(0,Fe.bf)(n(i).mul(-1).equal())} ${(0,Fe.bf)(n(l).mul(-1).equal())}`},[`${e}-tbody`]:{[`${e}-wrapper:only-child ${e}`]:{marginBlock:(0,Fe.bf)(n(i).mul(-1).equal()),marginInline:`${(0,Fe.bf)(n(r).sub(l).equal())} ${(0,Fe.bf)(n(l).mul(-1).equal())}`}},[`${e}-selection-extra`]:{paddingInlineStart:(0,Fe.bf)(n(l).div(4).equal())}}});return{[`${e}-wrapper`]:Object.assign(Object.assign({},o("middle",t.tablePaddingVerticalMiddle,t.tablePaddingHorizontalMiddle,t.tableFontSizeMiddle)),o("small",t.tablePaddingVerticalSmall,t.tablePaddingHorizontalSmall,t.tableFontSizeSmall))}},Ga=t=>{const{componentCls:e,marginXXS:r,fontSizeIcon:n,headerIconColor:o,headerIconHoverColor:s}=t;return{[`${e}-wrapper`]:{[`${e}-thead th${e}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${t.motionDurationSlow}`,"&:hover":{background:t.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:t.colorPrimary},[` - &${e}-cell-fix-left:hover, - &${e}-cell-fix-right:hover - `]:{background:t.tableFixedHeaderSortActiveBg}},[`${e}-thead th${e}-column-sort`]:{background:t.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${e}-column-sort`]:{background:t.tableBodySortBg},[`${e}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${e}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${e}-column-sorter`]:{marginInlineStart:r,color:o,fontSize:0,transition:`color ${t.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:n,"&.active":{color:t.colorPrimary}},[`${e}-column-sorter-up + ${e}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${e}-column-sorters:hover ${e}-column-sorter`]:{color:s}}}},Ol=t=>{const{componentCls:e,opacityLoading:r,tableScrollThumbBg:n,tableScrollThumbBgHover:o,tableScrollThumbSize:s,tableScrollBg:i,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:d,lineType:v,tableBorderColor:m}=t,y=`${(0,Fe.bf)(d)} ${v} ${m}`;return{[`${e}-wrapper`]:{[`${e}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:t.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,Fe.bf)(s)} !important`,zIndex:l,display:"flex",alignItems:"center",background:i,borderTop:y,opacity:r,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:s,backgroundColor:n,borderRadius:c,transition:`all ${t.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},Za=t=>{const{componentCls:e,lineWidth:r,tableBorderColor:n,calc:o}=t,s=`${(0,Fe.bf)(r)} ${t.lineType} ${n}`;return{[`${e}-wrapper`]:{[`${e}-summary`]:{position:"relative",zIndex:t.zIndexTableFixed,background:t.tableBg,"> tr":{"> th, > td":{borderBottom:s}}},[`div${e}-summary`]:{boxShadow:`0 ${(0,Fe.bf)(o(r).mul(-1).equal())} 0 ${n}`}}}},wa=t=>{const{componentCls:e,motionDurationMid:r,lineWidth:n,lineType:o,tableBorderColor:s,calc:i}=t,l=`${(0,Fe.bf)(n)} ${o} ${s}`,c=`${e}-expanded-row-cell`;return{[`${e}-wrapper`]:{[`${e}-tbody-virtual`]:{[`${e}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${e}-cell`]:{borderBottom:l,transition:`background ${r}`},[`${e}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,Fe.bf)(n)})`,borderInlineEnd:"none"}}},[`${e}-bordered`]:{[`${e}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${e}-cell`]:{borderInlineEnd:l,[`&${e}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(n).mul(-1).equal(),borderInlineStart:l}}},[`&${e}-virtual`]:{[`${e}-placeholder ${e}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}};const Ra=t=>{const{componentCls:e,fontWeightStrong:r,tablePaddingVertical:n,tablePaddingHorizontal:o,tableExpandColumnWidth:s,lineWidth:i,lineType:l,tableBorderColor:c,tableFontSize:d,tableBg:v,tableRadius:m,tableHeaderTextColor:y,motionDurationMid:S,tableHeaderBg:p,tableHeaderCellSplitColor:x,tableFooterTextColor:h,tableFooterBg:b,calc:E}=t,R=`${(0,Fe.bf)(i)} ${l} ${c}`;return{[`${e}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,$r.dF)()),{[e]:Object.assign(Object.assign({},(0,$r.Wf)(t)),{fontSize:d,background:v,borderRadius:`${(0,Fe.bf)(m)} ${(0,Fe.bf)(m)} 0 0`,scrollbarColor:`${t.tableScrollThumbBg} ${t.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,Fe.bf)(m)} ${(0,Fe.bf)(m)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${e}-cell, - ${e}-thead > tr > th, - ${e}-tbody > tr > th, - ${e}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${(0,Fe.bf)(n)} ${(0,Fe.bf)(o)}`,overflowWrap:"break-word"},[`${e}-title`]:{padding:`${(0,Fe.bf)(n)} ${(0,Fe.bf)(o)}`},[`${e}-thead`]:{[` - > tr > th, - > tr > td - `]:{position:"relative",color:y,fontWeight:r,textAlign:"start",background:p,borderBottom:R,transition:`background ${S} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${e}-selection-column):not(${e}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:x,transform:"translateY(-50%)",transition:`background-color ${S}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${e}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${S}, border-color ${S}`,borderBottom:R,[` - > ${e}-wrapper:only-child, - > ${e}-expanded-row-fixed > ${e}-wrapper:only-child - `]:{[e]:{marginBlock:(0,Fe.bf)(E(n).mul(-1).equal()),marginInline:`${(0,Fe.bf)(E(s).sub(o).equal())} - ${(0,Fe.bf)(E(o).mul(-1).equal())}`,[`${e}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:y,fontWeight:r,textAlign:"start",background:p,borderBottom:R,transition:`background ${S} ease`}}},[`${e}-footer`]:{padding:`${(0,Fe.bf)(n)} ${(0,Fe.bf)(o)}`,color:h,background:b}})}},Ya=t=>{const{colorFillAlter:e,colorBgContainer:r,colorTextHeading:n,colorFillSecondary:o,colorFillContent:s,controlItemBgActive:i,controlItemBgActiveHover:l,padding:c,paddingSM:d,paddingXS:v,colorBorderSecondary:m,borderRadiusLG:y,controlHeight:S,colorTextPlaceholder:p,fontSize:x,fontSizeSM:h,lineHeight:b,lineWidth:E,colorIcon:R,colorIconHover:$,opacityLoading:A,controlInteractiveSize:V}=t,D=new ro.C(o).onBackground(r).toHexShortString(),B=new ro.C(s).onBackground(r).toHexShortString(),O=new ro.C(e).onBackground(r).toHexShortString(),F=new ro.C(R),I=new ro.C($),M=V/2-E,re=M*2+E*3;return{headerBg:O,headerColor:n,headerSortActiveBg:D,headerSortHoverBg:B,bodySortBg:O,rowHoverBg:O,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:e,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:d,cellPaddingInlineMD:v,cellPaddingBlockSM:v,cellPaddingInlineSM:v,borderColor:m,headerBorderRadius:y,footerBg:O,footerColor:n,cellFontSize:x,cellFontSizeMD:x,cellFontSizeSM:x,headerSplitColor:m,fixedHeaderSortActiveBg:D,headerFilterHoverBg:s,filterDropdownMenuBg:r,filterDropdownBg:r,expandIconBg:r,selectionColumnWidth:S,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(x*b-E*3)/2-Math.ceil((h*1.4-E*3)/2),headerIconColor:F.clone().setAlpha(F.getAlpha()*A).toRgbString(),headerIconHoverColor:I.clone().setAlpha(I.getAlpha()*A).toRgbString(),expandIconHalfInner:M,expandIconSize:re,expandIconScale:V/re}};var Ja=(0,ba.I$)("Table",t=>{const{colorTextHeading:e,colorSplit:r,colorBgContainer:n,controlInteractiveSize:o,headerBg:s,headerColor:i,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:d,rowHoverBg:v,rowSelectedBg:m,rowSelectedHoverBg:y,rowExpandedBg:S,cellPaddingBlock:p,cellPaddingInline:x,cellPaddingBlockMD:h,cellPaddingInlineMD:b,cellPaddingBlockSM:E,cellPaddingInlineSM:R,borderColor:$,footerBg:A,footerColor:V,headerBorderRadius:D,cellFontSize:B,cellFontSizeMD:O,cellFontSizeSM:F,headerSplitColor:I,fixedHeaderSortActiveBg:M,headerFilterHoverBg:re,filterDropdownBg:z,expandIconBg:T,selectionColumnWidth:X,stickyScrollBarBg:_,calc:we}=t,te=2,N=(0,Ha.TS)(t,{tableFontSize:B,tableBg:n,tableRadius:D,tablePaddingVertical:p,tablePaddingHorizontal:x,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:E,tablePaddingHorizontalSmall:R,tableBorderColor:$,tableHeaderTextColor:i,tableHeaderBg:s,tableFooterTextColor:V,tableFooterBg:A,tableHeaderCellSplitColor:I,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:d,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:re,tableFilterDropdownBg:z,tableRowHoverBg:v,tableSelectedRowBg:m,tableSelectedRowHoverBg:y,zIndexTableFixed:te,zIndexTableSticky:te+1,tableFontSizeMiddle:O,tableFontSizeSmall:F,tableSelectionColumnWidth:X,tableExpandIconBg:T,tableExpandColumnWidth:we(o).add(we(t.padding).mul(2)).equal(),tableExpandedRowBg:S,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:_,tableScrollThumbBgHover:e,tableScrollBg:r});return[Ra(N),Lo(N),Za(N),Ga(N),Ua(N),Zl(N),wl(N),Va(N),Za(N),xa(N),ca(N),Xa(N),Ol(N),Ur(N),Nl(N),Il(N),wa(N)]},Ya,{unitless:{expandIconScale:!0}});const Qa=[],qa=(t,e)=>{var r,n;const{prefixCls:o,className:s,rootClassName:i,style:l,size:c,bordered:d,dropdownPrefixCls:v,dataSource:m,pagination:y,rowSelection:S,rowKey:p="key",rowClassName:x,columns:h,children:b,childrenColumnName:E,onChange:R,getPopupContainer:$,loading:A,expandIcon:V,expandable:D,expandedRowRender:B,expandIconColumnIndex:O,indentSize:F,scroll:I,sortDirections:M,locale:re,showSorterTooltip:z=!0,virtual:T}=t,X=(0,$o.ln)("Table"),_=a.useMemo(()=>h||(0,An.L)(b),[h,b]),we=a.useMemo(()=>_.some(qe=>qe.responsive),[_]),te=(0,dn.Z)(we),N=a.useMemo(()=>{const qe=new Set(Object.keys(te).filter(bt=>te[bt]));return _.filter(bt=>!bt.responsive||bt.responsive.some(Rn=>qe.has(Rn)))},[_,te]),G=(0,pr.Z)(t,["className","style","columns"]),{locale:ae=Vn.Z,direction:se,table:ve,renderEmpty:de,getPrefixCls:he,getPopupContainer:oe}=a.useContext(Gt.E_),ue=(0,Ct.Z)(c),Ae=Object.assign(Object.assign({},ae.Table),re),Ve=m||Qa,ot=he("table",o),Xt=he("dropdown",v),[,dt]=(0,Co.ZP)(),Ft=(0,Et.Z)(ot),[rn,Mn,xe]=Ja(ot,Ft),Y=Object.assign(Object.assign({childrenColumnName:E,expandIconColumnIndex:O},D),{expandIcon:(r=D==null?void 0:D.expandIcon)!==null&&r!==void 0?r:(n=ve==null?void 0:ve.expandable)===null||n===void 0?void 0:n.expandIcon}),{childrenColumnName:me="children"}=Y,Ye=a.useMemo(()=>Ve.some(qe=>qe==null?void 0:qe[me])?"nest":B||D&&D.expandedRowRender?"row":null,[Ve]),ht={body:a.useRef()},nt=Ir(ot),yt=a.useRef(null),Nn=a.useRef(null);Wn(e,()=>Object.assign(Object.assign({},Nn.current),{nativeElement:yt.current}));const fn=a.useMemo(()=>typeof p=="function"?p:qe=>qe==null?void 0:qe[p],[p]),[vr]=(0,le.Z)(Ve,me,fn),Zn={},ao=function(qe,bt){let Rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ln,Yn,uo;const yo=Object.assign(Object.assign({},Zn),qe);Rn&&((Ln=Zn.resetPagination)===null||Ln===void 0||Ln.call(Zn),!((Yn=yo.pagination)===null||Yn===void 0)&&Yn.current&&(yo.pagination.current=1),y&&y.onChange&&y.onChange(1,(uo=yo.pagination)===null||uo===void 0?void 0:uo.pageSize)),I&&I.scrollToFirstRowOnChange!==!1&&ht.body.current&&Ar(0,{getContainer:()=>ht.body.current}),R==null||R(yo.pagination,yo.filters,yo.sorter,{currentDataSource:Hr(ia(Ve,yo.sorterStates,me),yo.filterStates,me),action:bt})},lo=(qe,bt)=>{ao({sorter:qe,sorterStates:bt},"sort",!1)},[Fr,Rr,No,va]=za({prefixCls:ot,mergedColumns:N,onSorterChange:lo,sortDirections:M||["ascend","descend"],tableLocale:Ae,showSorterTooltip:z}),ko=a.useMemo(()=>ia(Ve,Rr,me),[Ve,Rr]);Zn.sorter=va(),Zn.sorterStates=Rr;const Jo=(qe,bt)=>{ao({filters:qe,filterStates:bt},"filter",!0)},[Qo,ma,He]=Eo({prefixCls:ot,locale:Ae,dropdownPrefixCls:Xt,mergedColumns:N,onFilterChange:Jo,getPopupContainer:$||oe,rootClassName:it()(i,Ft)}),It=Hr(ko,ma,me);Zn.filters=He,Zn.filterStates=ma;const Qt=a.useMemo(()=>{const qe={};return Object.keys(He).forEach(bt=>{He[bt]!==null&&(qe[bt]=He[bt])}),Object.assign(Object.assign({},No),{filters:qe})},[No,He]),[ho]=Vr(Qt),qo=(qe,bt)=>{ao({pagination:Object.assign(Object.assign({},Zn.pagination),{current:qe,pageSize:bt})},"paginate")},[ir,Ma]=(0,Nr.ZP)(It.length,qo,y);Zn.pagination=y===!1?{}:(0,Nr.G6)(ir,y),Zn.resetPagination=Ma;const Ao=a.useMemo(()=>{if(y===!1||!ir.pageSize)return It;const{current:qe=1,total:bt,pageSize:Rn=Nr.L8}=ir;return It.lengthRn?It.slice((qe-1)*Rn,qe*Rn):It:It.slice((qe-1)*Rn,qe*Rn)},[!!y,It,ir&&ir.current,ir&&ir.pageSize,ir&&ir.total]),[hl,Yl]=(0,Qn.ZP)({prefixCls:ot,data:It,pageData:Ao,getRowKey:fn,getRecordByKey:vr,expandType:Ye,childrenColumnName:me,locale:Ae,getPopupContainer:$||oe},S),zo=(qe,bt,Rn)=>{let Ln;return typeof x=="function"?Ln=it()(x(qe,bt,Rn)):Ln=it()(x),it()({[`${ot}-row-selected`]:Yl.has(fn(qe,bt))},Ln)};Y.__PARENT_RENDER_ICON__=Y.expandIcon,Y.expandIcon=Y.expandIcon||V||dr(Ae),Ye==="nest"&&Y.expandIconColumnIndex===void 0?Y.expandIconColumnIndex=S?1:0:Y.expandIconColumnIndex>0&&S&&(Y.expandIconColumnIndex-=1),typeof Y.indentSize!="number"&&(Y.indentSize=typeof F=="number"?F:15);const Jl=a.useCallback(qe=>ho(hl(Qo(Fr(qe)))),[Fr,Qo,hl]);let pa,_o;if(y!==!1&&(ir!=null&&ir.total)){let qe;ir.size?qe=ir.size:qe=ue==="small"||ue==="middle"?"small":void 0;const bt=Yn=>a.createElement(or.Z,Object.assign({},ir,{className:it()(`${ot}-pagination ${ot}-pagination-${Yn}`,ir.className),size:qe})),Rn=se==="rtl"?"left":"right",{position:Ln}=ir;if(Ln!==null&&Array.isArray(Ln)){const Yn=Ln.find(Da=>Da.includes("top")),uo=Ln.find(Da=>Da.includes("bottom")),yo=Ln.every(Da=>`${Da}`=="none");!Yn&&!uo&&!yo&&(_o=bt(Rn)),Yn&&(pa=bt(Yn.toLowerCase().replace("top",""))),uo&&(_o=bt(uo.toLowerCase().replace("bottom","")))}else _o=bt(Rn)}let ga;typeof A=="boolean"?ga={spinning:A}:typeof A=="object"&&(ga=Object.assign({spinning:!0},A));const yl=it()(xe,Ft,`${ot}-wrapper`,ve==null?void 0:ve.className,{[`${ot}-wrapper-rtl`]:se==="rtl"},s,i,Mn),Cl=Object.assign(Object.assign({},ve==null?void 0:ve.style),l),Ql=re&&re.emptyText||(de==null?void 0:de("Table"))||a.createElement(an.Z,{componentName:"Table"}),ql=T?Fo:no,et={},at=a.useMemo(()=>{const{fontSize:qe,lineHeight:bt,padding:Rn,paddingXS:Ln,paddingSM:Yn}=dt,uo=Math.floor(qe*bt);switch(ue){case"large":return Rn*2+uo;case"small":return Ln*2+uo;default:return Yn*2+uo}},[dt,ue]);return T&&(et.listItemHeight=at),rn(a.createElement("div",{ref:yt,className:yl,style:Cl},a.createElement(io.Z,Object.assign({spinning:!1},ga),pa,a.createElement(ql,Object.assign({},et,G,{ref:Nn,columns:N,direction:se,expandable:Y,prefixCls:ot,className:it()({[`${ot}-middle`]:ue==="middle",[`${ot}-small`]:ue==="small",[`${ot}-bordered`]:d,[`${ot}-empty`]:Ve.length===0},xe,Ft,Mn),data:Ao,rowKey:fn,rowClassName:zo,emptyText:Ql,internalHooks:tn.RQ,internalRefs:ht,transformColumns:Jl,getContainerWidth:nt})),_o)))};var Kl=a.forwardRef(qa);const _a=(t,e)=>{const r=a.useRef(0);return r.current+=1,a.createElement(Kl,Object.assign({},t,{ref:e,_renderTimes:r.current}))},Xr=a.forwardRef(_a);Xr.SELECTION_COLUMN=Qn.HK,Xr.EXPAND_COLUMN=tn.w2,Xr.SELECTION_ALL=Qn.W$,Xr.SELECTION_INVERT=Qn.TA,Xr.SELECTION_NONE=Qn.rM,Xr.Column=At,Xr.ColumnGroup=Dn,Xr.Summary=tn.ER;var el=Xr,oo=el,Zr=f(28459),Ml=f(72378),Ht=f.n(Ml),mn=function(e){return e!=null};function Er(t,e,r){var n,o;if(t===!1)return!1;var s=e.total,i=e.current,l=e.pageSize,c=e.setPageInfo,d=(0,st.Z)(t)==="object"?t:{};return(0,u.Z)((0,u.Z)({showTotal:function(m,y){return"".concat(r.getMessage("pagination.total.range","\u7B2C")," ").concat(y[0],"-").concat(y[1]," ").concat(r.getMessage("pagination.total.total","\u6761/\u603B\u5171")," ").concat(m," ").concat(r.getMessage("pagination.total.item","\u6761"))},total:s},d),{},{current:t!==!0&&t&&(n=t.current)!==null&&n!==void 0?n:i,pageSize:t!==!0&&t&&(o=t.pageSize)!==null&&o!==void 0?o:l,onChange:function(m,y){var S=t,p=S.onChange;p==null||p(m,y||20),(y!==l||i!==m)&&c({pageSize:y,current:m})}})}function mr(t,e,r){var n=(0,u.Z)((0,u.Z)({},r.editableUtils),{},{pageInfo:e.pageInfo,reload:function(){var o=(0,K.Z)((0,L.Z)().mark(function i(l){return(0,L.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!l){d.next=3;break}return d.next=3,e.setPageInfo({current:1});case 3:return d.next=5,e==null?void 0:e.reload();case 5:case"end":return d.stop()}},i)}));function s(i){return o.apply(this,arguments)}return s}(),reloadAndRest:function(){var o=(0,K.Z)((0,L.Z)().mark(function i(){return(0,L.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return r.onCleanSelected(),c.next=3,e.setPageInfo({current:1});case 3:return c.next=5,e==null?void 0:e.reload();case 5:case"end":return c.stop()}},i)}));function s(){return o.apply(this,arguments)}return s}(),reset:function(){var o=(0,K.Z)((0,L.Z)().mark(function i(){var l;return(0,L.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,r.resetAll();case 2:return d.next=4,e==null||(l=e.reset)===null||l===void 0?void 0:l.call(e);case 4:return d.next=6,e==null?void 0:e.reload();case 6:case"end":return d.stop()}},i)}));function s(){return o.apply(this,arguments)}return s}(),fullScreen:function(){return r.fullScreen()},clearSelected:function(){return r.onCleanSelected()},setPageInfo:function(s){return e.setPageInfo(s)}});t.current=n}function Gr(t,e){return e.filter(function(r){return r}).length<1?t:e.reduce(function(r,n){return n(r)},t)}var Ro=function(e,r){return r===void 0?!1:typeof r=="boolean"?r:r[e]},Io=function(e){var r;return e&&(0,st.Z)(e)==="object"&&(e==null||(r=e.props)===null||r===void 0?void 0:r.colSpan)},kr=function(e,r){return e?Array.isArray(e)?e.join("-"):e.toString():"".concat(r)};function Go(t){return Array.isArray(t)?t.join(","):t==null?void 0:t.toString()}function Ia(t){var e={},r={};return t.forEach(function(n){var o=Go(n.dataIndex);if(o){if(n.filters){var s=n.defaultFilteredValue;s===void 0?e[o]=null:e[o]=n.defaultFilteredValue}n.sorter&&n.defaultSortOrder&&(r[o]=n.defaultSortOrder)}}),{sort:r,filter:e}}function os(){var t,e,r,n,o,s,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=(0,a.useRef)(),c=(0,a.useRef)(null),d=(0,a.useRef)(),v=(0,a.useRef)(),m=(0,a.useState)(""),y=(0,Ne.Z)(m,2),S=y[0],p=y[1],x=(0,a.useRef)([]),h=(0,ge.Z)(function(){return i.size||i.defaultSize||"middle"},{value:i.size,onChange:i.onSizeChange}),b=(0,Ne.Z)(h,2),E=b[0],R=b[1],$=(0,a.useMemo)(function(){var I,M;if(i!=null&&(I=i.columnsState)!==null&&I!==void 0&&I.defaultValue)return i.columnsState.defaultValue;var re={};return(M=i.columns)===null||M===void 0||M.forEach(function(z,T){var X=z.key,_=z.dataIndex,we=z.fixed,te=z.disable,N=kr(X!=null?X:_,T);N&&(re[N]={show:!0,fixed:we,disable:te})}),re},[i.columns]),A=(0,ge.Z)(function(){var I,M,re=i.columnsState||{},z=re.persistenceType,T=re.persistenceKey;if(T&&z&&typeof window!="undefined"){var X=window[z];try{var _=X==null?void 0:X.getItem(T);if(_){var we;if(i!=null&&(we=i.columnsState)!==null&&we!==void 0&&we.defaultValue){var te;return Ht()(JSON.parse(_),i==null||(te=i.columnsState)===null||te===void 0?void 0:te.defaultValue)}return JSON.parse(_)}}catch(N){console.warn(N)}}return i.columnsStateMap||((I=i.columnsState)===null||I===void 0?void 0:I.value)||((M=i.columnsState)===null||M===void 0?void 0:M.defaultValue)||$},{value:((t=i.columnsState)===null||t===void 0?void 0:t.value)||i.columnsStateMap,onChange:((e=i.columnsState)===null||e===void 0?void 0:e.onChange)||i.onColumnsStateChange}),V=(0,Ne.Z)(A,2),D=V[0],B=V[1];(0,a.useEffect)(function(){var I=i.columnsState||{},M=I.persistenceType,re=I.persistenceKey;if(re&&M&&typeof window!="undefined"){var z=window[M];try{var T=z==null?void 0:z.getItem(re);if(T){var X;if(i!=null&&(X=i.columnsState)!==null&&X!==void 0&&X.defaultValue){var _;B(Ht()(JSON.parse(T),i==null||(_=i.columnsState)===null||_===void 0?void 0:_.defaultValue))}else B(JSON.parse(T))}else B($)}catch(we){console.warn(we)}}},[(r=i.columnsState)===null||r===void 0?void 0:r.persistenceKey,(n=i.columnsState)===null||n===void 0?void 0:n.persistenceType,$]),(0,Te.ET)(!i.columnsStateMap,"columnsStateMap\u5DF2\u7ECF\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 columnsState.value \u66FF\u6362"),(0,Te.ET)(!i.columnsStateMap,"columnsStateMap has been discarded, please use columnsState.value replacement");var O=(0,a.useCallback)(function(){var I=i.columnsState||{},M=I.persistenceType,re=I.persistenceKey;if(!(!re||!M||typeof window=="undefined")){var z=window[M];try{z==null||z.removeItem(re)}catch(T){console.warn(T)}}},[i.columnsState]);(0,a.useEffect)(function(){var I,M;if(!(!((I=i.columnsState)!==null&&I!==void 0&&I.persistenceKey)||!((M=i.columnsState)!==null&&M!==void 0&&M.persistenceType))&&typeof window!="undefined"){var re=i.columnsState,z=re.persistenceType,T=re.persistenceKey,X=window[z];try{X==null||X.setItem(T,JSON.stringify(D))}catch(_){console.warn(_),O()}}},[(o=i.columnsState)===null||o===void 0?void 0:o.persistenceKey,D,(s=i.columnsState)===null||s===void 0?void 0:s.persistenceType]);var F={action:l.current,setAction:function(M){l.current=M},sortKeyColumns:x.current,setSortKeyColumns:function(M){x.current=M},propsRef:v,columnsMap:D,keyWords:S,setKeyWords:function(M){return p(M)},setTableSize:R,tableSize:E,prefixName:d.current,setPrefixName:function(M){d.current=M},setColumnsMap:B,columns:i.columns,rootDomRef:c,clearPersistenceStorage:O,defaultColumnKeyMap:$};return Object.defineProperty(F,"prefixName",{get:function(){return d.current}}),Object.defineProperty(F,"sortKeyColumns",{get:function(){return x.current}}),Object.defineProperty(F,"action",{get:function(){return l.current}}),F}var Bo=(0,a.createContext)({}),as=function(e){var r=os(e.initValue);return(0,C.jsx)(Bo.Provider,{value:r,children:e.children})},da=f(42075),ls=function(e){return(0,P.Z)({},e.componentCls,{marginBlockEnd:16,backgroundColor:(0,rt.uK)(e.colorTextBase,.02),borderRadius:e.borderRadius,border:"none","&-container":{paddingBlock:e.paddingSM,paddingInline:e.paddingLG},"&-info":{display:"flex",alignItems:"center",transition:"all 0.3s",color:e.colorTextTertiary,"&-content":{flex:1},"&-option":{minWidth:48,paddingInlineStart:16}}})};function is(t){return(0,rt.Xj)("ProTableAlert",function(e){var r=(0,u.Z)((0,u.Z)({},e),{},{componentCls:".".concat(t)});return[ls(r)]})}var ss=function(e){var r=e.intl,n=e.onCleanSelected;return[(0,C.jsx)("a",{onClick:n,children:r.getMessage("alert.clear","\u6E05\u7A7A")},"0")]};function cs(t){var e=t.selectedRowKeys,r=e===void 0?[]:e,n=t.onCleanSelected,o=t.alwaysShowAlert,s=t.selectedRows,i=t.alertInfoRender,l=i===void 0?function(R){var $=R.intl;return(0,C.jsxs)(da.Z,{children:[$.getMessage("alert.selected","\u5DF2\u9009\u62E9"),r.length,$.getMessage("alert.item","\u9879"),"\xA0\xA0"]})}:i,c=t.alertOptionRender,d=c===void 0?ss:c,v=(0,Xe.YB)(),m=d&&d({onCleanSelected:n,selectedRowKeys:r,selectedRows:s,intl:v}),y=(0,a.useContext)(Zr.ZP.ConfigContext),S=y.getPrefixCls,p=S("pro-table-alert"),x=is(p),h=x.wrapSSR,b=x.hashId;if(l===!1)return null;var E=l({intl:v,selectedRowKeys:r,selectedRows:s,onCleanSelected:n});return E===!1||r.length<1&&!o?null:h((0,C.jsx)("div",{className:"".concat(p," ").concat(b).trim(),children:(0,C.jsx)("div",{className:"".concat(p,"-container ").concat(b).trim(),children:(0,C.jsxs)("div",{className:"".concat(p,"-info ").concat(b).trim(),children:[(0,C.jsx)("div",{className:"".concat(p,"-info-content ").concat(b).trim(),children:E}),m?(0,C.jsx)("div",{className:"".concat(p,"-info-option ").concat(b).trim(),children:m}):null]})})}))}var ds=cs,ai=f(60249),To=f(97435);function us(){var t=(0,a.useState)(!0),e=(0,Ne.Z)(t,2),r=e[1],n=(0,a.useCallback)(function(){return r(function(o){return!o})},[]);return n}function fs(t,e){var r=(0,a.useMemo)(function(){var n={current:e};return new Proxy(n,{set:function(s,i,l){return Object.is(s[i],l)||(s[i]=l,t(r)),!0}})},[]);return r}function vs(t){var e=us(),r=fs(e,t);return r}var li=f(51280),co=f(22270),Ta=f(48874),ii=f(74138),tl=f(73177),ms=f(85265),nl=f(73935),Pa=f(78733),ps=function(e){return(0,P.Z)({},e.componentCls,{"&-sidebar-dragger":{width:"5px",cursor:"ew-resize",padding:"4px 0 0",borderTop:"1px solid transparent",position:"absolute",top:0,left:0,bottom:0,zIndex:100,backgroundColor:"transparent","&-min-disabled":{cursor:"w-resize"},"&-max-disabled":{cursor:"e-resize"}}})};function gs(t){return(0,rt.Xj)("DrawerForm",function(e){var r=(0,u.Z)((0,u.Z)({},e),{},{componentCls:".".concat(t)});return[ps(r)]})}var hs=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","resize","onOpenChange","visible","open"];function ys(t){var e,r,n=t.children,o=t.trigger,s=t.onVisibleChange,i=t.drawerProps,l=t.onFinish,c=t.submitTimeout,d=t.title,v=t.width,m=t.resize,y=t.onOpenChange,S=t.visible,p=t.open,x=(0,je.Z)(t,hs);(0,Te.ET)(!x.footer||!(i!=null&&i.footer),"DrawerForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var h=a.useMemo(function(){var xe,Y,me,Ye={onResize:function(){},maxWidth:window.innerWidth*.8,minWidth:300};return typeof m=="boolean"?m?Ye:{}:(0,mt.Y)({onResize:(xe=m==null?void 0:m.onResize)!==null&&xe!==void 0?xe:Ye.onResize,maxWidth:(Y=m==null?void 0:m.maxWidth)!==null&&Y!==void 0?Y:Ye.maxWidth,minWidth:(me=m==null?void 0:m.minWidth)!==null&&me!==void 0?me:Ye.minWidth})},[m]),b=(0,a.useContext)(Zr.ZP.ConfigContext),E=b.getPrefixCls("pro-form-drawer"),R=gs(E),$=R.wrapSSR,A=R.hashId,V=function(Y){return"".concat(E,"-").concat(Y," ").concat(A)},D=(0,a.useState)([]),B=(0,Ne.Z)(D,2),O=B[1],F=(0,a.useState)(!1),I=(0,Ne.Z)(F,2),M=I[0],re=I[1],z=(0,a.useState)(!1),T=(0,Ne.Z)(z,2),X=T[0],_=T[1],we=(0,a.useState)(v||(m?h==null?void 0:h.minWidth:800)),te=(0,Ne.Z)(we,2),N=te[0],G=te[1],ae=(0,ge.Z)(!!S,{value:p||S,onChange:y||s}),se=(0,Ne.Z)(ae,2),ve=se[0],de=se[1],he=(0,a.useRef)(null),oe=(0,a.useCallback)(function(xe){he.current===null&&xe&&O([]),he.current=xe},[]),ue=(0,a.useRef)(),Ae=(0,a.useCallback)(function(){var xe,Y,me,Ye=(xe=(Y=(me=x.formRef)===null||me===void 0?void 0:me.current)!==null&&Y!==void 0?Y:x.form)!==null&&xe!==void 0?xe:ue.current;Ye&&i!==null&&i!==void 0&&i.destroyOnClose&&Ye.resetFields()},[i==null?void 0:i.destroyOnClose,x.form,x.formRef]);(0,a.useEffect)(function(){ve&&(p||S)&&(y==null||y(!0),s==null||s(!0)),X&&G(h==null?void 0:h.minWidth)},[S,ve,X]),(0,a.useImperativeHandle)(x.formRef,function(){return ue.current},[ue.current]);var Ve=(0,a.useMemo)(function(){return o?a.cloneElement(o,(0,u.Z)((0,u.Z)({key:"trigger"},o.props),{},{onClick:function(){var xe=(0,K.Z)((0,L.Z)().mark(function me(Ye){var ht,nt;return(0,L.Z)().wrap(function(Nn){for(;;)switch(Nn.prev=Nn.next){case 0:de(!ve),_(!Object.keys(h)),(ht=o.props)===null||ht===void 0||(nt=ht.onClick)===null||nt===void 0||nt.call(ht,Ye);case 3:case"end":return Nn.stop()}},me)}));function Y(me){return xe.apply(this,arguments)}return Y}()})):null},[de,o,ve,_,X]),ot=(0,a.useMemo)(function(){var xe,Y,me,Ye;return x.submitter===!1?!1:Ht()({searchConfig:{submitText:(xe=(Y=b.locale)===null||Y===void 0||(Y=Y.Modal)===null||Y===void 0?void 0:Y.okText)!==null&&xe!==void 0?xe:"\u786E\u8BA4",resetText:(me=(Ye=b.locale)===null||Ye===void 0||(Ye=Ye.Modal)===null||Ye===void 0?void 0:Ye.cancelText)!==null&&me!==void 0?me:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:c?M:void 0,onClick:function(nt){var yt;de(!1),i==null||(yt=i.onClose)===null||yt===void 0||yt.call(i,nt)}}},x.submitter)},[x.submitter,(e=b.locale)===null||e===void 0||(e=e.Modal)===null||e===void 0?void 0:e.okText,(r=b.locale)===null||r===void 0||(r=r.Modal)===null||r===void 0?void 0:r.cancelText,c,M,de,i]),Xt=(0,a.useCallback)(function(xe,Y){return(0,C.jsxs)(C.Fragment,{children:[xe,he.current&&Y?(0,C.jsx)(a.Fragment,{children:(0,nl.createPortal)(Y,he.current)},"submitter"):Y]})},[]),dt=(0,Se.J)(function(){var xe=(0,K.Z)((0,L.Z)().mark(function Y(me){var Ye,ht,nt;return(0,L.Z)().wrap(function(Nn){for(;;)switch(Nn.prev=Nn.next){case 0:return Ye=l==null?void 0:l(me),c&&Ye instanceof Promise&&(re(!0),ht=setTimeout(function(){return re(!1)},c),Ye.finally(function(){clearTimeout(ht),re(!1)})),Nn.next=4,Ye;case 4:return nt=Nn.sent,nt&&de(!1),Nn.abrupt("return",nt);case 7:case"end":return Nn.stop()}},Y)}));return function(Y){return xe.apply(this,arguments)}}()),Ft=(0,tl.X)(ve,s),rn=(0,a.useCallback)(function(xe){var Y,me,Ye=(document.body.offsetWidth||1e3)-(xe.clientX-document.body.offsetLeft),ht=(Y=h==null?void 0:h.minWidth)!==null&&Y!==void 0?Y:v||800,nt=(me=h==null?void 0:h.maxWidth)!==null&&me!==void 0?me:window.innerWidth*.8;if(Yent){G(nt);return}G(Ye)},[h==null?void 0:h.maxWidth,h==null?void 0:h.minWidth,v]),Mn=(0,a.useCallback)(function(){document.removeEventListener("mousemove",rn),document.removeEventListener("mouseup",Mn)},[rn]);return $((0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(ms.Z,(0,u.Z)((0,u.Z)((0,u.Z)({title:d,width:N},i),Ft),{},{afterOpenChange:function(Y){var me;Y||Ae(),i==null||(me=i.afterOpenChange)===null||me===void 0||me.call(i,Y)},onClose:function(Y){var me;c&&M||(de(!1),i==null||(me=i.onClose)===null||me===void 0||me.call(i,Y))},footer:x.submitter!==!1&&(0,C.jsx)("div",{ref:oe,style:{display:"flex",justifyContent:"flex-end"}}),children:[m?(0,C.jsx)("div",{className:it()(V("sidebar-dragger"),A,(0,P.Z)((0,P.Z)({},V("sidebar-dragger-min-disabled"),N===(h==null?void 0:h.minWidth)),V("sidebar-dragger-max-disabled"),N===(h==null?void 0:h.maxWidth))),onMouseDown:function(Y){var me;h==null||(me=h.onResize)===null||me===void 0||me.call(h),Y.stopPropagation(),Y.preventDefault(),document.addEventListener("mousemove",rn),document.addEventListener("mouseup",Mn),_(!0)}}):null,(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(Pa.I,(0,u.Z)((0,u.Z)({formComponentType:"DrawerForm",layout:"vertical"},x),{},{formRef:ue,onInit:function(Y,me){var Ye;x.formRef&&(x.formRef.current=me),x==null||(Ye=x.onInit)===null||Ye===void 0||Ye.call(x,Y,me),ue.current=me},submitter:ot,onFinish:function(){var xe=(0,K.Z)((0,L.Z)().mark(function Y(me){var Ye;return(0,L.Z)().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return nt.next=2,dt(me);case 2:return Ye=nt.sent,nt.abrupt("return",Ye);case 4:case"end":return nt.stop()}},Y)}));return function(Y){return xe.apply(this,arguments)}}(),contentRender:Xt,children:n}))})]})),Ve]}))}var Cs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},bs=Cs,si=f(46976),xs=function(e,r){return a.createElement(si.Z,(0,We.Z)({},e,{ref:r,icon:bs}))},Ss=a.forwardRef(xs),Zs=Ss,Es=f(98912),ws=f(1336),Rs=function(e){return(0,P.Z)({},e.componentCls,{lineHeight:"30px","&::before":{display:"block",height:0,visibility:"hidden",content:"'.'"},"&-small":{lineHeight:e.lineHeight},"&-container":{display:"flex",flexWrap:"wrap",gap:e.marginXS},"&-item":(0,P.Z)({whiteSpace:"nowrap"},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"&-line":{minWidth:"198px"},"&-line:not(:first-child)":{marginBlockStart:"16px",marginBlockEnd:8},"&-collapse-icon":{width:e.controlHeight,height:e.controlHeight,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},"&-effective":(0,P.Z)({},"".concat(e.componentCls,"-collapse-icon"),{backgroundColor:e.colorBgTextHover})})};function Is(t){return(0,rt.Xj)("LightFilter",function(e){var r=(0,u.Z)((0,u.Z)({},e),{},{componentCls:".".concat(t)});return[Rs(r)]})}var Ts=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],Ps=function(e){var r=e.items,n=e.prefixCls,o=e.size,s=o===void 0?"middle":o,i=e.collapse,l=e.collapseLabel,c=e.onValuesChange,d=e.bordered,v=e.values,m=e.footerRender,y=e.placement,S=(0,Xe.YB)(),p="".concat(n,"-light-filter"),x=Is(p),h=x.wrapSSR,b=x.hashId,E=(0,a.useState)(!1),R=(0,Ne.Z)(E,2),$=R[0],A=R[1],V=(0,a.useState)(function(){return(0,u.Z)({},v)}),D=(0,Ne.Z)(V,2),B=D[0],O=D[1];(0,a.useEffect)(function(){O((0,u.Z)({},v))},[v]);var F=(0,a.useMemo)(function(){var z=[],T=[];return r.forEach(function(X){var _=X.props||{},we=_.secondary;we||i?z.push(X):T.push(X)}),{collapseItems:z,outsideItems:T}},[e.items]),I=F.collapseItems,M=F.outsideItems,re=function(){return l||(i?(0,C.jsx)(Zs,{className:"".concat(p,"-collapse-icon ").concat(b).trim()}):(0,C.jsx)(Es.Q,{size:s,label:S.getMessage("form.lightFilter.more","\u66F4\u591A\u7B5B\u9009")}))};return h((0,C.jsx)("div",{className:it()(p,b,"".concat(p,"-").concat(s),(0,P.Z)({},"".concat(p,"-effective"),Object.keys(v).some(function(z){return Array.isArray(v[z])?v[z].length>0:v[z]}))),children:(0,C.jsxs)("div",{className:"".concat(p,"-container ").concat(b).trim(),children:[M.map(function(z,T){var X=z.key,_=z.props.fieldProps,we=_!=null&&_.placement?_==null?void 0:_.placement:y;return(0,C.jsx)("div",{className:"".concat(p,"-item ").concat(b).trim(),children:a.cloneElement(z,{fieldProps:(0,u.Z)((0,u.Z)({},z.props.fieldProps),{},{placement:we}),proFieldProps:(0,u.Z)((0,u.Z)({},z.props.proFieldProps),{},{light:!0,label:z.props.label,bordered:d}),bordered:d})},X||T)}),I.length?(0,C.jsx)("div",{className:"".concat(p,"-item ").concat(b).trim(),children:(0,C.jsx)(ws.M,{padding:24,open:$,onOpenChange:function(T){A(T)},placement:y,label:re(),footerRender:m,footer:{onConfirm:function(){c((0,u.Z)({},B)),A(!1)},onClear:function(){var T={};I.forEach(function(X){var _=X.props.name;T[_]=void 0}),c(T)}},children:I.map(function(z){var T=z.key,X=z.props,_=X.name,we=X.fieldProps,te=(0,u.Z)((0,u.Z)({},we),{},{onChange:function(ae){return O((0,u.Z)((0,u.Z)({},B),{},(0,P.Z)({},_,ae!=null&&ae.target?ae.target.value:ae))),!1}});B.hasOwnProperty(_)&&(te[z.props.valuePropName||"value"]=B[_]);var N=we!=null&&we.placement?we==null?void 0:we.placement:y;return(0,C.jsx)("div",{className:"".concat(p,"-line ").concat(b).trim(),children:a.cloneElement(z,{fieldProps:(0,u.Z)((0,u.Z)({},te),{},{placement:N})})},T)})})},"more"):null]})}))};function Ns(t){var e=t.size,r=t.collapse,n=t.collapseLabel,o=t.initialValues,s=t.onValuesChange,i=t.form,l=t.placement,c=t.formRef,d=t.bordered,v=t.ignoreRules,m=t.footerRender,y=(0,je.Z)(t,Ts),S=(0,a.useContext)(Zr.ZP.ConfigContext),p=S.getPrefixCls,x=p("pro-form"),h=(0,a.useState)(function(){return(0,u.Z)({},o)}),b=(0,Ne.Z)(h,2),E=b[0],R=b[1],$=(0,a.useRef)();return(0,a.useImperativeHandle)(c,function(){return $.current},[$.current]),(0,C.jsx)(Pa.I,(0,u.Z)((0,u.Z)({size:e,initialValues:o,form:i,contentRender:function(V){return(0,C.jsx)(Ps,{prefixCls:x,items:V==null?void 0:V.flatMap(function(D){return(D==null?void 0:D.type.displayName)==="ProForm-Group"?D.props.children:D}),size:e,bordered:d,collapse:r,collapseLabel:n,placement:l,values:E||{},footerRender:m,onValuesChange:function(B){var O,F,I=(0,u.Z)((0,u.Z)({},E),B);R(I),(O=$.current)===null||O===void 0||O.setFieldsValue(I),(F=$.current)===null||F===void 0||F.submit(),s&&s(B,I)}})},formRef:$,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},(0,To.Z)(y,["labelWidth"])),{},{onValuesChange:function(V,D){var B;R(D),s==null||s(V,D),(B=$.current)===null||B===void 0||B.submit()}}))}var $s=f(85576),Os=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function Ks(t){var e,r,n=t.children,o=t.trigger,s=t.onVisibleChange,i=t.onOpenChange,l=t.modalProps,c=t.onFinish,d=t.submitTimeout,v=t.title,m=t.width,y=t.visible,S=t.open,p=(0,je.Z)(t,Os);(0,Te.ET)(!p.footer||!(l!=null&&l.footer),"ModalForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var x=(0,a.useContext)(Zr.ZP.ConfigContext),h=(0,a.useState)([]),b=(0,Ne.Z)(h,2),E=b[1],R=(0,a.useState)(!1),$=(0,Ne.Z)(R,2),A=$[0],V=$[1],D=(0,ge.Z)(!!y,{value:S||y,onChange:i||s}),B=(0,Ne.Z)(D,2),O=B[0],F=B[1],I=(0,a.useRef)(null),M=(0,a.useCallback)(function(N){I.current===null&&N&&E([]),I.current=N},[]),re=(0,a.useRef)(),z=(0,a.useCallback)(function(){var N,G,ae,se=(N=(G=p.form)!==null&&G!==void 0?G:(ae=p.formRef)===null||ae===void 0?void 0:ae.current)!==null&&N!==void 0?N:re.current;se&&l!==null&&l!==void 0&&l.destroyOnClose&&se.resetFields()},[l==null?void 0:l.destroyOnClose,p.form,p.formRef]);(0,a.useImperativeHandle)(p.formRef,function(){return re.current},[re.current]),(0,a.useEffect)(function(){O&&(S||y)&&(i==null||i(!0),s==null||s(!0))},[y,S,O]);var T=(0,a.useMemo)(function(){return o?a.cloneElement(o,(0,u.Z)((0,u.Z)({key:"trigger"},o.props),{},{onClick:function(){var N=(0,K.Z)((0,L.Z)().mark(function ae(se){var ve,de;return(0,L.Z)().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:F(!O),(ve=o.props)===null||ve===void 0||(de=ve.onClick)===null||de===void 0||de.call(ve,se);case 2:case"end":return oe.stop()}},ae)}));function G(ae){return N.apply(this,arguments)}return G}()})):null},[F,o,O]),X=(0,a.useMemo)(function(){var N,G,ae,se,ve,de;return p.submitter===!1?!1:Ht()({searchConfig:{submitText:(N=(G=l==null?void 0:l.okText)!==null&&G!==void 0?G:(ae=x.locale)===null||ae===void 0||(ae=ae.Modal)===null||ae===void 0?void 0:ae.okText)!==null&&N!==void 0?N:"\u786E\u8BA4",resetText:(se=(ve=l==null?void 0:l.cancelText)!==null&&ve!==void 0?ve:(de=x.locale)===null||de===void 0||(de=de.Modal)===null||de===void 0?void 0:de.cancelText)!==null&&se!==void 0?se:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:d?A:void 0,onClick:function(oe){var ue;F(!1),l==null||(ue=l.onCancel)===null||ue===void 0||ue.call(l,oe)}}},p.submitter)},[(e=x.locale)===null||e===void 0||(e=e.Modal)===null||e===void 0?void 0:e.cancelText,(r=x.locale)===null||r===void 0||(r=r.Modal)===null||r===void 0?void 0:r.okText,l,p.submitter,F,A,d]),_=(0,a.useCallback)(function(N,G){return(0,C.jsxs)(C.Fragment,{children:[N,I.current&&G?(0,C.jsx)(a.Fragment,{children:(0,nl.createPortal)(G,I.current)},"submitter"):G]})},[]),we=(0,a.useCallback)(function(){var N=(0,K.Z)((0,L.Z)().mark(function G(ae){var se,ve,de;return(0,L.Z)().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return se=c==null?void 0:c(ae),d&&se instanceof Promise&&(V(!0),ve=setTimeout(function(){return V(!1)},d),se.finally(function(){clearTimeout(ve),V(!1)})),oe.next=4,se;case 4:return de=oe.sent,de&&F(!1),oe.abrupt("return",de);case 7:case"end":return oe.stop()}},G)}));return function(G){return N.apply(this,arguments)}}(),[c,F,d]),te=(0,tl.X)(O);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)($s.Z,(0,u.Z)((0,u.Z)((0,u.Z)({title:v,width:m||800},l),te),{},{onCancel:function(G){var ae;d&&A||(F(!1),l==null||(ae=l.onCancel)===null||ae===void 0||ae.call(l,G))},afterClose:function(){var G;z(),F(!1),l==null||(G=l.afterClose)===null||G===void 0||G.call(l)},footer:p.submitter!==!1?(0,C.jsx)("div",{ref:M,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,C.jsx)(Pa.I,(0,u.Z)((0,u.Z)({formComponentType:"ModalForm",layout:"vertical"},p),{},{onInit:function(G,ae){var se;p.formRef&&(p.formRef.current=ae),p==null||(se=p.onInit)===null||se===void 0||se.call(p,G,ae),re.current=ae},formRef:re,submitter:X,onFinish:function(){var N=(0,K.Z)((0,L.Z)().mark(function G(ae){var se;return(0,L.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.next=2,we(ae);case 2:return se=de.sent,de.abrupt("return",se);case 4:case"end":return de.stop()}},G)}));return function(G){return N.apply(this,arguments)}}(),contentRender:_,children:n}))})),T]})}var ci=f(12044),Yo=f(15746),rl=f(71230),Dl=f(9220),di=f(66023),Ms=function(e,r){return a.createElement(si.Z,(0,We.Z)({},e,{ref:r,icon:di.Z}))},Ds=a.forwardRef(Ms),ui=Ds,fi=function(e){if(e&&e!==!0)return e},Fs=function(e,r,n,o){return e?(0,C.jsxs)(C.Fragment,{children:[n.getMessage("tableForm.collapsed","\u5C55\u5F00"),o&&"(".concat(o,")"),(0,C.jsx)(ui,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]}):(0,C.jsxs)(C.Fragment,{children:[n.getMessage("tableForm.expand","\u6536\u8D77"),(0,C.jsx)(ui,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]})},js=function(e){var r=e.setCollapsed,n=e.collapsed,o=n===void 0?!1:n,s=e.submitter,i=e.style,l=e.hiddenNum,c=(0,a.useContext)(Zr.ZP.ConfigContext),d=c.getPrefixCls,v=(0,Xe.YB)(),m=(0,a.useContext)(Xe.L_),y=m.hashId,S=fi(e.collapseRender)||Fs;return(0,C.jsxs)(da.Z,{style:i,size:16,children:[s,e.collapseRender!==!1&&(0,C.jsx)("a",{className:"".concat(d("pro-query-filter-collapse-button")," ").concat(y).trim(),onClick:function(){return r(!o)},children:S==null?void 0:S(o,e,v,l)})]})},Ls=js,Bs=function(e){return(0,P.Z)({},e.componentCls,(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({"&&":{padding:24}},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"".concat(e.proComponentsCls,"-form-group-title"),{marginBlock:0}),"&-row",{rowGap:24,"&-split":(0,P.Z)((0,P.Z)({},"".concat(e.proComponentsCls,"-form-group"),{display:"flex",alignItems:"center",gap:e.marginXS}),"&:last-child",{marginBlockEnd:12}),"&-split-line":{"&:after":{position:"absolute",width:"100%",content:'""',height:1,insetBlockEnd:-12,borderBlockEnd:"1px dashed ".concat(e.colorSplit)}}}),"&-collapse-button",{display:"flex",alignItems:"center",color:e.colorPrimary}))};function ks(t){return(0,rt.Xj)("QueryFilter",function(e){var r=(0,u.Z)((0,u.Z)({},e),{},{componentCls:".".concat(t)});return[Bs(r)]})}var As=["collapsed","layout","defaultCollapsed","defaultColsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum","submitterColSpanProps"],ua,zs={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:1/0},vi={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[1/0,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[1/0,4,"horizontal"]]},Hs=function(e,r,n){if(n&&typeof n=="number")return{span:n,layout:e};var o=n?["xs","sm","md","lg","xl","xxl"].map(function(i){return[zs[i],24/n[i],"horizontal"]}):vi[e||"default"],s=(o||vi.default).find(function(i){return r$-1)&&!!G&&B>=24;O+=1;var Ve=a.isValidElement(N)&&(N.key||"".concat((de=N.props)===null||de===void 0?void 0:de.name))||G;return a.isValidElement(N)&&Ae?e.preserve?{itemDom:a.cloneElement(N,{hidden:!0,key:Ve||G}),hidden:!0,colSpan:oe}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:N,colSpan:oe,hidden:!1}}),z=re.map(function(N,G){var ae,se,ve=N.itemDom,de=N.colSpan,he=ve==null||(ae=ve.props)===null||ae===void 0?void 0:ae.hidden;if(he)return ve;var oe=a.isValidElement(ve)&&(ve.key||"".concat((se=ve.props)===null||se===void 0?void 0:se.name))||G;return 24-M%2424){var se,ve;return 24-((se=(ve=e.submitterColSpanProps)===null||ve===void 0?void 0:ve.span)!==null&&se!==void 0?se:R.span)}return 24-ae},[M,M%24+((r=(n=e.submitterColSpanProps)===null||n===void 0?void 0:n.span)!==null&&r!==void 0?r:R.span),(o=e.submitterColSpanProps)===null||o===void 0?void 0:o.span]),we=(0,a.useContext)(Zr.ZP.ConfigContext),te=we.getPrefixCls("pro-query-filter");return(0,C.jsxs)(rl.Z,{gutter:A,justify:"start",className:it()("".concat(te,"-row"),c),children:[z,D&&(0,C.jsx)(Yo.Z,(0,u.Z)((0,u.Z)({span:R.span,offset:_,className:it()((s=e.submitterColSpanProps)===null||s===void 0?void 0:s.className)},e.submitterColSpanProps),{},{style:{textAlign:"end"},children:(0,C.jsx)(pe.Z.Item,{label:" ",colon:!1,shouldUpdate:!1,className:"".concat(te,"-actions ").concat(c).trim(),children:(0,C.jsx)(Ls,{hiddenNum:T,collapsed:S,collapseRender:X?h:!1,submitter:D,setCollapsed:p},"pro-form-query-filter-actions")})}),"submitter")]},"resize-observer-row")},Us=(0,ci.j)()?(ua=document)===null||ua===void 0||(ua=ua.body)===null||ua===void 0?void 0:ua.clientWidth:1024;function Xs(t){var e=t.collapsed,r=t.layout,n=t.defaultCollapsed,o=n===void 0?!0:n,s=t.defaultColsNumber,i=t.span,l=t.searchGutter,c=l===void 0?24:l,d=t.searchText,v=t.resetText,m=t.optionRender,y=t.collapseRender,S=t.onReset,p=t.onCollapse,x=t.labelWidth,h=x===void 0?"80":x,b=t.style,E=t.split,R=t.preserve,$=R===void 0?!0:R,A=t.ignoreRules,V=t.showHiddenNum,D=V===void 0?!1:V,B=t.submitterColSpanProps,O=(0,je.Z)(t,As),F=(0,a.useContext)(Zr.ZP.ConfigContext),I=F.getPrefixCls("pro-query-filter"),M=ks(I),re=M.wrapSSR,z=M.hashId,T=(0,ge.Z)(function(){return typeof(b==null?void 0:b.width)=="number"?b==null?void 0:b.width:Us}),X=(0,Ne.Z)(T,2),_=X[0],we=X[1],te=(0,a.useMemo)(function(){return Hs(r,_+16,i)},[r,_,i]),N=(0,a.useMemo)(function(){return s!==void 0?s-1:Math.max(1,24/te.span-1)},[s,te.span]),G=(0,a.useMemo)(function(){if(h&&te.layout!=="vertical"&&h!=="auto")return{labelCol:{flex:"0 0 ".concat(h,"px")},wrapperCol:{style:{maxWidth:"calc(100% - ".concat(h,"px)")}},style:{flexWrap:"nowrap"}}},[te.layout,h]);return re((0,C.jsx)(Dl.Z,{onResize:function(se){_!==se.width&&se.width>17&&we(se.width)},children:(0,C.jsx)(Pa.I,(0,u.Z)((0,u.Z)({isKeyPressSubmit:!0,preserve:$},O),{},{className:it()(I,z,O.className),onReset:S,style:b,layout:te.layout,fieldProps:{style:{width:"100%"}},formItemProps:G,groupProps:{titleStyle:{display:"inline-block",marginInlineEnd:16}},contentRender:function(se,ve,de){return(0,C.jsx)(Vs,{spanSize:te,collapsed:e,form:de,submitterColSpanProps:B,collapseRender:y,defaultCollapsed:o,onCollapse:p,optionRender:m,submitter:ve,items:se,split:E,baseClassName:I,resetText:t.resetText,searchText:t.searchText,searchGutter:c,preserve:$,ignoreRules:A,showLength:N,showHiddenNum:D})}}))},"resize-observer"))}var ol=f(1977),Fl=f(67159),mi=f(64894),Gs=f(62208),Ys=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function pi(t){return typeof t=="string"}function Js(t){var e,r=t.className,n=t.prefixCls,o=t.style,s=t.active,i=t.status,l=t.iconPrefix,c=t.icon,d=t.wrapperStyle,v=t.stepNumber,m=t.disabled,y=t.description,S=t.title,p=t.subTitle,x=t.progressDot,h=t.stepIcon,b=t.tailContent,E=t.icons,R=t.stepIndex,$=t.onStepClick,A=t.onClick,V=t.render,D=(0,je.Z)(t,Ys),B=!!$&&!m,O={};B&&(O.role="button",O.tabIndex=0,O.onClick=function(T){A==null||A(T),$(R)},O.onKeyDown=function(T){var X=T.which;(X===Fn.Z.ENTER||X===Fn.Z.SPACE)&&$(R)});var F=function(){var X,_,we=it()("".concat(n,"-icon"),"".concat(l,"icon"),(X={},(0,P.Z)(X,"".concat(l,"icon-").concat(c),c&&pi(c)),(0,P.Z)(X,"".concat(l,"icon-check"),!c&&i==="finish"&&(E&&!E.finish||!E)),(0,P.Z)(X,"".concat(l,"icon-cross"),!c&&i==="error"&&(E&&!E.error||!E)),X)),te=a.createElement("span",{className:"".concat(n,"-icon-dot")});return x?typeof x=="function"?_=a.createElement("span",{className:"".concat(n,"-icon")},x(te,{index:v-1,status:i,title:S,description:y})):_=a.createElement("span",{className:"".concat(n,"-icon")},te):c&&!pi(c)?_=a.createElement("span",{className:"".concat(n,"-icon")},c):E&&E.finish&&i==="finish"?_=a.createElement("span",{className:"".concat(n,"-icon")},E.finish):E&&E.error&&i==="error"?_=a.createElement("span",{className:"".concat(n,"-icon")},E.error):c||i==="finish"||i==="error"?_=a.createElement("span",{className:we}):_=a.createElement("span",{className:"".concat(n,"-icon")},v),h&&(_=h({index:v-1,status:i,title:S,description:y,node:_})),_},I=i||"wait",M=it()("".concat(n,"-item"),"".concat(n,"-item-").concat(I),r,(e={},(0,P.Z)(e,"".concat(n,"-item-custom"),c),(0,P.Z)(e,"".concat(n,"-item-active"),s),(0,P.Z)(e,"".concat(n,"-item-disabled"),m===!0),e)),re=(0,u.Z)({},o),z=a.createElement("div",(0,We.Z)({},D,{className:M,style:re}),a.createElement("div",(0,We.Z)({onClick:A},O,{className:"".concat(n,"-item-container")}),a.createElement("div",{className:"".concat(n,"-item-tail")},b),a.createElement("div",{className:"".concat(n,"-item-icon")},F()),a.createElement("div",{className:"".concat(n,"-item-content")},a.createElement("div",{className:"".concat(n,"-item-title")},S,p&&a.createElement("div",{title:typeof p=="string"?p:void 0,className:"".concat(n,"-item-subtitle")},p)),y&&a.createElement("div",{className:"".concat(n,"-item-description")},y))));return V&&(z=V(z)||null),z}var gi=Js,Qs=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function hi(t){var e,r=t.prefixCls,n=r===void 0?"rc-steps":r,o=t.style,s=o===void 0?{}:o,i=t.className,l=t.children,c=t.direction,d=c===void 0?"horizontal":c,v=t.type,m=v===void 0?"default":v,y=t.labelPlacement,S=y===void 0?"horizontal":y,p=t.iconPrefix,x=p===void 0?"rc":p,h=t.status,b=h===void 0?"process":h,E=t.size,R=t.current,$=R===void 0?0:R,A=t.progressDot,V=A===void 0?!1:A,D=t.stepIcon,B=t.initial,O=B===void 0?0:B,F=t.icons,I=t.onChange,M=t.itemRender,re=t.items,z=re===void 0?[]:re,T=(0,je.Z)(t,Qs),X=m==="navigation",_=m==="inline",we=_||V,te=_?"horizontal":d,N=_?void 0:E,G=we?"vertical":S,ae=it()(n,"".concat(n,"-").concat(te),i,(e={},(0,P.Z)(e,"".concat(n,"-").concat(N),N),(0,P.Z)(e,"".concat(n,"-label-").concat(G),te==="horizontal"),(0,P.Z)(e,"".concat(n,"-dot"),!!we),(0,P.Z)(e,"".concat(n,"-navigation"),X),(0,P.Z)(e,"".concat(n,"-inline"),_),e)),se=function(he){I&&$!==he&&I(he)},ve=function(he,oe){var ue=(0,u.Z)({},he),Ae=O+oe;return b==="error"&&oe===$-1&&(ue.className="".concat(n,"-next-error")),ue.status||(Ae===$?ue.status=b:Ae<$?ue.status="finish":ue.status="wait"),_&&(ue.icon=void 0,ue.subTitle=void 0),!ue.render&&M&&(ue.render=function(Ve){return M(ue,Ve)}),a.createElement(gi,(0,We.Z)({},ue,{active:Ae===$,stepNumber:Ae+1,stepIndex:Ae,key:Ae,prefixCls:n,iconPrefix:x,wrapperStyle:s,progressDot:we,stepIcon:D,icons:F,onStepClick:I&&se}))};return a.createElement("div",(0,We.Z)({className:ae,style:s},T),z.filter(function(de){return de}).map(ve))}hi.Step=gi;var qs=hi,yi=qs,_s=f(38703),ec=t=>{const{componentCls:e,customIconTop:r,customIconSize:n,customIconFontSize:o}=t;return{[`${e}-item-custom`]:{[`> ${e}-item-container > ${e}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${e}-icon`]:{top:r,width:n,height:n,fontSize:o,lineHeight:`${(0,Fe.bf)(o)}`}}},[`&:not(${e}-vertical)`]:{[`${e}-item-custom`]:{[`${e}-item-icon`]:{width:"auto",background:"none"}}}}},tc=t=>{const{componentCls:e,inlineDotSize:r,inlineTitleColor:n,inlineTailColor:o}=t,s=t.calc(t.paddingXS).add(t.lineWidth).equal(),i={[`${e}-item-container ${e}-item-content ${e}-item-title`]:{color:n}};return{[`&${e}-inline`]:{width:"auto",display:"inline-flex",[`${e}-item`]:{flex:"none","&-container":{padding:`${(0,Fe.bf)(s)} ${(0,Fe.bf)(t.paddingXXS)} 0`,margin:`0 ${(0,Fe.bf)(t.calc(t.marginXXS).div(2).equal())}`,borderRadius:t.borderRadiusSM,cursor:"pointer",transition:`background-color ${t.motionDurationMid}`,"&:hover":{background:t.controlItemBgHover},["&[role='button']:hover"]:{opacity:1}},"&-icon":{width:r,height:r,marginInlineStart:`calc(50% - ${(0,Fe.bf)(t.calc(r).div(2).equal())})`,[`> ${e}-icon`]:{top:0},[`${e}-icon-dot`]:{borderRadius:t.calc(t.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:t.calc(t.marginXS).sub(t.lineWidth).equal()},"&-title":{color:n,fontSize:t.fontSizeSM,lineHeight:t.lineHeightSM,fontWeight:"normal",marginBottom:t.calc(t.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:t.calc(r).div(2).add(s).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:t.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${e}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${e}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${e}-item-icon ${e}-icon ${e}-icon-dot`]:{backgroundColor:t.colorBorderBg,border:`${(0,Fe.bf)(t.lineWidth)} ${t.lineType} ${o}`}},i),"&-finish":Object.assign({[`${e}-item-tail::after`]:{backgroundColor:o},[`${e}-item-icon ${e}-icon ${e}-icon-dot`]:{backgroundColor:o,border:`${(0,Fe.bf)(t.lineWidth)} ${t.lineType} ${o}`}},i),"&-error":i,"&-active, &-process":Object.assign({[`${e}-item-icon`]:{width:r,height:r,marginInlineStart:`calc(50% - ${(0,Fe.bf)(t.calc(r).div(2).equal())})`,top:0}},i),[`&:not(${e}-item-active) > ${e}-item-container[role='button']:hover`]:{[`${e}-item-title`]:{color:n}}}}}},nc=t=>{const{componentCls:e,iconSize:r,lineHeight:n,iconSizeSM:o}=t;return{[`&${e}-label-vertical`]:{[`${e}-item`]:{overflow:"visible","&-tail":{marginInlineStart:t.calc(r).div(2).add(t.controlHeightLG).equal(),padding:`${(0,Fe.bf)(t.paddingXXS)} ${(0,Fe.bf)(t.paddingLG)}`},"&-content":{display:"block",width:t.calc(r).div(2).add(t.controlHeightLG).mul(2).equal(),marginTop:t.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:t.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:t.marginXXS,marginInlineStart:0,lineHeight:n}},[`&${e}-small:not(${e}-dot)`]:{[`${e}-item`]:{"&-icon":{marginInlineStart:t.calc(r).sub(o).div(2).add(t.controlHeightLG).equal()}}}}}},rc=t=>{const{componentCls:e,navContentMaxWidth:r,navArrowColor:n,stepsNavActiveColor:o,motionDurationSlow:s}=t;return{[`&${e}-navigation`]:{paddingTop:t.paddingSM,[`&${e}-small`]:{[`${e}-item`]:{"&-container":{marginInlineStart:t.calc(t.marginSM).mul(-1).equal()}}},[`${e}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:t.calc(t.margin).mul(-1).equal(),paddingBottom:t.paddingSM,textAlign:"start",transition:`opacity ${s}`,[`${e}-item-content`]:{maxWidth:r},[`${e}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},$r.vS),{"&::after":{display:"none"}})},[`&:not(${e}-item-active)`]:{[`${e}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${(0,Fe.bf)(t.calc(t.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:t.fontSizeIcon,height:t.fontSizeIcon,borderTop:`${(0,Fe.bf)(t.lineWidth)} ${t.lineType} ${n}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,Fe.bf)(t.lineWidth)} ${t.lineType} ${n}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:t.lineWidthBold,backgroundColor:o,transition:`width ${s}, inset-inline-start ${s}`,transitionTimingFunction:"ease-out",content:'""'}},[`${e}-item${e}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${e}-navigation${e}-vertical`]:{[`> ${e}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${e}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:t.calc(t.lineWidth).mul(3).equal(),height:`calc(100% - ${(0,Fe.bf)(t.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:t.calc(t.controlHeight).mul(.25).equal(),height:t.calc(t.controlHeight).mul(.25).equal(),marginBottom:t.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${e}-item-container > ${e}-item-tail`]:{visibility:"hidden"}}},[`&${e}-navigation${e}-horizontal`]:{[`> ${e}-item > ${e}-item-container > ${e}-item-tail`]:{visibility:"hidden"}}}},oc=t=>{const{antCls:e,componentCls:r}=t;return{[`&${r}-with-progress`]:{[`${r}-item`]:{paddingTop:t.paddingXXS,[`&-process ${r}-item-container ${r}-item-icon ${r}-icon`]:{color:t.processIconColor}},[`&${r}-vertical > ${r}-item `]:{paddingInlineStart:t.paddingXXS,[`> ${r}-item-container > ${r}-item-tail`]:{top:t.marginXXS,insetInlineStart:t.calc(t.iconSize).div(2).sub(t.lineWidth).add(t.paddingXXS).equal()}},[`&, &${r}-small`]:{[`&${r}-horizontal ${r}-item:first-child`]:{paddingBottom:t.paddingXXS,paddingInlineStart:t.paddingXXS}},[`&${r}-small${r}-vertical > ${r}-item > ${r}-item-container > ${r}-item-tail`]:{insetInlineStart:t.calc(t.iconSizeSM).div(2).sub(t.lineWidth).add(t.paddingXXS).equal()},[`&${r}-label-vertical`]:{[`${r}-item ${r}-item-tail`]:{top:t.calc(t.margin).sub(t.calc(t.lineWidth).mul(2).equal()).equal()}},[`${r}-item-icon`]:{position:"relative",[`${e}-progress`]:{position:"absolute",insetBlockStart:t.calc(t.calc(t.iconSize).sub(t.stepsProgressSize).sub(t.calc(t.lineWidth).mul(2).equal()).equal()).div(2).equal(),insetInlineStart:t.calc(t.calc(t.iconSize).sub(t.stepsProgressSize).sub(t.calc(t.lineWidth).mul(2).equal()).equal()).div(2).equal()}}}}},ac=t=>{const{componentCls:e,descriptionMaxWidth:r,lineHeight:n,dotCurrentSize:o,dotSize:s,motionDurationSlow:i}=t;return{[`&${e}-dot, &${e}-dot${e}-small`]:{[`${e}-item`]:{"&-title":{lineHeight:n},"&-tail":{top:t.calc(t.dotSize).sub(t.calc(t.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${(0,Fe.bf)(t.calc(r).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${(0,Fe.bf)(t.calc(t.marginSM).mul(2).equal())})`,height:t.calc(t.lineWidth).mul(3).equal(),marginInlineStart:t.marginSM}},"&-icon":{width:s,height:s,marginInlineStart:t.calc(t.descriptionMaxWidth).sub(s).div(2).equal(),paddingInlineEnd:0,lineHeight:`${(0,Fe.bf)(s)}`,background:"transparent",border:0,[`${e}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:t.calc(t.marginSM).mul(-1).equal(),insetInlineStart:t.calc(s).sub(t.calc(t.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:t.calc(t.controlHeightLG).mul(1.5).equal(),height:t.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:r},[`&-process ${e}-item-icon`]:{position:"relative",top:t.calc(s).sub(o).div(2).equal(),width:o,height:o,lineHeight:`${(0,Fe.bf)(o)}`,background:"none",marginInlineStart:t.calc(t.descriptionMaxWidth).sub(o).div(2).equal()},[`&-process ${e}-icon`]:{[`&:first-child ${e}-icon-dot`]:{insetInlineStart:0}}}},[`&${e}-vertical${e}-dot`]:{[`${e}-item-icon`]:{marginTop:t.calc(t.controlHeight).sub(s).div(2).equal(),marginInlineStart:0,background:"none"},[`${e}-item-process ${e}-item-icon`]:{marginTop:t.calc(t.controlHeight).sub(o).div(2).equal(),top:0,insetInlineStart:t.calc(s).sub(o).div(2).equal(),marginInlineStart:0},[`${e}-item > ${e}-item-container > ${e}-item-tail`]:{top:t.calc(t.controlHeight).sub(s).div(2).equal(),insetInlineStart:0,margin:0,padding:`${(0,Fe.bf)(t.calc(s).add(t.paddingXS).equal())} 0 ${(0,Fe.bf)(t.paddingXS)}`,"&::after":{marginInlineStart:t.calc(s).sub(t.lineWidth).div(2).equal()}},[`&${e}-small`]:{[`${e}-item-icon`]:{marginTop:t.calc(t.controlHeightSM).sub(s).div(2).equal()},[`${e}-item-process ${e}-item-icon`]:{marginTop:t.calc(t.controlHeightSM).sub(o).div(2).equal()},[`${e}-item > ${e}-item-container > ${e}-item-tail`]:{top:t.calc(t.controlHeightSM).sub(s).div(2).equal()}},[`${e}-item:first-child ${e}-icon-dot`]:{insetInlineStart:0},[`${e}-item-content`]:{width:"inherit"}}}},lc=t=>{const{componentCls:e}=t;return{[`&${e}-rtl`]:{direction:"rtl",[`${e}-item`]:{"&-subtitle":{float:"left"}},[`&${e}-navigation`]:{[`${e}-item::after`]:{transform:"rotate(-45deg)"}},[`&${e}-vertical`]:{[`> ${e}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${e}-item-icon`]:{float:"right"}}},[`&${e}-dot`]:{[`${e}-item-icon ${e}-icon-dot, &${e}-small ${e}-item-icon ${e}-icon-dot`]:{float:"right"}}}}},ic=t=>{const{componentCls:e,iconSizeSM:r,fontSizeSM:n,fontSize:o,colorTextDescription:s}=t;return{[`&${e}-small`]:{[`&${e}-horizontal:not(${e}-label-vertical) ${e}-item`]:{paddingInlineStart:t.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${e}-item-icon`]:{width:r,height:r,marginTop:0,marginBottom:0,marginInline:`0 ${(0,Fe.bf)(t.marginXS)}`,fontSize:n,lineHeight:`${(0,Fe.bf)(r)}`,textAlign:"center",borderRadius:r},[`${e}-item-title`]:{paddingInlineEnd:t.paddingSM,fontSize:o,lineHeight:`${(0,Fe.bf)(r)}`,"&::after":{top:t.calc(r).div(2).equal()}},[`${e}-item-description`]:{color:s,fontSize:o},[`${e}-item-tail`]:{top:t.calc(r).div(2).sub(t.paddingXXS).equal()},[`${e}-item-custom ${e}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${e}-icon`]:{fontSize:r,lineHeight:`${(0,Fe.bf)(r)}`,transform:"none"}}}}},sc=t=>{const{componentCls:e,iconSizeSM:r,iconSize:n}=t;return{[`&${e}-vertical`]:{display:"flex",flexDirection:"column",[`> ${e}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${e}-item-icon`]:{float:"left",marginInlineEnd:t.margin},[`${e}-item-content`]:{display:"block",minHeight:t.calc(t.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${e}-item-title`]:{lineHeight:`${(0,Fe.bf)(n)}`},[`${e}-item-description`]:{paddingBottom:t.paddingSM}},[`> ${e}-item > ${e}-item-container > ${e}-item-tail`]:{position:"absolute",top:0,insetInlineStart:t.calc(n).div(2).sub(t.lineWidth).equal(),width:t.lineWidth,height:"100%",padding:`${(0,Fe.bf)(t.calc(t.marginXXS).mul(1.5).add(n).equal())} 0 ${(0,Fe.bf)(t.calc(t.marginXXS).mul(1.5).equal())}`,"&::after":{width:t.lineWidth,height:"100%"}},[`> ${e}-item:not(:last-child) > ${e}-item-container > ${e}-item-tail`]:{display:"block"},[` > ${e}-item > ${e}-item-container > ${e}-item-content > ${e}-item-title`]:{"&::after":{display:"none"}},[`&${e}-small ${e}-item-container`]:{[`${e}-item-tail`]:{position:"absolute",top:0,insetInlineStart:t.calc(r).div(2).sub(t.lineWidth).equal(),padding:`${(0,Fe.bf)(t.calc(t.marginXXS).mul(1.5).add(r).equal())} 0 ${(0,Fe.bf)(t.calc(t.marginXXS).mul(1.5).equal())}`},[`${e}-item-title`]:{lineHeight:`${(0,Fe.bf)(r)}`}}}}},fa;(function(t){t.wait="wait",t.process="process",t.finish="finish",t.error="error"})(fa||(fa={}));const al=(t,e)=>{const r=`${e.componentCls}-item`,n=`${t}IconColor`,o=`${t}TitleColor`,s=`${t}DescriptionColor`,i=`${t}TailColor`,l=`${t}IconBgColor`,c=`${t}IconBorderColor`,d=`${t}DotColor`;return{[`${r}-${t} ${r}-icon`]:{backgroundColor:e[l],borderColor:e[c],[`> ${e.componentCls}-icon`]:{color:e[n],[`${e.componentCls}-icon-dot`]:{background:e[d]}}},[`${r}-${t}${r}-custom ${r}-icon`]:{[`> ${e.componentCls}-icon`]:{color:e[d]}},[`${r}-${t} > ${r}-container > ${r}-content > ${r}-title`]:{color:e[o],"&::after":{backgroundColor:e[i]}},[`${r}-${t} > ${r}-container > ${r}-content > ${r}-description`]:{color:e[s]},[`${r}-${t} > ${r}-container > ${r}-tail::after`]:{backgroundColor:e[i]}}},cc=t=>{const{componentCls:e,motionDurationSlow:r}=t,n=`${e}-item`,o=`${n}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${n}-container > ${n}-tail, > ${n}-container > ${n}-content > ${n}-title::after`]:{display:"none"}}},[`${n}-container`]:{outline:"none",["&:focus-visible"]:{[o]:Object.assign({},(0,$r.oN)(t))}},[`${o}, ${n}-content`]:{display:"inline-block",verticalAlign:"top"},[o]:{width:t.iconSize,height:t.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:t.marginXS,fontSize:t.iconFontSize,fontFamily:t.fontFamily,lineHeight:`${(0,Fe.bf)(t.iconSize)}`,textAlign:"center",borderRadius:t.iconSize,border:`${(0,Fe.bf)(t.lineWidth)} ${t.lineType} transparent`,transition:`background-color ${r}, border-color ${r}`,[`${e}-icon`]:{position:"relative",top:t.iconTop,color:t.colorPrimary,lineHeight:1}},[`${n}-tail`]:{position:"absolute",top:t.calc(t.iconSize).div(2).sub(t.paddingXXS).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:t.lineWidth,background:t.colorSplit,borderRadius:t.lineWidth,transition:`background ${r}`,content:'""'}},[`${n}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:t.padding,color:t.colorText,fontSize:t.fontSizeLG,lineHeight:`${(0,Fe.bf)(t.titleLineHeight)}`,"&::after":{position:"absolute",top:t.calc(t.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:t.lineWidth,background:t.processTailColor,content:'""'}},[`${n}-subtitle`]:{display:"inline",marginInlineStart:t.marginXS,color:t.colorTextDescription,fontWeight:"normal",fontSize:t.fontSize},[`${n}-description`]:{color:t.colorTextDescription,fontSize:t.fontSize}},al(fa.wait,t)),al(fa.process,t)),{[`${n}-process > ${n}-container > ${n}-title`]:{fontWeight:t.fontWeightStrong}}),al(fa.finish,t)),al(fa.error,t)),{[`${n}${e}-next-error > ${e}-item-title::after`]:{background:t.colorError},[`${n}-disabled`]:{cursor:"not-allowed"}})},dc=t=>{const{componentCls:e,motionDurationSlow:r}=t;return{[`& ${e}-item`]:{[`&:not(${e}-item-active)`]:{[`& > ${e}-item-container[role='button']`]:{cursor:"pointer",[`${e}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${e}-icon`]:{transition:`color ${r}`}},"&:hover":{[`${e}-item`]:{["&-title, &-subtitle, &-description"]:{color:t.colorPrimary}}}},[`&:not(${e}-item-process)`]:{[`& > ${e}-item-container[role='button']:hover`]:{[`${e}-item`]:{"&-icon":{borderColor:t.colorPrimary,[`${e}-icon`]:{color:t.colorPrimary}}}}}}},[`&${e}-horizontal:not(${e}-label-vertical)`]:{[`${e}-item`]:{paddingInlineStart:t.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${e}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:t.descriptionMaxWidth,whiteSpace:"normal"}}}}},uc=t=>{const{componentCls:e}=t;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$r.Wf)(t)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),cc(t)),dc(t)),ec(t)),ic(t)),sc(t)),nc(t)),ac(t)),rc(t)),lc(t)),oc(t)),tc(t))}},fc=t=>({titleLineHeight:t.controlHeight,customIconSize:t.controlHeight,customIconTop:0,customIconFontSize:t.controlHeightSM,iconSize:t.controlHeight,iconTop:-.5,iconFontSize:t.fontSize,iconSizeSM:t.fontSizeHeading3,dotSize:t.controlHeight/4,dotCurrentSize:t.controlHeightLG/4,navArrowColor:t.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:t.wireframe?t.colorTextDisabled:t.colorTextLabel,waitIconBgColor:t.wireframe?t.colorBgContainer:t.colorFillContent,waitIconBorderColor:t.wireframe?t.colorTextDisabled:"transparent",finishIconBgColor:t.wireframe?t.colorBgContainer:t.controlItemBgActive,finishIconBorderColor:t.wireframe?t.colorPrimary:t.controlItemBgActive});var vc=(0,ba.I$)("Steps",t=>{const{colorTextDisabled:e,controlHeightLG:r,colorTextLightSolid:n,colorText:o,colorPrimary:s,colorTextDescription:i,colorTextQuaternary:l,colorError:c,colorBorderSecondary:d,colorSplit:v}=t,m=(0,Ha.TS)(t,{processIconColor:n,processTitleColor:o,processDescriptionColor:o,processIconBgColor:s,processIconBorderColor:s,processDotColor:s,processTailColor:v,waitTitleColor:i,waitDescriptionColor:i,waitTailColor:v,waitDotColor:e,finishIconColor:s,finishTitleColor:o,finishDescriptionColor:i,finishTailColor:s,finishDotColor:s,errorIconColor:n,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:v,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:s,stepsProgressSize:r,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:d});return[uc(m)]},fc),Na=f(50344);function mc(t){return t.filter(e=>e)}function pc(t,e){if(t)return t;const r=(0,Na.Z)(e).map(n=>{if(a.isValidElement(n)){const{props:o}=n;return Object.assign({},o)}return null});return mc(r)}var gc=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o{const{percent:e,size:r,className:n,rootClassName:o,direction:s,items:i,responsive:l=!0,current:c=0,children:d,style:v}=t,m=gc(t,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:y}=(0,dn.Z)(l),{getPrefixCls:S,direction:p,steps:x}=a.useContext(Gt.E_),h=a.useMemo(()=>l&&y?"vertical":s,[y,s]),b=(0,Ct.Z)(r),E=S("steps",t.prefixCls),[R,$,A]=vc(E),V=t.type==="inline",D=S("",t.iconPrefix),B=pc(i,d),O=V?void 0:e,F=Object.assign(Object.assign({},x==null?void 0:x.style),v),I=it()(x==null?void 0:x.className,{[`${E}-rtl`]:p==="rtl",[`${E}-with-progress`]:O!==void 0},n,o,$,A),M={finish:a.createElement(mi.Z,{className:`${E}-finish-icon`}),error:a.createElement(Gs.Z,{className:`${E}-error-icon`})},re=T=>{let{node:X,status:_}=T;if(_==="process"&&O!==void 0){const we=b==="small"?32:40;return a.createElement("div",{className:`${E}-progress-icon`},a.createElement(_s.Z,{type:"circle",percent:O,size:we,strokeWidth:4,format:()=>null}),X)}return X},z=(T,X)=>T.description?a.createElement(Sr.Z,{title:T.description},X):X;return R(a.createElement(yi,Object.assign({icons:M},m,{style:F,current:c,size:b,items:B,itemRender:V?z:void 0,stepIcon:re,direction:h,prefixCls:E,iconPrefix:D,className:I})))};Ci.Step=yi.Step;var bi=Ci,hc=["onFinish","step","formRef","title","stepProps"];function yc(t){var e=(0,a.useRef)(),r=(0,a.useContext)(xi),n=(0,a.useContext)(Si),o=(0,u.Z)((0,u.Z)({},t),n),s=o.onFinish,i=o.step,l=o.formRef,c=o.title,d=o.stepProps,v=(0,je.Z)(o,hc);return(0,Te.ET)(!v.submitter,"StepForm \u4E0D\u5305\u542B\u63D0\u4EA4\u6309\u94AE\uFF0C\u8BF7\u5728 StepsForm \u4E0A"),(0,a.useImperativeHandle)(l,function(){return e.current},[l==null?void 0:l.current]),(0,a.useEffect)(function(){if(o.name||o.step){var m=(o.name||o.step).toString();return r==null||r.regForm(m,o),function(){r==null||r.unRegForm(m)}}},[]),r&&r!==null&&r!==void 0&&r.formArrayRef&&(r.formArrayRef.current[i||0]=e),(0,C.jsx)(Pa.I,(0,u.Z)({formRef:e,onFinish:function(){var m=(0,K.Z)((0,L.Z)().mark(function y(S){var p;return(0,L.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(v.name&&(r==null||r.onFormFinish(v.name,S)),!s){h.next=9;break}return r==null||r.setLoading(!0),h.next=5,s==null?void 0:s(S);case 5:return p=h.sent,p&&(r==null||r.next()),r==null||r.setLoading(!1),h.abrupt("return");case 9:r!=null&&r.lastStep||r==null||r.next();case 10:case"end":return h.stop()}},y)}));return function(y){return m.apply(this,arguments)}}(),onInit:function(y,S){var p;e.current=S,r&&r!==null&&r!==void 0&&r.formArrayRef&&(r.formArrayRef.current[i||0]=e),v==null||(p=v.onInit)===null||p===void 0||p.call(v,y,S)},layout:"vertical"},(0,To.Z)(v,["layoutType","columns"])))}var Cc=yc,bc=function(e){return(0,P.Z)({},e.componentCls,{"&-container":{width:"max-content",minWidth:"420px",maxWidth:"100%",margin:"auto"},"&-steps-container":(0,P.Z)({maxWidth:"1160px",margin:"auto"},"".concat(e.antCls,"-steps-vertical"),{height:"100%"}),"&-step":{display:"none",marginBlockStart:"32px","&-active":{display:"block"},"> form":{maxWidth:"100%"}}})};function xc(t){return(0,rt.Xj)("StepsForm",function(e){var r=(0,u.Z)((0,u.Z)({},e),{},{componentCls:".".concat(t)});return[bc(r)]})}var Sc=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef","layoutRender"],xi=a.createContext(void 0),Zc={horizontal:function(e){var r=e.stepsDom,n=e.formDom;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(rl.Z,{gutter:{xs:8,sm:16,md:24},children:(0,C.jsx)(Yo.Z,{span:24,children:r})}),(0,C.jsx)(rl.Z,{gutter:{xs:8,sm:16,md:24},children:(0,C.jsx)(Yo.Z,{span:24,children:n})})]})},vertical:function(e){var r=e.stepsDom,n=e.formDom;return(0,C.jsxs)(rl.Z,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[(0,C.jsx)(Yo.Z,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:a.cloneElement(r,{style:{height:"100%"}})}),(0,C.jsx)(Yo.Z,{children:(0,C.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:n})})]})}},Si=a.createContext(null);function Ec(t){var e=(0,a.useContext)(Zr.ZP.ConfigContext),r=e.getPrefixCls,n=r("pro-steps-form"),o=xc(n),s=o.wrapSSR,i=o.hashId,l=t.current,c=t.onCurrentChange,d=t.submitter,v=t.stepsFormRender,m=t.stepsRender,y=t.stepFormRender,S=t.stepsProps,p=t.onFinish,x=t.formProps,h=t.containerStyle,b=t.formRef,E=t.formMapRef,R=t.layoutRender,$=(0,je.Z)(t,Sc),A=(0,a.useRef)(new Map),V=(0,a.useRef)(new Map),D=(0,a.useRef)([]),B=(0,a.useState)([]),O=(0,Ne.Z)(B,2),F=O[0],I=O[1],M=(0,a.useState)(!1),re=(0,Ne.Z)(M,2),z=re[0],T=re[1],X=(0,Xe.YB)(),_=(0,ge.Z)(0,{value:t.current,onChange:t.onCurrentChange}),we=(0,Ne.Z)(_,2),te=we[0],N=we[1],G=(0,a.useMemo)(function(){return Zc[(S==null?void 0:S.direction)||"horizontal"]},[S==null?void 0:S.direction]),ae=(0,a.useMemo)(function(){return te===F.length-1},[F.length,te]),se=(0,a.useCallback)(function(Y,me){V.current.has(Y)||I(function(Ye){return[].concat((0,g.Z)(Ye),[Y])}),V.current.set(Y,me)},[]),ve=(0,a.useCallback)(function(Y){I(function(me){return me.filter(function(Ye){return Ye!==Y})}),V.current.delete(Y),A.current.delete(Y)},[]);(0,a.useImperativeHandle)(E,function(){return D.current},[D.current]),(0,a.useImperativeHandle)(b,function(){var Y;return(Y=D.current[te||0])===null||Y===void 0?void 0:Y.current},[te,D.current]);var de=(0,a.useCallback)(function(){var Y=(0,K.Z)((0,L.Z)().mark(function me(Ye,ht){var nt,yt;return(0,L.Z)().wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:if(A.current.set(Ye,ht),!(!ae||!p)){fn.next=3;break}return fn.abrupt("return");case 3:return T(!0),nt=_e.T.apply(void 0,[{}].concat((0,g.Z)(Array.from(A.current.values())))),fn.prev=5,fn.next=8,p(nt);case 8:yt=fn.sent,yt&&(N(0),D.current.forEach(function(vr){var Zn;return(Zn=vr.current)===null||Zn===void 0?void 0:Zn.resetFields()})),fn.next=15;break;case 12:fn.prev=12,fn.t0=fn.catch(5),console.log(fn.t0);case 15:return fn.prev=15,T(!1),fn.finish(15);case 18:case"end":return fn.stop()}},me,null,[[5,12,15,18]])}));return function(me,Ye){return Y.apply(this,arguments)}}(),[ae,p,T,N]),he=(0,a.useMemo)(function(){var Y=(0,ol.n)(Fl.Z,"4.24.0")>-1,me=Y?{items:F.map(function(Ye){var ht=V.current.get(Ye);return(0,u.Z)({key:Ye,title:ht==null?void 0:ht.title},ht==null?void 0:ht.stepProps)})}:{};return(0,C.jsx)("div",{className:"".concat(n,"-steps-container ").concat(i).trim(),style:{maxWidth:Math.min(F.length*320,1160)},children:(0,C.jsx)(bi,(0,u.Z)((0,u.Z)((0,u.Z)({},S),me),{},{current:te,onChange:void 0,children:!Y&&F.map(function(Ye){var ht=V.current.get(Ye);return(0,C.jsx)(bi.Step,(0,u.Z)({title:ht==null?void 0:ht.title},ht==null?void 0:ht.stepProps),Ye)})}))})},[F,i,n,te,S]),oe=(0,Se.J)(function(){var Y,me=D.current[te];(Y=me.current)===null||Y===void 0||Y.submit()}),ue=(0,Se.J)(function(){te<1||N(te-1)}),Ae=(0,a.useMemo)(function(){return d!==!1&&(0,C.jsx)(Gn.ZP,(0,u.Z)((0,u.Z)({type:"primary",loading:z},d==null?void 0:d.submitButtonProps),{},{onClick:function(){var me;d==null||(me=d.onSubmit)===null||me===void 0||me.call(d),oe()},children:X.getMessage("stepsForm.next","\u4E0B\u4E00\u6B65")}),"next")},[X,z,oe,d]),Ve=(0,a.useMemo)(function(){return d!==!1&&(0,C.jsx)(Gn.ZP,(0,u.Z)((0,u.Z)({},d==null?void 0:d.resetButtonProps),{},{onClick:function(){var me;ue(),d==null||(me=d.onReset)===null||me===void 0||me.call(d)},children:X.getMessage("stepsForm.prev","\u4E0A\u4E00\u6B65")}),"pre")},[X,ue,d]),ot=(0,a.useMemo)(function(){return d!==!1&&(0,C.jsx)(Gn.ZP,(0,u.Z)((0,u.Z)({type:"primary",loading:z},d==null?void 0:d.submitButtonProps),{},{onClick:function(){var me;d==null||(me=d.onSubmit)===null||me===void 0||me.call(d),oe()},children:X.getMessage("stepsForm.submit","\u63D0\u4EA4")}),"submit")},[X,z,oe,d]),Xt=(0,Se.J)(function(){te>F.length-2||N(te+1)}),dt=(0,a.useMemo)(function(){var Y=[],me=te||0;if(me<1?F.length===1?Y.push(ot):Y.push(Ae):me+1===F.length?Y.push(Ve,ot):Y.push(Ve,Ae),Y=Y.filter(a.isValidElement),d&&d.render){var Ye,ht={form:(Ye=D.current[te])===null||Ye===void 0?void 0:Ye.current,onSubmit:oe,step:te,onPre:ue};return d.render(ht,Y)}return d&&(d==null?void 0:d.render)===!1?null:Y},[F.length,Ae,oe,Ve,ue,te,ot,d]),Ft=(0,a.useMemo)(function(){return(0,Na.Z)(t.children).map(function(Y,me){var Ye=Y.props,ht=Ye.name||"".concat(me),nt=te===me,yt=nt?{contentRender:y,submitter:!1}:{};return(0,C.jsx)("div",{className:it()("".concat(n,"-step"),i,(0,P.Z)({},"".concat(n,"-step-active"),nt)),children:(0,C.jsx)(Si.Provider,{value:(0,u.Z)((0,u.Z)((0,u.Z)((0,u.Z)({},yt),x),Ye),{},{name:ht,step:me}),children:Y})},ht)})},[x,i,n,t.children,te,y]),rn=(0,a.useMemo)(function(){return m?m(F.map(function(Y){var me;return{key:Y,title:(me=V.current.get(Y))===null||me===void 0?void 0:me.title}}),he):he},[F,he,m]),Mn=(0,a.useMemo)(function(){return(0,C.jsxs)("div",{className:"".concat(n,"-container ").concat(i).trim(),style:h,children:[Ft,v?null:(0,C.jsx)(da.Z,{children:dt})]})},[h,Ft,i,n,v,dt]),xe=(0,a.useMemo)(function(){var Y={stepsDom:rn,formDom:Mn};return v?v(R?R(Y):G(Y),dt):R?R(Y):G(Y)},[rn,Mn,G,v,dt,R]);return s((0,C.jsx)("div",{className:it()(n,i),children:(0,C.jsx)(pe.Z.Provider,(0,u.Z)((0,u.Z)({},$),{},{children:(0,C.jsx)(xi.Provider,{value:{loading:z,setLoading:T,regForm:se,keyArray:F,next:Xt,formArrayRef:D,formMapRef:V,lastStep:ae,unRegForm:ve,onFormFinish:de},children:xe})}))}))}function ll(t){return(0,C.jsx)(Xe._Y,{needDeps:!0,children:(0,C.jsx)(Ec,(0,u.Z)({},t))})}ll.StepForm=Cc,ll.useForm=pe.Z.useForm;var wc=["steps","columns","forceUpdate","grid"],Rc=function(e){var r=e.steps,n=e.columns,o=e.forceUpdate,s=e.grid,i=(0,je.Z)(e,wc),l=(0,li.d)(i),c=(0,a.useCallback)(function(v){var m,y;(m=(y=l.current).onCurrentChange)===null||m===void 0||m.call(y,v),o([])},[o,l]),d=(0,a.useMemo)(function(){return r==null?void 0:r.map(function(v,m){return(0,a.createElement)(wi,(0,u.Z)((0,u.Z)({grid:s},v),{},{key:m,layoutType:"StepForm",columns:n[m]}))})},[n,s,r]);return(0,C.jsx)(ll,(0,u.Z)((0,u.Z)({},i),{},{onCurrentChange:c,children:d}))},Ic=Rc,Tc=function(e){var r=e.children;return(0,C.jsx)(C.Fragment,{children:r})},Pc=Tc,Zi=f(97462),Nc=function(e,r){if(e.valueType==="dependency"){var n,o,s,i=(n=e.getFieldProps)===null||n===void 0?void 0:n.call(e);return(0,Te.ET)(Array.isArray((o=e.name)!==null&&o!==void 0?o:i==null?void 0:i.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),(0,Te.ET)(typeof e.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((s=e.name)!==null&&s!==void 0?s:i==null?void 0:i.name)?(0,a.createElement)(Zi.Z,(0,u.Z)((0,u.Z)({name:e.name},i),{},{key:e.key}),function(l){return!e.columns||typeof e.columns!="function"?null:r.genItems(e.columns(l))}):null}return!0},$c=f(96074),Oc=function(e){if(e.valueType==="divider"){var r;return(0,a.createElement)($c.Z,(0,u.Z)((0,u.Z)({},(r=e.getFieldProps)===null||r===void 0?void 0:r.call(e)),{},{key:e.key}))}return!0},il=f(21614),Kc=function(e,r){var n=r.action,o=r.formRef,s=r.type,i=r.originItem,l=(0,u.Z)((0,u.Z)({},(0,To.Z)(e,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:e.name||e.key||e.dataIndex,width:e.width,render:e!=null&&e.render?function(m,y,S){var p,x,h,b;return e==null||(p=e.render)===null||p===void 0?void 0:p.call(e,m,y,S,n==null?void 0:n.current,(0,u.Z)((0,u.Z)({type:s},e),{},{key:(x=e.key)===null||x===void 0?void 0:x.toString(),formItemProps:(h=e.getFormItemProps)===null||h===void 0?void 0:h.call(e),fieldProps:(b=e.getFieldProps)===null||b===void 0?void 0:b.call(e)}))}:void 0}),c=function(){return(0,C.jsx)(il.Z,(0,u.Z)((0,u.Z)({},l),{},{ignoreFormItem:!0}))},d=e!=null&&e.renderFormItem?function(m,y){var S,p,x,h,b=(0,mt.Y)((0,u.Z)((0,u.Z)({},y),{},{onChange:void 0}));return e==null||(S=e.renderFormItem)===null||S===void 0?void 0:S.call(e,(0,u.Z)((0,u.Z)({type:s},e),{},{key:(p=e.key)===null||p===void 0?void 0:p.toString(),formItemProps:(x=e.getFormItemProps)===null||x===void 0?void 0:x.call(e),fieldProps:(h=e.getFieldProps)===null||h===void 0?void 0:h.call(e),originProps:i}),(0,u.Z)((0,u.Z)({},b),{},{defaultRender:c,type:s}),o.current)}:void 0,v=function(){if(e!=null&&e.renderFormItem){var y=d==null?void 0:d(null,{});if(!y||e.ignoreFormItem)return y}return(0,a.createElement)(il.Z,(0,u.Z)((0,u.Z)({},l),{},{key:[e.key,e.index||0].join("-"),renderFormItem:d}))};return e.dependencies?(0,C.jsx)(Zi.Z,{name:e.dependencies||[],children:v},e.key):v()},Mc=f(55895),Dc=function(e,r){var n=r.genItems;if(e.valueType==="formList"&&e.dataIndex){var o,s;return!e.columns||!Array.isArray(e.columns)?null:(0,a.createElement)(Mc.u,(0,u.Z)((0,u.Z)({},(o=e.getFormItemProps)===null||o===void 0?void 0:o.call(e)),{},{key:e.key,name:e.dataIndex,label:e.label,initialValue:e.initialValue,colProps:e.colProps,rowProps:e.rowProps},(s=e.getFieldProps)===null||s===void 0?void 0:s.call(e)),n(e.columns))}return!0},Fc=f(90789),jc=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue","lightProps"],Lc=["children","space","valuePropName"],Bc={space:da.Z,group:nr.Z.Group};function kc(t){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&t in e.target?e.target[t]:e}var Ac=function(e){var r=e.children,n=e.value,o=n===void 0?[]:n,s=e.valuePropName,i=e.onChange,l=e.fieldProps,c=e.space,d=e.type,v=d===void 0?"space":d,m=e.transform,y=e.convertValue,S=e.lightProps,p=(0,je.Z)(e,jc),x=(0,Se.J)(function(D,B){var O,F=(0,g.Z)(o);F[B]=kc(s||"value",D),i==null||i(F),l==null||(O=l.onChange)===null||O===void 0||O.call(l,F)}),h=-1,b=(0,Na.Z)((0,co.h)(r,o,e)).map(function(D){if(a.isValidElement(D)){var B,O,F;h+=1;var I=h,M=(D==null||(B=D.type)===null||B===void 0?void 0:B.displayName)==="ProFormComponent"||(D==null||(O=D.props)===null||O===void 0?void 0:O.readonly),re=M?(0,u.Z)((0,u.Z)({key:I,ignoreFormItem:!0},D.props||{}),{},{fieldProps:(0,u.Z)((0,u.Z)({},D==null||(F=D.props)===null||F===void 0?void 0:F.fieldProps),{},{onChange:function(){x(arguments.length<=0?void 0:arguments[0],I)}}),value:o==null?void 0:o[I],onChange:void 0}):(0,u.Z)((0,u.Z)({key:I},D.props||{}),{},{value:o==null?void 0:o[I],onChange:function(T){var X,_;x(T,I),(X=(_=D.props).onChange)===null||X===void 0||X.call(_,T)}});return a.cloneElement(D,re)}return D}),E=Bc[v],R=(0,Ge.zx)(p),$=R.RowWrapper,A=(0,a.useMemo)(function(){return(0,u.Z)({},v==="group"?{compact:!0}:{})},[v]),V=(0,a.useCallback)(function(D){var B=D.children;return(0,C.jsx)(E,(0,u.Z)((0,u.Z)((0,u.Z)({},A),c),{},{align:"start",wrap:!0,children:B}))},[E,c,A]);return(0,C.jsx)($,{Wrapper:V,children:b})},zc=a.forwardRef(function(t,e){var r=t.children,n=t.space,o=t.valuePropName,s=(0,je.Z)(t,Lc);return(0,a.useImperativeHandle)(e,function(){return{}}),(0,C.jsx)(Ac,(0,u.Z)((0,u.Z)((0,u.Z)({space:n,valuePropName:o},s.fieldProps),{},{onChange:void 0},s),{},{children:r}))}),Hc=(0,Fc.G)(zc),Wc=Hc,Vc=function(e,r){var n=r.genItems;if(e.valueType==="formSet"&&e.dataIndex){var o,s;return!e.columns||!Array.isArray(e.columns)?null:(0,a.createElement)(Wc,(0,u.Z)((0,u.Z)({},(o=e.getFormItemProps)===null||o===void 0?void 0:o.call(e)),{},{key:e.key,initialValue:e.initialValue,name:e.dataIndex,label:e.label,colProps:e.colProps,rowProps:e.rowProps},(s=e.getFieldProps)===null||s===void 0?void 0:s.call(e)),n(e.columns))}return!0},Uc=Ue.A.Group,Xc=function(e,r){var n=r.genItems;if(e.valueType==="group"){var o;return!e.columns||!Array.isArray(e.columns)?null:(0,C.jsx)(Uc,(0,u.Z)((0,u.Z)({label:e.label,colProps:e.colProps,rowProps:e.rowProps},(o=e.getFieldProps)===null||o===void 0?void 0:o.call(e)),{},{children:n(e.columns)}),e.key)}return!0},Gc=function(e){return e.valueType&&typeof e.valueType=="string"&&["index","indexBorder","option"].includes(e==null?void 0:e.valueType)?null:!0},Ei=[Gc,Xc,Dc,Vc,Oc,Nc],Yc=function(e,r){for(var n=0;n=60&&Math.round(t.h)<=240?n=r?Math.round(t.h)-sl*e:Math.round(t.h)+sl*e:n=r?Math.round(t.h)+sl*e:Math.round(t.h)-sl*e,n<0?n+=360:n>=360&&(n-=360),n}function Oi(t,e,r){if(t.h===0&&t.s===0)return t.s;var n;return r?n=t.s-Ii*e:e===Pi?n=t.s+Ii:n=t.s+cd*e,n>1&&(n=1),r&&e===Ti&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Ki(t,e,r){var n;return r?n=t.v+dd*e:n=t.v-ud*e,n>1&&(n=1),Number(n.toFixed(2))}function jl(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=(0,$a.uA)(t),o=Ti;o>0;o-=1){var s=Ni(n),i=cl((0,$a.uA)({h:$i(s,o,!0),s:Oi(s,o,!0),v:Ki(s,o,!0)}));r.push(i)}r.push(cl(n));for(var l=1;l<=Pi;l+=1){var c=Ni(n),d=cl((0,$a.uA)({h:$i(c,l),s:Oi(c,l),v:Ki(c,l)}));r.push(d)}return e.theme==="dark"?fd.map(function(v){var m=v.index,y=v.opacity,S=cl(vd((0,$a.uA)(e.backgroundColor||"#141414"),(0,$a.uA)(r[m]),y*100));return S}):r}var Ll={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"},wr={},Bl={};Object.keys(Ll).forEach(function(t){wr[t]=jl(Ll[t]),wr[t].primary=wr[t][5],Bl[t]=jl(Ll[t],{theme:"dark",backgroundColor:"#141414"}),Bl[t].primary=Bl[t][5]});var Ev=wr.red,wv=wr.volcano,Rv=wr.gold,Iv=wr.orange,Tv=wr.yellow,Pv=wr.lime,Nv=wr.green,$v=wr.cyan,md=wr.blue,Ov=wr.geekblue,Kv=wr.purple,Mv=wr.magenta,Dv=wr.grey,Fv=wr.grey,pd=(0,a.createContext)({}),Mi=pd,gd=f(44958),hd=f(27571);function yd(t){return t.replace(/-(.)/g,function(e,r){return r.toUpperCase()})}function Cd(t,e){(0,Te.ZP)(t,"[@ant-design/icons] ".concat(e))}function Di(t){return(0,st.Z)(t)==="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&((0,st.Z)(t.icon)==="object"||typeof t.icon=="function")}function Fi(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(t).reduce(function(e,r){var n=t[r];switch(r){case"class":e.className=n,delete e.class;break;default:delete e[r],e[yd(r)]=n}return e},{})}function kl(t,e,r){return r?a.createElement(t.tag,(0,u.Z)((0,u.Z)({key:e},Fi(t.attrs)),r),(t.children||[]).map(function(n,o){return kl(n,"".concat(e,"-").concat(t.tag,"-").concat(o))})):a.createElement(t.tag,(0,u.Z)({key:e},Fi(t.attrs)),(t.children||[]).map(function(n,o){return kl(n,"".concat(e,"-").concat(t.tag,"-").concat(o))}))}function ji(t){return jl(t)[0]}function Li(t){return t?Array.isArray(t)?t:[t]:[]}var jv={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},bd=` -.anticon { - display: inline-flex; - alignItems: center; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,xd=function(e){var r=(0,a.useContext)(Mi),n=r.csp,o=r.prefixCls,s=bd;o&&(s=s.replace(/anticon/g,o)),(0,a.useEffect)(function(){var i=e.current,l=(0,hd.A)(i);(0,gd.hq)(s,"@ant-design-icons",{prepend:!0,csp:n,attachTo:l})},[])},Sd=["icon","className","onClick","style","primaryColor","secondaryColor"],Oa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Zd(t){var e=t.primaryColor,r=t.secondaryColor;Oa.primaryColor=e,Oa.secondaryColor=r||ji(e),Oa.calculated=!!r}function Ed(){return(0,u.Z)({},Oa)}var dl=function(e){var r=e.icon,n=e.className,o=e.onClick,s=e.style,i=e.primaryColor,l=e.secondaryColor,c=(0,je.Z)(e,Sd),d=a.useRef(),v=Oa;if(i&&(v={primaryColor:i,secondaryColor:l||ji(i)}),xd(d),Cd(Di(r),"icon should be icon definiton, but got ".concat(r)),!Di(r))return null;var m=r;return m&&typeof m.icon=="function"&&(m=(0,u.Z)((0,u.Z)({},m),{},{icon:m.icon(v.primaryColor,v.secondaryColor)})),kl(m.icon,"svg-".concat(m.name),(0,u.Z)((0,u.Z)({className:n,onClick:o,style:s,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:d}))};dl.displayName="IconReact",dl.getTwoToneColors=Ed,dl.setTwoToneColors=Zd;var Al=dl;function Bi(t){var e=Li(t),r=(0,Ne.Z)(e,2),n=r[0],o=r[1];return Al.setTwoToneColors({primaryColor:n,secondaryColor:o})}function wd(){var t=Al.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var Rd=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Bi(md.primary);var ul=a.forwardRef(function(t,e){var r=t.className,n=t.icon,o=t.spin,s=t.rotate,i=t.tabIndex,l=t.onClick,c=t.twoToneColor,d=(0,je.Z)(t,Rd),v=a.useContext(Mi),m=v.prefixCls,y=m===void 0?"anticon":m,S=v.rootClassName,p=it()(S,y,(0,P.Z)((0,P.Z)({},"".concat(y,"-").concat(n.name),!!n.name),"".concat(y,"-spin"),!!o||n.name==="loading"),r),x=i;x===void 0&&l&&(x=-1);var h=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,b=Li(c),E=(0,Ne.Z)(b,2),R=E[0],$=E[1];return a.createElement("span",(0,We.Z)({role:"img","aria-label":n.name},d,{ref:e,tabIndex:x,onClick:l,className:p}),a.createElement(Al,{icon:n,primaryColor:R,secondaryColor:$,style:h}))});ul.displayName="AntdIcon",ul.getTwoToneColor=wd,ul.setTwoToneColor=Bi;var Po=ul,Id=function(e,r){return a.createElement(Po,(0,We.Z)({},e,{ref:r,icon:sd}))},Td=a.forwardRef(Id),Pd=Td,Nd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},$d=Nd,Od=function(e,r){return a.createElement(Po,(0,We.Z)({},e,{ref:r,icon:$d}))},Kd=a.forwardRef(Od),Md=Kd,Dd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z"}}]},name:"vertical-align-middle",theme:"outlined"},Fd=Dd,jd=function(e,r){return a.createElement(Po,(0,We.Z)({},e,{ref:r,icon:Fd}))},Ld=a.forwardRef(jd),Bd=Ld,kd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},Ad=kd,zd=function(e,r){return a.createElement(Po,(0,We.Z)({},e,{ref:r,icon:Ad}))},Hd=a.forwardRef(zd),Wd=Hd,Vd=f(34689),Ud=function(e,r){return a.createElement(Po,(0,We.Z)({},e,{ref:r,icon:Vd.Z}))},Xd=a.forwardRef(Ud),Gd=Xd,Yd={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"},Jd=Yd,Qd=function(e,r){return a.createElement(Mr.Z,(0,We.Z)({},e,{ref:r,icon:Jd}))},qd=a.forwardRef(Qd),_d=qd,eu=f(20640),tu=f.n(eu),ki=f(42550),Ai=f(79370),nu=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o{const r=d=>{const{keyCode:v}=d;v===Fn.Z.ENTER&&d.preventDefault()},n=d=>{const{keyCode:v}=d,{onClick:m}=t;v===Fn.Z.ENTER&&m&&m()},{style:o,noStyle:s,disabled:i}=t,l=nu(t,["style","noStyle","disabled"]);let c={};return s||(c=Object.assign({},ru)),i&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),o),a.createElement("div",Object.assign({role:"button",tabIndex:0,ref:e},l,{onKeyDown:r,onKeyUp:n,style:c}))}),ou=f(10110),au={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"},lu=au,iu=function(e,r){return a.createElement(Mr.Z,(0,We.Z)({},e,{ref:r,icon:lu}))},su=a.forwardRef(iu),cu=su,du=f(96159),uu=f(70006),fu=f(78589);const vu=(t,e,r,n)=>{const{titleMarginBottom:o,fontWeightStrong:s}=n;return{marginBottom:o,color:r,fontWeight:s,fontSize:t,lineHeight:e}},mu=t=>{const e=[1,2,3,4,5],r={};return e.forEach(n=>{r[` - h${n}&, - div&-h${n}, - div&-h${n} > textarea, - h${n} - `]=vu(t[`fontSizeHeading${n}`],t[`lineHeightHeading${n}`],t.colorTextHeading,t)}),r},pu=t=>{const{componentCls:e}=t;return{"a&, a":Object.assign(Object.assign({},jo(t)),{textDecoration:t.linkDecoration,"&:active, &:hover":{textDecoration:t.linkHoverDecoration},[`&[disabled], &${e}-disabled`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:t.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},gu=t=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:t.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:t.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:fu.EV[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:t.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}}),hu=t=>{const{componentCls:e,paddingSM:r}=t,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:t.calc(t.paddingSM).mul(-1).equal(),marginTop:t.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${(0,Fe.bf)(n)})`},[`${e}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:t.calc(t.marginXS).add(2).equal(),insetBlockEnd:t.marginXS,color:t.colorTextDescription,fontWeight:"normal",fontSize:t.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},yu=t=>({[`${t.componentCls}-copy-success`]:{[` - &, - &:hover, - &:focus`]:{color:t.colorSuccess}},[`${t.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Cu=()=>({[` - a&-ellipsis, - span&-ellipsis - `]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{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"}}),bu=t=>{const{componentCls:e,titleMarginTop:r}=t;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:t.colorText,wordBreak:"break-word",lineHeight:t.lineHeight,[`&${e}-secondary`]:{color:t.colorTextDescription},[`&${e}-success`]:{color:t.colorSuccess},[`&${e}-warning`]:{color:t.colorWarning},[`&${e}-danger`]:{color:t.colorError,"a&:active, a&:focus":{color:t.colorErrorActive},"a&:hover":{color:t.colorErrorHover}},[`&${e}-disabled`]:{color:t.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` - div&, - p - `]:{marginBottom:"1em"}},mu(t)),{[` - & + h1${e}, - & + h2${e}, - & + h3${e}, - & + h4${e}, - & + h5${e} - `]:{marginTop:r},[` - div, - ul, - li, - p, - h1, - h2, - h3, - h4, - h5`]:{[` - + h1, - + h2, - + h3, - + h4, - + h5 - `]:{marginTop:r}}}),gu(t)),pu(t)),{[` - ${e}-expand, - ${e}-edit, - ${e}-copy - `]:Object.assign(Object.assign({},jo(t)),{marginInlineStart:t.marginXXS})}),hu(t)),yu(t)),Cu()),{"&-rtl":{direction:"rtl"}})}},xu=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var Hi=(0,ba.I$)("Typography",t=>[bu(t)],xu),Su=t=>{const{prefixCls:e,"aria-label":r,className:n,style:o,direction:s,maxLength:i,autoSize:l=!0,value:c,onSave:d,onCancel:v,onEnd:m,component:y,enterIcon:S=a.createElement(cu,null)}=t,p=a.useRef(null),x=a.useRef(!1),h=a.useRef(),[b,E]=a.useState(c);a.useEffect(()=>{E(c)},[c]),a.useEffect(()=>{if(p.current&&p.current.resizableTextArea){const{textArea:T}=p.current.resizableTextArea;T.focus();const{length:X}=T.value;T.setSelectionRange(X,X)}},[]);const R=T=>{let{target:X}=T;E(X.value.replace(/[\n\r]/g,""))},$=()=>{x.current=!0},A=()=>{x.current=!1},V=T=>{let{keyCode:X}=T;x.current||(h.current=X)},D=()=>{d(b.trim())},B=T=>{let{keyCode:X,ctrlKey:_,altKey:we,metaKey:te,shiftKey:N}=T;h.current===X&&!x.current&&!_&&!we&&!te&&!N&&(X===Fn.Z.ENTER?(D(),m==null||m()):X===Fn.Z.ESC&&v())},O=()=>{D()},F=y?`${e}-${y}`:"",[I,M,re]=Hi(e),z=it()(e,`${e}-edit-content`,{[`${e}-rtl`]:s==="rtl"},n,F,M,re);return I(a.createElement("div",{className:z,style:o},a.createElement(uu.Z,{ref:p,maxLength:i,value:b,onChange:R,onKeyDown:V,onKeyUp:B,onCompositionStart:$,onCompositionEnd:A,onBlur:O,"aria-label":r,rows:1,autoSize:l}),S!==null?(0,du.Tm)(S,{className:`${e}-edit-content-confirm`}):null))};function zl(t,e){return a.useMemo(()=>{const r=!!t;return[r,Object.assign(Object.assign({},e),r&&typeof t=="object"?t:null)]},[t])}var Zu=(t,e)=>{const r=a.useRef(!1);a.useEffect(()=>{r.current?t():r.current=!0},e)},Eu=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o{const{prefixCls:r,component:n="article",className:o,rootClassName:s,setContentRef:i,children:l,direction:c,style:d}=t,v=Eu(t,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:m,direction:y,typography:S}=a.useContext(Gt.E_),p=c!=null?c:y;let x=e;i&&(x=(0,ki.sQ)(e,i));const h=m("typography",r),[b,E,R]=Hi(h),$=it()(h,S==null?void 0:S.className,{[`${h}-rtl`]:p==="rtl"},o,s,E,R),A=Object.assign(Object.assign({},S==null?void 0:S.style),d);return b(a.createElement(n,Object.assign({className:$,style:A,ref:x},v),l))}),wu=f(48820),Ru=function(e,r){return a.createElement(Mr.Z,(0,We.Z)({},e,{ref:r,icon:wu.Z}))},Iu=a.forwardRef(Ru),Tu=Iu;function Vi(t){return t===!1?[!1,!1]:Array.isArray(t)?t:[t]}function fl(t,e,r){return t===!0||t===void 0?e:t||r&&e}function Pu(t){const{prefixCls:e,copied:r,locale:n={},onCopy:o,iconOnly:s,tooltips:i,icon:l}=t,c=Vi(i),d=Vi(l),{copied:v,copy:m}=n,y=r?fl(c[1],v):fl(c[0],m),p=typeof y=="string"?y:r?v:m;return a.createElement(Sr.Z,{key:"copy",title:y},a.createElement(zi,{className:it()(`${e}-copy`,{[`${e}-copy-success`]:r,[`${e}-copy-icon-only`]:s}),onClick:o,"aria-label":p},r?fl(d[1],a.createElement(mi.Z,null),!0):fl(d[0],a.createElement(Tu,null),!0)))}const vl=a.forwardRef((t,e)=>{let{style:r,children:n}=t;const o=a.useRef(null);return a.useImperativeHandle(e,()=>({isExceed:()=>{const s=o.current;return s.scrollHeight>s.clientHeight},getHeight:()=>o.current.clientHeight})),a.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)});function Ui(t){const e=typeof t;return e==="string"||e==="number"}function Nu(t){let e=0;return t.forEach(r=>{Ui(r)?e+=String(r).length:e+=1}),e}function Xi(t,e){let r=0;const n=[];for(let o=0;oe){const d=e-r;return n.push(String(s).slice(0,d)),n}n.push(s),r=c}return t}const Hl=0,Wl=1,Vl=2,Gi=3,ml={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function $u(t){const{enableMeasure:e,width:r,text:n,children:o,rows:s,miscDeps:i,onEllipsis:l}=t,c=a.useMemo(()=>(0,Na.Z)(n),[n]),d=a.useMemo(()=>Nu(c),[n]),v=a.useMemo(()=>o(c,!1,!1),[n]),[m,y]=a.useState(null),S=a.useRef(null),p=a.useRef(null),x=a.useRef(null),h=a.useRef(null),[b,E]=a.useState(Hl),[R,$]=a.useState(0);(0,Qr.Z)(()=>{E(e&&r&&d?Wl:Hl)},[r,n,s,e,c]),(0,Qr.Z)(()=>{var B,O,F,I;if(b===Wl){const M=!!(!((B=p.current)===null||B===void 0)&&B.isExceed());E(M?Vl:Gi),y(M?[0,d]:null);const re=((O=p.current)===null||O===void 0?void 0:O.getHeight())||0,z=s===1?0:((F=x.current)===null||F===void 0?void 0:F.getHeight())||0,T=((I=h.current)===null||I===void 0?void 0:I.getHeight())||0,X=z+T,_=Math.max(re,X);$(_+1),l(M)}},[b]);const A=m?Math.ceil((m[0]+m[1])/2):0;(0,Qr.Z)(()=>{var B;const[O,F]=m||[0,0];if(O!==F){const M=(((B=S.current)===null||B===void 0?void 0:B.getHeight())||0)>R;let re=A;F-O===1&&(re=M?O:F),y(M?[O,re]:[re,F])}},[m,A]);const V=a.useMemo(()=>{if(b!==Vl||!m||m[0]!==m[1]){const B=o(c,!1,!1);return b!==Gi&&b!==Hl?a.createElement("span",{style:Object.assign(Object.assign({},ml),{WebkitLineClamp:s})},B):B}return o(Xi(c,m[0]),!0,!0)},[b,m,c].concat((0,g.Z)(i))),D={width:r,whiteSpace:"normal",margin:0,padding:0};return a.createElement(a.Fragment,null,V,b===Wl&&a.createElement(a.Fragment,null,a.createElement(vl,{style:Object.assign(Object.assign(Object.assign({},D),ml),{WebkitLineClamp:s}),ref:p},v),a.createElement(vl,{style:Object.assign(Object.assign(Object.assign({},D),ml),{WebkitLineClamp:s-1}),ref:x},v),a.createElement(vl,{style:Object.assign(Object.assign(Object.assign({},D),ml),{WebkitLineClamp:1}),ref:h},o([],!0,!0))),b===Vl&&m&&m[0]!==m[1]&&a.createElement(vl,{style:Object.assign(Object.assign({},D),{top:400}),ref:S},o(Xi(c,A),!0,!0)))}var Ou=t=>{let{enableEllipsis:e,isEllipsis:r,children:n,tooltipProps:o}=t;return!(o!=null&&o.title)||!e?n:a.createElement(Sr.Z,Object.assign({open:r?void 0:!1},o),n)},Ku=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o{var r,n,o;const{prefixCls:s,className:i,style:l,type:c,disabled:d,children:v,ellipsis:m,editable:y,copyable:S,component:p,title:x}=t,h=Ku(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:E}=a.useContext(Gt.E_),[R]=(0,ou.Z)("Text"),$=a.useRef(null),A=a.useRef(null),V=b("typography",s),D=(0,pr.Z)(h,["mark","code","delete","underline","strong","keyboard","italic"]),[B,O]=zl(y),[F,I]=(0,ge.Z)(!1,{value:O.editing}),{triggerType:M=["icon"]}=O,re=He=>{var It;He&&((It=O.onStart)===null||It===void 0||It.call(O)),I(He)};Zu(()=>{var He;F||(He=A.current)===null||He===void 0||He.focus()},[F]);const z=He=>{He==null||He.preventDefault(),re(!0)},T=He=>{var It;(It=O.onChange)===null||It===void 0||It.call(O,He),re(!1)},X=()=>{var He;(He=O.onCancel)===null||He===void 0||He.call(O),re(!1)},[_,we]=zl(S),[te,N]=a.useState(!1),G=a.useRef(null),ae={};we.format&&(ae.format=we.format);const se=()=>{G.current&&clearTimeout(G.current)},ve=He=>{var It;He==null||He.preventDefault(),He==null||He.stopPropagation(),tu()(we.text||String(v)||"",ae),N(!0),se(),G.current=setTimeout(()=>{N(!1)},3e3),(It=we.onCopy)===null||It===void 0||It.call(we,He)};a.useEffect(()=>se,[]);const[de,he]=a.useState(!1),[oe,ue]=a.useState(!1),[Ae,Ve]=a.useState(!1),[ot,Xt]=a.useState(!1),[dt,Ft]=a.useState(!1),[rn,Mn]=a.useState(!0),[xe,Y]=zl(m,{expandable:!1}),me=xe&&!Ae,{rows:Ye=1}=Y,ht=a.useMemo(()=>!me||Y.suffix!==void 0||Y.onEllipsis||Y.expandable||B||_,[me,Y,B,_]);(0,Qr.Z)(()=>{xe&&!ht&&(he((0,Ai.G)("webkitLineClamp")),ue((0,Ai.G)("textOverflow")))},[ht,xe]);const nt=a.useMemo(()=>ht?!1:Ye===1?oe:de,[ht,oe,de]),yt=me&&(nt?dt:ot),Nn=me&&Ye===1&&nt,fn=me&&Ye>1&&nt,vr=He=>{var It;Ve(!0),(It=Y.onExpand)===null||It===void 0||It.call(Y,He)},[Zn,ao]=a.useState(0),lo=He=>{let{offsetWidth:It}=He;ao(It)},Fr=He=>{var It;Xt(He),ot!==He&&((It=Y.onEllipsis)===null||It===void 0||It.call(Y,He))};a.useEffect(()=>{const He=$.current;if(xe&&nt&&He){const It=fn?He.offsetHeight{const He=$.current;if(typeof IntersectionObserver=="undefined"||!He||!nt||!me)return;const It=new IntersectionObserver(()=>{Mn(!!He.offsetParent)});return It.observe(He),()=>{It.disconnect()}},[nt,me]);let Rr={};Y.tooltip===!0?Rr={title:(r=O.text)!==null&&r!==void 0?r:v}:a.isValidElement(Y.tooltip)?Rr={title:Y.tooltip}:typeof Y.tooltip=="object"?Rr=Object.assign({title:(n=O.text)!==null&&n!==void 0?n:v},Y.tooltip):Rr={title:Y.tooltip};const No=a.useMemo(()=>{const He=It=>["string","number"].includes(typeof It);if(!(!xe||nt)){if(He(O.text))return O.text;if(He(v))return v;if(He(x))return x;if(He(Rr.title))return Rr.title}},[xe,nt,x,Rr.title,yt]);if(F)return a.createElement(Su,{value:(o=O.text)!==null&&o!==void 0?o:typeof v=="string"?v:"",onSave:T,onCancel:X,onEnd:O.onEnd,prefixCls:V,className:i,style:l,direction:E,component:p,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const va=()=>{const{expandable:He,symbol:It}=Y;if(!He)return null;let Qt;return It?Qt=It:Qt=R==null?void 0:R.expand,a.createElement("a",{key:"expand",className:`${V}-expand`,onClick:vr,"aria-label":R==null?void 0:R.expand},Qt)},ko=()=>{if(!B)return;const{icon:He,tooltip:It}=O,Qt=(0,Na.Z)(It)[0]||(R==null?void 0:R.edit),ho=typeof Qt=="string"?Qt:"";return M.includes("icon")?a.createElement(Sr.Z,{key:"edit",title:It===!1?"":Qt},a.createElement(zi,{ref:A,className:`${V}-edit`,onClick:z,"aria-label":ho},He||a.createElement(_d,{role:"button"}))):null},Jo=()=>_?a.createElement(Pu,Object.assign({key:"copy"},we,{prefixCls:V,copied:te,locale:R,onCopy:ve,iconOnly:v==null})):null,Qo=He=>[He&&va(),ko(),Jo()],ma=He=>[He&&a.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Du),Y.suffix,Qo(He)];return a.createElement(Dl.Z,{onResize:lo,disabled:!me},He=>a.createElement(Ou,{tooltipProps:Rr,enableEllipsis:me,isEllipsis:yt},a.createElement(Wi,Object.assign({className:it()({[`${V}-${c}`]:c,[`${V}-disabled`]:d,[`${V}-ellipsis`]:xe,[`${V}-single-line`]:me&&Ye===1,[`${V}-ellipsis-single-line`]:Nn,[`${V}-ellipsis-multiple-line`]:fn},i),prefixCls:s,style:Object.assign(Object.assign({},l),{WebkitLineClamp:fn?Ye:void 0}),component:p,ref:(0,ki.sQ)(He,$,e),direction:E,onClick:M.includes("text")?z:void 0,"aria-label":No==null?void 0:No.toString(),title:x},D),a.createElement($u,{enableMeasure:me&&!nt,text:v,rows:Ye,width:Zn,onEllipsis:Fr,miscDeps:[te,Ae]},(It,Qt)=>{let ho=It;return It.length&&Qt&&No&&(ho=a.createElement("span",{key:"show-content","aria-hidden":!0},ho)),Mu(t,a.createElement(a.Fragment,null,ho,ma(Qt)))}))))}),Fu=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o{var{ellipsis:r,rel:n}=t,o=Fu(t,["ellipsis","rel"]);const s=Object.assign(Object.assign({},o),{rel:n===void 0&&o.target==="_blank"?"noopener noreferrer":n});return delete s.navigate,a.createElement(pl,Object.assign({},s,{ref:e,ellipsis:!!r,component:"a"}))}),Lu=a.forwardRef((t,e)=>a.createElement(pl,Object.assign({ref:e},t,{component:"div"}))),Bu=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o{var{ellipsis:r}=t,n=Bu(t,["ellipsis"]);const o=a.useMemo(()=>r&&typeof r=="object"?(0,pr.Z)(r,["expandable","rows"]):r,[r]);return a.createElement(pl,Object.assign({ref:e},n,{ellipsis:o,component:"span"}))};var Au=a.forwardRef(ku),zu=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o{const{level:r=1}=t,n=zu(t,["level"]);let o;return Hu.includes(r)?o=`h${r}`:o="h1",a.createElement(pl,Object.assign({ref:e},n,{component:o}))});const Ka=Wi;Ka.Text=Au,Ka.Link=ju,Ka.Title=Wu,Ka.Paragraph=Lu;var Yi=Ka,Ji=f(55241),Vu=function(e){return(0,P.Z)((0,P.Z)((0,P.Z)({},e.componentCls,{width:"auto","&-title":{display:"flex",alignItems:"center",justifyContent:"space-between",height:"32px"},"&-overlay":(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({},"".concat(e.antCls,"-popover-inner-content"),{width:"200px",paddingBlock:0,paddingInline:0,paddingBlockEnd:8}),"".concat(e.antCls,"-tree-node-content-wrapper:hover"),{backgroundColor:"transparent"}),"".concat(e.antCls,"-tree-draggable-icon"),{cursor:"grab"}),"".concat(e.antCls,"-tree-treenode"),(0,P.Z)((0,P.Z)({alignItems:"center","&:hover":(0,P.Z)({},"".concat(e.componentCls,"-list-item-option"),{display:"block"})},"".concat(e.antCls,"-tree-checkbox"),{marginInlineEnd:"4px"}),"".concat(e.antCls,"-tree-title"),{width:"100%"}))}),"".concat(e.componentCls,"-action-rest-button"),{color:e.colorPrimary}),"".concat(e.componentCls,"-list"),(0,P.Z)((0,P.Z)((0,P.Z)({display:"flex",flexDirection:"column",width:"100%",paddingBlockStart:8},"&".concat(e.componentCls,"-list-group"),{paddingBlockStart:0}),"&-title",{marginBlockStart:"6px",marginBlockEnd:"6px",paddingInlineStart:"24px",color:e.colorTextSecondary,fontSize:"12px"}),"&-item",{display:"flex",alignItems:"center",maxHeight:24,justifyContent:"space-between","&-title":{flex:1,maxWidth:80,textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"},"&-option":{display:"none",float:"right",cursor:"pointer","> span":{"> span.anticon":{color:e.colorPrimary}},"> span + span":{marginInlineStart:4}}}))};function Uu(t){return(0,rt.Xj)("ColumnSetting",function(e){var r=(0,u.Z)((0,u.Z)({},e),{},{componentCls:".".concat(t)});return[Vu(r)]})}var Xu=["key","dataIndex","children"],Gu=["disabled"],Ul=function(e){var r=e.title,n=e.show,o=e.children,s=e.columnKey,i=e.fixed,l=(0,a.useContext)(Bo),c=l.columnsMap,d=l.setColumnsMap;return n?(0,C.jsx)(Sr.Z,{title:r,children:(0,C.jsx)("span",{onClick:function(m){m.stopPropagation(),m.preventDefault();var y=c[s]||{},S=(0,u.Z)((0,u.Z)({},c),{},(0,P.Z)({},s,(0,u.Z)((0,u.Z)({},y),{},{fixed:i})));d(S)},children:o})}):null},Yu=function(e){var r=e.columnKey,n=e.isLeaf,o=e.title,s=e.className,i=e.fixed,l=e.showListItemOption,c=(0,Xe.YB)(),d=(0,a.useContext)(Xe.L_),v=d.hashId,m=(0,C.jsxs)("span",{className:"".concat(s,"-list-item-option ").concat(v).trim(),children:[(0,C.jsx)(Ul,{columnKey:r,fixed:"left",title:c.getMessage("tableToolBar.leftPin","\u56FA\u5B9A\u5728\u5217\u9996"),show:i!=="left",children:(0,C.jsx)(Md,{})}),(0,C.jsx)(Ul,{columnKey:r,fixed:void 0,title:c.getMessage("tableToolBar.noPin","\u4E0D\u56FA\u5B9A"),show:!!i,children:(0,C.jsx)(Bd,{})}),(0,C.jsx)(Ul,{columnKey:r,fixed:"right",title:c.getMessage("tableToolBar.rightPin","\u56FA\u5B9A\u5728\u5217\u5C3E"),show:i!=="right",children:(0,C.jsx)(Wd,{})})]});return(0,C.jsxs)("span",{className:"".concat(s,"-list-item ").concat(v).trim(),children:[(0,C.jsx)("div",{className:"".concat(s,"-list-item-title ").concat(v).trim(),children:o}),l&&!n?m:null]},r)},Xl=function(e){var r,n,o,s=e.list,i=e.draggable,l=e.checkable,c=e.showListItemOption,d=e.className,v=e.showTitle,m=v===void 0?!0:v,y=e.title,S=e.listHeight,p=S===void 0?280:S,x=(0,a.useContext)(Xe.L_),h=x.hashId,b=(0,a.useContext)(Bo),E=b.columnsMap,R=b.setColumnsMap,$=b.sortKeyColumns,A=b.setSortKeyColumns,V=s&&s.length>0,D=(0,a.useMemo)(function(){if(!V)return{};var I=[],M=new Map,re=function z(T,X){return T.map(function(_){var we,te=_.key,N=_.dataIndex,G=_.children,ae=(0,je.Z)(_,Xu),se=kr(te,[X==null?void 0:X.columnKey,ae.index].filter(Boolean).join("-")),ve=E[se||"null"]||{show:!0};ve.show!==!1&&!G&&I.push(se);var de=(0,u.Z)((0,u.Z)({key:se},(0,To.Z)(ae,["className"])),{},{selectable:!1,disabled:ve.disable===!0,disableCheckbox:typeof ve.disable=="boolean"?ve.disable:(we=ve.disable)===null||we===void 0?void 0:we.checkbox,isLeaf:X?!0:void 0});if(G){var he;de.children=z(G,(0,u.Z)((0,u.Z)({},ve),{},{columnKey:se})),(he=de.children)!==null&&he!==void 0&&he.every(function(oe){return I==null?void 0:I.includes(oe.key)})&&I.push(se)}return M.set(te,de),de})};return{list:re(s),keys:I,map:M}},[E,s,V]),B=(0,Se.J)(function(I,M,re){var z=(0,u.Z)({},E),T=(0,g.Z)($),X=T.findIndex(function(N){return N===I}),_=T.findIndex(function(N){return N===M}),we=re>=X;if(!(X<0)){var te=T[X];T.splice(X,1),re===0?T.unshift(te):T.splice(we?_:_+1,0,te),T.forEach(function(N,G){z[N]=(0,u.Z)((0,u.Z)({},z[N]||{}),{},{order:G})}),R(z),A(T)}}),O=(0,Se.J)(function(I){var M=(0,u.Z)({},E),re=function z(T){var X,_=(0,u.Z)({},M[T]);if(_.show=I.checked,(X=D.map)!==null&&X!==void 0&&(X=X.get(T))!==null&&X!==void 0&&X.children){var we;(we=D.map.get(T))===null||we===void 0||(we=we.children)===null||we===void 0||we.forEach(function(te){return z(te.key)})}M[T]=_};re(I.node.key),R((0,u.Z)({},M))});if(!V)return null;var F=(0,C.jsx)(Cn,{itemHeight:24,draggable:i&&!!((r=D.list)!==null&&r!==void 0&&r.length)&&((n=D.list)===null||n===void 0?void 0:n.length)>1,checkable:l,onDrop:function(M){var re=M.node.key,z=M.dragNode.key,T=M.dropPosition,X=M.dropToGap,_=T===-1||!X?T+1:T;B(z,re,_)},blockNode:!0,onCheck:function(M,re){return O(re)},checkedKeys:D.keys,showLine:!1,titleRender:function(M){var re=(0,u.Z)((0,u.Z)({},M),{},{children:void 0});if(!re.title)return null;var z=(0,co.h)(re.title,re),T=(0,C.jsx)(Yi.Text,{style:{width:80},ellipsis:{tooltip:z},children:z});return(0,C.jsx)(Yu,(0,u.Z)((0,u.Z)({className:d},re),{},{showListItemOption:c,title:T,columnKey:re.key}))},height:p,treeData:(o=D.list)===null||o===void 0?void 0:o.map(function(I){var M=I.disabled,re=(0,je.Z)(I,Gu);return re})});return(0,C.jsxs)(C.Fragment,{children:[m&&(0,C.jsx)("span",{className:"".concat(d,"-list-title ").concat(h).trim(),children:y}),F]})},Ju=function(e){var r=e.localColumns,n=e.className,o=e.draggable,s=e.checkable,i=e.showListItemOption,l=e.listsHeight,c=(0,a.useContext)(Xe.L_),d=c.hashId,v=[],m=[],y=[],S=(0,Xe.YB)();r.forEach(function(h){if(!h.hideInSetting){var b=h.fixed;if(b==="left"){m.push(h);return}if(b==="right"){v.push(h);return}y.push(h)}});var p=v&&v.length>0,x=m&&m.length>0;return(0,C.jsxs)("div",{className:it()("".concat(n,"-list"),d,(0,P.Z)({},"".concat(n,"-list-group"),p||x)),children:[(0,C.jsx)(Xl,{title:S.getMessage("tableToolBar.leftFixedTitle","\u56FA\u5B9A\u5728\u5DE6\u4FA7"),list:m,draggable:o,checkable:s,showListItemOption:i,className:n,listHeight:l}),(0,C.jsx)(Xl,{list:y,draggable:o,checkable:s,showListItemOption:i,title:S.getMessage("tableToolBar.noFixedTitle","\u4E0D\u56FA\u5B9A"),showTitle:x||p,className:n,listHeight:l}),(0,C.jsx)(Xl,{title:S.getMessage("tableToolBar.rightFixedTitle","\u56FA\u5B9A\u5728\u53F3\u4FA7"),list:v,draggable:o,checkable:s,showListItemOption:i,className:n,listHeight:l})]})};function Qu(t){var e,r,n,o,s=(0,a.useRef)(null),i=(0,a.useContext)(Bo),l=t.columns,c=t.checkedReset,d=c===void 0?!0:c,v=i.columnsMap,m=i.setColumnsMap,y=i.clearPersistenceStorage;(0,a.useEffect)(function(){var O;if((O=i.propsRef.current)!==null&&O!==void 0&&(O=O.columnsState)!==null&&O!==void 0&&O.value){var F;s.current=JSON.parse(JSON.stringify(((F=i.propsRef.current)===null||F===void 0||(F=F.columnsState)===null||F===void 0?void 0:F.value)||{}))}},[]);var S=(0,Se.J)(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,F={},I=function M(re){re.forEach(function(z){var T=z.key,X=z.fixed,_=z.index,we=z.children,te=z.disable,N=kr(T,_);if(N){var G,ae;F[N]={show:te?(G=v[N])===null||G===void 0?void 0:G.show:O,fixed:X,disable:te,order:(ae=v[N])===null||ae===void 0?void 0:ae.order}}we&&M(we)})};I(l),m(F)}),p=(0,Se.J)(function(O){O.target.checked?S():S(!1)}),x=(0,Se.J)(function(){var O;y==null||y(),m(((O=i.propsRef.current)===null||O===void 0||(O=O.columnsState)===null||O===void 0?void 0:O.defaultValue)||s.current||i.defaultColumnKeyMap)}),h=Object.values(v).filter(function(O){return!O||O.show===!1}),b=h.length>0&&h.length!==l.length,E=(0,Xe.YB)(),R=(0,a.useContext)(Zr.ZP.ConfigContext),$=R.getPrefixCls,A=$("pro-table-column-setting"),V=Uu(A),D=V.wrapSSR,B=V.hashId;return D((0,C.jsx)(Ji.Z,{arrow:!1,title:(0,C.jsxs)("div",{className:"".concat(A,"-title ").concat(B).trim(),children:[t.checkable===!1?(0,C.jsx)("div",{}):(0,C.jsx)(gr.Z,{indeterminate:b,checked:h.length===0&&h.length!==l.length,onChange:function(F){p(F)},children:E.getMessage("tableToolBar.columnDisplay","\u5217\u5C55\u793A")}),d?(0,C.jsx)("a",{onClick:x,className:"".concat(A,"-action-rest-button ").concat(B).trim(),children:E.getMessage("tableToolBar.reset","\u91CD\u7F6E")}):null,t!=null&&t.extra?(0,C.jsx)(da.Z,{size:12,align:"center",children:t.extra}):null]}),overlayClassName:"".concat(A,"-overlay ").concat(B).trim(),trigger:"click",placement:"bottomRight",content:(0,C.jsx)(Ju,{checkable:(e=t.checkable)!==null&&e!==void 0?e:!0,draggable:(r=t.draggable)!==null&&r!==void 0?r:!0,showListItemOption:(n=t.showListItemOption)!==null&&n!==void 0?n:!0,className:A,localColumns:l,listsHeight:t.listsHeight}),children:t.children||(0,C.jsx)(Sr.Z,{title:E.getMessage("tableToolBar.columnSetting","\u5217\u8BBE\u7F6E"),children:(o=t.settingIcon)!==null&&o!==void 0?o:(0,C.jsx)(Gd,{})})}))}var qu=Qu,gl=f(48096),_u=function(e,r){return a.createElement(Po,(0,We.Z)({},e,{ref:r,icon:di.Z}))},ef=a.forwardRef(_u),tf=ef,Qi=function(e){var r=(0,ol.n)((0,tl.b)(),"4.24.0")>-1?{menu:e}:{overlay:(0,C.jsx)(Tr.Z,(0,u.Z)({},e))};return(0,mt.Y)(r)},nf=function(e){var r=(0,a.useContext)(Xe.L_),n=r.hashId,o=e.items,s=o===void 0?[]:o,i=e.type,l=i===void 0?"inline":i,c=e.prefixCls,d=e.activeKey,v=e.defaultActiveKey,m=(0,ge.Z)(d||v,{value:d,onChange:e.onChange}),y=(0,Ne.Z)(m,2),S=y[0],p=y[1];if(s.length<1)return null;var x=s.find(function(b){return b.key===S})||s[0];if(l==="inline")return(0,C.jsx)("div",{className:it()("".concat(c,"-menu"),"".concat(c,"-inline-menu"),n),children:s.map(function(b,E){return(0,C.jsx)("div",{onClick:function(){p(b.key)},className:it()("".concat(c,"-inline-menu-item"),x.key===b.key?"".concat(c,"-inline-menu-item-active"):void 0,n),children:b.label},b.key||E)})});if(l==="tab")return(0,C.jsx)(gl.Z,{items:s.map(function(b){var E;return(0,u.Z)((0,u.Z)({},b),{},{key:(E=b.key)===null||E===void 0?void 0:E.toString()})}),activeKey:x.key,onTabClick:function(E){return p(E)},children:(0,ol.n)(Fl.Z,"4.23.0")<0?s==null?void 0:s.map(function(b,E){return(0,a.createElement)(gl.Z.TabPane,(0,u.Z)((0,u.Z)({},b),{},{key:b.key||E,tab:b.label}))}):null});var h=Qi({selectedKeys:[x.key],onClick:function(E){p(E.key)},items:s.map(function(b,E){return{key:b.key||E,disabled:b.disabled,label:b.label}})});return(0,C.jsx)("div",{className:it()("".concat(c,"-menu"),"".concat(c,"-dropdownmenu")),children:(0,C.jsx)(hr.Z,(0,u.Z)((0,u.Z)({trigger:["click"]},h),{},{children:(0,C.jsxs)(da.Z,{className:"".concat(c,"-dropdownmenu-label"),children:[x.label,(0,C.jsx)(tf,{})]})}))})},rf=nf,of=function(e){return(0,P.Z)({},e.componentCls,(0,P.Z)((0,P.Z)((0,P.Z)({lineHeight:"1","&-container":{display:"flex",justifyContent:"space-between",paddingBlock:e.padding,paddingInline:0,"&-mobile":{flexDirection:"column"}},"&-title":{display:"flex",alignItems:"center",justifyContent:"flex-start",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSizeLG},"&-search:not(:last-child)":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"&-setting-item":{marginBlock:0,marginInline:4,color:e.colorIconHover,fontSize:e.fontSizeLG,cursor:"pointer","> span":{display:"block",width:"100%",height:"100%"},"&:hover":{color:e.colorPrimary}},"&-left":(0,P.Z)((0,P.Z)({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.marginXS,justifyContent:"flex-start",maxWidth:"calc(100% - 200px)",flex:1},"".concat(e.antCls,"-tabs"),{width:"100%"}),"&-has-tabs",{overflow:"hidden"}),"&-right":{flex:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-end",gap:e.marginXS},"&-extra-line":{marginBlockEnd:e.margin},"&-setting-items":{display:"flex",gap:e.marginXS,lineHeight:"32px",alignItems:"center"},"&-filter":(0,P.Z)({"&:not(:last-child)":{marginInlineEnd:e.margin},display:"flex",alignItems:"center"},"div$".concat(e.antCls,"-pro-table-search"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0}),"&-inline-menu-item":{display:"inline-block",marginInlineEnd:e.marginLG,cursor:"pointer",opacity:"0.75","&-active":{fontWeight:"bold",opacity:"1"}}},"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),(0,P.Z)({marginBlockEnd:0,"&::before":{borderBlockEnd:0}},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:0,"${token.antCls}-tabs-tab":{paddingBlockStart:0}})),"&-dropdownmenu-label",{fontWeight:"bold",fontSize:e.fontSizeIcon,textAlign:"center",cursor:"pointer"}),"@media (max-width: 768px)",(0,P.Z)({},e.componentCls,{"&-container":{display:"flex",flexWrap:"wrap",flexDirection:"column"},"&-left":{marginBlockEnd:"16px",maxWidth:"100%"}})))};function af(t){return(0,rt.Xj)("ProTableListToolBar",function(e){var r=(0,u.Z)((0,u.Z)({},e),{},{componentCls:".".concat(t)});return[of(r)]})}function lf(t){if(a.isValidElement(t))return t;if(t){var e=t,r=e.icon,n=e.tooltip,o=e.onClick,s=e.key;return r&&n?(0,C.jsx)(Sr.Z,{title:n,children:(0,C.jsx)("span",{onClick:function(){o&&o(s)},children:r},s)}):(0,C.jsx)("span",{onClick:function(){o&&o(s)},children:r},s)}return null}var sf=function(e){var r,n=e.prefixCls,o=e.tabs,s=e.multipleLine,i=e.filtersNode;return s?(0,C.jsx)("div",{className:"".concat(n,"-extra-line"),children:o!=null&&o.items&&o!==null&&o!==void 0&&o.items.length?(0,C.jsx)(gl.Z,{style:{width:"100%"},defaultActiveKey:o.defaultActiveKey,activeKey:o.activeKey,items:o.items.map(function(l,c){var d;return(0,u.Z)((0,u.Z)({label:l.tab},l),{},{key:((d=l.key)===null||d===void 0?void 0:d.toString())||(c==null?void 0:c.toString())})}),onChange:o.onChange,tabBarExtraContent:i,children:(r=o.items)===null||r===void 0?void 0:r.map(function(l,c){return(0,ol.n)(Fl.Z,"4.23.0")<0?(0,a.createElement)(gl.Z.TabPane,(0,u.Z)((0,u.Z)({},l),{},{key:l.key||c,tab:l.tab})):null})}):i}):null},cf=function(e){var r=e.prefixCls,n=e.title,o=e.subTitle,s=e.tooltip,i=e.className,l=e.style,c=e.search,d=e.onSearch,v=e.multipleLine,m=v===void 0?!1:v,y=e.filter,S=e.actions,p=S===void 0?[]:S,x=e.settings,h=x===void 0?[]:x,b=e.tabs,E=e.menu,R=(0,a.useContext)(Zr.ZP.ConfigContext),$=R.getPrefixCls,A=rt.Ow.useToken(),V=A.token,D=$("pro-table-list-toolbar",r),B=af(D),O=B.wrapSSR,F=B.hashId,I=(0,Xe.YB)(),M=(0,a.useState)(!1),re=(0,Ne.Z)(M,2),z=re[0],T=re[1],X=I.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),_=(0,a.useMemo)(function(){return c?a.isValidElement(c)?c:(0,C.jsx)(nr.Z.Search,(0,u.Z)((0,u.Z)({style:{width:200},placeholder:X},c),{},{onSearch:(0,K.Z)((0,L.Z)().mark(function he(){var oe,ue,Ae,Ve,ot,Xt,dt=arguments;return(0,L.Z)().wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:for(Ae=dt.length,Ve=new Array(Ae),ot=0;ota":{fontSize:e.fontSize}}),"".concat(e.antCls,"-table").concat(e.antCls,"-table-tbody").concat(e.antCls,"-table-wrapper:only-child").concat(e.antCls,"-table"),{marginBlock:0,marginInline:0}),"".concat(e.antCls,"-table").concat(e.antCls,"-table-middle ").concat(e.componentCls),(0,P.Z)({marginBlock:0,marginInline:-8},"".concat(e.proComponentsCls,"-card"),{backgroundColor:"initial"})),"& &-search",(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({marginBlockEnd:"16px",background:e.colorBgContainer,"&-ghost":{background:"transparent"}},"&".concat(e.componentCls,"-form"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:16,overflow:"unset"}),"&-light-filter",{marginBlockEnd:0,paddingBlock:0,paddingInline:0}),"&-form-option",(0,P.Z)((0,P.Z)((0,P.Z)({},"".concat(e.antCls,"-form-item"),{}),"".concat(e.antCls,"-form-item-label"),{}),"".concat(e.antCls,"-form-item-control-input"),{})),"@media (max-width: 575px)",(0,P.Z)({},e.componentCls,(0,P.Z)({height:"auto !important",paddingBlockEnd:"24px"},"".concat(e.antCls,"-form-item-label"),{minWidth:"80px",textAlign:"start"})))),"&-toolbar",{display:"flex",alignItems:"center",justifyContent:"space-between",height:"64px",paddingInline:24,paddingBlock:0,"&-option":{display:"flex",alignItems:"center",justifyContent:"flex-end"},"&-title":{flex:"1",color:e.colorTextLabel,fontWeight:"500",fontSize:"16px",lineHeight:"24px",opacity:"0.85"}})),"@media (max-width: ".concat(e.screenXS,")px"),(0,P.Z)({},e.componentCls,(0,P.Z)({},"".concat(e.antCls,"-table"),{width:"100%",overflowX:"auto","&-thead > tr,&-tbody > tr":{"> th,> td":{whiteSpace:"pre",">span":{display:"block"}}}}))),"@media (max-width: 575px)",(0,P.Z)({},"".concat(e.componentCls,"-toolbar"),{flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",height:"auto",marginBlockEnd:"16px",marginInlineStart:"16px",paddingBlock:8,paddingInline:8,paddingBlockStart:"16px",lineHeight:"normal","&-title":{marginBlockEnd:16},"&-option":{display:"flex",justifyContent:"space-between",width:"100%"},"&-default-option":{display:"flex",flex:"1",alignItems:"center",justifyContent:"flex-end"}}))};function Df(t){return(0,rt.Xj)("ProTable",function(e){var r=(0,u.Z)((0,u.Z)({},e),{},{componentCls:".".concat(t)});return[Mf(r)]})}var Ff=["data","success","total"],jf=function(e){var r=e.pageInfo;if(r){var n=r.current,o=r.defaultCurrent,s=r.pageSize,i=r.defaultPageSize;return{current:n||o||1,total:0,pageSize:s||i||20}}return{current:1,total:0,pageSize:20}},Lf=function(e,r,n){var o,s=(0,a.useRef)(!1),i=(0,a.useRef)(null),l=n||{},c=l.onLoad,d=l.manual,v=l.polling,m=l.onRequestError,y=l.debounceTime,S=y===void 0?20:y,p=l.effects,x=p===void 0?[]:p,h=(0,a.useRef)(d),b=(0,a.useRef)(),E=(0,ge.Z)(r,{value:n==null?void 0:n.dataSource,onChange:n==null?void 0:n.onDataSourceChange}),R=(0,Ne.Z)(E,2),$=R[0],A=R[1],V=(0,ge.Z)(!1,{value:(0,st.Z)(n==null?void 0:n.loading)==="object"?n==null||(o=n.loading)===null||o===void 0?void 0:o.spinning:n==null?void 0:n.loading,onChange:n==null?void 0:n.onLoadingChange}),D=(0,Ne.Z)(V,2),B=D[0],O=D[1],F=(0,ge.Z)(function(){return jf(n)},{onChange:n==null?void 0:n.onPageInfoChange}),I=(0,Ne.Z)(F,2),M=I[0],re=I[1],z=(0,Se.J)(function(oe){(oe.current!==M.current||oe.pageSize!==M.pageSize||oe.total!==M.total)&&re(oe)}),T=(0,ge.Z)(!1),X=(0,Ne.Z)(T,2),_=X[0],we=X[1],te=function(ue,Ae){(0,nl.unstable_batchedUpdates)(function(){A(ue),(M==null?void 0:M.total)!==Ae&&z((0,u.Z)((0,u.Z)({},M),{},{total:Ae||ue.length}))})},N=(0,ke.D)(M==null?void 0:M.current),G=(0,ke.D)(M==null?void 0:M.pageSize),ae=(0,ke.D)(v),se=(0,Se.J)(function(){(0,nl.unstable_batchedUpdates)(function(){O(!1),we(!1)})}),ve=function(){var oe=(0,K.Z)((0,L.Z)().mark(function ue(Ae){var Ve,ot,Xt,dt,Ft,rn,Mn,xe,Y,me,Ye,ht;return(0,L.Z)().wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(!h.current){yt.next=3;break}return h.current=!1,yt.abrupt("return");case 3:return Ae?we(!0):O(!0),Ve=M||{},ot=Ve.pageSize,Xt=Ve.current,yt.prev=5,dt=(n==null?void 0:n.pageInfo)!==!1?{current:Xt,pageSize:ot}:void 0,yt.next=9,e==null?void 0:e(dt);case 9:if(yt.t0=yt.sent,yt.t0){yt.next=12;break}yt.t0={};case 12:if(Ft=yt.t0,rn=Ft.data,Mn=rn===void 0?[]:rn,xe=Ft.success,Y=Ft.total,me=Y===void 0?0:Y,Ye=(0,je.Z)(Ft,Ff),xe!==!1){yt.next=21;break}return yt.abrupt("return",[]);case 21:return ht=Gr(Mn,[n.postData].filter(function(Nn){return Nn})),te(ht,me),c==null||c(ht,Ye),yt.abrupt("return",ht);case 27:if(yt.prev=27,yt.t1=yt.catch(5),m!==void 0){yt.next=31;break}throw new Error(yt.t1);case 31:$===void 0&&A([]),m(yt.t1);case 33:return yt.prev=33,se(),yt.finish(33);case 36:return yt.abrupt("return",[]);case 37:case"end":return yt.stop()}},ue,null,[[5,27,33,36]])}));return function(Ae){return oe.apply(this,arguments)}}(),de=(0,q.D)(function(){var oe=(0,K.Z)((0,L.Z)().mark(function ue(Ae){var Ve,ot,Xt;return(0,L.Z)().wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:if(b.current&&clearTimeout(b.current),e){Ft.next=3;break}return Ft.abrupt("return");case 3:return Ve=new AbortController,i.current=Ve,Ft.prev=5,Ft.next=8,Promise.race([ve(Ae),new Promise(function(rn,Mn){var xe,Y;(xe=i.current)===null||xe===void 0||(xe=xe.signal)===null||xe===void 0||(Y=xe.addEventListener)===null||Y===void 0||Y.call(xe,"abort",function(){Mn("aborted"),de.cancel(),se()})})]);case 8:if(ot=Ft.sent,!Ve.signal.aborted){Ft.next=11;break}return Ft.abrupt("return");case 11:return Xt=(0,co.h)(v,ot),Xt&&!s.current&&(b.current=setTimeout(function(){de.run(Xt)},Math.max(Xt,2e3))),Ft.abrupt("return",ot);case 16:if(Ft.prev=16,Ft.t0=Ft.catch(5),Ft.t0!=="aborted"){Ft.next=20;break}return Ft.abrupt("return");case 20:throw Ft.t0;case 21:case"end":return Ft.stop()}},ue,null,[[5,16]])}));return function(ue){return oe.apply(this,arguments)}}(),S||30),he=function(){var ue;(ue=i.current)===null||ue===void 0||ue.abort(),de.cancel(),se()};return(0,a.useEffect)(function(){return v||clearTimeout(b.current),!ae&&v&&de.run(!0),function(){clearTimeout(b.current)}},[v]),(0,a.useEffect)(function(){return s.current=!1,function(){s.current=!0}},[]),(0,a.useEffect)(function(){var oe=M||{},ue=oe.current,Ae=oe.pageSize;(!N||N===ue)&&(!G||G===Ae)||n.pageInfo&&$&&($==null?void 0:$.length)>Ae||ue!==void 0&&$&&$.length<=Ae&&(he(),de.run(!1))},[M==null?void 0:M.current]),(0,a.useEffect)(function(){G&&(he(),de.run(!1))},[M==null?void 0:M.pageSize]),(0,Oe.KW)(function(){return he(),de.run(!1),d||(h.current=!1),function(){he()}},[].concat((0,g.Z)(x),[d])),{dataSource:$,setDataSource:A,loading:(0,st.Z)(n==null?void 0:n.loading)==="object"?(0,u.Z)((0,u.Z)({},n==null?void 0:n.loading),{},{spinning:B}):B,reload:function(){var oe=(0,K.Z)((0,L.Z)().mark(function Ae(){return(0,L.Z)().wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return he(),ot.abrupt("return",de.run(!1));case 2:case"end":return ot.stop()}},Ae)}));function ue(){return oe.apply(this,arguments)}return ue}(),pageInfo:M,pollingLoading:_,reset:function(){var oe=(0,K.Z)((0,L.Z)().mark(function Ae(){var Ve,ot,Xt,dt,Ft,rn,Mn,xe;return(0,L.Z)().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:Ve=n||{},ot=Ve.pageInfo,Xt=ot||{},dt=Xt.defaultCurrent,Ft=dt===void 0?1:dt,rn=Xt.defaultPageSize,Mn=rn===void 0?20:rn,xe={current:Ft,total:0,pageSize:Mn},z(xe);case 4:case"end":return me.stop()}},Ae)}));function ue(){return oe.apply(this,arguments)}return ue}(),setPageInfo:function(){var oe=(0,K.Z)((0,L.Z)().mark(function Ae(Ve){return(0,L.Z)().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:z((0,u.Z)((0,u.Z)({},M),Ve));case 1:case"end":return Xt.stop()}},Ae)}));function ue(Ae){return oe.apply(this,arguments)}return ue}()}},Bf=Lf,kf=function(e){return function(r,n){var o,s,i=r.fixed,l=r.index,c=n.fixed,d=n.index;if(i==="left"&&c!=="left"||c==="right"&&i!=="right")return-2;if(c==="left"&&i!=="left"||i==="right"&&c!=="right")return 2;var v=r.key||"".concat(l),m=n.key||"".concat(d);if((o=e[v])!==null&&o!==void 0&&o.order||(s=e[m])!==null&&s!==void 0&&s.order){var y,S;return(((y=e[v])===null||y===void 0?void 0:y.order)||0)-(((S=e[m])===null||S===void 0?void 0:S.order)||0)}return(r.index||0)-(n.index||0)}},Af=f(53439),zf=function(e){var r={};return Object.keys(e||{}).forEach(function(n){var o;Array.isArray(e[n])&&((o=e[n])===null||o===void 0?void 0:o.length)===0||e[n]!==void 0&&(r[n]=e[n])}),r},Hf=function(e){var r;return!!(e!=null&&(r=e.valueType)!==null&&r!==void 0&&r.toString().startsWith("date")||(e==null?void 0:e.valueType)==="select"||e!=null&&e.valueEnum)},Wf=function(e){var r;return((r=e.ellipsis)===null||r===void 0?void 0:r.showTitle)===!1?!1:e.ellipsis},Vf=function(e,r,n){if(r.copyable||r.ellipsis){var o=r.copyable&&n?{text:n,tooltips:["",""]}:void 0,s=Hf(r),i=Wf(r)&&n?{tooltip:(r==null?void 0:r.tooltip)!==!1&&s?(0,C.jsx)("div",{className:"pro-table-tooltip-text",children:e}):n}:!1;return(0,C.jsx)(Yi.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:o,ellipsis:i,children:e})}return e},Uf=f(74763),Xf=f(66758),Gf=function(e){var r="".concat(e.antCls,"-progress-bg");return(0,P.Z)({},e.componentCls,{"&-multiple":{paddingBlockStart:6,paddingBlockEnd:12,paddingInline:8},"&-progress":{"&-success":(0,P.Z)({},r,{backgroundColor:e.colorSuccess}),"&-error":(0,P.Z)({},r,{backgroundColor:e.colorError}),"&-warning":(0,P.Z)({},r,{backgroundColor:e.colorWarning})},"&-rule":{display:"flex",alignItems:"center","&-icon":{"&-default":{display:"flex",alignItems:"center",justifyContent:"center",width:"14px",height:"22px","&-circle":{width:"6px",height:"6px",backgroundColor:e.colorTextSecondary,borderRadius:"4px"}},"&-loading":{color:e.colorPrimary},"&-error":{color:e.colorError},"&-success":{color:e.colorSuccess}},"&-text":{color:e.colorText}}})};function Yf(t){return(0,rt.Xj)("InlineErrorFormItem",function(e){var r=(0,u.Z)((0,u.Z)({},e),{},{componentCls:".".concat(t)});return[Gf(r)]})}var Jf=["rules","name","children","popoverProps"],Qf=["errorType","rules","name","popoverProps","children"],_i={marginBlockStart:-5,marginBlockEnd:-5,marginInlineStart:0,marginInlineEnd:0},qf=function(e){var r=e.inputProps,n=e.input,o=e.extra,s=e.errorList,i=e.popoverProps,l=(0,a.useState)(!1),c=(0,Ne.Z)(l,2),d=c[0],v=c[1],m=(0,a.useState)([]),y=(0,Ne.Z)(m,2),S=y[0],p=y[1],x=(0,a.useContext)(Zr.ZP.ConfigContext),h=x.getPrefixCls,b=h(),E=(0,rt.dQ)(),R=Yf("".concat(b,"-form-item-with-help")),$=R.wrapSSR,A=R.hashId;(0,a.useEffect)(function(){r.validateStatus!=="validating"&&p(r.errors)},[r.errors,r.validateStatus]);var V=(0,tl.X)(S.length<1?!1:d,function(B){B!==d&&v(B)}),D=r.validateStatus==="validating";return(0,C.jsx)(Ji.Z,(0,u.Z)((0,u.Z)((0,u.Z)({trigger:(i==null?void 0:i.trigger)||["click"],placement:(i==null?void 0:i.placement)||"topLeft"},V),{},{getPopupContainer:i==null?void 0:i.getPopupContainer,getTooltipContainer:i==null?void 0:i.getTooltipContainer,content:$((0,C.jsx)("div",{className:"".concat(b,"-form-item ").concat(A," ").concat(E.hashId).trim(),style:{margin:0,padding:0},children:(0,C.jsxs)("div",{className:"".concat(b,"-form-item-with-help ").concat(A," ").concat(E.hashId).trim(),children:[D?(0,C.jsx)(Ee,{}):null,s]})}))},i),{},{children:(0,C.jsxs)(C.Fragment,{children:[n,o]})}),"popover")},_f=function(e){var r=e.rules,n=e.name,o=e.children,s=e.popoverProps,i=(0,je.Z)(e,Jf);return(0,C.jsx)(pe.Z.Item,(0,u.Z)((0,u.Z)({name:n,rules:r,hasFeedback:!1,shouldUpdate:function(c,d){if(c===d)return!1;var v=[n].flat(1);v.length>1&&v.pop();try{return JSON.stringify((0,w.Z)(c,v))!==JSON.stringify((0,w.Z)(d,v))}catch(m){return!0}},_internalItemRender:{mark:"pro_table_render",render:function(c,d){return(0,C.jsx)(qf,(0,u.Z)({inputProps:c,popoverProps:s},d))}}},i),{},{style:(0,u.Z)((0,u.Z)({},_i),i==null?void 0:i.style),children:o}))},ev=function(e){var r=e.errorType,n=e.rules,o=e.name,s=e.popoverProps,i=e.children,l=(0,je.Z)(e,Qf);return o&&n!==null&&n!==void 0&&n.length&&r==="popover"?(0,C.jsx)(_f,(0,u.Z)((0,u.Z)({name:o,rules:n,popoverProps:s},l),{},{children:i})):(0,C.jsx)(pe.Z.Item,(0,u.Z)((0,u.Z)({rules:n,shouldUpdate:o?function(c,d){if(c===d)return!1;var v=[o].flat(1);v.length>1&&v.pop();try{return JSON.stringify((0,w.Z)(c,v))!==JSON.stringify((0,w.Z)(d,v))}catch(m){return!0}}:void 0},l),{},{style:(0,u.Z)((0,u.Z)({},_i),l.style),name:o,children:i}))},Gl=function(e,r,n){return r===void 0?e:(0,co.h)(e,r,n)},tv=["children"],nv=["",null,void 0],es=function(){for(var e=arguments.length,r=new Array(e),n=0;ndt.length?(dt.push(ue),dt):(dt.splice((l==null?void 0:l.current)*(l==null?void 0:l.pageSize)-1,0,ue),dt)}return[].concat((0,g.Z)(o.dataSource),[ue])},T=function(){return(0,u.Z)((0,u.Z)({},F),{},{size:d,rowSelection:c===!1?void 0:c,className:r,style:m,columns:M.map(function(de){return de.isExtraColumns?de.extraColumn:de}),loading:o.loading,dataSource:B.newLineRecord?z(o.dataSource):o.dataSource,pagination:l,onChange:function(he,oe,ue,Ae){var Ve;if((Ve=F.onChange)===null||Ve===void 0||Ve.call(F,he,oe,ue,Ae),re||R((0,mt.Y)(oe)),Array.isArray(ue)){var ot=ue.reduce(function(rn,Mn){return(0,u.Z)((0,u.Z)({},rn),{},(0,P.Z)({},"".concat(Mn.field),Mn.order))},{});E((0,mt.Y)(ot))}else{var Xt,dt=(Xt=ue.column)===null||Xt===void 0?void 0:Xt.sorter,Ft=(dt==null?void 0:dt.toString())===dt;E((0,mt.Y)((0,P.Z)({},"".concat(Ft?dt:ue.field),ue.order)))}}})},X=(0,a.useMemo)(function(){return t.search===!1&&!t.headerTitle&&t.toolBarRender===!1},[]),_=(0,C.jsx)(Ge._p.Provider,{value:{grid:!1,colProps:void 0,rowProps:void 0},children:(0,C.jsx)(oo,(0,u.Z)((0,u.Z)({},T()),{},{rowKey:e}))}),we=t.tableViewRender?t.tableViewRender((0,u.Z)((0,u.Z)({},T()),{},{rowSelection:c!==!1?c:void 0}),_):_,te=(0,a.useMemo)(function(){if(t.editable&&!t.name){var ve,de,he;return(0,C.jsxs)(C.Fragment,{children:[y,h,(0,a.createElement)(Ce,(0,u.Z)((0,u.Z)({},(ve=t.editable)===null||ve===void 0?void 0:ve.formProps),{},{formRef:(de=t.editable)===null||de===void 0||(de=de.formProps)===null||de===void 0?void 0:de.formRef,component:!1,form:(he=t.editable)===null||he===void 0?void 0:he.form,onValuesChange:B.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:t.dateFormatter}),we)]})}return(0,C.jsxs)(C.Fragment,{children:[y,h,we]})},[h,t.loading,!!t.editable,we,y]),N=(0,a.useMemo)(function(){return x===!1||X===!0||t.name?{}:y?{paddingBlockStart:0}:y&&l===!1?{paddingBlockStart:0}:{padding:0}},[X,l,t.name,x,y]),G=x===!1||X===!0||t.name?te:(0,C.jsx)(Ke,(0,u.Z)((0,u.Z)({ghost:t.ghost,bordered:Ro("table",D),bodyStyle:N},x),{},{children:te})),ae=function(){return t.tableRender?t.tableRender(t,G,{toolbar:y||void 0,alert:h||void 0,table:we||void 0}):G},se=(0,C.jsxs)("div",{className:it()(V,(0,P.Z)({},"".concat(n,"-polling"),o.pollingLoading)),style:p,ref:I.rootDomRef,children:[A?null:S,i!=="form"&&t.tableExtraRender&&(0,C.jsx)("div",{className:it()(V,"".concat(n,"-extra")),children:t.tableExtraRender(t,o.dataSource||[])}),i!=="form"&&ae()]});return!$||!($!=null&&$.fullScreen)?se:(0,C.jsx)(Zr.ZP,{getPopupContainer:function(){return I.rootDomRef.current||document.body},children:se})}var fv={},vv=function(e){var r,n=e.cardBordered,o=e.request,s=e.className,i=e.params,l=i===void 0?fv:i,c=e.defaultData,d=e.headerTitle,v=e.postData,m=e.ghost,y=e.pagination,S=e.actionRef,p=e.columns,x=p===void 0?[]:p,h=e.toolBarRender,b=e.optionsRender,E=e.onLoad,R=e.onRequestError,$=e.style,A=e.cardProps,V=e.tableStyle,D=e.tableClassName,B=e.columnsStateMap,O=e.onColumnsStateChange,F=e.options,I=e.search,M=e.name,re=e.onLoadingChange,z=e.rowSelection,T=z===void 0?!1:z,X=e.beforeSearchSubmit,_=e.tableAlertRender,we=e.defaultClassName,te=e.formRef,N=e.type,G=N===void 0?"table":N,ae=e.columnEmptyText,se=ae===void 0?"-":ae,ve=e.toolbar,de=e.rowKey,he=e.manualRequest,oe=e.polling,ue=e.tooltip,Ae=e.revalidateOnFocus,Ve=Ae===void 0?!1:Ae,ot=e.searchFormRender,Xt=(0,je.Z)(e,dv),dt=Df(e.defaultClassName),Ft=dt.wrapSSR,rn=dt.hashId,Mn=it()(we,s,rn),xe=(0,a.useRef)(),Y=(0,a.useRef)(),me=te||Y;(0,a.useImperativeHandle)(S,function(){return xe.current});var Ye=(0,ge.Z)(T?(T==null?void 0:T.defaultSelectedRowKeys)||[]:void 0,{value:T?T.selectedRowKeys:void 0}),ht=(0,Ne.Z)(Ye,2),nt=ht[0],yt=ht[1],Nn=(0,ge.Z)(function(){if(!(he||I!==!1))return{}}),fn=(0,Ne.Z)(Nn,2),vr=fn[0],Zn=fn[1],ao=(0,ge.Z)({}),lo=(0,Ne.Z)(ao,2),Fr=lo[0],Rr=lo[1],No=(0,ge.Z)({}),va=(0,Ne.Z)(No,2),ko=va[0],Jo=va[1];(0,a.useEffect)(function(){var et=Ia(x),at=et.sort,qe=et.filter;Rr(qe),Jo(at)},[]);var Qo=(0,Xe.YB)(),ma=(0,st.Z)(y)==="object"?y:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},He=(0,a.useContext)(Bo),It=(0,a.useMemo)(function(){if(o)return function(){var et=(0,K.Z)((0,L.Z)().mark(function at(qe){var bt,Rn;return(0,L.Z)().wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:return bt=(0,u.Z)((0,u.Z)((0,u.Z)({},qe||{}),vr),l),delete bt._timestamp,Yn.next=4,o(bt,ko,Fr);case 4:return Rn=Yn.sent,Yn.abrupt("return",Rn);case 6:case"end":return Yn.stop()}},at)}));return function(at){return et.apply(this,arguments)}}()},[vr,l,Fr,ko,o]),Qt=Bf(It,c,{pageInfo:y===!1?!1:ma,loading:e.loading,dataSource:e.dataSource,onDataSourceChange:e.onDataSourceChange,onLoad:E,onLoadingChange:re,onRequestError:R,postData:v,revalidateOnFocus:Ve,manual:vr===void 0,polling:oe,effects:[(0,zt.ZP)(l),(0,zt.ZP)(vr),(0,zt.ZP)(Fr),(0,zt.ZP)(ko)],debounceTime:e.debounceTime,onPageInfoChange:function(at){var qe,bt;!y||!It||(y==null||(qe=y.onChange)===null||qe===void 0||qe.call(y,at.current,at.pageSize),y==null||(bt=y.onShowSizeChange)===null||bt===void 0||bt.call(y,at.current,at.pageSize))}});(0,a.useEffect)(function(){var et;if(!(e.manualRequest||!e.request||!Ve||(et=e.form)!==null&&et!==void 0&&et.ignoreRules)){var at=function(){document.visibilityState==="visible"&&Qt.reload()};return document.addEventListener("visibilitychange",at),function(){return document.removeEventListener("visibilitychange",at)}}},[]);var ho=a.useRef(new Map),qo=a.useMemo(function(){return typeof de=="function"?de:function(et,at){var qe;return at===-1?et==null?void 0:et[de]:e.name?at==null?void 0:at.toString():(qe=et==null?void 0:et[de])!==null&&qe!==void 0?qe:at==null?void 0:at.toString()}},[e.name,de]);(0,a.useMemo)(function(){var et;if((et=Qt.dataSource)!==null&&et!==void 0&&et.length){var at=Qt.dataSource.map(function(qe){var bt=qo(qe,-1);return ho.current.set(bt,qe),bt});return at}return[]},[Qt.dataSource,qo]);var ir=(0,a.useMemo)(function(){var et=y===!1?!1:(0,u.Z)({},y),at=(0,u.Z)((0,u.Z)({},Qt.pageInfo),{},{setPageInfo:function(bt){var Rn=bt.pageSize,Ln=bt.current,Yn=Qt.pageInfo;if(Rn===Yn.pageSize||Yn.current===1){Qt.setPageInfo({pageSize:Rn,current:Ln});return}o&&Qt.setDataSource([]),Qt.setPageInfo({pageSize:Rn,current:G==="list"?Ln:1})}});return o&&et&&(delete et.onChange,delete et.onShowSizeChange),Er(et,at,Qo)},[y,Qt,Qo]);(0,Oe.KW)(function(){var et;e.request&&l&&Qt.dataSource&&(Qt==null||(et=Qt.pageInfo)===null||et===void 0?void 0:et.current)!==1&&Qt.setPageInfo({current:1})},[l]),He.setPrefixName(e.name);var Ma=(0,a.useCallback)(function(){T&&T.onChange&&T.onChange([],[],{type:"none"}),yt([])},[T,yt]);He.propsRef.current=e;var Ao=kn((0,u.Z)((0,u.Z)({},e.editable),{},{tableName:e.name,getRowKey:qo,childrenColumnName:((r=e.expandable)===null||r===void 0?void 0:r.childrenColumnName)||"children",dataSource:Qt.dataSource||[],setDataSource:function(at){var qe,bt;(qe=e.editable)===null||qe===void 0||(bt=qe.onValuesChange)===null||bt===void 0||bt.call(qe,void 0,at),Qt.setDataSource(at)}})),hl=rt.Ow===null||rt.Ow===void 0?void 0:rt.Ow.useToken(),Yl=hl.token;mr(xe,Qt,{fullScreen:function(){var at;if(!(!((at=He.rootDomRef)!==null&&at!==void 0&&at.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var qe;(qe=He.rootDomRef)===null||qe===void 0||qe.current.requestFullscreen()}},onCleanSelected:function(){Ma()},resetAll:function(){var at;Ma(),Rr({}),Jo({}),He.setKeyWords(void 0),Qt.setPageInfo({current:1}),me==null||(at=me.current)===null||at===void 0||at.resetFields(),Zn({})},editableUtils:Ao}),He.setAction(xe.current);var zo=(0,a.useMemo)(function(){var et;return ns({columns:x,counter:He,columnEmptyText:se,type:G,marginSM:Yl.marginSM,editableUtils:Ao,rowKey:de,childrenColumnName:(et=e.expandable)===null||et===void 0?void 0:et.childrenColumnName}).sort(kf(He.columnsMap))},[x,He==null?void 0:He.sortKeyColumns,He==null?void 0:He.columnsMap,se,G,Ao.editableKeys&&Ao.editableKeys.join(",")]);(0,Oe.Au)(function(){if(zo&&zo.length>0){var et=zo.map(function(at){return kr(at.key,at.index)});He.setSortKeyColumns(et)}},[zo],["render","renderFormItem"],100),(0,Oe.KW)(function(){var et=Qt.pageInfo,at=y||{},qe=at.current,bt=qe===void 0?et==null?void 0:et.current:qe,Rn=at.pageSize,Ln=Rn===void 0?et==null?void 0:et.pageSize:Rn;y&&(bt||Ln)&&(Ln!==(et==null?void 0:et.pageSize)||bt!==(et==null?void 0:et.current))&&Qt.setPageInfo({pageSize:Ln||et.pageSize,current:bt||et.current})},[y&&y.pageSize,y&&y.current]);var Jl=(0,u.Z)((0,u.Z)({selectedRowKeys:nt},T),{},{onChange:function(at,qe,bt){T&&T.onChange&&T.onChange(at,qe,bt),yt(at)}}),pa=I!==!1&&(I==null?void 0:I.filterType)==="light",_o=(0,a.useCallback)(function(et){if(F&&F.search){var at,qe,bt=F.search===!0?{}:F.search,Rn=bt.name,Ln=Rn===void 0?"keyword":Rn,Yn=(at=F.search)===null||at===void 0||(qe=at.onSearch)===null||qe===void 0?void 0:qe.call(at,He.keyWords);if(Yn!==!1){Zn((0,u.Z)((0,u.Z)({},et),{},(0,P.Z)({},Ln,He.keyWords)));return}}Zn(et)},[He.keyWords,F,Zn]),ga=(0,a.useMemo)(function(){if((0,st.Z)(Qt.loading)==="object"){var et;return((et=Qt.loading)===null||et===void 0?void 0:et.spinning)||!1}return Qt.loading},[Qt.loading]),yl=(0,a.useMemo)(function(){var et=I===!1&&G!=="form"?null:(0,C.jsx)(ld,{pagination:ir,beforeSearchSubmit:X,action:xe,columns:x,onFormSearchSubmit:function(qe){_o(qe)},ghost:m,onReset:e.onReset,onSubmit:e.onSubmit,loading:!!ga,manualRequest:he,search:I,form:e.form,formRef:me,type:e.type||"table",cardBordered:e.cardBordered,dateFormatter:e.dateFormatter});return ot&&et?(0,C.jsx)(C.Fragment,{children:ot(e,et)}):et},[X,me,m,ga,he,_o,ir,e,x,I,ot,G]),Cl=(0,a.useMemo)(function(){return nt==null?void 0:nt.map(function(et){var at;return(at=ho.current)===null||at===void 0?void 0:at.get(et)})},[nt]),Ql=h===!1?null:(0,C.jsx)(Of,{headerTitle:d,hideToolbar:F===!1&&!d&&!h&&!ve&&!pa,selectedRows:Cl,selectedRowKeys:nt,tableColumn:zo,tooltip:ue,toolbar:ve,onFormSearchSubmit:function(at){Zn((0,u.Z)((0,u.Z)({},vr),at))},searchNode:pa?yl:null,options:F,optionsRender:b,actionRef:xe,toolBarRender:h}),ql=T!==!1?(0,C.jsx)(ds,{selectedRowKeys:nt,selectedRows:Cl,onCleanSelected:Ma,alertOptionRender:Xt.tableAlertOptionRender,alertInfoRender:_,alwaysShowAlert:T==null?void 0:T.alwaysShowAlert}):null;return Ft((0,C.jsx)(uv,(0,u.Z)((0,u.Z)({},e),{},{name:M,defaultClassName:we,size:He.tableSize,onSizeChange:He.setTableSize,pagination:ir,searchNode:yl,rowSelection:T!==!1?Jl:void 0,className:Mn,tableColumn:zo,isLightFilter:pa,action:Qt,alertDom:ql,toolbarDom:Ql,onSortChange:function(at){ko!==at&&Jo(at!=null?at:{})},onFilterChange:function(at){at!==Fr&&Rr(at)},editableUtils:Ao,getRowKey:qo})))},rs=function(e){var r=(0,a.useContext)(Zr.ZP.ConfigContext),n=r.getPrefixCls,o=e.ErrorBoundary===!1?a.Fragment:e.ErrorBoundary||on.S;return(0,C.jsx)(as,{initValue:e,children:(0,C.jsx)(Xe._Y,{needDeps:!0,children:(0,C.jsx)(o,{children:(0,C.jsx)(vv,(0,u.Z)({defaultClassName:"".concat(n("pro-table"))},e))})})})};rs.Summary=oo.Summary;var mv=rs},78164:function(Bn,xt,f){"use strict";f.d(xt,{S:function(){return Ke}});var L=f(15671),K=f(43144),st=f(97326),Ne=f(32531),P=f(29388),g=f(4942),u=f(29905),je=f(67294),ne=f(85893),Ke=function(Ge){(0,Ne.Z)(Ce,Ge);var Ue=(0,P.Z)(Ce);function Ce(){var Xe;(0,L.Z)(this,Ce);for(var rt=arguments.length,ut=new Array(rt),We=0;We{const{prefixCls:J,className:Ee,closeIcon:Ie,closable:pe,type:Le,title:le,children:ge,footer:w}=ee,Re=Xe(ee,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:Te}=Ne.useContext(ne.E_),Se=Te(),q=J||Te("modal"),ce=(0,Ce.Z)(Se),[Oe,ke,_e]=(0,Ue.ZP)(q,ce),C=`${q}-confirm`;let Lt={};return Le?Lt={closable:pe!=null?pe:!1,title:"",footer:"",children:Ne.createElement(Ke.O,Object.assign({},ee,{prefixCls:q,confirmPrefixCls:C,rootPrefixCls:Se,content:ge}))}:Lt={closable:pe!=null?pe:!0,title:le,footer:w!==null&&Ne.createElement(Ge.$,Object.assign({},ee)),children:ge},Oe(Ne.createElement(u.s,Object.assign({prefixCls:q,className:g()(ke,`${q}-pure-panel`,Le&&C,Le&&`${C}-${Le}`,Ee,_e,ce)},Re,{closeIcon:(0,Ge.b)(q,Ie),closable:pe},Lt)))};var ut=(0,je.i)(rt),We=f(94423);function a(ee){return(0,L.ZP)((0,L.uW)(ee))}const lt=st.Z;lt.useModal=We.Z,lt.info=function(J){return(0,L.ZP)((0,L.cw)(J))},lt.success=function(J){return(0,L.ZP)((0,L.vq)(J))},lt.error=function(J){return(0,L.ZP)((0,L.AQ)(J))},lt.warning=a,lt.warn=a,lt.confirm=function(J){return(0,L.ZP)((0,L.Au)(J))},lt.destroyAll=function(){for(;K.Z.length;){const J=K.Z.pop();J&&J()}},lt.config=L.ai,lt._InternalPanelDoNotUseOrYouWillBeFired=ut;var Zt=lt},86738:function(Bn,xt,f){"use strict";f.d(xt,{Z:function(){return ge}});var L=f(67294),K=f(26702),st=f(93967),Ne=f.n(st),P=f(21770),g=f(15105),u=f(98423),je=f(96159),ne=f(53124),Ke=f(55241),Ge=f(86743),Ue=f(81643),Ce=f(14726),Xe=f(33671),rt=f(10110),ut=f(24457),We=f(66330),a=f(91945);const lt=w=>{const{componentCls:Re,iconCls:Te,antCls:Se,zIndexPopup:q,colorText:ce,colorWarning:Oe,marginXXS:ke,marginXS:_e,fontSize:C,fontWeightStrong:Lt,colorTextHeading:gt}=w;return{[Re]:{zIndex:q,[`&${Se}-popover`]:{fontSize:C},[`${Re}-message`]:{marginBottom:_e,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Re}-message-icon ${Te}`]:{color:Oe,fontSize:C,lineHeight:1,marginInlineEnd:_e},[`${Re}-title`]:{fontWeight:Lt,color:gt,"&:only-child":{fontWeight:"normal"}},[`${Re}-description`]:{marginTop:ke,color:ce}},[`${Re}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:_e}}}}},Zt=w=>{const{zIndexPopupBase:Re}=w;return{zIndexPopup:Re+60}};var ee=(0,a.I$)("Popconfirm",w=>lt(w),Zt,{resetStyle:!1}),J=function(w,Re){var Te={};for(var Se in w)Object.prototype.hasOwnProperty.call(w,Se)&&Re.indexOf(Se)<0&&(Te[Se]=w[Se]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,Se=Object.getOwnPropertySymbols(w);q{const{prefixCls:Re,okButtonProps:Te,cancelButtonProps:Se,title:q,description:ce,cancelText:Oe,okText:ke,okType:_e="primary",icon:C=L.createElement(K.Z,null),showCancel:Lt=!0,close:gt,onConfirm:Wt,onCancel:Bt,onPopupClick:kt}=w,{getPrefixCls:Vt}=L.useContext(ne.E_),[yn]=(0,rt.Z)("Popconfirm",ut.Z.Popconfirm),qt=(0,Ue.Z)(q),Tt=(0,Ue.Z)(ce);return L.createElement("div",{className:`${Re}-inner-content`,onClick:kt},L.createElement("div",{className:`${Re}-message`},C&&L.createElement("span",{className:`${Re}-message-icon`},C),L.createElement("div",{className:`${Re}-message-text`},qt&&L.createElement("div",{className:Ne()(`${Re}-title`)},qt),Tt&&L.createElement("div",{className:`${Re}-description`},Tt))),L.createElement("div",{className:`${Re}-buttons`},Lt&&L.createElement(Ce.ZP,Object.assign({onClick:Bt,size:"small"},Se),Oe||(yn==null?void 0:yn.cancelText)),L.createElement(Ge.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Xe.nx)(_e)),Te),actionFn:Wt,close:gt,prefixCls:Vt("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},ke||(yn==null?void 0:yn.okText))))};var pe=w=>{const{prefixCls:Re,placement:Te,className:Se,style:q}=w,ce=J(w,["prefixCls","placement","className","style"]),{getPrefixCls:Oe}=L.useContext(ne.E_),ke=Oe("popconfirm",Re),[_e]=ee(ke);return _e(L.createElement(We.ZP,{placement:Te,className:Ne()(ke,Se),style:q,content:L.createElement(Ee,Object.assign({prefixCls:ke},ce))}))},Le=function(w,Re){var Te={};for(var Se in w)Object.prototype.hasOwnProperty.call(w,Se)&&Re.indexOf(Se)<0&&(Te[Se]=w[Se]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,Se=Object.getOwnPropertySymbols(w);q{var Te,Se;const{prefixCls:q,placement:ce="top",trigger:Oe="click",okType:ke="primary",icon:_e=L.createElement(K.Z,null),children:C,overlayClassName:Lt,onOpenChange:gt,onVisibleChange:Wt}=w,Bt=Le(w,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:kt}=L.useContext(ne.E_),[Vt,yn]=(0,P.Z)(!1,{value:(Te=w.open)!==null&&Te!==void 0?Te:w.visible,defaultValue:(Se=w.defaultOpen)!==null&&Se!==void 0?Se:w.defaultVisible}),qt=(At,vn)=>{yn(At,!0),Wt==null||Wt(At),gt==null||gt(At,vn)},Tt=At=>{qt(!1,At)},Jn=At=>{var vn;return(vn=w.onConfirm)===null||vn===void 0?void 0:vn.call(void 0,At)},kn=At=>{var vn;qt(!1,At),(vn=w.onCancel)===null||vn===void 0||vn.call(void 0,At)},mt=At=>{At.keyCode===g.Z.ESC&&Vt&&qt(!1,At)},zt=At=>{const{disabled:vn=!1}=w;vn||qt(At)},on=kt("popconfirm",q),tn=Ne()(on,Lt),[En]=ee(on);return En(L.createElement(Ke.Z,Object.assign({},(0,u.Z)(Bt,["title"]),{trigger:Oe,placement:ce,onOpenChange:zt,open:Vt,ref:Re,overlayClassName:tn,content:L.createElement(Ee,Object.assign({okType:ke,icon:_e},w,{prefixCls:on,close:Tt,onConfirm:Jn,onCancel:kn})),"data-popover-inject":!0}),(0,je.Tm)(C,{onKeyDown:At=>{var vn,Dn;L.isValidElement(C)&&((Dn=C==null?void 0:(vn=C.props).onKeyDown)===null||Dn===void 0||Dn.call(vn,At)),mt(At)}})))});le._InternalPanelDoNotUseOrYouWillBeFired=pe;var ge=le},84164:function(Bn,xt,f){"use strict";f.d(xt,{Z:function(){return K}});var L=f(67294);function K(st,Ne,P){const g=L.useRef({});function u(je){if(!g.current||g.current.data!==st||g.current.childrenColumnName!==Ne||g.current.getRowKey!==P){let Ke=function(Ge){Ge.forEach((Ue,Ce)=>{const Xe=P(Ue,Ce);ne.set(Xe,Ue),Ue&&typeof Ue=="object"&&Ne in Ue&&Ke(Ue[Ne]||[])})};const ne=new Map;Ke(st),g.current={data:st,childrenColumnName:Ne,kvMap:ne,getRowKey:P}}return g.current.kvMap.get(je)}return[u]}},58448:function(Bn,xt,f){"use strict";f.d(xt,{G6:function(){return P},L8:function(){return Ne}});var L=f(67294),K=f(38780),st=function(u,je){var ne={};for(var Ke in u)Object.prototype.hasOwnProperty.call(u,Ke)&&je.indexOf(Ke)<0&&(ne[Ke]=u[Ke]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ke=Object.getOwnPropertySymbols(u);Ge{const Ue=u[Ge];typeof Ue!="function"&&(ne[Ge]=Ue)}),ne}function g(u,je,ne){const Ke=ne&&typeof ne=="object"?ne:{},{total:Ge=0}=Ke,Ue=st(Ke,["total"]),[Ce,Xe]=(0,L.useState)(()=>({current:"defaultCurrent"in Ue?Ue.defaultCurrent:1,pageSize:"defaultPageSize"in Ue?Ue.defaultPageSize:Ne})),rt=(0,K.Z)(Ce,Ue,{total:Ge>0?Ge:u}),ut=Math.ceil((Ge||u)/rt.pageSize);rt.current>ut&&(rt.current=ut||1);const We=(lt,Zt)=>{Xe({current:lt!=null?lt:1,pageSize:Zt||rt.pageSize})},a=(lt,Zt)=>{var ee;ne&&((ee=ne.onChange)===null||ee===void 0||ee.call(ne,lt,Zt)),We(lt,Zt),je(lt,Zt||(rt==null?void 0:rt.pageSize))};return ne===!1?[{},()=>{}]:[Object.assign(Object.assign({},rt),{onChange:a}),We]}xt.ZP=g},33275:function(Bn,xt,f){"use strict";f.d(xt,{W$:function(){return We},HK:function(){return ut},TA:function(){return a},rM:function(){return lt},ZP:function(){return Ee}});var L=f(74902),K=f(67294),st=f(13622),Ne=f(93967),P=f.n(Ne),g=f(64778),u=f(29873),je=f(97153),ne=f(26052),Ke=f(21770);function Ge(Ie){const[pe,Le]=(0,K.useState)(null);return[(0,K.useCallback)((w,Re,Te)=>{const Se=pe!=null?pe:w,q=Math.min(Se||0,w),ce=Math.max(Se||0,w),Oe=Re.slice(q,ce+1).map(C=>Ie(C)),ke=Oe.some(C=>!Te.has(C)),_e=[];return Oe.forEach(C=>{ke?(Te.has(C)||_e.push(C),Te.add(C)):(Te.delete(C),_e.push(C))}),Le(ke?ce:null),_e},[pe]),w=>{Le(w)}]}var Ue=f(27288),Ce=f(84567),Xe=f(18108),rt=f(78045);const ut={},We="SELECT_ALL",a="SELECT_INVERT",lt="SELECT_NONE",Zt=[],ee=(Ie,pe)=>{let Le=[];return(pe||[]).forEach(le=>{Le.push(le),le&&typeof le=="object"&&Ie in le&&(Le=[].concat((0,L.Z)(Le),(0,L.Z)(ee(Ie,le[Ie]))))}),Le};var Ee=(Ie,pe)=>{const{preserveSelectedRowKeys:Le,selectedRowKeys:le,defaultSelectedRowKeys:ge,getCheckboxProps:w,onChange:Re,onSelect:Te,onSelectAll:Se,onSelectInvert:q,onSelectNone:ce,onSelectMultiple:Oe,columnWidth:ke,type:_e,selections:C,fixed:Lt,renderCell:gt,hideSelectAll:Wt,checkStrictly:Bt=!0}=pe||{},{prefixCls:kt,data:Vt,pageData:yn,getRecordByKey:qt,getRowKey:Tt,expandType:Jn,childrenColumnName:kn,locale:mt,getPopupContainer:zt}=Ie,on=(0,Ue.ln)("Table"),[tn,En]=Ge(Gt=>Gt),[At,vn]=(0,Ke.Z)(le||ge||Zt,{value:le}),Dn=K.useRef(new Map),Qn=(0,K.useCallback)(Gt=>{if(Le){const an=new Map;Gt.forEach(Et=>{let Ct=qt(Et);!Ct&&Dn.current.has(Et)&&(Ct=Dn.current.get(Et)),an.set(Et,Ct)}),Dn.current=an}},[qt,Le]);K.useEffect(()=>{Qn(At)},[At]);const{keyEntities:Hn}=(0,K.useMemo)(()=>{if(Bt)return{keyEntities:null};let Gt=Vt;if(Le){const an=new Set(Vt.map((Ct,dn)=>Tt(Ct,dn))),Et=Array.from(Dn.current).reduce((Ct,dn)=>{let[Vn,or]=dn;return an.has(Vn)?Ct:Ct.concat(or)},[]);Gt=[].concat((0,L.Z)(Gt),(0,L.Z)(Et))}return(0,ne.I8)(Gt,{externalGetKey:Tt,childrenPropName:kn})},[Vt,Tt,Bt,kn,Le]),it=(0,K.useMemo)(()=>ee(kn,yn),[kn,yn]),An=(0,K.useMemo)(()=>{const Gt=new Map;return it.forEach((an,Et)=>{const Ct=Tt(an,Et),dn=(w?w(an):null)||{};Gt.set(Ct,dn)}),Gt},[it,Tt,w]),pr=(0,K.useCallback)(Gt=>{var an;return!!(!((an=An.get(Tt(Gt)))===null||an===void 0)&&an.disabled)},[An,Tt]),[sr,Wn]=(0,K.useMemo)(()=>{if(Bt)return[At||[],[]];const{checkedKeys:Gt,halfCheckedKeys:an}=(0,je.S)(At,!0,Hn,pr);return[Gt||[],an]},[At,Bt,Hn,pr]),rr=(0,K.useMemo)(()=>{const Gt=_e==="radio"?sr.slice(0,1):sr;return new Set(Gt)},[sr,_e]),Or=(0,K.useMemo)(()=>_e==="radio"?new Set:new Set(Wn),[Wn,_e]);K.useEffect(()=>{pe||vn(Zt)},[!!pe]);const cr=(0,K.useCallback)((Gt,an)=>{let Et,Ct;Qn(Gt),Le?(Et=Gt,Ct=Gt.map(dn=>Dn.current.get(dn))):(Et=[],Ct=[],Gt.forEach(dn=>{const Vn=qt(dn);Vn!==void 0&&(Et.push(dn),Ct.push(Vn))})),vn(Et),Re==null||Re(Et,Ct,{type:an})},[vn,qt,Re,Le]),fo=(0,K.useCallback)((Gt,an,Et,Ct)=>{if(Te){const dn=Et.map(Vn=>qt(Vn));Te(qt(Gt),an,dn,Ct)}cr(Et,"single")},[Te,qt,cr]),Ar=(0,K.useMemo)(()=>!C||Wt?null:(C===!0?[We,a,lt]:C).map(an=>an===We?{key:"all",text:mt.selectionAll,onSelect(){cr(Vt.map((Et,Ct)=>Tt(Et,Ct)).filter(Et=>{const Ct=An.get(Et);return!(Ct!=null&&Ct.disabled)||rr.has(Et)}),"all")}}:an===a?{key:"invert",text:mt.selectInvert,onSelect(){const Et=new Set(rr);yn.forEach((dn,Vn)=>{const or=Tt(dn,Vn),io=An.get(or);io!=null&&io.disabled||(Et.has(or)?Et.delete(or):Et.add(or))});const Ct=Array.from(Et);q&&(on.deprecated(!1,"onSelectInvert","onChange"),q(Ct)),cr(Ct,"invert")}}:an===lt?{key:"none",text:mt.selectNone,onSelect(){ce==null||ce(),cr(Array.from(rr).filter(Et=>{const Ct=An.get(Et);return Ct==null?void 0:Ct.disabled}),"none")}}:an).map(an=>Object.assign(Object.assign({},an),{onSelect:function(){for(var Et,Ct,dn=arguments.length,Vn=new Array(dn),or=0;or{var an;if(!pe)return Gt.filter(un=>un!==ut);let Et=(0,L.Z)(Gt);const Ct=new Set(rr),dn=it.map(Tt).filter(un=>!An.get(un).disabled),Vn=dn.every(un=>Ct.has(un)),or=dn.some(un=>Ct.has(un)),io=()=>{const un=[];Vn?dn.forEach(wn=>{Ct.delete(wn),un.push(wn)}):dn.forEach(wn=>{Ct.has(wn)||(Ct.add(wn),un.push(wn))});const In=Array.from(Ct);Se==null||Se(!Vn,In.map(wn=>qt(wn)),un.map(wn=>qt(wn))),cr(In,"all"),En(null)};let Co,vo;if(_e!=="radio"){let un;if(Ar){const Tn={getPopupContainer:zt,items:Ar.map((Gn,gr)=>{const{key:hr,text:Jr,onSelect:Tr}=Gn;return{key:hr!=null?hr:gr,onClick:()=>{Tr==null||Tr(dn)},label:Jr}})};un=K.createElement("div",{className:`${kt}-selection-extra`},K.createElement(Xe.Z,{menu:Tn,getPopupContainer:zt},K.createElement("span",null,K.createElement(st.Z,null))))}const In=it.map((Tn,Gn)=>{const gr=Tt(Tn,Gn),hr=An.get(gr)||{};return Object.assign({checked:Ct.has(gr)},hr)}).filter(Tn=>{let{disabled:Gn}=Tn;return Gn}),wn=!!In.length&&In.length===it.length,qn=wn&&In.every(Tn=>{let{checked:Gn}=Tn;return Gn}),Xn=wn&&In.some(Tn=>{let{checked:Gn}=Tn;return Gn});vo=K.createElement(Ce.Z,{checked:wn?qn:!!it.length&&Vn,indeterminate:wn?!qn&&Xn:!Vn&&or,onChange:io,disabled:it.length===0||wn,"aria-label":un?"Custom selection":"Select all",skipGroup:!0}),Co=!Wt&&K.createElement("div",{className:`${kt}-selection`},vo,un)}let dr;_e==="radio"?dr=(un,In,wn)=>{const qn=Tt(In,wn),Xn=Ct.has(qn);return{node:K.createElement(rt.ZP,Object.assign({},An.get(qn),{checked:Xn,onClick:Tn=>Tn.stopPropagation(),onChange:Tn=>{Ct.has(qn)||fo(qn,!0,[qn],Tn.nativeEvent)}})),checked:Xn}}:dr=(un,In,wn)=>{var qn;const Xn=Tt(In,wn),Tn=Ct.has(Xn),Gn=Or.has(Xn),gr=An.get(Xn);let hr;return Jn==="nest"?hr=Gn:hr=(qn=gr==null?void 0:gr.indeterminate)!==null&&qn!==void 0?qn:Gn,{node:K.createElement(Ce.Z,Object.assign({},gr,{indeterminate:hr,checked:Tn,skipGroup:!0,onClick:Jr=>Jr.stopPropagation(),onChange:Jr=>{let{nativeEvent:Tr}=Jr;const{shiftKey:Wo}=Tr,bo=dn.findIndex(yr=>yr===Xn),xo=sr.some(yr=>dn.includes(yr));if(Wo&&Bt&&xo){const yr=tn(bo,dn,Ct),ct=Array.from(Ct);Oe==null||Oe(!Tn,ct.map(Cr=>qt(Cr)),yr.map(Cr=>qt(Cr))),cr(ct,"multiple")}else{const yr=sr;if(Bt){const ct=Tn?(0,u._5)(yr,Xn):(0,u.L0)(yr,Xn);fo(Xn,!Tn,ct,Tr)}else{const ct=(0,je.S)([].concat((0,L.Z)(yr),[Xn]),!0,Hn,pr),{checkedKeys:Cr,halfCheckedKeys:mo}=ct;let Fn=Cr;if(Tn){const Oo=new Set(Cr);Oo.delete(Xn),Fn=(0,je.S)(Array.from(Oo),{checked:!1,halfCheckedKeys:mo},Hn,pr).checkedKeys}fo(Xn,!Tn,Fn,Tr)}}En(Tn?null:bo)}})),checked:Tn}};const Ir=(un,In,wn)=>{const{node:qn,checked:Xn}=dr(un,In,wn);return gt?gt(Xn,In,wn,qn):qn};if(!Et.includes(ut))if(Et.findIndex(un=>{var In;return((In=un[g.vP])===null||In===void 0?void 0:In.columnType)==="EXPAND_COLUMN"})===0){const[un,...In]=Et;Et=[un,ut].concat((0,L.Z)(In))}else Et=[ut].concat((0,L.Z)(Et));const Kr=Et.indexOf(ut);Et=Et.filter((un,In)=>un!==ut||In===Kr);const Un=Et[Kr-1],jr=Et[Kr+1];let Yr=Lt;Yr===void 0&&((jr==null?void 0:jr.fixed)!==void 0?Yr=jr.fixed:(Un==null?void 0:Un.fixed)!==void 0&&(Yr=Un.fixed)),Yr&&Un&&((an=Un[g.vP])===null||an===void 0?void 0:an.columnType)==="EXPAND_COLUMN"&&Un.fixed===void 0&&(Un.fixed=Yr);const Ho=P()(`${kt}-selection-col`,{[`${kt}-selection-col-with-dropdown`]:C&&_e==="checkbox"}),St=()=>pe!=null&&pe.columnTitle?typeof pe.columnTitle=="function"?pe.columnTitle(vo):pe.columnTitle:Co,Mr={fixed:Yr,width:ke,className:`${kt}-selection-column`,title:St(),render:Ir,onCell:pe.onCell,[g.vP]:{className:Ho}};return Et.map(un=>un===ut?Mr:un)},[Tt,it,pe,sr,rr,Or,ke,Ar,Jn,An,Oe,fo,pr]),rr]}},56261:function(Bn,xt,f){"use strict";f.d(xt,{Z:function(){return pe}});var L=f(87462),K=f(91),st=f(1413),Ne=f(15671),P=f(43144),g=f(97326),u=f(32531),je=f(29388),ne=f(4942),Ke=f(93967),Ge=f.n(Ke),Ue=f(64217),Ce=f(67294),Xe=f(69610),rt=function(le){for(var ge=le.prefixCls,w=le.level,Re=le.isStart,Te=le.isEnd,Se="".concat(ge,"-indent-unit"),q=[],ce=0;ce=0&&Ee.splice(Ie,1),Ee}function Ke(ee,J){var Ee=(ee||[]).slice();return Ee.indexOf(J)===-1&&Ee.push(J),Ee}function Ge(ee){return ee.split("-")}function Ue(ee,J){var Ee=[],Ie=(0,g.Z)(J,ee);function pe(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Le.forEach(function(le){var ge=le.key,w=le.children;Ee.push(ge),pe(w)})}return pe(Ie.children),Ee}function Ce(ee){if(ee.parent){var J=Ge(ee.pos);return Number(J[J.length-1])===ee.parent.children.length-1}return!1}function Xe(ee){var J=Ge(ee.pos);return Number(J[J.length-1])===0}function rt(ee,J,Ee,Ie,pe,Le,le,ge,w,Re){var Te,Se=ee.clientX,q=ee.clientY,ce=ee.target.getBoundingClientRect(),Oe=ce.top,ke=ce.height,_e=(Re==="rtl"?-1:1)*(((pe==null?void 0:pe.x)||0)-Se),C=(_e-12)/Ie,Lt=w.filter(function(tn){var En;return(En=ge[tn])===null||En===void 0||(En=En.children)===null||En===void 0?void 0:En.length}),gt=(0,g.Z)(ge,Ee.props.eventKey);if(q-1.5?Le({dragNode:mt,dropNode:zt,dropPosition:1})?Tt=1:on=!1:Le({dragNode:mt,dropNode:zt,dropPosition:0})?Tt=0:Le({dragNode:mt,dropNode:zt,dropPosition:1})?Tt=1:on=!1:Le({dragNode:mt,dropNode:zt,dropPosition:1})?Tt=1:on=!1,{dropPosition:Tt,dropLevelOffset:Jn,dropTargetKey:gt.key,dropTargetPos:gt.pos,dragOverNodeKey:qt,dropContainerKey:Tt===0?null:((Te=gt.parent)===null||Te===void 0?void 0:Te.key)||null,dropAllowed:on}}function ut(ee,J){if(ee){var Ee=J.multiple;return Ee?ee.slice():ee.length?[ee[0]]:ee}}var We=function(J){return J};function a(ee,J){if(!ee)return[];var Ee=J||{},Ie=Ee.processProps,pe=Ie===void 0?We:Ie,Le=Array.isArray(ee)?ee:[ee];return Le.map(function(le){var ge=le.children,w=_objectWithoutProperties(le,je),Re=a(ge,J);return React.createElement(TreeNode,_extends({key:w.key},pe(w)),Re)})}function lt(ee){if(!ee)return null;var J;if(Array.isArray(ee))J={checkedKeys:ee,halfCheckedKeys:void 0};else if((0,K.Z)(ee)==="object")J={checkedKeys:ee.checked||void 0,halfCheckedKeys:ee.halfChecked||void 0};else return(0,st.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return J}function Zt(ee,J){var Ee=new Set;function Ie(pe){if(!Ee.has(pe)){var Le=(0,g.Z)(J,pe);if(Le){Ee.add(pe);var le=Le.parent,ge=Le.node;ge.disabled||le&&Ie(le.key)}}}return(ee||[]).forEach(function(pe){Ie(pe)}),(0,L.Z)(Ee)}},97153:function(Bn,xt,f){"use strict";f.d(xt,{S:function(){return u}});var L=f(80334),K=f(3596);function st(je,ne){var Ke=new Set;return je.forEach(function(Ge){ne.has(Ge)||Ke.add(Ge)}),Ke}function Ne(je){var ne=je||{},Ke=ne.disabled,Ge=ne.disableCheckbox,Ue=ne.checkable;return!!(Ke||Ge)||Ue===!1}function P(je,ne,Ke,Ge){for(var Ue=new Set(je),Ce=new Set,Xe=0;Xe<=Ke;Xe+=1){var rt=ne.get(Xe)||new Set;rt.forEach(function(lt){var Zt=lt.key,ee=lt.node,J=lt.children,Ee=J===void 0?[]:J;Ue.has(Zt)&&!Ge(ee)&&Ee.filter(function(Ie){return!Ge(Ie.node)}).forEach(function(Ie){Ue.add(Ie.key)})})}for(var ut=new Set,We=Ke;We>=0;We-=1){var a=ne.get(We)||new Set;a.forEach(function(lt){var Zt=lt.parent,ee=lt.node;if(!(Ge(ee)||!lt.parent||ut.has(lt.parent.key))){if(Ge(lt.parent.node)){ut.add(Zt.key);return}var J=!0,Ee=!1;(Zt.children||[]).filter(function(Ie){return!Ge(Ie.node)}).forEach(function(Ie){var pe=Ie.key,Le=Ue.has(pe);J&&!Le&&(J=!1),!Ee&&(Le||Ce.has(pe))&&(Ee=!0)}),J&&Ue.add(Zt.key),Ee&&Ce.add(Zt.key),ut.add(Zt.key)}})}return{checkedKeys:Array.from(Ue),halfCheckedKeys:Array.from(st(Ce,Ue))}}function g(je,ne,Ke,Ge,Ue){for(var Ce=new Set(je),Xe=new Set(ne),rt=0;rt<=Ge;rt+=1){var ut=Ke.get(rt)||new Set;ut.forEach(function(Zt){var ee=Zt.key,J=Zt.node,Ee=Zt.children,Ie=Ee===void 0?[]:Ee;!Ce.has(ee)&&!Xe.has(ee)&&!Ue(J)&&Ie.filter(function(pe){return!Ue(pe.node)}).forEach(function(pe){Ce.delete(pe.key)})})}Xe=new Set;for(var We=new Set,a=Ge;a>=0;a-=1){var lt=Ke.get(a)||new Set;lt.forEach(function(Zt){var ee=Zt.parent,J=Zt.node;if(!(Ue(J)||!Zt.parent||We.has(Zt.parent.key))){if(Ue(Zt.parent.node)){We.add(ee.key);return}var Ee=!0,Ie=!1;(ee.children||[]).filter(function(pe){return!Ue(pe.node)}).forEach(function(pe){var Le=pe.key,le=Ce.has(Le);Ee&&!le&&(Ee=!1),!Ie&&(le||Xe.has(Le))&&(Ie=!0)}),Ee||Ce.delete(ee.key),Ie&&Xe.add(ee.key),We.add(ee.key)}})}return{checkedKeys:Array.from(Ce),halfCheckedKeys:Array.from(st(Xe,Ce))}}function u(je,ne,Ke,Ge){var Ue=[],Ce;Ge?Ce=Ge:Ce=Ne;var Xe=new Set(je.filter(function(a){var lt=!!(0,K.Z)(Ke,a);return lt||Ue.push(a),lt})),rt=new Map,ut=0;Object.keys(Ke).forEach(function(a){var lt=Ke[a],Zt=lt.level,ee=rt.get(Zt);ee||(ee=new Set,rt.set(Zt,ee)),ee.add(lt),ut=Math.max(ut,Zt)}),(0,L.ZP)(!Ue.length,"Tree missing follow keys: ".concat(Ue.slice(0,100).map(function(a){return"'".concat(a,"'")}).join(", ")));var We;return ne===!0?We=P(Xe,rt,ut,Ce):We=g(Xe,ne.halfCheckedKeys,rt,ut,Ce),We}},3596:function(Bn,xt,f){"use strict";f.d(xt,{Z:function(){return L}});function L(K,st){return K[st]}},26052:function(Bn,xt,f){"use strict";f.d(xt,{F:function(){return Zt},H8:function(){return lt},I8:function(){return a},km:function(){return Ue},oH:function(){return ut},w$:function(){return Ce},zn:function(){return rt}});var L=f(71002),K=f(74902),st=f(1413),Ne=f(91),P=f(50344),g=f(98423),u=f(80334),je=f(3596),ne=["children"];function Ke(ee,J){return"".concat(ee,"-").concat(J)}function Ge(ee){return ee&&ee.type&&ee.type.isTreeNode}function Ue(ee,J){return ee!=null?ee:J}function Ce(ee){var J=ee||{},Ee=J.title,Ie=J._title,pe=J.key,Le=J.children,le=Ee||"title";return{title:le,_title:Ie||[le],key:pe||"key",children:Le||"children"}}function Xe(ee,J){var Ee=new Map;function Ie(pe){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(pe||[]).forEach(function(le){var ge=le[J.key],w=le[J.children];warning(ge!=null,"Tree node must have a certain key: [".concat(Le).concat(ge,"]"));var Re=String(ge);warning(!Ee.has(Re)||ge===null||ge===void 0,"Same 'key' exist in the Tree: ".concat(Re)),Ee.set(Re,!0),Ie(w,"".concat(Le).concat(Re," > "))})}Ie(ee)}function rt(ee){function J(Ee){var Ie=(0,P.Z)(Ee);return Ie.map(function(pe){if(!Ge(pe))return(0,u.ZP)(!pe,"Tree/TreeNode can only accept TreeNode as children."),null;var Le=pe.key,le=pe.props,ge=le.children,w=(0,Ne.Z)(le,ne),Re=(0,st.Z)({key:Le},w),Te=J(ge);return Te.length&&(Re.children=Te),Re}).filter(function(pe){return pe})}return J(ee)}function ut(ee,J,Ee){var Ie=Ce(Ee),pe=Ie._title,Le=Ie.key,le=Ie.children,ge=new Set(J===!0?[]:J),w=[];function Re(Te){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Te.map(function(q,ce){for(var Oe=Ke(Se?Se.pos:"0",ce),ke=Ue(q[Le],Oe),_e,C=0;C1&&arguments[1]!==void 0?arguments[1]:{},Ee=J.initWrapper,Ie=J.processEntity,pe=J.onProcessFinished,Le=J.externalGetKey,le=J.childrenPropName,ge=J.fieldNames,w=arguments.length>2?arguments[2]:void 0,Re=Le||w,Te={},Se={},q={posEntities:Te,keyEntities:Se};return Ee&&(q=Ee(q)||q),We(ee,function(ce){var Oe=ce.node,ke=ce.index,_e=ce.pos,C=ce.key,Lt=ce.parentPos,gt=ce.level,Wt=ce.nodes,Bt={node:Oe,nodes:Wt,index:ke,key:C,pos:_e,level:gt},kt=Ue(C,_e);Te[_e]=Bt,Se[kt]=Bt,Bt.parent=Te[Lt],Bt.parent&&(Bt.parent.children=Bt.parent.children||[],Bt.parent.children.push(Bt)),Ie&&Ie(Bt,q)},{externalGetKey:Re,childrenPropName:le,fieldNames:ge}),pe&&pe(q),q}function lt(ee,J){var Ee=J.expandedKeys,Ie=J.selectedKeys,pe=J.loadedKeys,Le=J.loadingKeys,le=J.checkedKeys,ge=J.halfCheckedKeys,w=J.dragOverNodeKey,Re=J.dropPosition,Te=J.keyEntities,Se=(0,je.Z)(Te,ee),q={eventKey:ee,expanded:Ee.indexOf(ee)!==-1,selected:Ie.indexOf(ee)!==-1,loaded:pe.indexOf(ee)!==-1,loading:Le.indexOf(ee)!==-1,checked:le.indexOf(ee)!==-1,halfChecked:ge.indexOf(ee)!==-1,pos:String(Se?Se.pos:""),dragOver:w===ee&&Re===0,dragOverGapTop:w===ee&&Re===-1,dragOverGapBottom:w===ee&&Re===1};return q}function Zt(ee){var J=ee.data,Ee=ee.expanded,Ie=ee.selected,pe=ee.checked,Le=ee.loaded,le=ee.loading,ge=ee.halfChecked,w=ee.dragOver,Re=ee.dragOverGapTop,Te=ee.dragOverGapBottom,Se=ee.pos,q=ee.active,ce=ee.eventKey,Oe=(0,st.Z)((0,st.Z)({},J),{},{expanded:Ee,selected:Ie,checked:pe,loaded:Le,loading:le,halfChecked:ge,dragOver:w,dragOverGapTop:Re,dragOverGapBottom:Te,pos:Se,active:q,key:ce});return"props"in Oe||Object.defineProperty(Oe,"props",{get:function(){return(0,u.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ee}}),Oe}},20640:function(Bn,xt,f){"use strict";var L=f(11742),K={"text/plain":"Text","text/html":"Url",default:"Text"},st="Copy to clipboard: #{key}, Enter";function Ne(g){var u=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return g.replace(/#{\s*key\s*}/g,u)}function P(g,u){var je,ne,Ke,Ge,Ue,Ce,Xe=!1;u||(u={}),je=u.debug||!1;try{Ke=L(),Ge=document.createRange(),Ue=document.getSelection(),Ce=document.createElement("span"),Ce.textContent=g,Ce.ariaHidden="true",Ce.style.all="unset",Ce.style.position="fixed",Ce.style.top=0,Ce.style.clip="rect(0, 0, 0, 0)",Ce.style.whiteSpace="pre",Ce.style.webkitUserSelect="text",Ce.style.MozUserSelect="text",Ce.style.msUserSelect="text",Ce.style.userSelect="text",Ce.addEventListener("copy",function(ut){if(ut.stopPropagation(),u.format)if(ut.preventDefault(),typeof ut.clipboardData=="undefined"){je&&console.warn("unable to use e.clipboardData"),je&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var We=K[u.format]||K.default;window.clipboardData.setData(We,g)}else ut.clipboardData.clearData(),ut.clipboardData.setData(u.format,g);u.onCopy&&(ut.preventDefault(),u.onCopy(ut.clipboardData))}),document.body.appendChild(Ce),Ge.selectNodeContents(Ce),Ue.addRange(Ge);var rt=document.execCommand("copy");if(!rt)throw new Error("copy command was unsuccessful");Xe=!0}catch(ut){je&&console.error("unable to copy using execCommand: ",ut),je&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(u.format||"text",g),u.onCopy&&u.onCopy(window.clipboardData),Xe=!0}catch(We){je&&console.error("unable to copy using clipboardData: ",We),je&&console.error("falling back to prompt"),ne=Ne("message"in u?u.message:st),window.prompt(ne,g)}}finally{Ue&&(typeof Ue.removeRange=="function"?Ue.removeRange(Ge):Ue.removeAllRanges()),Ce&&document.body.removeChild(Ce),Ke()}return Xe}Bn.exports=P},45233:function(Bn,xt,f){"use strict";f.d(xt,{R:function(){return K},w:function(){return L}});var L={},K="rc-table-internal-hook"},8290:function(Bn,xt,f){"use strict";f.d(xt,{L:function(){return ut},Z:function(){return ee}});var L=f(97685),K=f(4942),st=f(74902),Ne=f(71002),P=f(1413),g=f(91),u=f(50344),je=f(80334),ne=f(67294),Ke=f(45233),Ge=f(62978);function Ue(J){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ee=="number"?Ee:Ee.endsWith("%")?J*parseFloat(Ee)/100:null}function Ce(J,Ee,Ie){return ne.useMemo(function(){if(Ee&&Ee>0){var pe=0,Le=0;J.forEach(function(ce){var Oe=Ue(Ee,ce.width);Oe?pe+=Oe:Le+=1});var le=Math.max(Ee,Ie),ge=Math.max(le-pe,Le),w=Le,Re=ge/Le,Te=0,Se=J.map(function(ce){var Oe=(0,P.Z)({},ce),ke=Ue(Ee,Oe.width);if(ke)Oe.width=ke;else{var _e=Math.floor(Re);Oe.width=w===1?ge:_e,ge-=_e,w-=1}return Te+=Oe.width,Oe});if(Te0?(0,P.Z)((0,P.Z)({},Ee),{},{children:We(Ie)}):Ee})}function a(J){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return J.filter(function(Ie){return Ie&&(0,Ne.Z)(Ie)==="object"}).reduce(function(Ie,pe,Le){var le=pe.fixed,ge=le===!0?"left":le,w="".concat(Ee,"-").concat(Le),Re=pe.children;return Re&&Re.length>0?[].concat((0,st.Z)(Ie),(0,st.Z)(a(Re,w).map(function(Te){return(0,P.Z)({fixed:ge},Te)}))):[].concat((0,st.Z)(Ie),[(0,P.Z)((0,P.Z)({key:w},pe),{},{fixed:ge})])},[])}function lt(J){return J.map(function(Ee){var Ie=Ee.fixed,pe=(0,g.Z)(Ee,rt),Le=Ie;return Ie==="left"?Le="right":Ie==="right"&&(Le="left"),(0,P.Z)({fixed:Le},pe)})}function Zt(J,Ee){var Ie=J.prefixCls,pe=J.columns,Le=J.children,le=J.expandable,ge=J.expandedKeys,w=J.columnTitle,Re=J.getRowKey,Te=J.onTriggerExpand,Se=J.expandIcon,q=J.rowExpandable,ce=J.expandIconColumnIndex,Oe=J.direction,ke=J.expandRowByClick,_e=J.columnWidth,C=J.fixed,Lt=J.scrollWidth,gt=J.clientWidth,Wt=ne.useMemo(function(){var mt=pe||ut(Le)||[];return We(mt.slice())},[pe,Le]),Bt=ne.useMemo(function(){if(le){var mt,zt=Wt.slice();if(!zt.includes(Ke.w)){var on=ce||0;on>=0&&zt.splice(on,0,Ke.w)}var tn=zt.indexOf(Ke.w);zt=zt.filter(function(Dn,Qn){return Dn!==Ke.w||Qn===tn});var En=Wt[tn],At;(C==="left"||C)&&!ce?At="left":(C==="right"||C)&&ce===Wt.length?At="right":At=En?En.fixed:null;var vn=(mt={},(0,K.Z)(mt,Ge.v,{className:"".concat(Ie,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,K.Z)(mt,"title",w),(0,K.Z)(mt,"fixed",At),(0,K.Z)(mt,"className","".concat(Ie,"-row-expand-icon-cell")),(0,K.Z)(mt,"width",_e),(0,K.Z)(mt,"render",function(Qn,Hn,it){var An=Re(Hn,it),pr=ge.has(An),sr=q?q(Hn):!0,Wn=Se({prefixCls:Ie,expanded:pr,expandable:sr,record:Hn,onExpand:Te});return ke?ne.createElement("span",{onClick:function(Or){return Or.stopPropagation()}},Wn):Wn}),mt);return zt.map(function(Dn){return Dn===Ke.w?vn:Dn})}return Wt.filter(function(Dn){return Dn!==Ke.w})},[le,Wt,Re,ge,Se,Oe]),kt=ne.useMemo(function(){var mt=Bt;return Ee&&(mt=Ee(mt)),mt.length||(mt=[{render:function(){return null}}]),mt},[Ee,Bt,Oe]),Vt=ne.useMemo(function(){return Oe==="rtl"?lt(a(kt)):a(kt)},[kt,Oe,Lt]),yn=ne.useMemo(function(){for(var mt=-1,zt=Vt.length-1;zt>=0;zt-=1){var on=Vt[zt].fixed;if(on==="left"||on===!0){mt=zt;break}}if(mt>=0)for(var tn=0;tn<=mt;tn+=1){var En=Vt[tn].fixed;if(En!=="left"&&En!==!0)return!0}var At=Vt.findIndex(function(Qn){var Hn=Qn.fixed;return Hn==="right"});if(At>=0)for(var vn=At;vn=U}function kt(Z,H){return ne(J,function(U){var k=Bt(Z,H||1,U.hoverStartRow,U.hoverEndRow);return[k,U.onHover]})}var Vt=f(56790),yn=function(H){var U=H.ellipsis,k=H.rowType,W=H.children,ie,Ze=U===!0?{showTitle:!0}:U;return Ze&&(Ze.showTitle||k==="header")&&(typeof W=="string"||typeof W=="number"?ie=W.toString():g.isValidElement(W)&&typeof W.props.children=="string"&&(ie=W.props.children)),ie};function qt(Z){var H,U,k,W,ie,Ze,ye,be,$e=Z.component,Be=Z.children,Pe=Z.ellipsis,Me=Z.scope,De=Z.prefixCls,Qe=Z.className,ft=Z.align,pt=Z.record,wt=Z.render,Nt=Z.dataIndex,Pt=Z.renderIndex,Kt=Z.shouldCellUpdate,Mt=Z.index,nn=Z.rowType,Jt=Z.colSpan,ln=Z.rowSpan,$t=Z.fixLeft,sn=Z.fixRight,Pn=Z.firstFixLeft,cn=Z.lastFixLeft,Ot=Z.firstFixRight,Je=Z.lastFixRight,Dt=Z.appendNode,Rt=Z.additionalProps,tt=Rt===void 0?{}:Rt,vt=Z.isSticky,Ut="".concat(De,"-cell"),Cn=ne(J,["supportSticky","allColumnsFixedLeft"]),gn=Cn.supportSticky,nr=Cn.allColumnsFixedLeft,Dr=Wt(pt,Nt,Pt,Be,wt,Kt),zr=(0,K.Z)(Dr,2),br=zr[0],_t=zr[1],Lr={},lr=typeof $t=="number"&&gn,xr=typeof sn=="number"&&gn;lr&&(Lr.position="sticky",Lr.left=$t),xr&&(Lr.position="sticky",Lr.right=sn);var On=(H=(U=(k=_t==null?void 0:_t.colSpan)!==null&&k!==void 0?k:tt.colSpan)!==null&&U!==void 0?U:Jt)!==null&&H!==void 0?H:1,en=(W=(ie=(Ze=_t==null?void 0:_t.rowSpan)!==null&&Ze!==void 0?Ze:tt.rowSpan)!==null&&ie!==void 0?ie:ln)!==null&&W!==void 0?W:1,bn=kt(Mt,en),Kn=(0,K.Z)(bn,2),xn=Kn[0],Sn=Kn[1],Pr=(0,Vt.zX)(function(Wr){var to;pt&&Sn(Mt,Mt+en-1),tt==null||(to=tt.onMouseEnter)===null||to===void 0||to.call(tt,Wr)}),Br=(0,Vt.zX)(function(Wr){var to;pt&&Sn(-1,-1),tt==null||(to=tt.onMouseLeave)===null||to===void 0||to.call(tt,Wr)});if(On===0||en===0)return null;var Hr=(ye=tt.title)!==null&&ye!==void 0?ye:yn({rowType:nn,ellipsis:Pe,children:br}),eo=Re()(Ut,Qe,(be={},(0,ge.Z)(be,"".concat(Ut,"-fix-left"),lr&&gn),(0,ge.Z)(be,"".concat(Ut,"-fix-left-first"),Pn&&gn),(0,ge.Z)(be,"".concat(Ut,"-fix-left-last"),cn&&gn),(0,ge.Z)(be,"".concat(Ut,"-fix-left-all"),cn&&nr&&gn),(0,ge.Z)(be,"".concat(Ut,"-fix-right"),xr&&gn),(0,ge.Z)(be,"".concat(Ut,"-fix-right-first"),Ot&&gn),(0,ge.Z)(be,"".concat(Ut,"-fix-right-last"),Je&&gn),(0,ge.Z)(be,"".concat(Ut,"-ellipsis"),Pe),(0,ge.Z)(be,"".concat(Ut,"-with-append"),Dt),(0,ge.Z)(be,"".concat(Ut,"-fix-sticky"),(lr||xr)&&vt&&gn),(0,ge.Z)(be,"".concat(Ut,"-row-hover"),!_t&&xn),be),tt.className,_t==null?void 0:_t.className),hn={};ft&&(hn.textAlign=ft);var Eo=(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)({},Lr),tt.style),hn),_t==null?void 0:_t.style),Nr=br;return(0,Le.Z)(Nr)==="object"&&!Array.isArray(Nr)&&!g.isValidElement(Nr)&&(Nr=null),Pe&&(cn||Ot)&&(Nr=g.createElement("span",{className:"".concat(Ut,"-content")},Nr)),g.createElement($e,(0,Ke.Z)({},_t,tt,{className:eo,style:Eo,title:Hr,scope:Me,onMouseEnter:Pr,onMouseLeave:Br,colSpan:On!==1?On:null,rowSpan:en!==1?en:null}),Dt,Nr)}var Tt=g.memo(qt);function Jn(Z,H,U,k,W){var ie=U[Z]||{},Ze=U[H]||{},ye,be;ie.fixed==="left"?ye=k.left[W==="rtl"?H:Z]:Ze.fixed==="right"&&(be=k.right[W==="rtl"?Z:H]);var $e=!1,Be=!1,Pe=!1,Me=!1,De=U[H+1],Qe=U[Z-1],ft=De&&De.fixed===void 0||Qe&&Qe.fixed===void 0||U.every(function(Kt){return Kt.fixed==="left"});if(W==="rtl"){if(ye!==void 0){var pt=Qe&&Qe.fixed==="left";Me=!pt&&ft}else if(be!==void 0){var wt=De&&De.fixed==="right";Pe=!wt&&ft}}else if(ye!==void 0){var Nt=De&&De.fixed==="left";$e=!Nt&&ft}else if(be!==void 0){var Pt=Qe&&Qe.fixed==="right";Be=!Pt&&ft}return{fixLeft:ye,fixRight:be,lastFixLeft:$e,firstFixRight:Be,lastFixRight:Pe,firstFixLeft:Me,isSticky:k.isSticky}}var kn=g.createContext({}),mt=kn;function zt(Z){var H=Z.className,U=Z.index,k=Z.children,W=Z.colSpan,ie=W===void 0?1:W,Ze=Z.rowSpan,ye=Z.align,be=ne(J,["prefixCls","direction"]),$e=be.prefixCls,Be=be.direction,Pe=g.useContext(mt),Me=Pe.scrollColumnIndex,De=Pe.stickyOffsets,Qe=Pe.flattenColumns,ft=U+ie-1,pt=ft+1===Me?ie+1:ie,wt=Jn(U,U+pt-1,Qe,De,Be);return g.createElement(Tt,(0,Ke.Z)({className:H,index:U,component:"td",prefixCls:$e,record:null,dataIndex:null,align:ye,colSpan:pt,rowSpan:Ze,render:function(){return k}},wt))}var on=f(91),tn=["children"];function En(Z){var H=Z.children,U=(0,on.Z)(Z,tn);return g.createElement("tr",U,H)}function At(Z){var H=Z.children;return H}At.Row=En,At.Cell=zt;var vn=At;function Dn(Z){var H=Z.children,U=Z.stickyOffsets,k=Z.flattenColumns,W=ne(J,"prefixCls"),ie=k.length-1,Ze=k[ie],ye=g.useMemo(function(){return{stickyOffsets:U,flattenColumns:k,scrollColumnIndex:Ze!=null&&Ze.scrollbar?ie:null}},[Ze,k,ie,U]);return g.createElement(mt.Provider,{value:ye},g.createElement("tfoot",{className:"".concat(W,"-summary")},H))}var Qn=lt(Dn),Hn=vn,it=f(9220),An=f(5110),pr=f(79370),sr=f(74204),Wn=f(64217);function rr(Z,H,U,k,W,ie,Ze){Z.push({record:H,indent:U,index:Ze});var ye=ie(H),be=W==null?void 0:W.has(ye);if(H&&Array.isArray(H[k])&&be)for(var $e=0;$e1?Pn-1:0),Ot=1;Ot=1?Mt:""),style:(0,le.Z)((0,le.Z)({},U),wt==null?void 0:wt.style)}),Qe.map(function($t,sn){var Pn=$t.render,cn=$t.dataIndex,Ot=$t.className,Je=$o(Me,$t,sn,be,W),Dt=Je.key,Rt=Je.fixedInfo,tt=Je.appendCellNode,vt=Je.additionalCellProps;return g.createElement(Tt,(0,Ke.Z)({className:Ot,ellipsis:$t.ellipsis,align:$t.align,scope:$t.rowScope,component:$t.rowScope?Pe:Be,prefixCls:De,key:Dt,record:k,index:W,renderIndex:ie,dataIndex:cn,render:Pn,shouldCellUpdate:$t.shouldCellUpdate},Rt,{appendNode:tt,additionalProps:vt}))})),Jt;if(Pt&&(Kt.current||Nt)){var ln=pt(k,W,be+1,Nt);Jt=g.createElement(Ar,{expanded:Nt,className:Re()("".concat(De,"-expanded-row"),"".concat(De,"-expanded-row-level-").concat(be+1),Mt),prefixCls:De,component:$e,cellComponent:Be,colSpan:Qe.length,isEmpty:!1},ln)}return g.createElement(g.Fragment,null,nn,Jt)}var an=lt(Gt);function Et(Z){var H=Z.columnKey,U=Z.onColumnResize,k=g.useRef();return g.useEffect(function(){k.current&&U(H,k.current.offsetWidth)},[]),g.createElement(it.Z,{data:H},g.createElement("td",{ref:k,style:{padding:0,border:0,height:0}},g.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Ct(Z){var H=Z.prefixCls,U=Z.columnsKey,k=Z.onColumnResize;return g.createElement("tr",{"aria-hidden":"true",className:"".concat(H,"-measure-row"),style:{height:0,fontSize:0}},g.createElement(it.Z.Collection,{onBatchResize:function(ie){ie.forEach(function(Ze){var ye=Ze.data,be=Ze.size;k(ye,be.offsetWidth)})}},U.map(function(W){return g.createElement(Et,{key:W,columnKey:W,onColumnResize:k})})))}function dn(Z){var H=Z.data,U=Z.measureColumnWidth,k=ne(J,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),W=k.prefixCls,ie=k.getComponent,Ze=k.onColumnResize,ye=k.flattenColumns,be=k.getRowKey,$e=k.expandedKeys,Be=k.childrenColumnName,Pe=k.emptyNode,Me=Or(H,Be,$e,be),De=g.useRef({renderWithProps:!1}),Qe=ie(["body","wrapper"],"tbody"),ft=ie(["body","row"],"tr"),pt=ie(["body","cell"],"td"),wt=ie(["body","cell"],"th"),Nt;H.length?Nt=Me.map(function(Kt,Mt){var nn=Kt.record,Jt=Kt.indent,ln=Kt.index,$t=be(nn,Mt);return g.createElement(an,{key:$t,rowKey:$t,record:nn,index:Mt,renderIndex:ln,rowComponent:ft,cellComponent:pt,scopeCellComponent:wt,getRowKey:be,indent:Jt})}):Nt=g.createElement(Ar,{expanded:!0,className:"".concat(W,"-placeholder"),prefixCls:W,component:ft,cellComponent:pt,colSpan:ye.length,isEmpty:!0},Pe);var Pt=C(ye);return g.createElement(Oe.Provider,{value:De.current},g.createElement(Qe,{className:"".concat(W,"-tbody")},U&&g.createElement(Ct,{prefixCls:W,columnsKey:Pt,onColumnResize:Ze}),Nt))}var Vn=lt(dn),or=f(62978),io=["columnType"];function Co(Z){for(var H=Z.colWidths,U=Z.columns,k=Z.columCount,W=[],ie=k||U.length,Ze=!1,ye=ie-1;ye>=0;ye-=1){var be=H[ye],$e=U&&U[ye],Be=$e&&$e[or.v];if(be||Be||Ze){var Pe=Be||{},Me=Pe.columnType,De=(0,on.Z)(Pe,io);W.unshift(g.createElement("col",(0,Ke.Z)({key:ye,style:{width:be}},De))),Ze=!0}}return g.createElement("colgroup",null,W)}var vo=Co,dr=f(74902),Ir=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Kr(Z,H){return(0,g.useMemo)(function(){for(var U=[],k=0;k1?"colgroup":"col":null,ellipsis:pt.ellipsis,align:pt.align,component:Ze,prefixCls:Be,key:De[ft]},wt,{additionalProps:Nt,rowType:"header"}))}))},Ho=Yr;function St(Z){var H=[];function U(Ze,ye){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;H[be]=H[be]||[];var $e=ye,Be=Ze.filter(Boolean).map(function(Pe){var Me={key:Pe.key,className:Pe.className||"",children:Pe.title,column:Pe,colStart:$e},De=1,Qe=Pe.children;return Qe&&Qe.length>0&&(De=U(Qe,$e,be+1).reduce(function(ft,pt){return ft+pt},0),Me.hasSubColumns=!0),"colSpan"in Pe&&(De=Pe.colSpan),"rowSpan"in Pe&&(Me.rowSpan=Pe.rowSpan),Me.colSpan=De,Me.colEnd=Me.colStart+De-1,H[be].push(Me),$e+=De,De});return Be}U(Z,0);for(var k=H.length,W=function(ye){H[ye].forEach(function(be){!("rowSpan"in be)&&!be.hasSubColumns&&(be.rowSpan=k-ye)})},ie=0;ie=Me&&(vt=Me-De),Ze({scrollLeft:vt/Me*(Pe+2)}),Pt.current.x=Je.pageX},Pn=function(){if(ie.current){var Je=(0,mo.os)(ie.current).top,Dt=Je+ie.current.offsetHeight,Rt=be===window?document.documentElement.scrollTop+window.innerHeight:(0,mo.os)(be).top+be.clientHeight;Dt-(0,sr.Z)()<=Rt||Je>=Rt-ye?Nt(function(tt){return(0,le.Z)((0,le.Z)({},tt),{},{isHiddenScrollBar:!0})}):Nt(function(tt){return(0,le.Z)((0,le.Z)({},tt),{},{isHiddenScrollBar:!1})})}},cn=function(Je){Nt(function(Dt){return(0,le.Z)((0,le.Z)({},Dt),{},{scrollLeft:Je/Pe*Me||0})})};return g.useImperativeHandle(U,function(){return{setScrollLeft:cn}}),g.useEffect(function(){var Ot=(0,Cr.Z)(document.body,"mouseup",ln,!1),Je=(0,Cr.Z)(document.body,"mousemove",sn,!1);return Pn(),function(){Ot.remove(),Je.remove()}},[De,nn]),g.useEffect(function(){var Ot=(0,Cr.Z)(be,"scroll",Pn,!1),Je=(0,Cr.Z)(window,"resize",Pn,!1);return function(){Ot.remove(),Je.remove()}},[be]),g.useEffect(function(){wt.isHiddenScrollBar||Nt(function(Ot){var Je=ie.current;return Je?(0,le.Z)((0,le.Z)({},Ot),{},{scrollLeft:Je.scrollLeft/Je.scrollWidth*Je.clientWidth}):Ot})},[wt.isHiddenScrollBar]),g.useEffect(function(){Pn()},[$e]),Pe<=Me||!De||wt.isHiddenScrollBar?null:g.createElement("div",{style:{height:(0,sr.Z)(),width:Me,bottom:ye},className:"".concat(Be,"-sticky-scroll")},g.createElement("div",{onMouseDown:$t,ref:Qe,className:Re()("".concat(Be,"-sticky-scroll-bar"),(0,ge.Z)({},"".concat(Be,"-sticky-scroll-bar-active"),nn)),style:{width:"".concat(De,"px"),transform:"translate3d(".concat(wt.scrollLeft,"px, 0, 0)")}}))},Oo=g.forwardRef(Fn);function ea(Z){return null}var ha=ea;function ta(Z){return null}var Qr=ta,po="rc-table",ya=[],Q={};function j(){return"No Data"}function fe(Z,H){var U,k=(0,le.Z)({rowKey:"key",prefixCls:po,emptyText:j},Z),W=k.prefixCls,ie=k.className,Ze=k.rowClassName,ye=k.style,be=k.data,$e=k.rowKey,Be=k.scroll,Pe=k.tableLayout,Me=k.direction,De=k.title,Qe=k.footer,ft=k.summary,pt=k.caption,wt=k.id,Nt=k.showHeader,Pt=k.components,Kt=k.emptyText,Mt=k.onRow,nn=k.onHeaderRow,Jt=k.internalHooks,ln=k.transformColumns,$t=k.internalRefs,sn=k.tailor,Pn=k.getContainerWidth,cn=k.sticky,Ot=be||ya,Je=!!Ot.length,Dt=Jt===L.R,Rt=g.useCallback(function(Ht,mn){return(0,Se.Z)(Pt,Ht)||mn},[Pt]),tt=g.useMemo(function(){return typeof $e=="function"?$e:function(Ht){var mn=Ht&&Ht[$e];return mn}},[$e]),vt=Rt(["body"]),Ut=hr(),Cn=(0,K.Z)(Ut,3),gn=Cn[0],nr=Cn[1],Dr=Cn[2],zr=Xn(k,Ot,tt),br=(0,K.Z)(zr,6),_t=br[0],Lr=br[1],lr=br[2],xr=br[3],On=br[4],en=br[5],bn=Be==null?void 0:Be.x,Kn=g.useState(0),xn=(0,K.Z)(Kn,2),Sn=xn[0],Pr=xn[1],Br=(0,In.Z)((0,le.Z)((0,le.Z)((0,le.Z)({},k),_t),{},{expandable:!!_t.expandedRowRender,columnTitle:_t.columnTitle,expandedKeys:lr,getRowKey:tt,onTriggerExpand:en,expandIcon:xr,expandIconColumnIndex:_t.expandIconColumnIndex,direction:Me,scrollWidth:Dt&&sn&&typeof bn=="number"?bn:null,clientWidth:Sn}),Dt?ln:null),Hr=(0,K.Z)(Br,4),eo=Hr[0],hn=Hr[1],Eo=Hr[2],Nr=Hr[3],Wr=Eo!=null?Eo:bn,to=g.useMemo(function(){return{columns:eo,flattenColumns:hn}},[eo,hn]),wo=g.useRef(),Ca=g.useRef(),fr=g.useRef(),Fa=g.useRef();g.useImperativeHandle(H,function(){return{nativeElement:wo.current,scrollTo:function(mn){var Er;if(fr.current instanceof HTMLElement){var mr=mn.index,Gr=mn.top,Ro=mn.key;if(Gr){var Io;(Io=fr.current)===null||Io===void 0||Io.scrollTo({top:Gr})}else{var kr,Go=Ro!=null?Ro:tt(Ot[mr]);(kr=fr.current.querySelector('[data-row-key="'.concat(Go,'"]')))===null||kr===void 0||kr.scrollIntoView()}}else(Er=fr.current)!==null&&Er!==void 0&&Er.scrollTo&&fr.current.scrollTo(mn)}}});var ja=g.useRef(),bl=g.useState(!1),La=(0,K.Z)(bl,2),xl=La[0],Sr=La[1],ra=g.useState(!1),oa=(0,K.Z)(ra,2),aa=oa[0],Uo=oa[1],Sl=Gn(new Map),la=(0,K.Z)(Sl,2),Ba=la[0],ka=la[1],Aa=C(hn),ia=Aa.map(function(Ht){return Ba.get(Ht)}),za=g.useMemo(function(){return ia},[ia.join("_")]),Xo=xo(za,hn,Me),Vr=Be&&Lt(Be.y),no=Be&&Lt(Wr)||!!_t.fixed,Fo=no&&hn.some(function(Ht){var mn=Ht.fixed;return mn}),Fe=g.useRef(),ro=Wo(cn,W),$r=ro.isSticky,ba=ro.offsetHeader,Ha=ro.offsetSummary,_l=ro.offsetScroll,Zl=ro.stickyClassName,ei=ro.container,Ur=g.useMemo(function(){return ft==null?void 0:ft(Ot)},[ft,Ot]),sa=(Vr||$r)&&g.isValidElement(Ur)&&Ur.type===vn&&Ur.props.fixed,xa,jo,Wa;Vr&&(jo={overflowY:"scroll",maxHeight:Be.y}),no&&(xa={overflowX:"auto"},Vr||(jo={overflowY:"hidden"}),Wa={width:Wr===!0?"auto":Wr,minWidth:"100%"});var Va=g.useCallback(function(Ht,mn){(0,An.Z)(wo.current)&&ka(function(Er){if(Er.get(Ht)!==mn){var mr=new Map(Er);return mr.set(Ht,mn),mr}return Er})},[]),ti=gr(null),Ua=(0,K.Z)(ti,2),ni=Ua[0],Xa=Ua[1];function Sa(Ht,mn){mn&&(typeof mn=="function"?mn(Ht):mn.scrollLeft!==Ht&&(mn.scrollLeft=Ht,mn.scrollLeft!==Ht&&setTimeout(function(){mn.scrollLeft=Ht},0)))}var Lo=(0,st.Z)(function(Ht){var mn=Ht.currentTarget,Er=Ht.scrollLeft,mr=Me==="rtl",Gr=typeof Er=="number"?Er:mn.scrollLeft,Ro=mn||Q;if(!Xa()||Xa()===Ro){var Io;ni(Ro),Sa(Gr,Ca.current),Sa(Gr,fr.current),Sa(Gr,ja.current),Sa(Gr,(Io=Fe.current)===null||Io===void 0?void 0:Io.setScrollLeft)}var kr=mn||Ca.current;if(kr){var Go=kr.scrollWidth,Ia=kr.clientWidth;if(Go===Ia){Sr(!1),Uo(!1);return}mr?(Sr(-Gr0)):(Sr(Gr>0),Uo(Gr1?pt-Je:0,Rt=(0,le.Z)((0,le.Z)((0,le.Z)({},ln),$e),{},{flex:"0 0 ".concat(Je,"px"),width:"".concat(Je,"px"),marginRight:Dt,pointerEvents:"auto"}),tt=g.useMemo(function(){return Pe?cn<=1:sn===0||cn===0||cn>1},[cn,sn,Pe]);tt?Rt.visibility="hidden":Pe&&(Rt.height=Me==null?void 0:Me(cn));var vt=tt?function(){return null}:De,Ut={};return(cn===0||sn===0)&&(Ut.rowSpan=1,Ut.colSpan=1),g.createElement(Tt,(0,Ke.Z)({className:Re()(ft,Be),ellipsis:U.ellipsis,align:U.align,scope:U.rowScope,component:Ze,prefixCls:H.prefixCls,key:Kt,record:be,index:ie,renderIndex:ye,dataIndex:Qe,render:vt,shouldCellUpdate:U.shouldCellUpdate},Mt,{appendNode:nn,additionalProps:(0,le.Z)((0,le.Z)({},Jt),{},{style:Rt},Ut)}))}var tr=jn,ur=["data","index","className","rowKey","style","extra","getHeight"],so=g.forwardRef(function(Z,H){var U=Z.data,k=Z.index,W=Z.className,ie=Z.rowKey,Ze=Z.style,ye=Z.extra,be=Z.getHeight,$e=(0,on.Z)(Z,ur),Be=U.record,Pe=U.indent,Me=U.index,De=ne(J,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Qe=De.scrollX,ft=De.flattenColumns,pt=De.prefixCls,wt=De.fixColumn,Nt=De.componentWidth,Pt=ne(er,["getComponent"]),Kt=Pt.getComponent,Mt=cr(Be,ie,k,Pe),nn=Kt(["body","row"],"div"),Jt=Kt(["body","cell"],"div"),ln=Mt.rowSupportExpand,$t=Mt.expanded,sn=Mt.rowProps,Pn=Mt.expandedRowRender,cn=Mt.expandedRowClassName,Ot;if(ln&&$t){var Je=Pn(Be,k,Pe+1,$t),Dt=cn==null?void 0:cn(Be,k,Pe),Rt={};wt&&(Rt={style:(0,ge.Z)({},"--virtual-width","".concat(Nt,"px"))});var tt="".concat(pt,"-expanded-row-cell");Ot=g.createElement(nn,{className:Re()("".concat(pt,"-expanded-row"),"".concat(pt,"-expanded-row-level-").concat(Pe+1),Dt)},g.createElement(Tt,{component:Jt,prefixCls:pt,className:Re()(tt,(0,ge.Z)({},"".concat(tt,"-fixed"),wt)),additionalProps:Rt},Je))}var vt=(0,le.Z)((0,le.Z)({},Ze),{},{width:Qe});ye&&(vt.position="absolute",vt.pointerEvents="none");var Ut=g.createElement(nn,(0,Ke.Z)({},sn,$e,{ref:ln?null:H,className:Re()(W,"".concat(pt,"-row"),sn==null?void 0:sn.className,(0,ge.Z)({},"".concat(pt,"-row-extra"),ye)),style:(0,le.Z)((0,le.Z)({},vt),sn==null?void 0:sn.style)}),ft.map(function(Cn,gn){return g.createElement(tr,{key:gn,component:Jt,rowInfo:Mt,column:Cn,colIndex:gn,indent:Pe,index:k,renderIndex:Me,record:Be,inverse:ye,getHeight:be})}));return ln?g.createElement("div",{ref:H},Ut,Ot):Ut}),qr=lt(so),So=qr,_r=g.forwardRef(function(Z,H){var U=Z.data,k=Z.onScroll,W=ne(J,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),ie=W.flattenColumns,Ze=W.onColumnResize,ye=W.getRowKey,be=W.expandedKeys,$e=W.prefixCls,Be=W.childrenColumnName,Pe=W.emptyNode,Me=W.scrollX,De=ne(er),Qe=De.sticky,ft=De.scrollY,pt=De.listItemHeight,wt=De.getComponent,Nt=g.useRef(),Pt=Or(U,Be,be,ye),Kt=g.useMemo(function(){var Dt=0;return ie.map(function(Rt){var tt=Rt.width,vt=Rt.key;return Dt+=tt,[vt,tt,Dt]})},[ie]),Mt=g.useMemo(function(){return Kt.map(function(Dt){return Dt[2]})},[Kt]);g.useEffect(function(){Kt.forEach(function(Dt){var Rt=(0,K.Z)(Dt,2),tt=Rt[0],vt=Rt[1];Ze(tt,vt)})},[Kt]),g.useImperativeHandle(H,function(){var Dt={scrollTo:function(tt){var vt;(vt=Nt.current)===null||vt===void 0||vt.scrollTo(tt)}};return Object.defineProperty(Dt,"scrollLeft",{get:function(){var tt;return((tt=Nt.current)===null||tt===void 0?void 0:tt.getScrollInfo().x)||0},set:function(tt){var vt;(vt=Nt.current)===null||vt===void 0||vt.scrollTo({left:tt})}}),Dt});var nn=function(Rt,tt){var vt,Ut=(vt=Pt[tt])===null||vt===void 0?void 0:vt.record,Cn=Rt.onCell;if(Cn){var gn,nr=Cn(Ut,tt);return(gn=nr==null?void 0:nr.rowSpan)!==null&&gn!==void 0?gn:1}return 1},Jt=function(Rt){var tt=Rt.start,vt=Rt.end,Ut=Rt.getSize,Cn=Rt.offsetY;if(vt<0)return null;for(var gn=ie.filter(function(Kn){return nn(Kn,tt)===0}),nr=tt,Dr=function(xn){if(gn=gn.filter(function(Sn){return nn(Sn,xn)===0}),!gn.length)return nr=xn,1},zr=tt;zr>=0&&!Dr(zr);zr-=1);for(var br=ie.filter(function(Kn){return nn(Kn,vt)!==1}),_t=vt,Lr=function(xn){if(br=br.filter(function(Sn){return nn(Sn,xn)!==1}),!br.length)return _t=Math.max(xn-1,vt),1},lr=vt;lr1})&&xr.push(xn)},en=nr;en<=_t;en+=1)On(en);var bn=xr.map(function(Kn){var xn=Pt[Kn],Sn=ye(xn.record,Kn),Pr=function(eo){var hn=Kn+eo-1,Eo=ye(Pt[hn].record,hn),Nr=Ut(Sn,Eo);return Nr.bottom-Nr.top},Br=Ut(Sn);return g.createElement(So,{key:Kn,data:xn,rowKey:Sn,index:Kn,style:{top:-Cn+Br.top},extra:!0,getHeight:Pr})});return bn},ln=g.useMemo(function(){return{columnsOffset:Mt}},[Mt]),$t="".concat($e,"-tbody"),sn=wt(["body","wrapper"]),Pn=wt(["body","row"],"div"),cn=wt(["body","cell"],"div"),Ot;if(Pt.length){var Je={};Qe&&(Je.position="sticky",Je.bottom=0,(0,Le.Z)(Qe)==="object"&&Qe.offsetScroll&&(Je.bottom=Qe.offsetScroll)),Ot=g.createElement($n.Z,{fullHeight:!1,ref:Nt,prefixCls:"".concat($t,"-virtual"),styles:{horizontalScrollBar:Je},className:$t,height:ft,itemHeight:pt||24,data:Pt,itemKey:function(Rt){return ye(Rt.record)},component:sn,scrollWidth:Me,onVirtualScroll:function(Rt){var tt=Rt.x;k({scrollLeft:tt})},extraRender:Jt},function(Dt,Rt,tt){var vt=ye(Dt.record,Rt);return g.createElement(So,(0,Ke.Z)({data:Dt,rowKey:vt,index:Rt},tt))})}else Ot=g.createElement(Pn,{className:Re()("".concat($e,"-placeholder"))},g.createElement(Tt,{component:cn,prefixCls:$e},Pe));return g.createElement(ar.Provider,{value:ln},Ot)}),Zo=lt(_r),Ko=Zo,Mo=function(H,U){var k=U.ref,W=U.onScroll;return g.createElement(Ko,{ref:k,data:H,onScroll:W})};function pn(Z,H){var U=Z.columns,k=Z.scroll,W=Z.sticky,ie=Z.prefixCls,Ze=ie===void 0?po:ie,ye=Z.className,be=Z.listItemHeight,$e=Z.components,Be=k||{},Pe=Be.x,Me=Be.y;typeof Pe!="number"&&(Pe=1),typeof Me!="number"&&(Me=500);var De=(0,Vt.zX)(function(ft,pt){return(0,Se.Z)($e,ft)||pt}),Qe=g.useMemo(function(){return{sticky:W,scrollY:Me,listItemHeight:be,getComponent:De}},[W,Me,be,De]);return g.createElement(er.Provider,{value:Qe},g.createElement(_n,(0,Ke.Z)({},Z,{className:Re()(ye,"".concat(Ze,"-virtual")),scroll:(0,le.Z)((0,le.Z)({},k),{},{x:Pe}),components:(0,le.Z)((0,le.Z)({},$e),{},{body:Mo}),columns:U,internalHooks:L.R,tailor:!0,ref:H})))}var Do=g.forwardRef(pn);function go(Z){return a(Do,Z)}var na=go(),Vo=null},62978:function(Bn,xt,f){"use strict";f.d(xt,{g:function(){return g},v:function(){return P}});var L=f(1413),K=f(91),st=f(80334),Ne=["expandable"],P="RC_TABLE_INTERNAL_COL_DEFINE";function g(u){var je=u.expandable,ne=(0,K.Z)(u,Ne),Ke;return"expandable"in u?Ke=(0,L.Z)((0,L.Z)({},ne),je):Ke=ne,Ke.showExpandColumn===!1&&(Ke.expandIconColumnIndex=-1),Ke}},79370:function(Bn,xt,f){"use strict";f.d(xt,{G:function(){return Ne}});var L=f(98924),K=function(g){if((0,L.Z)()&&window.document.documentElement){var u=Array.isArray(g)?g:[g],je=window.document.documentElement;return u.some(function(ne){return ne in je.style})}return!1},st=function(g,u){if(!K(g))return!1;var je=document.createElement("div"),ne=je.style[g];return je.style[g]=u,je.style[g]!==ne};function Ne(P,g){return!Array.isArray(P)&&g!==void 0?st(P,g):K(P)}},11742:function(Bn){Bn.exports=function(){var xt=document.getSelection();if(!xt.rangeCount)return function(){};for(var f=document.activeElement,L=[],K=0;K>>r|e<<32-r}function j(r,e,n){return r&e^~r&n}function W(r,e,n){return r&e^r&n^e&n}function Q(r){return O(2,r)^O(13,r)^O(22,r)}function J(r){return O(6,r)^O(11,r)^O(25,r)}function F(r){return O(7,r)^O(18,r)^r>>>3}function U(r){return O(17,r)^O(19,r)^r>>>10}function de(r,e){return r[e&15]+=U(r[e+14&15])+r[e+9&15]+F(r[e+1&15])}var ae=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],$,ne,H,ye="0123456789abcdef";function je(r,e){var n=(r&65535)+(e&65535),t=(r>>16)+(e>>16)+(n>>16);return t<<16|n&65535}function Oe(){$=new Array(8),ne=new Array(2),H=new Array(64),ne[0]=ne[1]=0,$[0]=1779033703,$[1]=3144134277,$[2]=1013904242,$[3]=2773480762,$[4]=1359893119,$[5]=2600822924,$[6]=528734635,$[7]=1541459225}function Me(){var r,e,n,t,a,i,o,c,d,v,f=new Array(16);r=$[0],e=$[1],n=$[2],t=$[3],a=$[4],i=$[5],o=$[6],c=$[7];for(var x=0;x<16;x++)f[x]=H[(x<<2)+3]|H[(x<<2)+2]<<8|H[(x<<2)+1]<<16|H[x<<2]<<24;for(var y=0;y<64;y++)d=c+J(a)+j(a,i,o)+ae[y],y<16?d+=f[y]:d+=de(f,y),v=Q(r)+W(r,e,n),c=o,o=i,i=a,a=je(t,d),t=n,n=e,e=r,r=je(d,v);$[0]+=r,$[1]+=e,$[2]+=n,$[3]+=t,$[4]+=a,$[5]+=i,$[6]+=o,$[7]+=c}function $e(r,e){var n,t,a=0;t=ne[0]>>3&63;var i=e&63;for((ne[0]+=e<<3)>29,n=0;n+63>3&63;if(H[r++]=128,r<=56)for(var e=r;e<56;e++)H[e]=0;else{for(var n=r;n<64;n++)H[n]=0;Me();for(var t=0;t<56;t++)H[t]=0}H[56]=ne[1]>>>24&255,H[57]=ne[1]>>>16&255,H[58]=ne[1]>>>8&255,H[59]=ne[1]&255,H[60]=ne[0]>>>24&255,H[61]=ne[0]>>>16&255,H[62]=ne[0]>>>8&255,H[63]=ne[0]&255,Me()}function ze(){for(var r=0,e=new Array(32),n=0;n<8;n++)e[r++]=$[n]>>>24&255,e[r++]=$[n]>>>16&255,e[r++]=$[n]>>>8&255,e[r++]=$[n]&255;return e}function Ge(){for(var r=new String,e=0;e<8;e++)for(var n=28;n>=0;n-=4)r+=ye.charAt($[e]>>>n&15);return r}function hn(r){return Oe(),$e(r,r.length),De(),Ge()}var Tn=hn;function nn(r){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nn(r)}var Ht=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function At(r,e){return Ot(r)||Dt(r,e)||wn(r,e)||_t()}function _t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dt(r,e){var n=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var t=[],a=!0,i=!1,o,c;try{for(n=n.call(r);!(a=(o=n.next()).done)&&(t.push(o.value),!(e&&t.length===e));a=!0);}catch(d){i=!0,c=d}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw c}}return t}}function Ot(r){if(Array.isArray(r))return r}function $t(r,e){var n=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=wn(r))||e&&r&&typeof r.length=="number"){n&&(r=n);var t=0,a=function(){};return{s:a,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(v){throw v},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,c;return{s:function(){n=n.call(r)},n:function(){var v=n.next();return i=v.done,v},e:function(v){o=!0,c=v},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw c}}}}function zt(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Un(r,e){for(var n=0;nr.length)&&(e=r.length);for(var n=0,t=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(n[t]=r[t])}return n}function kt(r,e){if(r==null)return{};var n={},t=Object.keys(r),a,i;for(i=0;i=0)&&(n[a]=r[a]);return n}function Vn(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function ve(r){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return e.endsWith("/*")?e.replace("/*","/"):(e||n).startsWith("/")||Pn(e)?e:"/".concat(n,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},tr=function(e,n){var t=e.menu,a=t===void 0?{}:t,i=e.indexRoute,o=e.path,c=o===void 0?"":o,d=e.children||[],v=a.name,f=v===void 0?e.name:v,x=a.icon,y=x===void 0?e.icon:x,Z=a.hideChildren,P=Z===void 0?e.hideChildren:Z,B=a.flatMenu,I=B===void 0?e.flatMenu:B,z=i&&Object.keys(i).join(",")!=="redirect"?[ve({path:c,menu:a},i)].concat(d||[]):d,L=ve({},e);if(f&&(L.name=f),y&&(L.icon=y),z&&z.length){if(P)return delete L.children,L;var A=Ln(ve(ve({},n),{},{data:z}),e);if(I)return A;delete L[Be]}return L},Xe=function(e){return Array.isArray(e)&&e.length>0};function Ln(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=r.data,t=r.formatMessage,a=r.parentName,i=r.locale;return!n||!Array.isArray(n)?[]:n.filter(function(o){return o?Xe(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var c,d;return!(o==null||(c=o.menu)===null||c===void 0)&&c.name||o!=null&&o.flatMenu||!(o==null||(d=o.menu)===null||d===void 0)&&d.flatMenu?!0:o.menu!==!1}).map(function(o){var c=ve(ve({},o),{},{path:o.path||o.originPath});return!c.children&&c[Be]&&(c.children=c[Be],delete c[Be]),c.unaccessible&&delete c.name,c.path==="*"&&(c.path="."),c.path==="/*"&&(c.path="."),!c.path&&c.originPath&&(c.path=c.originPath),c}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},c=o.children||o[Be]||[],d=Qn(o.path,e?e.path:"/"),v=o.name,f=nr(o,a||"menu"),x=f!==!1&&i!==!1&&t&&f?t({id:f,defaultMessage:v}):v,y=e.pro_layout_parentKeys,Z=y===void 0?[]:y,P=e.children,B=e.icon,I=e.flatMenu,z=e.indexRoute,L=e.routes,A=Jt(e,Ht),T=new Set([].concat(Xn(Z),Xn(o.parentKeys||[])));e.key&&T.add(e.key);var E=ve(ve(ve({},A),{},{menu:void 0},o),{},{path:d,locale:f,key:o.key||er(ve(ve({},o),{},{path:d})),pro_layout_parentKeys:Array.from(T).filter(function(R){return R&&R!=="/"})});if(x?E.name=x:delete E.name,E.menu===void 0&&delete E.menu,Xe(c)){var g=Ln(ve(ve({},r),{},{data:c,parentName:f||""}),E);Xe(g)&&(E.children=g)}return tr(E,r)}).flat(1)}var rr=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(n){return n&&(n.name||Xe(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var t=ve({},n),a=t.children||n[Be]||[];if(delete t[Be],Xe(a)&&!t.hideChildrenInMenu&&a.some(function(o){return o&&!!o.name})){var i=r(a);if(i.length)return ve(ve({},t),{},{children:i})}return ve({},n)}).filter(function(n){return n})},ar=function(r){Ft(n,r);var e=Kt(n);function n(){return zt(this,n),e.apply(this,arguments)}return Wt(n,[{key:"get",value:function(a){var i;try{var o=$t(this.entries()),c;try{for(o.s();!(c=o.n()).done;){var d=At(c.value,2),v=d[0],f=d[1],x=an(v);if(!Pn(v)&&(0,ee.Bo)(x,[]).test(a)){i=f;break}}}catch(y){o.e(y)}finally{o.f()}}catch(y){i=void 0}return i}}]),n}(Bn(Map)),or=function(e){var n=new ar,t=function a(i,o){i.forEach(function(c){var d=c.children||c[Be]||[];Xe(d)&&a(d,c);var v=Qn(c.path,o?o.path:"/");n.set(an(v),c)})};return t(e),n},ir=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(n){var t=n.children||n[Be];if(Xe(t)){var a=r(t);if(a.length)return ve({},n)}var i=ve({},n);return delete i[Be],delete i.children,i}).filter(function(n){return n})},lr=function(e,n,t,a){var i=Ln({data:e,formatMessage:t,locale:n}),o=a?ir(i):rr(i),c=or(i);return{breadcrumb:c,menuData:o}},ur=lr;function Yn(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function on(r){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],n={};return e.forEach(function(t){var a=on({},t);if(!(!a||!a.key)){!a.children&&a[Be]&&(a.children=a[Be],delete a[Be]);var i=a.children||[];n[an(a.path||a.key||"/")]=on({},a),n[a.key||a.path||"/"]=on({},a),i&&(n=on(on({},n),r(i)))}}),n},sr=dr,vr=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;return e.filter(function(a){if(a==="/"&&n==="/")return!0;if(a!=="/"&&a!=="/*"&&a&&!Pn(a)){var i=an(a);try{if(t&&(0,ee.Bo)("".concat(i)).test(n)||(0,ee.Bo)("".concat(i),[]).test(n)||(0,ee.Bo)("".concat(i,"/(.*)")).test(n))return!0}catch(o){}}return!1}).sort(function(a,i){return a===n?10:i===n?-10:a.substr(1).split("/").length-i.substr(1).split("/").length})},fr=function(e,n,t,a){var i=sr(n),o=Object.keys(i),c=vr(o,e||"/",a);return!c||c.length<1?[]:(t||(c=[c[c.length-1]]),c.map(function(d){var v=i[d]||{pro_layout_parentKeys:"",key:""},f=new Map,x=(v.pro_layout_parentKeys||[]).map(function(y){return f.has(y)?null:(f.set(y,!0),i[y])}).filter(function(y){return y});return v.key&&x.push(v),x}).flat(1))},mr=fr,He=C(28459),Ve=C(21612),hr=C(93967),k=C.n(hr),Jn=C(97435),gr=C(80334),kn=C(81758),pr=C(78164),u=C(85893),yr=function(e){var n=(0,p.useContext)(ie.L_),t=n.hashId,a=e.style,i=e.prefixCls,o=e.children,c=e.hasPageContainer,d=c===void 0?0:c,v=k()("".concat(i,"-content"),t,(0,l.Z)((0,l.Z)({},"".concat(i,"-has-header"),e.hasHeader),"".concat(i,"-content-has-page-container"),d>0)),f=e.ErrorBoundary||pr.S;return e.ErrorBoundary===!1?(0,u.jsx)(Ve.Z.Content,{className:v,style:a,children:o}):(0,u.jsx)(f,{children:(0,u.jsx)(Ve.Z.Content,{className:v,style:a,children:o})})},xr=function(){return(0,u.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[(0,u.jsxs)("defs",{children:[(0,u.jsxs)("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[(0,u.jsx)("stop",{stopColor:"#4285EB",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),(0,u.jsxs)("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[(0,u.jsx)("stop",{stopColor:"#29CDFF",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),(0,u.jsx)("stop",{stopColor:"#0A60FF",offset:"100%"})]}),(0,u.jsxs)("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[(0,u.jsx)("stop",{stopColor:"#FA816E",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),(0,u.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]}),(0,u.jsxs)("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[(0,u.jsx)("stop",{stopColor:"#FA8E7D",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),(0,u.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),(0,u.jsx)("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:(0,u.jsx)("g",{transform:"translate(-20.000000, -20.000000)",children:(0,u.jsx)("g",{transform:"translate(20.000000, 20.000000)",children:(0,u.jsxs)("g",{children:[(0,u.jsxs)("g",{fillRule:"nonzero",children:[(0,u.jsxs)("g",{children:[(0,u.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),(0,u.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),(0,u.jsx)("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),(0,u.jsx)("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},Cr=C(87909),ln=C(62812),pn=C(87462),br={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},Sr=br,Zr=C(65555),Mr=function(e,n){return p.createElement(Zr.Z,(0,pn.Z)({},e,{ref:n,icon:Sr}))},Ir=p.forwardRef(Mr),Rr=Ir,Tr=C(55241),Br=function(){return(0,u.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},wr=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,u.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,u.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(o,c){var d;return o!=null&&(d=o.children)!==null&&d!==void 0&&d.length?(0,u.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,u.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:o.title}),(0,u.jsx)(r,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:t})]},c):(0,u.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(f){f.stopPropagation(),i==null||i(o)},children:(0,u.jsxs)("a",{href:i?void 0:o.url,target:o.target,rel:"noreferrer",children:[Nn(o.icon),(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{children:o.title}),o.desc?(0,u.jsx)("span",{children:o.desc}):null]})]})},c)})})})},En=function(e){if(!e||!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch(t){return!1}},jr=function(e,n){if(e&&typeof e=="string"&&En(e))return(0,u.jsx)("img",{src:e,alt:"logo"});if(typeof e=="function")return e();if(e&&typeof e=="string")return(0,u.jsx)("div",{id:"avatarLogo",children:e});if(!e&&n&&typeof n=="string"){var t=n.substring(0,1);return(0,u.jsx)("div",{id:"avatarLogo",children:t})}return e},Pr=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,u.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,u.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(o,c){var d;return o!=null&&(d=o.children)!==null&&d!==void 0&&d.length?(0,u.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,u.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:o.title}),(0,u.jsx)(r,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:t})]},c):(0,u.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(f){f.stopPropagation(),i==null||i(o)},children:(0,u.jsxs)("a",{href:i?"javascript:;":o.url,target:o.target,rel:"noreferrer",children:[jr(o.icon,o.title),(0,u.jsx)("div",{children:(0,u.jsx)("div",{children:o.title})})]})},c)})})})},Ie=C(98082),Lr=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},"* div":Ie.Wf===null||Ie.Wf===void 0?void 0:(0,Ie.Wf)(e),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},Er=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:e.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:e.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},Nr=function(e){var n,t,a,i,o;return(0,l.Z)({},e.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=e.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:e.borderRadius,"&:hover":{color:(t=e.layout)===null||t===void 0?void 0:t.colorTextAppListIconHover,backgroundColor:(a=e.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover},"&-active":{color:(i=e.layout)===null||i===void 0?void 0:i.colorTextAppListIconHover,backgroundColor:(o=e.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":(0,l.Z)({},"".concat(e.antCls,"-popover-arrow"),{display:"none"}),"&-simple":Er(e),"&-default":Lr(e)})};function Hr(r){return(0,Ie.Xj)("AppsLogoComponents",function(e){var n=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(r)});return[Nr(n)]})}var Nn=function(e){return typeof e=="string"?(0,u.jsx)("img",{width:"auto",height:22,src:e,alt:"logo"}):typeof e=="function"?e():e},Hn=function(e){var n,t=e.appList,a=e.appListRender,i=e.prefixCls,o=i===void 0?"ant-pro":i,c=e.onItemClick,d=p.useRef(null),v=p.useRef(null),f="".concat(o,"-layout-apps"),x=Hr(f),y=x.wrapSSR,Z=x.hashId,P=(0,p.useState)(!1),B=(0,K.Z)(P,2),I=B[0],z=B[1],L=function(R){c==null||c(R,v)},A=(0,p.useMemo)(function(){var g=t==null?void 0:t.some(function(R){return!(R!=null&&R.desc)});return g?(0,u.jsx)(Pr,{hashId:Z,appList:t,itemClick:c?L:void 0,baseClassName:"".concat(f,"-simple")}):(0,u.jsx)(wr,{hashId:Z,appList:t,itemClick:c?L:void 0,baseClassName:"".concat(f,"-default")})},[t,f,Z]);if(!(e!=null&&(n=e.appList)!==null&&n!==void 0&&n.length))return null;var T=a?a(e==null?void 0:e.appList,A):A,E=(0,b.X)(void 0,function(g){return z(g)});return y((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{ref:d,onClick:function(R){R.stopPropagation(),R.preventDefault()}}),(0,u.jsx)(Tr.Z,(0,s.Z)((0,s.Z)({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},E),{},{overlayClassName:"".concat(f,"-popover ").concat(Z).trim(),content:T,getPopupContainer:function(){return d.current||document.body},children:(0,u.jsx)("span",{ref:v,onClick:function(R){R.stopPropagation()},className:k()("".concat(f,"-icon"),Z,(0,l.Z)({},"".concat(f,"-icon-active"),I)),children:(0,u.jsx)(Br,{})})}))]}))},qn=C(7134),Ar=C(42075),et=C(68508);function _r(){return(0,u.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var Dr=function(e){var n,t,a;return(0,l.Z)({},e.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function Or(r){return(0,Ie.Xj)("SiderMenuCollapsedIcon",function(e){var n=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(r)});return[Dr(n)]})}var $r=["isMobile","collapsed"],zr=function(e){var n=e.isMobile,t=e.collapsed,a=(0,me.Z)(e,$r),i=Or(e.className),o=i.wrapSSR,c=i.hashId;return n&&t?null:o((0,u.jsx)("div",(0,s.Z)((0,s.Z)({},a),{},{className:k()(e.className,c,(0,l.Z)((0,l.Z)({},"".concat(e.className,"-collapsed"),t),"".concat(e.className,"-is-mobile"),n)),children:(0,u.jsx)(_r,{})})))},yn=C(74902),Wr=C(43144),Fr=C(15671),Kr=C(42550),Ur=C(2446),xn=C(14004),Gr=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],nt=p.forwardRef(function(r,e){var n=r.className,t=r.component,a=r.viewBox,i=r.spin,o=r.rotate,c=r.tabIndex,d=r.onClick,v=r.children,f=(0,me.Z)(r,Gr),x=p.useRef(),y=(0,Kr.x1)(x,e);(0,xn.Kp)(!!(t||v),"Should have `component` prop or `children`."),(0,xn.C3)(x);var Z=p.useContext(Ur.Z),P=Z.prefixCls,B=P===void 0?"anticon":P,I=Z.rootClassName,z=k()(I,B,n),L=k()((0,l.Z)({},"".concat(B,"-spin"),!!i)),A=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,T=(0,s.Z)((0,s.Z)({},xn.vD),{},{className:L,style:A,viewBox:a});a||delete T.viewBox;var E=function(){return t?p.createElement(t,T,v):v?((0,xn.Kp)(!!a||p.Children.count(v)===1&&p.isValidElement(v)&&p.Children.only(v).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),p.createElement("svg",(0,pn.Z)({},T,{viewBox:a}),v)):null},g=c;return g===void 0&&d&&(g=-1),p.createElement("span",(0,pn.Z)({role:"img"},f,{ref:y,tabIndex:g,onClick:d,className:z}),E())});nt.displayName="AntdIcon";var Xr=nt,Vr=["type","children"],tt=new Set;function Qr(r){return!!(typeof r=="string"&&r.length&&!tt.has(r))}function Cn(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=r[e];if(Qr(n)){var t=document.createElement("script");t.setAttribute("src",n),t.setAttribute("data-namespace",n),r.length>e+1&&(t.onload=function(){Cn(r,e+1)},t.onerror=function(){Cn(r,e+1)}),tt.add(n),document.body.appendChild(t)}}function rt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.scriptUrl,n=r.extraCommonProps,t=n===void 0?{}:n;e&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(e)?Cn(e.reverse()):Cn([e]));var a=p.forwardRef(function(i,o){var c=i.type,d=i.children,v=(0,me.Z)(i,Vr),f=null;return i.type&&(f=p.createElement("use",{xlinkHref:"#".concat(c)})),d&&(f=d),p.createElement(Xr,(0,pn.Z)({},t,v,{ref:o}),f)});return a.displayName="Iconfont",a}function Yr(r){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(r)}var Jr=C(83062),kr=C(99559),at=C(14192),qr=function(e,n){var t,a,i=n.includes("horizontal")?(t=e.layout)===null||t===void 0?void 0:t.header:(a=e.layout)===null||a===void 0?void 0:a.sider;return(0,s.Z)((0,s.Z)((0,l.Z)({},"".concat(e.componentCls),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({background:"transparent",color:i==null?void 0:i.colorTextMenu,border:"none"},"".concat(e.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(e.componentCls,"-submenu-has-icon"),(0,l.Z)({},"> ".concat(e.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(e.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(e.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(e.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(e.antCls,`-menu-item, - `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,`-menu-item, - `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu > ").concat(e.antCls,`-menu-submenu-title, - `).concat(e.antCls,"-menu-submenu > ").concat(e.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,`-menu-submenu-title, - `).concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,"-menu-submenu-title"),{backgroundColor:i==null?void 0:i.colorBgMenuItemSelected,borderRadius:e.borderRadiusLG}),"".concat(e.componentCls,"-group"),(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({display:"flex",flexDirection:"row",alignItems:"center",gap:e.marginXS},"".concat(e.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",(0,l.Z)((0,l.Z)({minWidth:40,height:40},"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(e.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(e.componentCls,"-group-item-title"),{gap:e.marginXS,height:18,overflow:"hidden"}),"&".concat(e.componentCls,"-item-collapsed-show-title"),(0,l.Z)({lineHeight:"16px",gap:0},"&".concat(e.componentCls,"-item-title-collapsed"),(0,l.Z)((0,l.Z)({display:"flex"},"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(e.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{fontSize:12,color:e.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:e.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:(0,l.Z)({},"".concat(e.antCls,"-menu-submenu").concat(e.antCls,"-menu-submenu-popup"),(0,l.Z)({},"".concat(e.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function ea(r,e){return(0,Ie.Xj)("ProLayoutBaseMenu"+e,function(n){var t=(0,s.Z)((0,s.Z)({},n),{},{componentCls:".".concat(r)});return[qr(t,e||"inline")]})}var ot=function(e){var n=(0,p.useState)(e.collapsed),t=(0,K.Z)(n,2),a=t[0],i=t[1],o=(0,p.useState)(!1),c=(0,K.Z)(o,2),d=c[0],v=c[1];return(0,p.useEffect)(function(){v(!1),setTimeout(function(){i(e.collapsed)},400)},[e.collapsed]),e.disable?e.children:(0,u.jsx)(Jr.Z,{title:e.title,open:a&&e.collapsed?d:!1,placement:"right",onOpenChange:v,children:e.children})},it=rt({scriptUrl:at.h.iconfontUrl}),lt=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",t=arguments.length>2?arguments[2]:void 0;if(typeof e=="string"&&e!==""){if(En(e)||Yr(e))return(0,u.jsx)("img",{width:16,src:e,alt:"icon",className:t},e);if(e.startsWith(n))return(0,u.jsx)(it,{type:e})}return e},ut=function(e){if(e&&typeof e=="string"){var n=e.substring(0,1).toUpperCase();return n}return null},na=(0,Wr.Z)(function r(e){var n=this;(0,Fr.Z)(this,r),(0,l.Z)(this,"props",void 0),(0,l.Z)(this,"getNavMenuItems",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return t.map(function(o){return n.getSubMenuOrItem(o,a,i)}).filter(function(o){return o}).flat(1)}),(0,l.Z)(this,"getSubMenuOrItem",function(t,a,i){var o=n.props,c=o.subMenuItemRender,d=o.baseClassName,v=o.prefixCls,f=o.collapsed,x=o.menu,y=o.iconPrefixes,Z=o.layout,P=(x==null?void 0:x.type)==="group"&&Z!=="top",B=n.props.token,I=n.getIntlName(t),z=(t==null?void 0:t.children)||(t==null?void 0:t.routes),L=P&&a===0?"group":void 0;if(Array.isArray(z)&&z.length>0){var A,T,E,g,R,V=a===0||P&&a===1,N=lt(t.icon,y,"".concat(d,"-icon ").concat((A=n.props)===null||A===void 0?void 0:A.hashId)),w=f&&V?ut(I):null,q=(0,u.jsxs)("div",{className:k()("".concat(d,"-item-title"),(T=n.props)===null||T===void 0?void 0:T.hashId,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(d,"-item-title-collapsed"),f),"".concat(d,"-item-title-collapsed-level-").concat(i),f),"".concat(d,"-group-item-title"),L==="group"),"".concat(d,"-item-collapsed-show-title"),(x==null?void 0:x.collapsedShowTitle)&&f)),children:[L==="group"&&f?null:V&&N?(0,u.jsx)("span",{className:"".concat(d,"-item-icon ").concat((E=n.props)===null||E===void 0?void 0:E.hashId).trim(),children:N}):w,(0,u.jsx)("span",{className:k()("".concat(d,"-item-text"),(g=n.props)===null||g===void 0?void 0:g.hashId,(0,l.Z)({},"".concat(d,"-item-text-has-icon"),L!=="group"&&V&&(N||w))),children:I})]}),oe=c?c((0,s.Z)((0,s.Z)({},t),{},{isUrl:!1}),q,n.props):q;if(P&&a===0&&n.props.collapsed&&!x.collapsedShowGroupTitle)return n.getNavMenuItems(z,a+1,a);var h=n.getNavMenuItems(z,a+1,P&&a===0&&n.props.collapsed?a:a+1);return[{type:L,key:t.key||t.path,label:oe,onClick:P?void 0:t.onTitleClick,children:h,className:k()((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(d,"-group"),L==="group"),"".concat(d,"-submenu"),L!=="group"),"".concat(d,"-submenu-has-icon"),L!=="group"&&V&&N))},P&&a===0?{type:"divider",prefixCls:v,className:"".concat(d,"-divider"),key:(t.key||t.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:B==null||(R=B.layout)===null||R===void 0||(R=R.sider)===null||R===void 0?void 0:R.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(d,"-menu-item"),disabled:t.disabled,key:t.key||t.path,onClick:t.onTitleClick,label:n.getMenuItemPath(t,a,i)}}),(0,l.Z)(this,"getIntlName",function(t){var a=t.name,i=t.locale,o=n.props,c=o.menu,d=o.formatMessage;return i&&(c==null?void 0:c.locale)!==!1?d==null?void 0:d({id:i,defaultMessage:a}):a}),(0,l.Z)(this,"getMenuItemPath",function(t,a,i){var o,c,d,v,f=n.conversionPath(t.path||"/"),x=n.props,y=x.location,Z=y===void 0?{pathname:"/"}:y,P=x.isMobile,B=x.onCollapse,I=x.menuItemRender,z=x.iconPrefixes,L=n.getIntlName(t),A=n.props,T=A.baseClassName,E=A.menu,g=A.collapsed,R=(E==null?void 0:E.type)==="group",V=a===0||R&&a===1,N=V?lt(t.icon,z,"".concat(T,"-icon ").concat((o=n.props)===null||o===void 0?void 0:o.hashId)):null,w=g&&V?ut(L):null,q=(0,u.jsxs)("div",{className:k()("".concat(T,"-item-title"),(c=n.props)===null||c===void 0?void 0:c.hashId,(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(T,"-item-title-collapsed"),g),"".concat(T,"-item-title-collapsed-level-").concat(i),g),"".concat(T,"-item-collapsed-show-title"),(E==null?void 0:E.collapsedShowTitle)&&g)),children:[(0,u.jsx)("span",{className:"".concat(T,"-item-icon ").concat((d=n.props)===null||d===void 0?void 0:d.hashId).trim(),style:{display:w===null&&!N?"none":""},children:N||(0,u.jsx)("span",{className:"anticon",children:w})}),(0,u.jsx)("span",{className:k()("".concat(T,"-item-text"),(v=n.props)===null||v===void 0?void 0:v.hashId,(0,l.Z)({},"".concat(T,"-item-text-has-icon"),V&&(N||w))),children:L})]},f),oe=En(f);if(oe){var h,le,M;q=(0,u.jsxs)("span",{onClick:function(){var fe,re;(fe=window)===null||fe===void 0||(re=fe.open)===null||re===void 0||re.call(fe,f,"_blank")},className:k()("".concat(T,"-item-title"),(h=n.props)===null||h===void 0?void 0:h.hashId,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(T,"-item-title-collapsed"),g),"".concat(T,"-item-title-collapsed-level-").concat(i),g),"".concat(T,"-item-link"),!0),"".concat(T,"-item-collapsed-show-title"),(E==null?void 0:E.collapsedShowTitle)&&g)),children:[(0,u.jsx)("span",{className:"".concat(T,"-item-icon ").concat((le=n.props)===null||le===void 0?void 0:le.hashId).trim(),style:{display:w===null&&!N?"none":""},children:N||(0,u.jsx)("span",{className:"anticon",children:w})}),(0,u.jsx)("span",{className:k()("".concat(T,"-item-text"),(M=n.props)===null||M===void 0?void 0:M.hashId,(0,l.Z)({},"".concat(T,"-item-text-has-icon"),V&&(N||w))),children:L})]},f)}if(I){var Y=(0,s.Z)((0,s.Z)({},t),{},{isUrl:oe,itemPath:f,isMobile:P,replace:f===Z.pathname,onClick:function(){return B&&B(!0)},children:void 0});return a===0?(0,u.jsx)(ot,{collapsed:g,title:L,disable:t.disabledTooltip,children:I(Y,q,n.props)}):I(Y,q,n.props)}return a===0?(0,u.jsx)(ot,{collapsed:g,title:L,disable:t.disabledTooltip,children:q}):q}),(0,l.Z)(this,"conversionPath",function(t){return t&&t.indexOf("http")===0?t:"/".concat(t||"").replace(/\/+/g,"/")}),this.props=e}),ta=function(e,n){var t=n.layout,a=n.collapsed,i={};return e&&!a&&["side","mix"].includes(t||"mix")&&(i={openKeys:e}),i},ct=function(e){var n=e.mode,t=e.className,a=e.handleOpenChange,i=e.style,o=e.menuData,c=e.prefixCls,d=e.menu,v=e.matchMenuKeys,f=e.iconfontUrl,x=e.selectedKeys,y=e.onSelect,Z=e.menuRenderType,P=e.openKeys,B=(0,p.useContext)(ie.L_),I=B.dark,z=B.token,L="".concat(c,"-base-menu-").concat(n),A=(0,p.useRef)([]),T=(0,se.Z)(d==null?void 0:d.defaultOpenAll),E=(0,K.Z)(T,2),g=E[0],R=E[1],V=(0,se.Z)(function(){return d!=null&&d.defaultOpenAll?(0,ln.O7)(o)||[]:P===!1?!1:[]},{value:P===!1?void 0:P,onChange:a}),N=(0,K.Z)(V,2),w=N[0],q=N[1],oe=(0,se.Z)([],{value:x,onChange:y?function(ge){y&&ge&&y(ge)}:void 0}),h=(0,K.Z)(oe,2),le=h[0],M=h[1];(0,p.useEffect)(function(){d!=null&&d.defaultOpenAll||P===!1||v&&(q(v),M(v))},[v.join("-")]),(0,p.useEffect)(function(){f&&(it=rt({scriptUrl:f}))},[f]),(0,p.useEffect)(function(){if(v.join("-")!==(le||[]).join("-")&&M(v),!g&&P!==!1&&v.join("-")!==(w||[]).join("-")){var ge=v;(d==null?void 0:d.autoClose)===!1&&(ge=Array.from(new Set([].concat((0,yn.Z)(v),(0,yn.Z)(w||[]))))),q(ge)}else d!=null&&d.ignoreFlatMenu&&g?q((0,ln.O7)(o)):R(!1)},[v.join("-")]);var Y=(0,p.useMemo)(function(){return ta(w,e)},[w&&w.join(","),e.layout,e.collapsed]),te=ea(L,n),fe=te.wrapSSR,re=te.hashId,xe=(0,p.useMemo)(function(){return new na((0,s.Z)((0,s.Z)({},e),{},{token:z,menuRenderType:Z,baseClassName:L,hashId:re}))},[e,z,Z,L,re]);if(d!=null&&d.loading)return(0,u.jsx)("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:(0,u.jsx)(kr.Z,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});e.openKeys===!1&&!e.handleOpenChange&&(A.current=v);var he=e.postMenuData?e.postMenuData(o):o;return he&&(he==null?void 0:he.length)<1?null:fe((0,p.createElement)(et.Z,(0,s.Z)((0,s.Z)({},Y),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:A.current,theme:I?"dark":"light",selectedKeys:le,style:(0,s.Z)({backgroundColor:"transparent",border:"none"},i),className:k()(t,re,L,(0,l.Z)((0,l.Z)({},"".concat(L,"-horizontal"),n==="horizontal"),"".concat(L,"-collapsed"),e.collapsed)),items:xe.getNavMenuItems(he,0,0),onOpenChange:function(Pe){e.collapsed||q(Pe)}},e.menuProps)))};function ra(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,Ie.Xj)("ProLayoutSiderMenuStylish",function(a){var i=(0,s.Z)((0,s.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,l.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var aa=["title","render"],oa=p.memo(function(r){return(0,u.jsx)(u.Fragment,{children:r.children})}),ia=Ve.Z.Sider,dt=Ve.Z._InternalSiderContext,la=dt===void 0?{Provider:oa}:dt,An=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",t=e.logo,a=e.title,i=e.layout,o=e[n];if(o===!1)return null;var c=Nn(t),d=(0,u.jsx)("h1",{children:a!=null?a:"Ant Design Pro"});return o?o(c,e.collapsed?null:d,e):e.isMobile?null:i==="mix"&&n==="menuHeaderRender"?!1:e.collapsed?(0,u.jsx)("a",{children:c},"title"):(0,u.jsxs)("a",{children:[c,d]},"title")},st=function(e){var n,t=e.collapsed,a=e.originCollapsed,i=e.fixSiderbar,o=e.menuFooterRender,c=e.onCollapse,d=e.theme,v=e.siderWidth,f=e.isMobile,x=e.onMenuHeaderClick,y=e.breakpoint,Z=y===void 0?"lg":y,P=e.style,B=e.layout,I=e.menuExtraRender,z=I===void 0?!1:I,L=e.links,A=e.menuContentRender,T=e.collapsedButtonRender,E=e.prefixCls,g=e.avatarProps,R=e.rightContentRender,V=e.actionsRender,N=e.onOpenChange,w=e.stylish,q=e.logoStyle,oe=(0,p.useContext)(ie.L_),h=oe.hashId,le=(0,p.useMemo)(function(){return!(f||B==="mix")},[f,B]),M="".concat(E,"-sider"),Y=64,te=ra("".concat(M,".").concat(M,"-stylish"),{stylish:w,proLayoutCollapsedWidth:Y}),fe=k()("".concat(M),h,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(M,"-fixed"),i),"".concat(M,"-fixed-mix"),B==="mix"&&!f&&i),"".concat(M,"-collapsed"),e.collapsed),"".concat(M,"-layout-").concat(B),B&&!f),"".concat(M,"-light"),d!=="dark"),"".concat(M,"-mix"),B==="mix"&&!f),"".concat(M,"-stylish"),!!w)),re=An(e),xe=z&&z(e),he=(0,p.useMemo)(function(){return A!==!1&&(0,p.createElement)(ct,(0,s.Z)((0,s.Z)({},e),{},{key:"base-menu",mode:t&&!f?"vertical":"inline",handleOpenChange:N,style:{width:"100%"},className:"".concat(M,"-menu ").concat(h).trim()}))},[M,h,A,N,e]),ge=(L||[]).map(function(Ce,Ee){return{className:"".concat(M,"-link"),label:Ce,key:Ee}}),Pe=(0,p.useMemo)(function(){return A?A(e,he):he},[A,he,e]),Re=(0,p.useMemo)(function(){if(!g)return null;var Ce=g.title,Ee=g.render,Le=(0,me.Z)(g,aa),Zn=(0,u.jsxs)("div",{className:"".concat(M,"-actions-avatar"),children:[Le!=null&&Le.src||Le!=null&&Le.srcSet||Le.icon||Le.children?(0,u.jsx)(qn.C,(0,s.Z)({size:28},Le)):null,g.title&&!t&&(0,u.jsx)("span",{children:Ce})]});return Ee?Ee(g,Zn,e):Zn},[g,M,t]),we=(0,p.useMemo)(function(){return V?(0,u.jsx)(Ar.Z,{align:"center",size:4,direction:t?"vertical":"horizontal",className:k()(["".concat(M,"-actions-list"),t&&"".concat(M,"-actions-list-collapsed"),h]),children:V==null?void 0:V(e).map(function(Ce,Ee){return(0,u.jsx)("div",{className:"".concat(M,"-actions-list-item ").concat(h).trim(),children:Ce},Ee)})}):null},[V,M,t]),Ae=(0,p.useMemo)(function(){return(0,u.jsx)(Hn,{onItemClick:e.itemClick,appList:e.appList,prefixCls:e.prefixCls})},[e.appList,e.prefixCls]),We=(0,p.useMemo)(function(){if(T===!1)return null;var Ce=(0,u.jsx)(zr,{isMobile:f,collapsed:a,className:"".concat(M,"-collapsed-button"),onClick:function(){c==null||c(!a)}});return T?T(t,Ce):Ce},[T,f,a,M,t,c]),Fe=(0,p.useMemo)(function(){return!Re&&!we?null:(0,u.jsxs)("div",{className:k()("".concat(M,"-actions"),h,t&&"".concat(M,"-actions-collapsed")),children:[Re,we]})},[we,Re,M,t,h]),Ke=(0,p.useMemo)(function(){var Ce;return e!=null&&(Ce=e.menu)!==null&&Ce!==void 0&&Ce.hideMenuWhenCollapsed&&t?"".concat(M,"-hide-menu-collapsed"):null},[M,t,e==null||(n=e.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),un=o&&(o==null?void 0:o(e)),Sn=(0,u.jsxs)(u.Fragment,{children:[re&&(0,u.jsxs)("div",{className:k()([k()("".concat(M,"-logo"),h,(0,l.Z)({},"".concat(M,"-logo-collapsed"),t))]),onClick:le?x:void 0,id:"logo",style:q,children:[re,Ae]}),xe&&(0,u.jsx)("div",{className:k()(["".concat(M,"-extra"),!re&&"".concat(M,"-extra-no-logo"),h]),children:xe}),(0,u.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Pe}),(0,u.jsxs)(la.Provider,{value:{},children:[L?(0,u.jsx)("div",{className:"".concat(M,"-links ").concat(h).trim(),children:(0,u.jsx)(et.Z,{inlineIndent:16,className:"".concat(M,"-link-menu ").concat(h).trim(),selectedKeys:[],openKeys:[],theme:d,mode:"inline",items:ge})}):null,le&&(0,u.jsxs)(u.Fragment,{children:[Fe,!we&&R?(0,u.jsx)("div",{className:k()("".concat(M,"-actions"),h,(0,l.Z)({},"".concat(M,"-actions-collapsed"),t)),children:R==null?void 0:R(e)}):null]}),un&&(0,u.jsx)("div",{className:k()(["".concat(M,"-footer"),h,(0,l.Z)({},"".concat(M,"-footer-collapsed"),t)]),children:un})]})]});return te.wrapSSR((0,u.jsxs)(u.Fragment,{children:[i&&!f&&!Ke&&(0,u.jsx)("div",{style:(0,s.Z)({width:t?Y:v,overflow:"hidden",flex:"0 0 ".concat(t?Y:v,"px"),maxWidth:t?Y:v,minWidth:t?Y:v,transition:"all 0.2s ease 0s"},P)}),(0,u.jsxs)(ia,{collapsible:!0,trigger:null,collapsed:t,breakpoint:Z===!1?void 0:Z,onCollapse:function(Ee){f||c==null||c(Ee)},collapsedWidth:Y,style:P,theme:d,width:v,className:k()(fe,h,Ke),children:[Ke?(0,u.jsx)("div",{className:"".concat(M,"-hide-when-collapsed ").concat(h).trim(),style:{height:"100%",width:"100%",opacity:Ke?0:1},children:Sn}):Sn,We]})]}))},ua=C(10178),ca=C(9220),da=function(e){var n,t,a,i,o;return(0,l.Z)({},e.componentCls,{"&-header-actions":{display:"flex",height:"100%","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:e.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,"&:hover":{backgroundColor:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:e.padding,paddingInlineEnd:e.padding,cursor:"pointer",color:(a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,"> div":{height:"44px",color:(i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:e.borderRadius,"&:hover":{backgroundColor:(o=e.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgRightActionsItemHover}}}}})};function sa(r){return(0,Ie.Xj)("ProLayoutRightContent",function(e){var n=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(r)});return[da(n)]})}var va=["rightContentRender","avatarProps","actionsRender","headerContentRender"],fa=["title","render"],vt=function(e){var n=e.rightContentRender,t=e.avatarProps,a=e.actionsRender,i=e.headerContentRender,o=(0,me.Z)(e,va),c=(0,p.useContext)(He.ZP.ConfigContext),d=c.getPrefixCls,v="".concat(d(),"-pro-global-header"),f=sa(v),x=f.wrapSSR,y=f.hashId,Z=(0,p.useState)("auto"),P=(0,K.Z)(Z,2),B=P[0],I=P[1],z=(0,p.useMemo)(function(){if(!t)return null;var E=t.title,g=t.render,R=(0,me.Z)(t,fa),V=[R!=null&&R.src||R!=null&&R.srcSet||R.icon||R.children?(0,p.createElement)(qn.C,(0,s.Z)((0,s.Z)({},R),{},{size:28,key:"avatar"})):null,E?(0,u.jsx)("span",{style:{marginInlineStart:8},children:E},"name"):void 0];return g?g(t,(0,u.jsx)("div",{children:V}),o):(0,u.jsx)("div",{children:V})},[t]),L=a||z?function(E){var g=a&&(a==null?void 0:a(E));return!g&&!z?null:(Array.isArray(g)||(g=[g]),x((0,u.jsxs)("div",{className:"".concat(v,"-header-actions ").concat(y).trim(),children:[g.filter(Boolean).map(function(R,V){var N=!1;if(p.isValidElement(R)){var w;N=!!(R!=null&&(w=R.props)!==null&&w!==void 0&&w["aria-hidden"])}return(0,u.jsx)("div",{className:k()("".concat(v,"-header-actions-item ").concat(y),(0,l.Z)({},"".concat(v,"-header-actions-hover"),!N)),children:R},V)}),z&&(0,u.jsx)("span",{className:"".concat(v,"-header-actions-avatar ").concat(y).trim(),children:z})]})))}:void 0,A=(0,ua.D)(function(){var E=(0,ce.Z)((0,Ze.Z)().mark(function g(R){return(0,Ze.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:I(R);case 1:case"end":return N.stop()}},g)}));return function(g){return E.apply(this,arguments)}}(),160),T=L||n;return(0,u.jsx)("div",{className:"".concat(v,"-right-content ").concat(y).trim(),style:{minWidth:B,height:"100%"},children:(0,u.jsx)("div",{style:{height:"100%"},children:(0,u.jsx)(ca.Z,{onResize:function(g){var R=g.width;A.run(R)},children:T?(0,u.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:T((0,s.Z)((0,s.Z)({},o),{},{rightContentSize:B}))}):null})})})},ma=function(e){var n,t;return(0,l.Z)({},e.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":(0,l.Z)({display:"flex",alignItems:"center"},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56)-12,40),"px")}})};function ha(r){return(0,Ie.Xj)("ProLayoutTopNavHeader",function(e){var n=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(r)});return[ma(n)]})}var ft=function(e){var n,t,a,i,o,c,d,v=(0,p.useRef)(null),f=e.onMenuHeaderClick,x=e.contentWidth,y=e.rightContentRender,Z=e.className,P=e.style,B=e.headerContentRender,I=e.layout,z=e.actionsRender,L=(0,p.useContext)(He.ZP.ConfigContext),A=L.getPrefixCls,T=(0,p.useContext)(ie.L_),E=T.dark,g="".concat(e.prefixCls||A("pro"),"-top-nav-header"),R=ha(g),V=R.wrapSSR,N=R.hashId,w=void 0;e.menuHeaderRender!==void 0?w="menuHeaderRender":(I==="mix"||I==="top")&&(w="headerTitleRender");var q=An((0,s.Z)((0,s.Z)({},e),{},{collapsed:!1}),w),oe=(0,p.useContext)(ie.L_),h=oe.token,le=(0,p.useMemo)(function(){var M,Y,te,fe,re,xe,he,ge,Pe,Re,we,Ae,We,Fe=(0,u.jsx)(He.ZP,{theme:{hashed:(0,ie.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:(0,s.Z)({},_({colorItemBg:((M=h.layout)===null||M===void 0||(M=M.header)===null||M===void 0?void 0:M.colorBgHeader)||"transparent",colorSubItemBg:((Y=h.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorBgHeader)||"transparent",radiusItem:h.borderRadius,colorItemBgSelected:((te=h.layout)===null||te===void 0||(te=te.header)===null||te===void 0?void 0:te.colorBgMenuItemSelected)||(h==null?void 0:h.colorBgTextHover),itemHoverBg:((fe=h.layout)===null||fe===void 0||(fe=fe.header)===null||fe===void 0?void 0:fe.colorBgMenuItemHover)||(h==null?void 0:h.colorBgTextHover),colorItemBgSelectedHorizontal:((re=h.layout)===null||re===void 0||(re=re.header)===null||re===void 0?void 0:re.colorBgMenuItemSelected)||(h==null?void 0:h.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((xe=h.layout)===null||xe===void 0||(xe=xe.header)===null||xe===void 0?void 0:xe.colorTextMenu)||(h==null?void 0:h.colorTextSecondary),colorItemTextHoverHorizontal:((he=h.layout)===null||he===void 0||(he=he.header)===null||he===void 0?void 0:he.colorTextMenuActive)||(h==null?void 0:h.colorText),colorItemTextSelectedHorizontal:((ge=h.layout)===null||ge===void 0||(ge=ge.header)===null||ge===void 0?void 0:ge.colorTextMenuSelected)||(h==null?void 0:h.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((Pe=h.layout)===null||Pe===void 0||(Pe=Pe.header)===null||Pe===void 0?void 0:Pe.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((Re=h.layout)===null||Re===void 0||(Re=Re.header)===null||Re===void 0?void 0:Re.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((we=h.layout)===null||we===void 0||(we=we.header)===null||we===void 0?void 0:we.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:h==null?void 0:h.colorBgElevated,subMenuItemBg:h==null?void 0:h.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:h==null?void 0:h.colorBgElevated}))},token:{colorBgElevated:((Ae=h.layout)===null||Ae===void 0||(Ae=Ae.header)===null||Ae===void 0?void 0:Ae.colorBgHeader)||"transparent"}},children:(0,u.jsx)(ct,(0,s.Z)((0,s.Z)((0,s.Z)({theme:E?"dark":"light"},e),{},{className:"".concat(g,"-base-menu ").concat(N).trim()},e.menuProps),{},{style:(0,s.Z)({width:"100%"},(We=e.menuProps)===null||We===void 0?void 0:We.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return B?B(e,Fe):Fe},[(n=h.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(t=h.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgMenuItemSelected,(a=h.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgMenuItemHover,(i=h.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenu,(o=h.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenuActive,(c=h.layout)===null||c===void 0||(c=c.header)===null||c===void 0?void 0:c.colorTextMenuSelected,(d=h.layout)===null||d===void 0||(d=d.header)===null||d===void 0?void 0:d.colorBgMenuElevated,h.borderRadius,h==null?void 0:h.colorBgTextHover,h==null?void 0:h.colorTextSecondary,h==null?void 0:h.colorText,h==null?void 0:h.colorTextBase,h.colorBgElevated,E,e,g,N,B]);return V((0,u.jsx)("div",{className:k()(g,N,Z,(0,l.Z)({},"".concat(g,"-light"),!0)),style:P,children:(0,u.jsxs)("div",{ref:v,className:k()("".concat(g,"-main"),N,(0,l.Z)({},"".concat(g,"-wide"),x==="Fixed"&&I==="top")),children:[q&&(0,u.jsxs)("div",{className:k()("".concat(g,"-main-left ").concat(N)),onClick:f,children:[(0,u.jsx)(Hn,(0,s.Z)({},e)),(0,u.jsx)("div",{className:"".concat(g,"-logo ").concat(N).trim(),id:"logo",children:q},"logo")]}),(0,u.jsx)("div",{style:{flex:1},className:"".concat(g,"-menu ").concat(N).trim(),children:le}),(y||z||e.avatarProps)&&(0,u.jsx)(vt,(0,s.Z)((0,s.Z)({rightContentRender:y},e),{},{prefixCls:g}))]})}))},ga=function(e){var n,t,a;return(0,l.Z)({},e.componentCls,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorHeaderTitle)||e.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function pa(r){return(0,Ie.Xj)("ProLayoutGlobalHeader",function(e){var n=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(r)});return[ga(n)]})}var ya=function(e,n){return e===!1?null:e?e(n,null):n},xa=function(e){var n=e.isMobile,t=e.logo,a=e.collapsed,i=e.onCollapse,o=e.rightContentRender,c=e.menuHeaderRender,d=e.onMenuHeaderClick,v=e.className,f=e.style,x=e.layout,y=e.children,Z=e.splitMenus,P=e.menuData,B=e.prefixCls,I=(0,p.useContext)(He.ZP.ConfigContext),z=I.getPrefixCls,L=I.direction,A="".concat(B||z("pro"),"-global-header"),T=pa(A),E=T.wrapSSR,g=T.hashId,R=k()(v,A,g);if(x==="mix"&&!n&&Z){var V=(P||[]).map(function(oe){return(0,s.Z)((0,s.Z)({},oe),{},{children:void 0,routes:void 0})}),N=(0,ln.QX)(V);return(0,u.jsx)(ft,(0,s.Z)((0,s.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:N}))}var w=k()("".concat(A,"-logo"),g,(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(A,"-logo-rtl"),L==="rtl"),"".concat(A,"-logo-mix"),x==="mix"),"".concat(A,"-logo-mobile"),n)),q=(0,u.jsx)("span",{className:w,children:(0,u.jsx)("a",{children:Nn(t)})},"logo");return E((0,u.jsxs)("div",{className:R,style:(0,s.Z)({},f),children:[n&&(0,u.jsx)("span",{className:"".concat(A,"-collapsed-button ").concat(g).trim(),onClick:function(){i==null||i(!a)},children:(0,u.jsx)(Rr,{})}),n&&ya(c,q),x==="mix"&&!n&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Hn,(0,s.Z)({},e)),(0,u.jsx)("div",{className:w,onClick:d,children:An((0,s.Z)((0,s.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})]}),(0,u.jsx)("div",{style:{flex:1},children:y}),(o||e.actionsRender||e.avatarProps)&&(0,u.jsx)(vt,(0,s.Z)({rightContentRender:o},e))]}))},Ca=function(e){var n,t,a,i;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(e.antCls,"-layout-header").concat(e.componentCls),{height:((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(e.colorSplit),backgroundColor:((a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function ba(r){return(0,Ie.Xj)("ProLayoutHeader",function(e){var n=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(r)});return[Ca(n)]})}function Sa(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,Ie.Xj)("ProLayoutHeaderStylish",function(a){var i=(0,s.Z)((0,s.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,l.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var mt=Ve.Z.Header,Za=function(e){var n,t,a,i=e.isMobile,o=e.fixedHeader,c=e.className,d=e.style,v=e.collapsed,f=e.prefixCls,x=e.onCollapse,y=e.layout,Z=e.headerRender,P=e.headerContentRender,B=(0,p.useContext)(ie.L_),I=B.token,z=(0,p.useContext)(He.ZP.ConfigContext),L=(0,p.useState)(!1),A=(0,K.Z)(L,2),T=A[0],E=A[1],g=o||y==="mix",R=(0,p.useCallback)(function(){var M=y==="top",Y=(0,ln.QX)(e.menuData||[]),te=(0,u.jsx)(xa,(0,s.Z)((0,s.Z)({onCollapse:x},e),{},{menuData:Y,children:P&&P(e,null)}));return M&&!i&&(te=(0,u.jsx)(ft,(0,s.Z)((0,s.Z)({mode:"horizontal",onCollapse:x},e),{},{menuData:Y}))),Z&&typeof Z=="function"?Z(e,te):te},[P,Z,i,y,x,e]);(0,p.useEffect)(function(){var M,Y=(z==null||(M=z.getTargetContainer)===null||M===void 0?void 0:M.call(z))||document.body,te=function(){var re,xe=Y.scrollTop;return xe>(((re=I.layout)===null||re===void 0||(re=re.header)===null||re===void 0?void 0:re.heightLayoutHeader)||56)&&!T?(E(!0),!0):(T&&E(!1),!1)};if(g&&typeof window!="undefined")return Y.addEventListener("scroll",te,{passive:!0}),function(){Y.removeEventListener("scroll",te)}},[(n=I.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,g,T]);var V=y==="top",N="".concat(f,"-layout-header"),w=ba(N),q=w.wrapSSR,oe=w.hashId,h=Sa("".concat(N,".").concat(N,"-stylish"),{proLayoutCollapsedWidth:64,stylish:e.stylish}),le=k()(c,oe,N,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(N,"-fixed-header"),g),"".concat(N,"-fixed-header-scroll"),T),"".concat(N,"-mix"),y==="mix"),"".concat(N,"-fixed-header-action"),!v),"".concat(N,"-top-menu"),V),"".concat(N,"-header"),!0),"".concat(N,"-stylish"),!!e.stylish));return y==="side"&&!i?null:h.wrapSSR(q((0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(He.ZP,{theme:{hashed:(0,ie.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[g&&(0,u.jsx)(mt,{style:(0,s.Z)({height:((t=I.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56,lineHeight:"".concat(((a=I.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},d)}),(0,u.jsx)(mt,{className:le,style:d,children:R()})]})})))},Ma=C(75081),Ia=["isLoading","pastDelay","timedOut","error","retry"],Ra=function(e){var n=e.isLoading,t=e.pastDelay,a=e.timedOut,i=e.error,o=e.retry,c=(0,me.Z)(e,Ia);return(0,u.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,u.jsx)(Ma.Z,(0,s.Z)({size:"large"},c))})},Ta=C(85265),Ba=C(87107),ht=new Ba.E4("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),wa=function(e){var n,t,a,i,o,c,d,v,f,x,y,Z;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-layout-sider").concat(e.componentCls),{background:((n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),e.componentCls,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(e.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.paddingInlineLayoutMenu,paddingBlock:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(e.colorSplit),marginInlineEnd:-1}),"".concat(e.antCls,"-menu"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{fontSize:e.fontSizeSM,paddingBottom:4}),"".concat(e.antCls,"-menu-item:hover"),{color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(o=e.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((c=e.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(d=e.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuTitle,animationName:ht,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":(0,l.Z)({flexDirection:"column-reverse",margin:0,padding:12},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(v=e.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(f=e.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:e.borderRadius,"&:hover":{background:e.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:e.marginXS,borderRadius:e.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:e.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(e.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(x=e.layout)===null||x===void 0||(x=x.sider)===null||x===void 0?void 0:x.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:e.fontSize,animationName:ht,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(e.componentCls).concat(e.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((y=e.layout)===null||y===void 0||(y=y.header)===null||y===void 0?void 0:y.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((Z=e.layout)===null||Z===void 0||(Z=Z.header)===null||Z===void 0?void 0:Z.heightLayoutHeader)||56,"px")}}))};function ja(r,e){var n=e.proLayoutCollapsedWidth;return(0,Ie.Xj)("ProLayoutSiderMenu",function(t){var a=(0,s.Z)((0,s.Z)({},t),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:n});return[wa(a)]})}var gt=function(e){var n,t=e.isMobile,a=e.siderWidth,i=e.collapsed,o=e.onCollapse,c=e.style,d=e.className,v=e.hide,f=e.prefixCls,x=(0,p.useContext)(ie.L_),y=x.token;(0,p.useEffect)(function(){t===!0&&(o==null||o(!0))},[t]);var Z=(0,Jn.Z)(e,["className","style"]),P=p.useContext(He.ZP.ConfigContext),B=P.direction,I=ja("".concat(f,"-sider"),{proLayoutCollapsedWidth:64}),z=I.wrapSSR,L=I.hashId,A=k()("".concat(f,"-sider"),d,L);if(v)return null;var T=(0,b.X)(!i,function(){return o==null?void 0:o(!0)});return z(t?(0,u.jsx)(Ta.Z,(0,s.Z)((0,s.Z)({placement:B==="rtl"?"right":"left",className:k()("".concat(f,"-drawer-sider"),d)},T),{},{style:(0,s.Z)({padding:0,height:"100vh"},c),onClose:function(){o==null||o(!0)},maskClosable:!0,closable:!1,width:a,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=y.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:(0,u.jsx)(st,(0,s.Z)((0,s.Z)({},Z),{},{isMobile:!0,className:A,collapsed:t?!1:i,splitMenus:!1,originCollapsed:i}))})):(0,u.jsx)(st,(0,s.Z)((0,s.Z)({className:A,originCollapsed:i},Z),{},{style:c})))},pt=(0,p.createContext)({}),Pa=C(16254),_n=C.n(Pa),La=function(e,n,t){if(t){var a=(0,yn.Z)(t.keys()).find(function(o){return _n()(o).test(e)});if(a)return t.get(a)}if(n){var i=Object.keys(n).find(function(o){return _n()(o).test(e)});if(i)return n[i]}return{path:""}},Dn=function(e,n){var t=e.pathname,a=t===void 0?"/":t,i=e.breadcrumb,o=e.breadcrumbMap,c=e.formatMessage,d=e.title,v=e.menu,f=v===void 0?{locale:!1}:v,x=n?"":d||"",y=La(a,i,o);if(!y)return{title:x,id:"",pageName:x};var Z=y.name;return f.locale!==!1&&y.locale&&c&&(Z=c({id:y.locale||"",defaultMessage:y.name})),Z?n||!d?{title:Z,id:y.locale||"",pageName:Z}:{title:"".concat(Z," - ").concat(d),id:y.locale||"",pageName:Z}:{title:x,id:y.locale||"",pageName:x}},Mo=function(e,n){return Dn(e,n).title},Ea=C(52676),bn=C(67159),Qe=C(34155),Na=function(){var e;return typeof Qe=="undefined"?bn.Z:((e=Qe)===null||Qe===void 0||(Qe={NODE_ENV:"production",PUBLIC_PATH:"/admin/"})===null||Qe===void 0?void 0:Qe.ANTD_VERSION)||bn.Z},Ha=function(e){var n,t,a,i,o,c,d,v,f,x,y,Z,P,B,I,z,L,A,T,E,g,R,V,N,w,q,oe,h,le,M,Y,te;return(n=Na())!==null&&n!==void 0&&n.startsWith("5")?{}:(0,l.Z)((0,l.Z)((0,l.Z)({},e.componentCls,(0,l.Z)((0,l.Z)({width:"100%",height:"100%"},"".concat(e.proComponentsCls,"-base-menu"),(g={color:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorTextMenu},(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)(g,"".concat(e.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu}),"& ".concat(e.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(e.antCls,"-menu-submenu-expand-icon, ").concat(e.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(e.antCls,"-menu"),(0,l.Z)((0,l.Z)({color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu},"".concat(e.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(e.antCls,"-menu-inline"),(0,l.Z)({},"".concat(e.antCls,"-menu-selected::after,").concat(e.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(e.antCls,"-menu-sub ").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(e.antCls,`-menu-item:active, - `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(e.antCls,"-menu-light"),(0,l.Z)({},"".concat(e.antCls,`-menu-item:hover, - `).concat(e.antCls,`-menu-item-active, - `).concat(e.antCls,`-menu-submenu-active, - `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(o=e.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(c=e.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenuActive}))),"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:(d=e.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected,borderRadius:e.borderRadius}),"".concat(e.antCls,`-menu-item:hover, - `).concat(e.antCls,`-menu-item-active, - `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(v=e.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenuActive,borderRadius:e.borderRadius,backgroundColor:"".concat((f=e.layout)===null||f===void 0||(f=f.header)===null||f===void 0?void 0:f.colorBgMenuItemHover," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(x=e.layout)===null||x===void 0||(x=x.sider)===null||x===void 0?void 0:x.colorTextMenuActive}))),"".concat(e.antCls,"-menu-item-selected"),{color:(y=e.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenuSelected}),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)(g,"".concat(e.antCls,"-menu-submenu-selected"),{color:(Z=e.layout)===null||Z===void 0||(Z=Z.sider)===null||Z===void 0?void 0:Z.colorTextMenuSelected}),"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-inline) ").concat(e.antCls,"-menu-submenu-open"),{color:(P=e.layout)===null||P===void 0||(P=P.sider)===null||P===void 0?void 0:P.colorTextMenuSelected}),"&".concat(e.antCls,"-menu-vertical"),(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-selected"),{borderRadius:e.borderRadius,color:(B=e.layout)===null||B===void 0||(B=B.sider)===null||B===void 0?void 0:B.colorTextMenuSelected})),"".concat(e.antCls,"-menu-submenu:hover > ").concat(e.antCls,"-menu-submenu-title > ").concat(e.antCls,"-menu-submenu-arrow"),{color:(I=e.layout)===null||I===void 0||(I=I.sider)===null||I===void 0?void 0:I.colorTextMenuActive}),"&".concat(e.antCls,"-menu-horizontal"),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(e.antCls,`-menu-item:hover, - `).concat(e.antCls,`-menu-submenu:hover, - `).concat(e.antCls,`-menu-item-active, - `).concat(e.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(z=e.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.colorTextMenuActive,backgroundColor:"".concat((L=e.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorBgMenuItemHover," !important")}),"".concat(e.antCls,`-menu-item-open, - `).concat(e.antCls,`-menu-submenu-open, - `).concat(e.antCls,`-menu-item-selected, - `).concat(e.antCls,"-menu-submenu-selected"),(0,l.Z)({backgroundColor:(A=e.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.colorBgMenuItemSelected,borderRadius:e.borderRadius,transition:"none",color:"".concat((T=e.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorTextMenuSelected," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:"".concat((E=e.layout)===null||E===void 0||(E=E.header)===null||E===void 0?void 0:E.colorTextMenuSelected," !important")})),"> ".concat(e.antCls,"-menu-item, > ").concat(e.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(e.antCls,"-menu-item::after, > ").concat(e.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(e.proComponentsCls,"-top-nav-header-base-menu"),(0,l.Z)((0,l.Z)({},"&".concat(e.antCls,"-menu"),(0,l.Z)({color:(R=e.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorTextMenu},"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(e.antCls,"-menu-light"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,`-menu-item:hover, - `).concat(e.antCls,`-menu-item-active, - `).concat(e.antCls,`-menu-submenu-active, - `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(V=e.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuActive,borderRadius:e.borderRadius,transition:"none",backgroundColor:(N=e.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorBgMenuItemSelected},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(w=e.layout)===null||w===void 0||(w=w.header)===null||w===void 0?void 0:w.colorTextMenuActive})),"".concat(e.antCls,"-menu-item-selected"),{color:(q=e.layout)===null||q===void 0||(q=q.header)===null||q===void 0?void 0:q.colorTextMenuSelected,borderRadius:e.borderRadius,backgroundColor:(oe=e.layout)===null||oe===void 0||(oe=oe.header)===null||oe===void 0?void 0:oe.colorBgMenuItemSelected})))),"".concat(e.antCls,"-menu-sub").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(e.antCls,"-menu-submenu-popup"),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(e.antCls,"-menu"),(0,l.Z)({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(e.antCls,`-menu-item:active, - `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(e.antCls,"-menu-item-selected"),{color:(h=e.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuSelected}),"".concat(e.antCls,"-menu-submenu-selected"),{color:(le=e.layout)===null||le===void 0||(le=le.sider)===null||le===void 0?void 0:le.colorTextMenuSelected}),"".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:e.borderRadius,color:(M=e.layout)===null||M===void 0||(M=M.sider)===null||M===void 0?void 0:M.colorTextMenuSelected}),"".concat(e.antCls,`-menu-item:hover, - `).concat(e.antCls,`-menu-item-active, - `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(Y=e.layout)===null||Y===void 0||(Y=Y.sider)===null||Y===void 0?void 0:Y.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(te=e.layout)===null||te===void 0||(te=te.sider)===null||te===void 0?void 0:te.colorTextMenuActive}))))},Aa=function(e){var n,t,a,i;return(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-layout"),{backgroundColor:"transparent !important"}),e.componentCls,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"& ".concat(e.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(e.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=e.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(t=e.layout)===null||t===void 0||(t=t.pageContainer)===null||t===void 0?void 0:t.paddingBlockPageContainerContent,paddingInline:(a=e.layout)===null||a===void 0||(a=a.pageContainer)===null||a===void 0?void 0:a.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(e.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(e.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(i=e.layout)===null||i===void 0?void 0:i.bgLayout}))};function _a(r){return(0,Ie.Xj)("ProLayout",function(e){var n=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(r)});return[Aa(n),Ha(n)]})}function Da(r){if(!r||r==="/")return["/"];var e=r.split("/").filter(function(n){return n});return e.map(function(n,t){return"/".concat(e.slice(0,t+1).join("/"))})}var Ye=C(34155),Oa=function(){var e;return typeof Ye=="undefined"?bn.Z:((e=Ye)===null||Ye===void 0||(Ye={NODE_ENV:"production",PUBLIC_PATH:"/admin/"})===null||Ye===void 0?void 0:Ye.ANTD_VERSION)||bn.Z},$a=function(e,n,t){var a=e,i=a.breadcrumbName,o=a.title,c=a.path,d=t.findIndex(function(v){return v.linkPath===e.path})===t.length-1;return d?(0,u.jsx)("span",{children:o||i}):(0,u.jsx)("span",{onClick:c?function(){return location.href=c}:void 0,children:o||i})},za=function(e,n){var t=n.formatMessage,a=n.menu;return e.locale&&t&&(a==null?void 0:a.locale)!==!1?t({id:e.locale,defaultMessage:e.name}):e.name},Wa=function(e,n){var t=e.get(n);if(!t){var a=Array.from(e.keys())||[],i=a.find(function(o){return _n()(o.replace("?","")).test(n)});i&&(t=e.get(i))}return t||{path:""}},Fa=function(e){var n=e.location,t=e.breadcrumbMap;return{location:n,breadcrumbMap:t}},Ka=function(e,n,t){var a=Da(e==null?void 0:e.pathname),i=a.map(function(o){var c=Wa(n,o),d=za(c,t),v=c.hideInBreadcrumb;return d&&!v?{linkPath:o,breadcrumbName:d,title:d,component:c.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(o){return o&&o.linkPath});return i},Ua=function(e){var n=Fa(e),t=n.location,a=n.breadcrumbMap;return t&&t.pathname&&a?Ka(t,a,e):[]},Ga=function(e,n){var t=e.breadcrumbRender,a=e.itemRender,i=n.breadcrumbProps||{},o=i.minLength,c=o===void 0?2:o,d=Ua(e),v=function(y){for(var Z=a||$a,P=arguments.length,B=new Array(P>1?P-1:0),I=1;I-1?{items:f,itemRender:v}:{routes:f,itemRender:v}};function Xa(r){return(0,yn.Z)(r).reduce(function(e,n){var t=(0,K.Z)(n,2),a=t[0],i=t[1];return e[a]=i,e},{})}var Va=function r(e,n,t,a){var i=ur(e,(n==null?void 0:n.locale)||!1,t,!0),o=i.menuData,c=i.breadcrumb;return a?r(a(o),n,t,void 0):{breadcrumb:Xa(c),breadcrumbMap:c,menuData:o}},Qa=C(71002),Ya=C(51812),Ja=function(e){var n=(0,p.useState)({}),t=(0,K.Z)(n,2),a=t[0],i=t[1];return(0,p.useEffect)(function(){i((0,Ya.Y)({layout:(0,Qa.Z)(e.layout)!=="object"?e.layout:void 0,navTheme:e.navTheme,menuRender:e.menuRender,footerRender:e.footerRender,menuHeaderRender:e.menuHeaderRender,headerRender:e.headerRender,fixSiderbar:e.fixSiderbar}))},[e.layout,e.navTheme,e.menuRender,e.footerRender,e.menuHeaderRender,e.headerRender,e.fixSiderbar]),a},ka=["id","defaultMessage"],qa=["fixSiderbar","navTheme","layout"],yt=0,eo=function(e,n){var t;return e.headerRender===!1||e.pure?null:(0,u.jsx)(Za,(0,s.Z)((0,s.Z)({matchMenuKeys:n},e),{},{stylish:(t=e.stylish)===null||t===void 0?void 0:t.header}))},no=function(e){return e.footerRender===!1||e.pure?null:e.footerRender?e.footerRender((0,s.Z)({},e),(0,u.jsx)(Cr.q,{})):null},to=function(e,n){var t,a=e.layout,i=e.isMobile,o=e.selectedKeys,c=e.openKeys,d=e.splitMenus,v=e.suppressSiderWhenMenuEmpty,f=e.menuRender;if(e.menuRender===!1||e.pure)return null;var x=e.menuData;if(d&&(c!==!1||a==="mix")&&!i){var y=o||n,Z=(0,K.Z)(y,1),P=Z[0];if(P){var B;x=((B=e.menuData)===null||B===void 0||(B=B.find(function(A){return A.key===P}))===null||B===void 0?void 0:B.children)||[]}else x=[]}var I=(0,ln.QX)(x||[]);if(I&&(I==null?void 0:I.length)<1&&(d||v))return null;if(a==="top"&&!i){var z;return(0,u.jsx)(gt,(0,s.Z)((0,s.Z)({matchMenuKeys:n},e),{},{hide:!0,stylish:(z=e.stylish)===null||z===void 0?void 0:z.sider}))}var L=(0,u.jsx)(gt,(0,s.Z)((0,s.Z)({matchMenuKeys:n},e),{},{menuData:I,stylish:(t=e.stylish)===null||t===void 0?void 0:t.sider}));return f?f(e,L):L},ro=function(e,n){var t=n.pageTitleRender,a=Dn(e);if(t===!1)return{title:n.title||"",id:"",pageName:""};if(t){var i=t(e,a.title,a);if(typeof i=="string")return Dn((0,s.Z)((0,s.Z)({},a),{},{title:i}));(0,gr.ZP)(typeof i=="string","pro-layout: renderPageTitle return value should be a string")}return a},ao=function(e,n,t){return e?n?64:t:0},oo=function(e){var n,t,a,i,o,c,d,v,f,x,y,Z,P,B,I=e||{},z=I.children,L=I.onCollapse,A=I.location,T=A===void 0?{pathname:"/"}:A,E=I.contentStyle,g=I.route,R=I.defaultCollapsed,V=I.style,N=I.siderWidth,w=I.menu,q=I.siderMenuType,oe=I.isChildrenLayout,h=I.menuDataRender,le=I.actionRef,M=I.bgLayoutImgList,Y=I.formatMessage,te=I.loading,fe=(0,p.useMemo)(function(){return N||(e.layout==="mix"?215:256)},[e.layout,N]),re=(0,p.useContext)(He.ZP.ConfigContext),xe=(n=e.prefixCls)!==null&&n!==void 0?n:re.getPrefixCls("pro"),he=(0,se.Z)(!1,{value:w==null?void 0:w.loading,onChange:w==null?void 0:w.onLoadingChange}),ge=(0,K.Z)(he,2),Pe=ge[0],Re=ge[1],we=(0,p.useState)(function(){return yt+=1,"pro-layout-".concat(yt)}),Ae=(0,K.Z)(we,1),We=Ae[0],Fe=(0,p.useCallback)(function(be){var Ue=be.id,Rn=be.defaultMessage,fn=(0,me.Z)(be,ka);if(Y)return Y((0,s.Z)({id:Ue,defaultMessage:Rn},fn));var mn=(0,Ea.e)();return mn[Ue]?mn[Ue]:Rn},[Y]),Ke=(0,kn.ZP)([We,w==null?void 0:w.params],function(){var be=(0,ce.Z)((0,Ze.Z)().mark(function Ue(Rn){var fn,mn,Et,Nt;return(0,Ze.Z)().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return mn=(0,K.Z)(Rn,2),Et=mn[1],Re(!0),en.next=4,w==null||(fn=w.request)===null||fn===void 0?void 0:fn.call(w,Et||{},(g==null?void 0:g.children)||(g==null?void 0:g.routes)||[]);case 4:return Nt=en.sent,Re(!1),en.abrupt("return",Nt);case 7:case"end":return en.stop()}},Ue)}));return function(Ue){return be.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),un=Ke.data,Sn=Ke.mutate,Ce=Ke.isLoading;(0,p.useEffect)(function(){Re(Ce)},[Ce]);var Ee=(0,kn.kY)(),Le=Ee.cache;(0,p.useEffect)(function(){return function(){Le instanceof Map&&Le.delete(We)}},[]);var Zn=(0,p.useMemo)(function(){return Va(un||(g==null?void 0:g.children)||(g==null?void 0:g.routes)||[],w,Fe,h)},[Fe,w,h,un,g==null?void 0:g.children,g==null?void 0:g.routes]),On=Zn||{},lo=On.breadcrumb,xt=On.breadcrumbMap,Ct=On.menuData,cn=Ct===void 0?[]:Ct;le&&w!==null&&w!==void 0&&w.request&&(le.current={reload:function(){Sn()}});var dn=(0,p.useMemo)(function(){return mr(T.pathname||"/",cn||[],!0)},[T.pathname,cn]),$n=(0,p.useMemo)(function(){return Array.from(new Set(dn.map(function(be){return be.key||be.path||""})))},[dn]),bt=dn[dn.length-1]||{},St=Ja(bt),Mn=(0,s.Z)((0,s.Z)({},e),St),uo=Mn.fixSiderbar,Io=Mn.navTheme,sn=Mn.layout,co=(0,me.Z)(Mn,qa),Je=D(),ke=(0,p.useMemo)(function(){return(Je==="sm"||Je==="xs")&&!e.disableMobile},[Je,e.disableMobile]),so=sn!=="top"&&!ke,vo=(0,se.Z)(function(){return R!==void 0?R:!!(ke||Je==="md")},{value:e.collapsed,onChange:L}),Zt=(0,K.Z)(vo,2),vn=Zt[0],Mt=Zt[1],qe=(0,Jn.Z)((0,s.Z)((0,s.Z)((0,s.Z)({prefixCls:xe},e),{},{siderWidth:fe},St),{},{formatMessage:Fe,breadcrumb:lo,menu:(0,s.Z)((0,s.Z)({},w),{},{type:q||(w==null?void 0:w.type),loading:Pe}),layout:sn}),["className","style","breadcrumbRender"]),zn=ro((0,s.Z)((0,s.Z)({pathname:T.pathname},qe),{},{breadcrumbMap:xt}),e),fo=Ga((0,s.Z)((0,s.Z)({},qe),{},{breadcrumbRender:e.breadcrumbRender,breadcrumbMap:xt}),e),In=to((0,s.Z)((0,s.Z)({},qe),{},{menuData:cn,onCollapse:Mt,isMobile:ke,collapsed:vn}),$n),Wn=eo((0,s.Z)((0,s.Z)({},qe),{},{children:null,hasSiderMenu:!!In,menuData:cn,isMobile:ke,collapsed:vn,onCollapse:Mt}),$n),It=no((0,s.Z)({isMobile:ke,collapsed:vn},qe)),mo=(0,p.useContext)(pt),ho=mo.isChildrenLayout,Fn=oe!==void 0?oe:ho,_e="".concat(xe,"-layout"),Rt=_a(_e),go=Rt.wrapSSR,Kn=Rt.hashId,po=k()(e.className,Kn,"ant-design-pro",_e,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"screen-".concat(Je),Je),"".concat(_e,"-top-menu"),sn==="top"),"".concat(_e,"-is-children"),Fn),"".concat(_e,"-fix-siderbar"),uo),"".concat(_e,"-").concat(sn),sn)),yo=ao(!!so,vn,fe),Tt={position:"relative"};(Fn||E&&E.minHeight)&&(Tt.minHeight=0),(0,p.useEffect)(function(){var be;(be=e.onPageChange)===null||be===void 0||be.call(e,e.location)},[T.pathname,(t=T.pathname)===null||t===void 0?void 0:t.search]);var xo=(0,p.useState)(!1),Bt=(0,K.Z)(xo,2),wt=Bt[0],Co=Bt[1],bo=(0,p.useState)(0),jt=(0,K.Z)(bo,2),Pt=jt[0],So=jt[1];m(zn,e.title||!1);var Zo=(0,p.useContext)(ie.L_),G=Zo.token,Lt=(0,p.useMemo)(function(){return M&&M.length>0?M==null?void 0:M.map(function(be,Ue){return(0,u.jsx)("img",{src:be.src,style:(0,s.Z)({position:"absolute"},be)},Ue)}):null},[M]);return go((0,u.jsx)(pt.Provider,{value:(0,s.Z)((0,s.Z)({},qe),{},{breadcrumb:fo,menuData:cn,isMobile:ke,collapsed:vn,hasPageContainer:Pt,setHasPageContainer:So,isChildrenLayout:!0,title:zn.pageName,hasSiderMenu:!!In,hasHeader:!!Wn,siderWidth:yo,hasFooter:!!It,hasFooterToolbar:wt,setHasFooterToolbar:Co,pageTitleInfo:zn,matchMenus:dn,matchMenuKeys:$n,currentMenu:bt}),children:e.pure?(0,u.jsx)(u.Fragment,{children:z}):(0,u.jsxs)("div",{className:po,children:[Lt||(a=G.layout)!==null&&a!==void 0&&a.bgLayout?(0,u.jsx)("div",{className:k()("".concat(_e,"-bg-list"),Kn),children:Lt}):null,(0,u.jsxs)(Ve.Z,{style:(0,s.Z)({minHeight:"100%",flexDirection:In?"row":void 0},V),children:[(0,u.jsx)(He.ZP,{theme:{hashed:(0,ie.nu)(),token:{controlHeightLG:((i=G.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.menuHeight)||(G==null?void 0:G.controlHeightLG)},components:{Menu:_({colorItemBg:((o=G.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorMenuBackground)||"transparent",colorSubItemBg:((c=G.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorMenuBackground)||"transparent",radiusItem:G.borderRadius,colorItemBgSelected:((d=G.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected)||(G==null?void 0:G.colorBgTextHover),colorItemBgHover:((v=G.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorBgMenuItemHover)||(G==null?void 0:G.colorBgTextHover),colorItemBgActive:((f=G.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemActive)||(G==null?void 0:G.colorBgTextActive),colorItemBgSelectedHorizontal:((x=G.layout)===null||x===void 0||(x=x.sider)===null||x===void 0?void 0:x.colorBgMenuItemSelected)||(G==null?void 0:G.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((y=G.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenu)||(G==null?void 0:G.colorTextSecondary),colorItemTextHover:((Z=G.layout)===null||Z===void 0||(Z=Z.sider)===null||Z===void 0?void 0:Z.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((P=G.layout)===null||P===void 0||(P=P.sider)===null||P===void 0?void 0:P.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:G==null?void 0:G.colorBgElevated,subMenuItemBg:G==null?void 0:G.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:G==null?void 0:G.colorBgElevated})}},children:In}),(0,u.jsxs)("div",{style:Tt,className:"".concat(_e,"-container ").concat(Kn).trim(),children:[Wn,(0,u.jsx)(yr,(0,s.Z)((0,s.Z)({hasPageContainer:Pt,isChildrenLayout:Fn},co),{},{hasHeader:!!Wn,prefixCls:_e,style:E,children:te?(0,u.jsx)(Ra,{}):z})),It,wt&&(0,u.jsx)("div",{className:"".concat(_e,"-has-footer"),style:{height:64,marginBlockStart:(B=G.layout)===null||B===void 0||(B=B.pageContainer)===null||B===void 0?void 0:B.paddingBlockPageContainerContent}})]})]})]})}))},io=function(e){var n=e.colorPrimary,t=e.navTheme!==void 0?{dark:e.navTheme==="realDark"}:{};return(0,u.jsx)(He.ZP,{theme:n?{token:{colorPrimary:n}}:void 0,children:(0,u.jsx)(ie._Y,(0,s.Z)((0,s.Z)({autoClearCache:!0},t),{},{token:e.token,prefixCls:e.prefixCls,children:(0,u.jsx)(oo,(0,s.Z)((0,s.Z)({logo:(0,u.jsx)(xr,{})},at.h),{},{location:(0,X.j)()?window.location:void 0},e))}))})}},90743:function(Te,Ne){var C;function l(m){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},l(m)}C={value:!0},Ne.Bo=C=C=C=C=C=C=void 0;function Ze(m){for(var S=[],b=0;b=48&&j<=57||j>=65&&j<=90||j>=97&&j<=122||j===95){ee+=m[O++];continue}break}if(!ee)throw new TypeError("Missing parameter name at "+b);S.push({type:"NAME",index:b,value:ee}),b=O;continue}if(_==="("){var W=1,Q="",O=b+1;if(m[O]==="?")throw new TypeError('Pattern cannot start with "?" at '+O);for(;O-1:Me===void 0;ee||(ae+="(?:"+de+"(?="+U+"))?"),$e||(ae+="(?="+de+"|"+U+")")}return new RegExp(ae,p(b))}C=D;function X(m,S,b){return m instanceof RegExp?Se(m,S):Array.isArray(m)?ue(m,S,b):pe(m,S,b)}Ne.Bo=X},16254:function(Te){Te.exports=pe,Te.exports.parse=Ze,Te.exports.compile=ce,Te.exports.tokensToFunction=me,Te.exports.tokensToRegExp=ue;var Ne="/",C="./",l=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function Ze(D,X){for(var m=[],S=0,b=0,_="",ee=X&&X.delimiter||Ne,O=X&&X.delimiters||C,j=!1,W;(W=l.exec(D))!==null;){var Q=W[0],J=W[1],F=W.index;if(_+=D.slice(b,F),b=F+Q.length,J){_+=J[1],j=!0;continue}var U="",de=D[b],ae=W[2],$=W[3],ne=W[4],H=W[5];if(!j&&_.length){var ye=_.length-1;O.indexOf(_[ye])>-1&&(U=_[ye],_=_.slice(0,ye))}_&&(m.push(_),_="",j=!1);var je=U!==""&&de!==void 0&&de!==U,Oe=H==="+"||H==="*",Me=H==="?"||H==="*",$e=U||ee,De=$||ne;m.push({name:ae||S++,prefix:U,delimiter:$e,optional:Me,repeat:Oe,partial:je,pattern:De?s(De):"[^"+K($e)+"]+?"})}return(_||b-1;else{var U=F.repeat?"(?:"+F.pattern+")(?:"+K(F.delimiter)+"(?:"+F.pattern+"))*":F.pattern;X&&X.push(F),F.optional?F.partial?W+=K(F.prefix)+"("+U+")?":W+="(?:"+K(F.prefix)+"("+U+"))?":W+=K(F.prefix)+"("+U+")"}}return _?(S||(W+="(?:"+ee+")?"),W+=j==="$"?"$":"(?="+j+")"):(S||(W+="(?:"+ee+"(?="+j+"))?"),Q||(W+="(?="+ee+"|"+j+")")),new RegExp(W,ie(m))}function pe(D,X,m){return D instanceof RegExp?se(D,X):Array.isArray(D)?p(D,X,m):Se(D,X,m)}},78164:function(Te,Ne,C){"use strict";C.d(Ne,{S:function(){return Se}});var l=C(15671),Ze=C(43144),ce=C(97326),me=C(32531),K=C(29388),s=C(4942),ie=C(29905),se=C(67294),p=C(85893),Se=function(ue){(0,me.Z)(D,ue);var pe=(0,K.Z)(D);function D(){var X;(0,l.Z)(this,D);for(var m=arguments.length,S=new Array(m),b=0;b=ce.length?{done:!0}:{done:!1,value:ce[s++]}},e:function(pe){throw pe},f:ie}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var se=!0,p=!1,Se;return{s:function(){K=K.call(ce)},n:function(){var pe=K.next();return se=pe.done,pe},e:function(pe){p=!0,Se=pe},f:function(){try{!se&&K.return!=null&&K.return()}finally{if(p)throw Se}}}}Te.exports=Ze,Te.exports.__esModule=!0,Te.exports.default=Te.exports}}]); diff --git a/starter/src/main/resources/templates/admin/asset-manifest.json b/starter/src/main/resources/templates/admin/asset-manifest.json index 857cd5f1cd..896dfd0114 100644 --- a/starter/src/main/resources/templates/admin/asset-manifest.json +++ b/starter/src/main/resources/templates/admin/asset-manifest.json @@ -1,42 +1,55 @@ { - "/admin/umi.css": "/admin/umi.0e227a23.css", - "/admin/umi.js": "/admin/umi.f7fae840.js", + "/admin/umi.css": "/admin/umi.c1fd3387.css", + "/admin/umi.js": "/admin/umi.a733a5e0.js", "/admin/390.69ce7cd8.async.js": "/admin/390.69ce7cd8.async.js", - "/admin/p__Auth__Login__index.js": "/admin/p__Auth__Login__index.0c820d73.async.js", - "/admin/p__Auth__Register__index.js": "/admin/p__Auth__Register__index.704a6eeb.async.js", - "/admin/p__Auth__Forget__index.js": "/admin/p__Auth__Forget__index.c6fbdd4f.async.js", - "/admin/p__Welcome.js": "/admin/p__Welcome.aa0b6786.async.js", - "/admin/p__Dashboard__Organization__Member__index.js": "/admin/p__Dashboard__Organization__Member__index.be7e45c6.async.js", - "/admin/p__Dashboard__Organization__Role__index.js": "/admin/p__Dashboard__Organization__Role__index.578b115a.async.js", - "/admin/p__Dashboard__Organization__Group__index.js": "/admin/p__Dashboard__Organization__Group__index.94378d67.async.js", - "/admin/p__Dashboard__Organization__Message__index.js": "/admin/p__Dashboard__Organization__Message__index.802e1fbf.async.js", - "/admin/p__Dashboard__Robot__index.css": "/admin/p__Dashboard__Robot__index.e19cc87a.chunk.css", - "/admin/p__Dashboard__Robot__index.js": "/admin/p__Dashboard__Robot__index.cb185074.async.js", - "/admin/p__Dashboard__Robot__ChatKbFile__index.css": "/admin/p__Dashboard__Robot__ChatKbFile__index.5b6aa789.chunk.css", - "/admin/p__Dashboard__Robot__ChatKbFile__index.js": "/admin/p__Dashboard__Robot__ChatKbFile__index.fc433739.async.js", - "/admin/p__Dashboard__Service__Agent__index.js": "/admin/p__Dashboard__Service__Agent__index.849a7c4d.async.js", - "/admin/p__Dashboard__Service__Workgroup__index.js": "/admin/p__Dashboard__Service__Workgroup__index.c248e59e.async.js", - "/admin/p__Dashboard__Service__Thread__index.js": "/admin/p__Dashboard__Service__Thread__index.7326da37.async.js", - "/admin/p__Dashboard__Service__Message__index.js": "/admin/p__Dashboard__Service__Message__index.e220d0cf.async.js", - "/admin/p__Dashboard__Setting__index.js": "/admin/p__Dashboard__Setting__index.7ba61b65.async.js", + "/admin/p__Auth__Login__index.js": "/admin/p__Auth__Login__index.31c1c8d2.async.js", + "/admin/p__Auth__Register__index.js": "/admin/p__Auth__Register__index.6832e99e.async.js", + "/admin/p__Auth__Forget__index.js": "/admin/p__Auth__Forget__index.af283526.async.js", + "/admin/p__Welcome.js": "/admin/p__Welcome.d0aab899.async.js", + "/admin/p__Dashboard__Team__Member__index.js": "/admin/p__Dashboard__Team__Member__index.1e578fc2.async.js", + "/admin/p__Dashboard__Team__Role__index.js": "/admin/p__Dashboard__Team__Role__index.c463b3da.async.js", + "/admin/p__Dashboard__Team__Group__index.js": "/admin/p__Dashboard__Team__Group__index.58607a11.async.js", + "/admin/p__Dashboard__Team__Message__index.js": "/admin/p__Dashboard__Team__Message__index.6859dfc3.async.js", + "/admin/p__Dashboard__Robot__index.css": "/admin/p__Dashboard__Robot__index.cb670aa5.chunk.css", + "/admin/p__Dashboard__Robot__index.js": "/admin/p__Dashboard__Robot__index.1ee94e26.async.js", + "/admin/p__Dashboard__Service__Agent__index.js": "/admin/p__Dashboard__Service__Agent__index.343541c2.async.js", + "/admin/p__Dashboard__Service__Workgroup__index.js": "/admin/p__Dashboard__Service__Workgroup__index.d12d9f53.async.js", + "/admin/p__Dashboard__Service__Thread__index.js": "/admin/p__Dashboard__Service__Thread__index.7e04a419.async.js", + "/admin/p__Dashboard__Service__Message__index.js": "/admin/p__Dashboard__Service__Message__index.fd11a261.async.js", + "/admin/p__Dashboard__Knowledge__index.js": "/admin/p__Dashboard__Knowledge__index.348cefd6.async.js", + "/admin/p__Dashboard__Setting__index.js": "/admin/p__Dashboard__Setting__index.ab96ae15.async.js", + "/admin/p__Dashboard__Setting__Profile__index.js": "/admin/p__Dashboard__Setting__Profile__index.08c8acd3.async.js", + "/admin/p__Dashboard__Setting__Basic__index.js": "/admin/p__Dashboard__Setting__Basic__index.e6895796.async.js", + "/admin/p__Dashboard__Setting__Qrcode__index.js": "/admin/p__Dashboard__Setting__Qrcode__index.1c44a867.async.js", + "/admin/p__Admin.js": "/admin/p__Admin.d958ecce.async.js", "/admin/p__Other__Chaty__index.css": "/admin/p__Other__Chaty__index.c39cad4f.chunk.css", - "/admin/p__Other__Chaty__index.js": "/admin/p__Other__Chaty__index.c1051ee7.async.js", + "/admin/p__Other__Chaty__index.js": "/admin/p__Other__Chaty__index.a6faab26.async.js", "/admin/p__Other__Agent__index.css": "/admin/p__Other__Agent__index.c39cad4f.chunk.css", - "/admin/p__Other__Agent__index.js": "/admin/p__Other__Agent__index.bc724f9b.async.js", + "/admin/p__Other__Agent__index.js": "/admin/p__Other__Agent__index.eaa9a4c0.async.js", "/admin/p__404.js": "/admin/p__404.8e316632.async.js", "/admin/t__plugin-layout__Layout.css": "/admin/t__plugin-layout__Layout.6cae69f5.chunk.css", - "/admin/t__plugin-layout__Layout.js": "/admin/t__plugin-layout__Layout.49106301.async.js", - "/admin/430.abb706f2.async.js": "/admin/430.abb706f2.async.js", - "/admin/846.f86a8207.async.js": "/admin/846.f86a8207.async.js", - "/admin/905.6762d1ca.async.js": "/admin/905.6762d1ca.async.js", - "/admin/428.49a67bc7.async.js": "/admin/428.49a67bc7.async.js", - "/admin/925.3332309b.async.js": "/admin/925.3332309b.async.js", - "/admin/984.08839846.async.js": "/admin/984.08839846.async.js", - "/admin/559.7c2145e8.async.js": "/admin/559.7c2145e8.async.js", - "/admin/277.8e604d6a.async.js": "/admin/277.8e604d6a.async.js", - "/admin/302.98d565f5.async.js": "/admin/302.98d565f5.async.js", - "/admin/992.7410d540.async.js": "/admin/992.7410d540.async.js", - "/admin/554.f97291aa.async.js": "/admin/554.f97291aa.async.js", + "/admin/t__plugin-layout__Layout.js": "/admin/t__plugin-layout__Layout.bfd40253.async.js", + "/admin/30.d6b9f068.async.js": "/admin/30.d6b9f068.async.js", + "/admin/89.6a88d3ee.async.js": "/admin/89.6a88d3ee.async.js", + "/admin/69.dac29bc7.async.js": "/admin/69.dac29bc7.async.js", + "/admin/297.ac939a2f.async.js": "/admin/297.ac939a2f.async.js", + "/admin/810.fe56442b.async.js": "/admin/810.fe56442b.async.js", + "/admin/96.2d359926.async.js": "/admin/96.2d359926.async.js", + "/admin/857.274c1626.async.js": "/admin/857.274c1626.async.js", + "/admin/905.5935f7c9.async.js": "/admin/905.5935f7c9.async.js", + "/admin/45.697f2fe7.async.js": "/admin/45.697f2fe7.async.js", + "/admin/227.393dcd6f.async.js": "/admin/227.393dcd6f.async.js", + "/admin/403.ee0d25a3.async.js": "/admin/403.ee0d25a3.async.js", + "/admin/182.5880b296.async.js": "/admin/182.5880b296.async.js", + "/admin/676.5adaf018.async.js": "/admin/676.5adaf018.async.js", + "/admin/175.1b12b583.async.js": "/admin/175.1b12b583.async.js", + "/admin/831.704fe47f.async.js": "/admin/831.704fe47f.async.js", + "/admin/559.f35bf79f.async.js": "/admin/559.f35bf79f.async.js", + "/admin/397.58820bd9.async.js": "/admin/397.58820bd9.async.js", + "/admin/736.70a48031.async.js": "/admin/736.70a48031.async.js", + "/admin/652.2816c860.async.js": "/admin/652.2816c860.async.js", + "/admin/418.f6cb51be.async.js": "/admin/418.f6cb51be.async.js", + "/admin/928.0ae01f2e.async.js": "/admin/928.0ae01f2e.async.js", "/admin/assets/favicon.ico": "/admin/assets/favicon.ico", "/admin/favicon.ico": "/admin/favicon.ico", "/admin/icons/icon.ico": "/admin/icons/icon.ico", diff --git a/starter/src/main/resources/templates/admin/index.html b/starter/src/main/resources/templates/admin/index.html index 5b51e17dee..d57a3dce3a 100644 --- a/starter/src/main/resources/templates/admin/index.html +++ b/starter/src/main/resources/templates/admin/index.html @@ -5,11 +5,11 @@ 微语 - - + +
- + \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Admin.d958ecce.async.js b/starter/src/main/resources/templates/admin/p__Admin.d958ecce.async.js new file mode 100644 index 0000000000..548045f15b --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Admin.d958ecce.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[551],{39192:function(P,t,n){n.r(t);var _=n(32147),e=n(77213),d=n(39380),E=n(86745),i=n(4393),l=n(31064),o=n(67294),s=n(85893),M=function(){var a=(0,E.useIntl)();return(0,s.jsx)(d._z,{content:a.formatMessage({id:"pages.admin.subPage.title",defaultMessage:"This page can only be viewed by SuperAdmin"}),children:(0,s.jsx)(i.Z,{children:(0,s.jsxs)(l.Z.Title,{level:2,style:{textAlign:"center"},children:[(0,s.jsx)(_.Z,{}),a.formatMessage({id:"app.title",defaultMessage:"This page can only be viewed by SuperAdmin"}),(0,s.jsx)(e.Z,{twoToneColor:"#eb2f96"})]})})})};t.default=M}}]); diff --git a/starter/src/main/resources/templates/admin/p__Auth__Forget__index.af283526.async.js b/starter/src/main/resources/templates/admin/p__Auth__Forget__index.af283526.async.js new file mode 100644 index 0000000000..e97265bab0 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Auth__Forget__index.af283526.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[915],{10793:function(se,v,s){s.r(v);var A=s(15009),m=s.n(A),T=s(97857),L=s.n(T),b=s(99289),M=s.n(b),R=s(5574),U=s.n(R),D=s(98661),F=s(61747),I=s(87547),P=s(94149),y=s(24454),W=s(10915),K=s(68262),f=s(5966),Z=s(16434),j=s(24556),t=s(86745),h=s(9361),k=s(38925),w=s(28459),S=s(31418),O=s(67294),C=s(39825),u=s(80049),z=s(85615),e=s(85893),N=h.Z.defaultAlgorithm,$=h.Z.darkAlgorithm,G=function(){var d=(0,j.l)(function(g){var c=g.token;return{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:c.borderRadius,":hover":{backgroundColor:c.colorBgTextHover}}});return(0,e.jsx)("div",{className:d,"data-lang":!0,children:t.SelectLang&&(0,e.jsx)(t.SelectLang,{})})},x=function(d){var g=d.content;return(0,e.jsx)(k.Z,{style:{marginBottom:24},message:g,type:"error",showIcon:!0})},H=function(){var d=h.Z.useToken(),g=d.token,c=(0,C.Z)(),Y=c.isDarkMode,J=(0,O.useState)(!1),B=U()(J,2),Q=B[0],X=B[1],q=(0,t.getLocale)();console.log("register page locale:",q);var o=(0,t.useIntl)(),ae=(0,j.l)(function(){return{display:"flex",flexDirection:"column",height:"100vh",overflow:"auto",backgroundImage:"url('/admin/assets/images/bg-wide.png')",backgroundSize:"100% 100%"}});(0,O.useEffect)(function(){var i=window.location.href;(i.indexOf("localhost")!==-1||i.indexOf("127.0.0.1")!==-1||i.indexOf("weiyu")!==-1||i.indexOf("kefux")!==-1||i.indexOf("bytedesk")!==-1)&&X(!0)},[]);var ee=function(){var i=M()(m()().mark(function _(r){var n,l;return m()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,console.log("values:",r),a.next=4,(0,D.z2)(L()({},r));case 4:if(n=a.sent,console.log("registerResult:",n),n.code!==200){a.next=11;break}return u.yw.success(n.message),a.abrupt("return");case 11:u.yw.error(n.message);case 12:console.log(n),a.next=20;break;case 15:a.prev=15,a.t0=a.catch(0),l=o.formatMessage({id:"pages.login.failure",defaultMessage:"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"}),console.log(a.t0),u.yw.error(l);case 20:case"end":return a.stop()}},_,null,[[0,15]])}));return function(r){return i.apply(this,arguments)}}();return(0,e.jsxs)(W._Y,{hashed:!1,dark:Y,children:[(0,e.jsx)(G,{}),(0,e.jsx)("div",{style:{backgroundColor:g.colorBgContainer,textAlign:"center",height:"100vh",backgroundImage:"url('/admin/assets/images/bg-wide.png')"},children:Q?(0,e.jsxs)(K.U,{contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(0,e.jsx)("img",{alt:"logo",src:"/admin/icons/logo.png"}),title:(0,e.jsx)(t.FormattedMessage,{id:"app.title"}),subTitle:o.formatMessage({id:"pages.login.registerAccount"}),initialValues:{autoLogin:!0},submitter:{searchConfig:{submitText:o.formatMessage({id:"pages.login.register"})}},onFinish:function(){var i=M()(m()().mark(function _(r){var n;return m()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return console.log("login values:",r),n={email:r.username,password:r.password,mobile:r.mobile,code:r.code},console.log("register info:",n),p.next=5,ee(n);case 5:case"end":return p.stop()}},_)}));return function(_){return i.apply(this,arguments)}}(),children:[status==="error"&&(0,e.jsx)(x,{content:o.formatMessage({id:"pages.login.accountLogin.errorMessage",defaultMessage:"\u8D26\u6237\u6216\u5BC6\u7801\u9519\u8BEF"})}),(0,e.jsx)(f.Z,{name:"username",fieldProps:{size:"large",prefix:(0,e.jsx)(I.Z,{})},placeholder:o.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"\u90AE\u7BB1"}),rules:[{required:!0,message:(0,e.jsx)(t.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"\u8BF7\u8F93\u5165\u90AE\u7BB1!"})}]}),(0,e.jsx)(f.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,e.jsx)(P.Z,{})},placeholder:o.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"\u5BC6\u7801"}),rules:[{required:!0,message:(0,e.jsx)(t.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"})}]}),(0,e.jsx)(f.Z,{fieldProps:{size:"large",prefix:(0,e.jsx)(y.Z,{})},name:"mobile",placeholder:o.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"\u624B\u673A\u53F7"}),rules:[{required:!0,message:(0,e.jsx)(t.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01"})},{pattern:/^1\d{10}$/,message:(0,e.jsx)(t.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF\uFF01"})}]}),(0,e.jsx)(Z.Z,{fieldProps:{size:"large",prefix:(0,e.jsx)(P.Z,{})},captchaProps:{size:"large"},placeholder:o.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}),captchaTextRender:function(_,r){return _?"".concat(r," ").concat(o.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})):o.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})},phoneName:"mobile",name:"code",rules:[{required:!0,message:(0,e.jsx)(t.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],onGetCaptcha:function(){var i=M()(m()().mark(function _(r){var n,l;return m()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(r&&r.length===11)){a.next=11;break}return n={mobile:r,type:z.o$},a.next=4,(0,D.Y7)(n);case 4:if(l=a.sent,l.code===200){a.next=8;break}return u.yw.error(l.message),a.abrupt("return");case 8:u.yw.success(l.message),a.next=12;break;case 11:u.yw.error("\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF");case 12:case"end":return a.stop()}},_)}));return function(_){return i.apply(this,arguments)}}()}),status==="error"&&(0,e.jsx)(x,{content:"\u9A8C\u8BC1\u7801\u9519\u8BEF"}),(0,e.jsx)("div",{style:{marginBottom:64},children:(0,e.jsx)("div",{style:{float:"right"},children:(0,e.jsx)(t.Link,{to:"/auth/login",children:(0,e.jsx)(t.FormattedMessage,{id:"pages.login.submit",defaultMessage:"\u767B\u5F55 "})})})})]}):(0,e.jsx)("div",{style:{textAlign:"center",margin:"0 auto"},children:"\u4E0D\u5F00\u653E\u6CE8\u518C"})}),(0,e.jsx)(F.$_,{})]})},V=function(){var d=(0,C.Z)(),g=d.isDarkMode;return(0,e.jsx)(w.ZP,{theme:{algorithm:g?$:N},children:(0,e.jsxs)(S.Z,{children:[(0,e.jsx)(u.ZP,{}),(0,e.jsx)(H,{})]})})};v.default=V}}]); diff --git a/starter/src/main/resources/templates/admin/p__Auth__Forget__index.c6fbdd4f.async.js b/starter/src/main/resources/templates/admin/p__Auth__Forget__index.c6fbdd4f.async.js deleted file mode 100644 index ad53f555d1..0000000000 --- a/starter/src/main/resources/templates/admin/p__Auth__Forget__index.c6fbdd4f.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[915],{94149:function(Q,j,e){e.d(j,{Z:function(){return C}});var s=e(1413),a=e(67294),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},M=E,T=e(91146),p=function(o,D){return a.createElement(T.Z,(0,s.Z)((0,s.Z)({},o),{},{ref:D,icon:M}))},h=a.forwardRef(p),C=h},24454:function(Q,j,e){e.d(j,{Z:function(){return C}});var s=e(1413),a=e(67294),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},M=E,T=e(91146),p=function(o,D){return a.createElement(T.Z,(0,s.Z)((0,s.Z)({},o),{},{ref:D,icon:M}))},h=a.forwardRef(p),C=h},16434:function(Q,j,e){var s=e(1413),a=e(74165),E=e(15861),M=e(91),T=e(97685),p=e(8232),h=e(96365),C=e(14726),d=e(67294),o=e(90789),D=e(85893),N=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],l=d.forwardRef(function(u,c){var v=p.Z.useFormInstance(),r=(0,d.useState)(u.countDown||60),i=(0,T.Z)(r,2),t=i[0],O=i[1],x=(0,d.useState)(!1),W=(0,T.Z)(x,2),U=W[0],n=W[1],L=(0,d.useState)(),f=(0,T.Z)(L,2),z=f[0],g=f[1],J=u.rules,w=u.name,V=u.phoneName,K=u.fieldProps,G=u.onTiming,S=u.captchaTextRender,X=S===void 0?function(P,b){return P?"".concat(b," \u79D2\u540E\u91CD\u65B0\u83B7\u53D6"):"\u83B7\u53D6\u9A8C\u8BC1\u7801"}:S,q=u.captchaProps,H=(0,M.Z)(u,N),$=function(){var P=(0,E.Z)((0,a.Z)().mark(function b(I){return(0,a.Z)().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.prev=0,g(!0),_.next=4,H.onGetCaptcha(I);case 4:g(!1),n(!0),_.next=13;break;case 8:_.prev=8,_.t0=_.catch(0),n(!1),g(!1),console.log(_.t0);case 13:case"end":return _.stop()}},b,null,[[0,8]])}));return function(I){return P.apply(this,arguments)}}();return(0,d.useImperativeHandle)(c,function(){return{startTiming:function(){return n(!0)},endTiming:function(){return n(!1)}}}),(0,d.useEffect)(function(){var P=0,b=u.countDown;return U&&(P=window.setInterval(function(){O(function(I){return I<=1?(n(!1),clearInterval(P),b||60):I-1})},1e3)),function(){return clearInterval(P)}},[U]),(0,d.useEffect)(function(){G&&G(t)},[t,G]),(0,D.jsxs)("div",{style:(0,s.Z)((0,s.Z)({},K==null?void 0:K.style),{},{display:"flex",alignItems:"center"}),ref:c,children:[(0,D.jsx)(h.Z,(0,s.Z)((0,s.Z)({},K),{},{style:(0,s.Z)({flex:1,transition:"width .3s",marginRight:8},K==null?void 0:K.style)})),(0,D.jsx)(C.ZP,(0,s.Z)((0,s.Z)({style:{display:"block"},disabled:U,loading:z},q),{},{onClick:(0,E.Z)((0,a.Z)().mark(function P(){var b;return(0,a.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(m.prev=0,!V){m.next=9;break}return m.next=4,v.validateFields([V].flat(1));case 4:return b=v.getFieldValue([V].flat(1)),m.next=7,$(b);case 7:m.next=11;break;case 9:return m.next=11,$("");case 11:m.next=16;break;case 13:m.prev=13,m.t0=m.catch(0),console.log(m.t0);case 16:case"end":return m.stop()}},P,null,[[0,13]])})),children:X(U,t)}))]})}),A=(0,o.G)(l);j.Z=A},5966:function(Q,j,e){var s=e(97685),a=e(1413),E=e(91),M=e(21770),T=e(8232),p=e(55241),h=e(97435),C=e(67294),d=e(21614),o=e(85893),D=["fieldProps","proFieldProps"],N=["fieldProps","proFieldProps"],l="text",A=function(i){var t=i.fieldProps,O=i.proFieldProps,x=(0,E.Z)(i,D);return(0,o.jsx)(d.Z,(0,a.Z)({valueType:l,fieldProps:t,filedConfig:{valueType:l},proFieldProps:O},x))},u=function(i){var t=(0,M.Z)(i.open||!1,{value:i.open,onChange:i.onOpenChange}),O=(0,s.Z)(t,2),x=O[0],W=O[1];return(0,o.jsx)(T.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(n){var L,f=n.getFieldValue(i.name||[]);return(0,o.jsx)(p.Z,(0,a.Z)((0,a.Z)({getPopupContainer:function(g){return g&&g.parentNode?g.parentNode:g},onOpenChange:W,content:(0,o.jsxs)("div",{style:{padding:"4px 0"},children:[(L=i.statusRender)===null||L===void 0?void 0:L.call(i,f),i.strengthText?(0,o.jsx)("div",{style:{marginTop:10},children:(0,o.jsx)("span",{children:i.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},i.popoverProps),{},{open:x,children:i.children}))}})},c=function(i){var t=i.fieldProps,O=i.proFieldProps,x=(0,E.Z)(i,N),W=(0,C.useState)(!1),U=(0,s.Z)(W,2),n=U[0],L=U[1];return t!=null&&t.statusRender&&x.name?(0,o.jsx)(u,{name:x.name,statusRender:t==null?void 0:t.statusRender,popoverProps:t==null?void 0:t.popoverProps,strengthText:t==null?void 0:t.strengthText,open:n,onOpenChange:L,children:(0,o.jsx)("div",{children:(0,o.jsx)(d.Z,(0,a.Z)({valueType:"password",fieldProps:(0,a.Z)((0,a.Z)({},(0,h.Z)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(z){var g;t==null||(g=t.onBlur)===null||g===void 0||g.call(t,z),L(!1)},onClick:function(z){var g;t==null||(g=t.onClick)===null||g===void 0||g.call(t,z),L(!0)}}),proFieldProps:O,filedConfig:{valueType:l}},x))})}):(0,o.jsx)(d.Z,(0,a.Z)({valueType:"password",fieldProps:t,proFieldProps:O,filedConfig:{valueType:l}},x))},v=A;v.Password=c,v.displayName="ProFormComponent",j.Z=v},68262:function(Q,j,e){e.d(j,{U:function(){return u}});var s=e(1413),a=e(91),E=e(10915),M=e(28459),T=e(93967),p=e.n(T),h=e(67294),C=e(34994),d=e(4942),o=e(98082),D=function(v){return(0,d.Z)((0,d.Z)({},v.componentCls,{"&-container":{display:"flex",flex:"1",flexDirection:"column",height:"100%",paddingInline:32,paddingBlock:24,overflow:"auto",background:"inherit"},"&-top":{textAlign:"center"},"&-header":{display:"flex",alignItems:"center",justifyContent:"center",height:"44px",lineHeight:"44px",a:{textDecoration:"none"}},"&-title":{position:"relative",insetBlockStart:"2px",color:"@heading-color",fontWeight:"600",fontSize:"33px"},"&-logo":{width:"44px",height:"44px",marginInlineEnd:"16px",verticalAlign:"top",img:{width:"100%"}},"&-desc":{marginBlockStart:"12px",marginBlockEnd:"40px",color:v.colorTextSecondary,fontSize:v.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),"@media (min-width: @screen-md-min)",(0,d.Z)({},"".concat(v.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function N(c){return(0,o.Xj)("LoginForm",function(v){var r=(0,s.Z)((0,s.Z)({},v),{},{componentCls:".".concat(c)});return[D(r)]})}var l=e(85893),A=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function u(c){var v,r=c.logo,i=c.message,t=c.contentStyle,O=c.title,x=c.subTitle,W=c.actions,U=c.children,n=c.containerStyle,L=c.otherStyle,f=(0,a.Z)(c,A),z=(0,E.YB)(),g=f.submitter===!1?!1:(0,s.Z)((0,s.Z)({searchConfig:{submitText:z.getMessage("loginForm.submitText","\u767B\u5F55")}},f.submitter),{},{submitButtonProps:(0,s.Z)({size:"large",style:{width:"100%"}},(v=f.submitter)===null||v===void 0?void 0:v.submitButtonProps),render:function(H,$){var P,b=$.pop();if(typeof(f==null||(P=f.submitter)===null||P===void 0?void 0:P.render)=="function"){var I,m;return f==null||(I=f.submitter)===null||I===void 0||(m=I.render)===null||m===void 0?void 0:m.call(I,H,$)}return b}}),J=(0,h.useContext)(M.ZP.ConfigContext),w=J.getPrefixCls("pro-form-login"),V=N(w),K=V.wrapSSR,G=V.hashId,S=function(H){return"".concat(w,"-").concat(H," ").concat(G)},X=(0,h.useMemo)(function(){return r?typeof r=="string"?(0,l.jsx)("img",{src:r}):r:null},[r]);return K((0,l.jsxs)("div",{className:p()(S("container"),G),style:n,children:[(0,l.jsxs)("div",{className:"".concat(S("top")," ").concat(G).trim(),children:[O||X?(0,l.jsxs)("div",{className:"".concat(S("header")),children:[X?(0,l.jsx)("span",{className:S("logo"),children:X}):null,O?(0,l.jsx)("span",{className:S("title"),children:O}):null]}):null,x?(0,l.jsx)("div",{className:S("desc"),children:x}):null]}),(0,l.jsxs)("div",{className:S("main"),style:(0,s.Z)({width:328},t),children:[(0,l.jsxs)(C.A,(0,s.Z)((0,s.Z)({isKeyPressSubmit:!0},f),{},{submitter:g,children:[i,U]})),W?(0,l.jsx)("div",{className:S("main-other"),style:L,children:W}):null]})]}))}},90613:function(Q,j,e){var s=e(5574),a=e.n(s),E=e(67294),M=function(p,h){var C=(0,E.useState)(function(){try{var l=localStorage.getItem(p);return l?JSON.parse(l):(localStorage.setItem(p,JSON.stringify(h)),h)}catch(A){return localStorage.setItem(p,JSON.stringify(h)),h}}),d=a()(C,2),o=d[0],D=d[1],N=function(A){var u;if(typeof A=="function"){var c=A;u=c(o)}else u=A;localStorage.setItem(p,JSON.stringify(u)),D(u)};return[o,N]};j.Z=M},10793:function(Q,j,e){e.r(j);var s=e(15009),a=e.n(s),E=e(97857),M=e.n(E),T=e(99289),p=e.n(T),h=e(5574),C=e.n(h),d=e(27346),o=e(60109),D=e(87547),N=e(94149),l=e(24454),A=e(68262),u=e(5966),c=e(16434),v=e(45660),r=e(86745),i=e(38925),t=e(45360),O=e(67294),x=e(73935),W=e(67610),U=e(90613),n=e(85893),L=function(){var J=(0,v.l)(function(w){var V=w.token;return{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:V.borderRadius,":hover":{backgroundColor:V.colorBgTextHover}}});return(0,n.jsx)("div",{className:J,"data-lang":!0,children:r.SelectLang&&(0,n.jsx)(r.SelectLang,{})})},f=function(J){var w=J.content;return(0,n.jsx)(i.Z,{style:{marginBottom:24},message:w,type:"error",showIcon:!0})},z=function(){var J=(0,U.Z)("ACCESS_TOKEN",""),w=C()(J,2),V=w[0],K=w[1],G=(0,O.useState)("account"),S=C()(G,2),X=S[0],q=S[1],H=(0,r.useModel)("@@initialState"),$=H.initialState,P=H.loading,b=H.refresh,I=H.setInitialState,m=(0,v.l)(function(){return{display:"flex",flexDirection:"column",height:"100vh",overflow:"auto",backgroundImage:"url('/admin/assets/images/bg-wide.png')",backgroundSize:"100% 100%"}}),_=(0,r.useIntl)(),te=function(){var Y=p()(a()().mark(function R(){var F,B;return a()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,$==null||(F=$.fetchUserInfo)===null||F===void 0?void 0:F.call($);case 2:B=Z.sent,B&&(0,x.flushSync)(function(){I(function(ee){return M()(M()({},ee),{},{userInfo:B})})});case 4:case"end":return Z.stop()}},R)}));return function(){return Y.apply(this,arguments)}}(),ae=function(){var Y=p()(a()().mark(function R(F){var B,k,Z,ee;return a()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.prev=0,y.next=3,(0,d.x4)(M()({},F));case 3:if(B=y.sent,console.log("LoginResult:",B),!B.data.access_token){y.next=14;break}return K(B.data.access_token),k=_.formatMessage({id:"pages.login.success",defaultMessage:"\u767B\u5F55\u6210\u529F\uFF01"}),t.ZP.success(k),y.next=11,te();case 11:return Z=new URL(window.location.href).searchParams,r.history.push(Z.get("redirect")||"/"),y.abrupt("return");case 14:console.log(B),y.next=22;break;case 17:y.prev=17,y.t0=y.catch(0),ee=_.formatMessage({id:"pages.login.failure",defaultMessage:"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"}),console.log(y.t0),t.ZP.error(ee);case 22:case"end":return y.stop()}},R,null,[[0,17]])}));return function(F){return Y.apply(this,arguments)}}(),ne="account";return(0,n.jsxs)("div",{className:m,children:[(0,n.jsx)(r.Helmet,{children:(0,n.jsxs)("title",{children:[_.formatMessage({id:"menu.login",defaultMessage:"\u767B\u5F55\u9875"}),"- ",W.Z.title]})}),(0,n.jsx)(L,{}),(0,n.jsx)("div",{style:{flex:"1",padding:"32px 0"},children:(0,n.jsxs)(A.U,{contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(0,n.jsx)("img",{alt:"logo",src:"/images/logo.png"}),title:"\u5FAE\u8BED",subTitle:_.formatMessage({id:"pages.login.forgotPassword"}),initialValues:{autoLogin:!0},actions:[],onFinish:function(){var Y=p()(a()().mark(function R(F){var B;return a()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return B={username:F.username,password:F.password},console.log("login info:",B),Z.next=4,ae(B);case 4:case"end":return Z.stop()}},R)}));return function(R){return Y.apply(this,arguments)}}(),children:[status==="error"&&ne==="account"&&(0,n.jsx)(f,{content:_.formatMessage({id:"pages.login.accountLogin.errorMessage",defaultMessage:"\u8D26\u6237\u6216\u5BC6\u7801\u9519\u8BEF(admin/ant.design)"})}),X==="account"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{name:"username",fieldProps:{size:"large",prefix:(0,n.jsx)(D.Z,{})},placeholder:_.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"\u7528\u6237\u540D"}),rules:[{required:!0,message:(0,n.jsx)(r.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"\u8BF7\u8F93\u5165\u7528\u6237\u540D!"})}]}),(0,n.jsx)(u.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,n.jsx)(N.Z,{})},placeholder:_.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"\u5BC6\u7801"}),rules:[{required:!0,message:(0,n.jsx)(r.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"})}]})]}),status==="error"&&ne==="mobile"&&(0,n.jsx)(f,{content:"\u9A8C\u8BC1\u7801\u9519\u8BEF"}),X==="mobile"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{fieldProps:{size:"large",prefix:(0,n.jsx)(l.Z,{})},name:"mobile",placeholder:_.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"\u624B\u673A\u53F7"}),rules:[{required:!0,message:(0,n.jsx)(r.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01"})},{pattern:/^1\d{10}$/,message:(0,n.jsx)(r.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF\uFF01"})}]}),(0,n.jsx)(c.Z,{fieldProps:{size:"large",prefix:(0,n.jsx)(N.Z,{})},captchaProps:{size:"large"},placeholder:_.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}),captchaTextRender:function(R,F){return R?"".concat(F," ").concat(_.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})):_.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})},name:"captcha",rules:[{required:!0,message:(0,n.jsx)(r.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],onGetCaptcha:function(){var Y=p()(a()().mark(function R(F){return a()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:t.ZP.success("\u83B7\u53D6\u9A8C\u8BC1\u7801\u6210\u529F");case 1:case"end":return k.stop()}},R)}));return function(R){return Y.apply(this,arguments)}}()})]}),(0,n.jsx)("div",{style:{marginBottom:64},children:(0,n.jsxs)("div",{style:{float:"right"},children:[(0,n.jsx)(r.Link,{to:"/auth/login",children:(0,n.jsx)(r.FormattedMessage,{id:"pages.login.submit",defaultMessage:"\u767B\u5F55 "})}),(0,n.jsx)(r.Link,{to:"/auth/register",children:(0,n.jsx)(r.FormattedMessage,{id:"pages.login.registerAccount",defaultMessage:"\u6CE8\u518C"})})]})})]})}),(0,n.jsx)(o.$_,{})]})};j.default=z}}]); diff --git a/starter/src/main/resources/templates/admin/p__Auth__Login__index.0c820d73.async.js b/starter/src/main/resources/templates/admin/p__Auth__Login__index.0c820d73.async.js deleted file mode 100644 index 6c13db4784..0000000000 --- a/starter/src/main/resources/templates/admin/p__Auth__Login__index.0c820d73.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[368],{90613:function(W,y,a){"use strict";var B=a(5574),d=a.n(B),T=a(67294),M=function(f,S){var x=(0,T.useState)(function(){try{var F=localStorage.getItem(f);return F?JSON.parse(F):(localStorage.setItem(f,JSON.stringify(S)),S)}catch(L){return localStorage.setItem(f,JSON.stringify(S)),S}}),j=d()(x,2),b=j[0],E=j[1],C=function(L){var h;if(typeof L=="function"){var P=L;h=P(b)}else h=L;localStorage.setItem(f,JSON.stringify(h)),E(h)};return[b,C]};y.Z=M},95627:function(W,y,a){"use strict";a.r(y),a.d(y,{default:function(){return se}});var B=a(15009),d=a.n(B),T=a(97857),M=a.n(T),O=a(99289),f=a.n(O),S=a(5574),x=a.n(S),j=a(27346),b=a(60109),E=a(87547),C=a(94149),F=a(24454),L=a(68262),h=a(5966),P=a(16434),J=a(63434),V=a(45660),g=a(86745),G=a(38925),R=a(31418),H=a(48096),Y=a(67294),k=a(73935),Q=a(67610),X=a(90613),Z=a(15832),q=Z.createLogger({level:"info",format:Z.format.json(),transports:[new Z.transports.Console]}),_=q,e=a(85893),U=function(N){var p=N.content;return(0,e.jsx)(G.Z,{style:{marginBottom:24},message:p,type:"error",showIcon:!0})},ee=function(){var N=R.Z.useApp(),p=N.message,re=(0,X.Z)("ACCESS_TOKEN",""),$=x()(re,2),ge=$[0],z=$[1],ne=(0,Y.useState)("account"),w=x()(ne,2),v=w[0],te=w[1],A=(0,g.useModel)("@@initialState"),I=A.initialState,ce=A.loading,de=A.refresh,oe=A.setInitialState,le=(0,V.l)(function(){return{display:"flex",flexDirection:"column",height:"100vh",overflow:"auto",backgroundImage:"url('/admin/assets/images/bg-wide.png')",backgroundSize:"100% 100%"}}),l=(0,g.useIntl)(),K=function(){var m=f()(d()().mark(function t(){var s,n;return d()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,I==null||(s=I.fetchUserInfo)===null||s===void 0?void 0:s.call(I);case 2:n=c.sent,n&&(0,k.flushSync)(function(){oe(function(r){return M()(M()({},r),{},{userInfo:n})})});case 4:case"end":return c.stop()}},t)}));return function(){return m.apply(this,arguments)}}(),ie=function(){var m=f()(d()().mark(function t(s){var n,o,c;return d()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,console.log("handleSubmit values: ",s),i.next=4,(0,j.x4)(M()({},s));case 4:if(n=i.sent,console.log("LoginResult:",n),!n.data.access_token){i.next=14;break}return z(n.data.access_token),o=l.formatMessage({id:"pages.login.success",defaultMessage:"\u767B\u5F55\u6210\u529F\uFF01"}),p.success(o),i.next=12,K();case 12:return g.history.push("/"),i.abrupt("return");case 14:console.log(n),i.next=22;break;case 17:i.prev=17,i.t0=i.catch(0),c=l.formatMessage({id:"pages.login.failure",defaultMessage:"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"}),console.log(i.t0),p.error(c);case 22:case"end":return i.stop()}},t,null,[[0,17]])}));return function(s){return m.apply(this,arguments)}}(),ue=function(){var m=f()(d()().mark(function t(s){var n,o,c,r;return d()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,console.log("handleMobileSubmit values: ",s),u.next=4,(0,j.N9)(M()({},s));case 4:if(n=u.sent,console.log("LoginMobileResult:",n),!n.data.access_token){u.next=15;break}return z(n.data.access_token),o=l.formatMessage({id:"pages.login.success",defaultMessage:"\u767B\u5F55\u6210\u529F\uFF01"}),p.success(o),u.next=12,K();case 12:return c=new URL(window.location.href).searchParams,g.history.push(c.get("redirect")||"/"),u.abrupt("return");case 15:console.log(n),u.next=23;break;case 18:u.prev=18,u.t0=u.catch(0),r=l.formatMessage({id:v==="account"?"pages.login.failure":"pages.login.failureCode",defaultMessage:v==="account"?"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7528\u6237\u540D\u5BC6\u7801\uFF01":"\u9A8C\u8BC1\u7801\u9519\u8BEF"}),console.log(u.t0),p.error(r);case 23:case"end":return u.stop()}},t,null,[[0,18]])}));return function(s){return m.apply(this,arguments)}}();return(0,e.jsxs)("div",{className:le,children:[(0,e.jsx)(g.Helmet,{children:(0,e.jsxs)("title",{children:[l.formatMessage({id:"menu.login",defaultMessage:"\u767B\u5F55\u9875"}),"- ",Q.Z.title]})}),(0,e.jsx)("div",{style:{flex:"1",padding:"32px 0"},children:(0,e.jsxs)(L.U,{contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(0,e.jsx)("img",{alt:"logo",src:"/admin/icons/logo.png"}),title:"\u5FAE\u8BED",subTitle:l.formatMessage({id:"pages.layouts.userLayout.title"}),initialValues:{autoLogin:!0},actions:[],onFinish:function(){var m=f()(d()().mark(function t(s){var n,o;return d()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(v!=="account"){r.next=7;break}return n={username:s.username,password:s.password},console.log("login info:",n),r.next=5,ie(n);case 5:r.next=11;break;case 7:return o={mobile:s.mobile,code:s.code},console.log("login mobile info:",o),r.next=11,ue(o);case 11:case"end":return r.stop()}},t)}));return function(t){return m.apply(this,arguments)}}(),children:[(0,e.jsx)(H.Z,{activeKey:v,onChange:te,centered:!0,items:[{key:"account",label:l.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"\u8D26\u6237\u5BC6\u7801\u767B\u5F55"})},{key:"mobile",label:l.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"\u624B\u673A\u53F7\u767B\u5F55"})}]}),status==="error"&&v==="account"&&(0,e.jsx)(U,{content:l.formatMessage({id:"pages.login.accountLogin.errorMessage",defaultMessage:"\u8D26\u6237\u6216\u5BC6\u7801\u9519\u8BEF"})}),v==="account"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.Z,{name:"username",fieldProps:{size:"large",prefix:(0,e.jsx)(E.Z,{})},placeholder:l.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"\u7528\u6237\u540D"}),rules:[{required:!0,message:(0,e.jsx)(g.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"\u8BF7\u8F93\u5165\u7528\u6237\u540D!"})}]}),(0,e.jsx)(h.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,e.jsx)(C.Z,{})},placeholder:l.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"\u5BC6\u7801"}),rules:[{required:!0,message:(0,e.jsx)(g.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"})}]})]}),status==="error"&&v==="mobile"&&(0,e.jsx)(U,{content:"\u9A8C\u8BC1\u7801\u9519\u8BEF"}),v==="mobile"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.Z,{fieldProps:{size:"large",prefix:(0,e.jsx)(F.Z,{})},name:"mobile",placeholder:l.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"\u624B\u673A\u53F7"}),rules:[{required:!0,message:(0,e.jsx)(g.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01"})},{pattern:/^1\d{10}$/,message:(0,e.jsx)(g.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF\uFF01"})}]}),(0,e.jsx)(P.Z,{fieldProps:{size:"large",prefix:(0,e.jsx)(C.Z,{})},captchaProps:{size:"large"},placeholder:l.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}),captchaTextRender:function(t,s){return t?"".concat(s," ").concat(l.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})):l.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})},phoneName:"mobile",name:"code",rules:[{required:!0,message:(0,e.jsx)(g.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],onGetCaptcha:function(){var m=f()(d()().mark(function t(s){var n,o;return d()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(console.log("mobile:",s),!(s&&s.length===11)){r.next=13;break}return n={mobile:s},r.next=5,(0,j.Y7)(n);case 5:if(o=r.sent,_.debug("sendMobileCode",o),o.code===200){r.next=10;break}return p.error(o.message),r.abrupt("return");case 10:p.success(o.message),r.next=14;break;case 13:p.error("\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF");case 14:case"end":return r.stop()}},t)}));return function(t){return m.apply(this,arguments)}}()})]}),(0,e.jsxs)("div",{style:{marginBottom:24},children:[(0,e.jsx)(J.Z,{noStyle:!0,name:"autoLogin",children:(0,e.jsx)(g.FormattedMessage,{id:"pages.login.rememberMe",defaultMessage:"\u81EA\u52A8\u767B\u5F55"})}),(0,e.jsx)("div",{style:{float:"right"},children:(0,e.jsx)(g.Link,{to:"/auth/register",children:(0,e.jsx)(g.FormattedMessage,{id:"pages.login.registerAccount",defaultMessage:"\u6CE8\u518C "})})})]})]})}),(0,e.jsx)(b.$_,{})]})},ae=function(){return(0,e.jsx)(R.Z,{children:(0,e.jsx)(ee,{})})},se=ae},52361:function(){},94616:function(){},69862:function(){},40964:function(){},85811:function(){},50372:function(){},87886:function(){},62828:function(){}}]); diff --git a/starter/src/main/resources/templates/admin/p__Auth__Login__index.31c1c8d2.async.js b/starter/src/main/resources/templates/admin/p__Auth__Login__index.31c1c8d2.async.js new file mode 100644 index 0000000000..28569792e1 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Auth__Login__index.31c1c8d2.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[368],{19345:function(D,F,a){a.r(F),a.d(F,{default:function(){return ve}});var A=a(15009),o=a.n(A),L=a(97857),p=a.n(L),T=a(99289),M=a.n(T),S=a(5574),x=a.n(S),U=a(98661),N=a(10915),$=a(68262),G=a(24556),r=a(86745),I=a(9361),H=a(48096),J=a(28459),V=a(31418),B=a(67294),Y=a(73935),Q=a(60247),u=a(80049),X=a(63998),b=a(39825),q=a(99702),_=a(87547),z=a(94149),R=a(5966),e=a(85893),ee=function(i){var g=i.loginType,c=I.Z.useToken(),E=c.token,h=(0,r.useIntl)();return(0,e.jsx)(e.Fragment,{children:g==="account"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(R.Z,{name:"username",fieldProps:{size:"large",prefix:(0,e.jsx)(_.Z,{})},placeholder:h.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"\u90AE\u7BB1"}),rules:[{required:!0,message:(0,e.jsx)(r.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"\u8BF7\u8F93\u5165\u90AE\u7BB1!"})}]}),(0,e.jsx)(R.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,e.jsx)(z.Z,{})},placeholder:h.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"\u5BC6\u7801"}),rules:[{required:!0,message:(0,e.jsx)(r.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"})}]})]})})},ae=ee,se=a(85615),ne=a(24454),re=a(16434),k=a(45360),te=a(38925),oe=function(i){var g=i.loginType,c=(0,r.useIntl)();return(0,e.jsx)(e.Fragment,{children:g==="mobile"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(R.Z,{fieldProps:{size:"large",prefix:(0,e.jsx)(ne.Z,{})},name:"mobile",placeholder:c.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"\u624B\u673A\u53F7"}),rules:[{required:!0,message:(0,e.jsx)(r.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01"})},{pattern:/^1\d{10}$/,message:(0,e.jsx)(r.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF\uFF01"})}]}),(0,e.jsx)(re.Z,{fieldProps:{size:"large",prefix:(0,e.jsx)(z.Z,{})},captchaProps:{size:"large"},placeholder:c.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}),captchaTextRender:function(h,v){return h?"".concat(v," ").concat(c.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})):c.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})},phoneName:"mobile",name:"code",rules:[{required:!0,message:(0,e.jsx)(r.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],onGetCaptcha:function(){var E=M()(o()().mark(function h(v){var P,j;return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(console.log("mobile:",v),!(v&&v.length===11)){f.next=12;break}return P={mobile:v,type:se.yC},f.next=5,(0,U.Y7)(P);case 5:if(j=f.sent,j.code===200){f.next=9;break}return k.ZP.error(j.message),f.abrupt("return");case 9:k.ZP.success(j.message),f.next=13;break;case 12:k.ZP.error("\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF");case 13:case"end":return f.stop()}},h)}));return function(h){return E.apply(this,arguments)}}()}),(0,e.jsx)(te.Z,{message:(0,e.jsx)(r.FormattedMessage,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},ie=oe,le=a(10397),ue=function(i){var g=i.loginType;return(0,e.jsx)(e.Fragment,{children:g==="scan"&&(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(le.Z,{style:{margin:"auto"},value:"login"})})})},de=ue,ge=I.Z.defaultAlgorithm,ce=I.Z.darkAlgorithm,fe=function(){var i=(0,G.l)(function(g){var c=g.token;return{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:c.borderRadius,":hover":{backgroundColor:c.colorBgTextHover}}});return(0,e.jsx)("div",{className:i,"data-lang":!0,children:r.SelectLang&&(0,e.jsx)(r.SelectLang,{})})},me=function(){var i=(0,r.useIntl)(),g=I.Z.useToken(),c=g.token,E=(0,b.Z)(),h=E.isDarkMode,v=(0,X.t)(function(t){return t.setAccessToken}),P=(0,B.useState)("account"),j=x()(P,2),y=j[0],f=j[1],O=(0,r.useModel)("@@initialState"),Se=O.initialState,Ae=O.loading,Le=O.refresh,pe=O.setInitialState,Me=(0,B.useState)(!1),W=x()(Me,2),ye=W[0],Te=W[1],w=(0,Q.L)(function(t){return t.setUserInfo});(0,B.useEffect)(function(){var t=window.location.href;(t.indexOf("localhost")!==-1||t.indexOf("127.0.0.1")!==-1||t.indexOf("weiyu")!==-1||t.indexOf("kefux")!==-1||t.indexOf("bytedesk")!==-1)&&Te(!0)},[]);var xe=[{key:"account",label:i.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"\u8D26\u6237\u5BC6\u7801\u767B\u5F55"}),children:(0,e.jsx)(ae,{loginType:y})},{key:"mobile",label:i.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"\u624B\u673A\u53F7\u767B\u5F55"}),children:(0,e.jsx)(ie,{loginType:y})},{key:"scan",label:i.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"\u626B\u7801\u767B\u5F55"}),children:(0,e.jsx)(de,{loginType:y})}],K=function(){var t=M()(o()().mark(function m(l){return o()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:l&&(0,Y.flushSync)(function(){pe(function(Z){return p()(p()({},Z),{},{userInfo:l})})});case 1:case"end":return d.stop()}},m)}));return function(l){return t.apply(this,arguments)}}(),je=function(){var t=M()(o()().mark(function m(l){var n,d;return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,console.log("handleSubmit values: ",l),u.yw.loading("\u6B63\u5728\u767B\u5F55..."),s.next=5,(0,U.x4)(p()({},l));case 5:n=s.sent,console.log("LoginResult:",n),n.code===200?(u.yw.destroy(),u.yw.success("\u767B\u5F55\u6210\u529F\uFF01"),v(n.data.access_token),K(n.data.user),w(n.data.user),r.history.push("/")):(u.yw.destroy(),u.yw.error(n.message)),s.next=15;break;case 10:s.prev=10,s.t0=s.catch(0),d=i.formatMessage({id:"pages.login.failure",defaultMessage:"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"}),console.log(s.t0),u.yw.error(d);case 15:case"end":return s.stop()}},m,null,[[0,10]])}));return function(l){return t.apply(this,arguments)}}(),Fe=function(){var t=M()(o()().mark(function m(l){var n,d;return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,console.log("handleMobileSubmit values: ",l),u.yw.loading("\u6B63\u5728\u767B\u5F55..."),s.next=5,(0,U.N9)(p()({},l));case 5:n=s.sent,console.log("LoginMobileResult:",n),n.code===200?(u.yw.destroy(),u.yw.success("\u767B\u5F55\u6210\u529F\uFF01"),v(n.data.access_token),K(n.data.user),w(n.data.user),r.history.push("/")):(u.yw.destroy(),u.yw.error(n.message)),s.next=15;break;case 10:s.prev=10,s.t0=s.catch(0),d=i.formatMessage({id:y==="account"?"pages.login.failure":"pages.login.failureCode",defaultMessage:y==="account"?"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7528\u6237\u540D\u5BC6\u7801\uFF01":"\u9A8C\u8BC1\u7801\u9519\u8BEF"}),console.log(s.t0),u.yw.error(d);case 15:case"end":return s.stop()}},m,null,[[0,10]])}));return function(l){return t.apply(this,arguments)}}();return(0,e.jsxs)(N._Y,{hashed:!1,dark:h,children:[(0,e.jsx)(fe,{}),(0,e.jsx)("div",{style:{backgroundColor:c.colorBgContainer,textAlign:"center",height:"100vh",backgroundImage:"url('/admin/assets/images/bg-wide.png')"},children:(0,e.jsxs)($.U,{contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(0,e.jsx)("img",{alt:"logo",src:"/admin/icons/logo.png"}),title:(0,e.jsx)(r.FormattedMessage,{id:"app.title"}),subTitle:i.formatMessage({id:"pages.layouts.userLayout.title"}),initialValues:{},actions:[],onFinish:function(){var t=M()(o()().mark(function m(l){var n,d;return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(y!=="account"){s.next=7;break}return n={username:l.username,password:l.password},console.log("login info:",n),s.next=5,je(n);case 5:s.next=11;break;case 7:return d={mobile:l.mobile,code:l.code},console.log("login mobile info:",d),s.next=11,Fe(d);case 11:case"end":return s.stop()}},m)}));return function(m){return t.apply(this,arguments)}}(),children:[(0,e.jsx)(H.Z,{activeKey:y,onChange:f,centered:!0,items:xe}),(0,e.jsx)("div",{style:{marginTop:14,marginBottom:14},children:(0,e.jsx)("div",{style:{float:"right",marginBottom:24},children:ye&&(0,e.jsx)(r.Link,{to:"/auth/register",children:(0,e.jsx)(r.FormattedMessage,{id:"pages.login.registerAccount",defaultMessage:"\u6CE8\u518C "})})})})]})}),(0,e.jsx)(q.Z,{})]})},he=function(){var i=(0,b.Z)(),g=i.isDarkMode;return(0,e.jsx)(J.ZP,{theme:{algorithm:g?ce:ge},children:(0,e.jsxs)(V.Z,{children:[(0,e.jsx)(u.ZP,{}),(0,e.jsx)(me,{})]})})},ve=he},63998:function(D,F,a){a.d(F,{t:function(){return p}});var A=a(64529),o=a(782),L=a(71381),p=(0,A.Ue)()((0,o.mW)((0,o.tJ)((0,L.n)(function(T,M){return{accessToken:"",setAccessToken:function(x){localStorage.setItem("ACCESS_TOKEN",x),T({accessToken:x})},getAccessToken:function(){return M().accessToken},removeAccessToken:function(){localStorage.removeItem("ACCESS_TOKEN"),T({accessToken:""})}}}),{name:"AUTH_STORE"})))},60247:function(D,F,a){a.d(F,{L:function(){return p}});var A=a(64529),o=a(782),L=a(71381),p=(0,A.Ue)()((0,o.mW)((0,o.tJ)((0,L.n)(function(T,M){return{userInfo:{uid:""},setUserInfo:function(x){T({userInfo:x})},deleteUserInfo:function(){return T({},!0)}}}),{name:"USER_STORE"})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Auth__Register__index.6832e99e.async.js b/starter/src/main/resources/templates/admin/p__Auth__Register__index.6832e99e.async.js new file mode 100644 index 0000000000..0c0635a40d --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Auth__Register__index.6832e99e.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[730],{87223:function(I,h,e){e.r(h);var D=e(15009),i=e.n(D),O=e(97857),c=e.n(O),E=e(99289),f=e.n(E),v=e(5574),P=e.n(v),C=e(98661),F=e(61747),w=e(87547),L=e(94149),b=e(24454),S=e(10915),Z=e(68262),R=e(5966),k=e(16434),z=e(24556),l=e(86745),j=e(9361),$=e(38925),N=e(32983),G=e(14726),H=e(28459),J=e(31418),U=e(67294),y=e(39825),_=e(80049),V=e(85615),Y=e(63998),Q=e(73935),X=e(60247),s=e(85893),q=j.Z.defaultAlgorithm,ee=j.Z.darkAlgorithm,se=function(){var p=(0,z.l)(function(M){var T=M.token;return{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:T.borderRadius,":hover":{backgroundColor:T.colorBgTextHover}}});return(0,s.jsx)("div",{className:p,"data-lang":!0,children:l.SelectLang&&(0,s.jsx)(l.SelectLang,{})})},x=function(p){var M=p.content;return(0,s.jsx)($.Z,{style:{marginBottom:24},message:M,type:"error",showIcon:!0})},ne=function(){var p=j.Z.useToken(),M=p.token,T=(0,y.Z)(),re=T.isDarkMode,W=(0,U.useRef)(),A=(0,l.useModel)("@@initialState"),Ee=A.initialState,pe=A.loading,Me=A.refresh,te=A.setInitialState,oe=(0,U.useState)(!1),K=P()(oe,2),ie=K[0],_e=K[1],ue=(0,Y.t)(function(a){return a.setAccessToken}),le=(0,X.L)(function(a){return a.setUserInfo}),de=(0,l.getLocale)();console.log("register page locale:",de);var g=(0,l.useIntl)();(0,U.useEffect)(function(){var a=window.location.href;(a.indexOf("localhost")!==-1||a.indexOf("127.0.0.1")!==-1||a.indexOf("weiyu")!==-1||a.indexOf("kefux")!==-1||a.indexOf("bytedesk")!==-1)&&_e(!0)},[]);var ge=function(){var a=f()(i()().mark(function o(n){return i()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:n&&(0,Q.flushSync)(function(){te(function(m){return c()(c()({},m),{},{userInfo:n})})});case 1:case"end":return u.stop()}},o)}));return function(n){return a.apply(this,arguments)}}(),me=function(){var a=f()(i()().mark(function o(n){var t,u,m;return i()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,console.log("values:",n),_.yw.loading("\u6B63\u5728\u6CE8\u518C\uFF0C\u8BF7\u7A0D\u540E..."),d.next=5,(0,C.z2)(c()({},n));case 5:if(t=d.sent,console.log("registerResult:",t),t.code!==200){d.next=15;break}return _.yw.destroy(),_.yw.success(t.message),u={username:n.email,password:n.password},ce(u),d.abrupt("return");case 15:_.yw.destroy(),_.yw.error(t.message);case 17:d.next=24;break;case 19:d.prev=19,d.t0=d.catch(0),m=g.formatMessage({id:"pages.register.failure",defaultMessage:"\u6CE8\u518C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"}),console.log(d.t0),_.yw.error(m);case 24:case"end":return d.stop()}},o,null,[[0,19]])}));return function(n){return a.apply(this,arguments)}}(),ce=function(){var a=f()(i()().mark(function o(n){var t,u;return i()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,console.log("handleSubmit values: ",n),_.yw.loading("\u6B63\u5728\u767B\u5F55..."),r.next=5,(0,C.x4)(c()({},n));case 5:t=r.sent,console.log("LoginResult:",t),t.code===200?(_.yw.destroy(),_.yw.success("\u767B\u5F55\u6210\u529F\uFF01"),ue(t.data.access_token),ge(t.data.user),le(t.data.user),l.history.push("/")):(_.yw.destroy(),_.yw.error(t.message)),r.next=15;break;case 10:r.prev=10,r.t0=r.catch(0),u=g.formatMessage({id:"pages.login.failure",defaultMessage:"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"}),console.log(r.t0),_.yw.error(u);case 15:case"end":return r.stop()}},o,null,[[0,10]])}));return function(n){return a.apply(this,arguments)}}(),fe=function(){setTimeout(function(){var o;console.log("endCaptchaTiming"),(o=W.current)===null||o===void 0||o.endTiming()},2)};return(0,s.jsxs)(S._Y,{hashed:!1,dark:re,children:[(0,s.jsx)(se,{}),(0,s.jsx)("div",{style:{backgroundColor:M.colorBgContainer,textAlign:"center",height:"100vh",backgroundImage:"url('/admin/assets/images/bg-wide.png')"},children:ie?(0,s.jsxs)(Z.U,{contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(0,s.jsx)("img",{alt:"logo",src:"/admin/icons/logo.png"}),title:(0,s.jsx)(l.FormattedMessage,{id:"app.title"}),subTitle:g.formatMessage({id:"pages.login.registerAccount"}),initialValues:{autoLogin:!0},submitter:{searchConfig:{submitText:g.formatMessage({id:"pages.login.register"})}},onFinish:function(){var a=f()(i()().mark(function o(n){var t;return i()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return console.log("login values:",n),t={email:n.username,password:n.password,mobile:n.mobile,code:n.code},console.log("register info:",t),m.next=5,me(t);case 5:case"end":return m.stop()}},o)}));return function(o){return a.apply(this,arguments)}}(),children:[status==="error"&&(0,s.jsx)(x,{content:g.formatMessage({id:"pages.login.accountLogin.errorMessage",defaultMessage:"\u8D26\u6237\u6216\u5BC6\u7801\u9519\u8BEF"})}),(0,s.jsx)(R.Z,{name:"username",fieldProps:{size:"large",prefix:(0,s.jsx)(w.Z,{})},placeholder:g.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"\u90AE\u7BB1"}),rules:[{required:!0,message:(0,s.jsx)(l.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"\u8BF7\u8F93\u5165\u90AE\u7BB1!"})},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E"},{max:50,message:"\u90AE\u7BB1\u4E0D\u5F97\u8D85\u8FC750\u5B57\u7B26"}]}),(0,s.jsx)(R.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,s.jsx)(L.Z,{})},placeholder:g.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"\u5BC6\u7801"}),rules:[{required:!0,message:(0,s.jsx)(l.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"})}]}),(0,s.jsx)(R.Z,{fieldProps:{size:"large",prefix:(0,s.jsx)(b.Z,{})},name:"mobile",placeholder:g.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"\u624B\u673A\u53F7"}),rules:[{required:!0,message:(0,s.jsx)(l.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01"})},{pattern:/^1\d{10}$/,message:(0,s.jsx)(l.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF\uFF01"})}]}),(0,s.jsx)(k.Z,{fieldProps:{size:"large",prefix:(0,s.jsx)(L.Z,{})},captchaProps:{size:"large"},placeholder:g.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}),captchaTextRender:function(o,n){return o?"".concat(n," ").concat(g.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})):g.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})},phoneName:"mobile",name:"code",rules:[{required:!0,message:(0,s.jsx)(l.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],fieldRef:W,onGetCaptcha:function(){var a=f()(i()().mark(function o(n){var t,u;return i()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n&&n.length===11)){r.next=13;break}return t={mobile:n,type:V.i_},r.next=4,(0,C.Y7)(t);case 4:if(u=r.sent,console.log("sendMobileCodeResult:",u),u.code===200){r.next=10;break}return _.yw.error(u.message),fe(),r.abrupt("return");case 10:_.yw.success(u.message),r.next=14;break;case 13:_.yw.error("\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF");case 14:case"end":return r.stop()}},o)}));return function(o){return a.apply(this,arguments)}}()}),status==="error"&&(0,s.jsx)(x,{content:"\u9A8C\u8BC1\u7801\u9519\u8BEF"}),(0,s.jsx)("div",{style:{marginBottom:64},children:(0,s.jsx)("div",{style:{float:"right"},children:(0,s.jsx)(l.Link,{to:"/auth/login",children:(0,s.jsx)(l.FormattedMessage,{id:"pages.login.submit",defaultMessage:"\u767B\u5F55 "})})})})]}):(0,s.jsx)("div",{style:{textAlign:"center",margin:"0 auto"},children:(0,s.jsx)(N.Z,{description:"only for vip users, please contact: 270580156@qq.com",children:(0,s.jsx)(G.ZP,{type:"primary",onClick:function(){window.open("http://www.weiyuai.cn")},children:"open weiyuai.cn"})})})}),(0,s.jsx)(F.$_,{})]})},ae=function(){var p=(0,y.Z)(),M=p.isDarkMode;return(0,s.jsx)(H.ZP,{theme:{algorithm:M?ee:q},children:(0,s.jsxs)(J.Z,{children:[(0,s.jsx)(_.ZP,{}),(0,s.jsx)(ne,{})]})})};h.default=ae},63998:function(I,h,e){e.d(h,{t:function(){return c}});var D=e(64529),i=e(782),O=e(71381),c=(0,D.Ue)()((0,i.mW)((0,i.tJ)((0,O.n)(function(E,f){return{accessToken:"",setAccessToken:function(P){localStorage.setItem("ACCESS_TOKEN",P),E({accessToken:P})},getAccessToken:function(){return f().accessToken},removeAccessToken:function(){localStorage.removeItem("ACCESS_TOKEN"),E({accessToken:""})}}}),{name:"AUTH_STORE"})))},60247:function(I,h,e){e.d(h,{L:function(){return c}});var D=e(64529),i=e(782),O=e(71381),c=(0,D.Ue)()((0,i.mW)((0,i.tJ)((0,O.n)(function(E,f){return{userInfo:{uid:""},setUserInfo:function(P){E({userInfo:P})},deleteUserInfo:function(){return E({},!0)}}}),{name:"USER_STORE"})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Auth__Register__index.704a6eeb.async.js b/starter/src/main/resources/templates/admin/p__Auth__Register__index.704a6eeb.async.js deleted file mode 100644 index 8970f21a1a..0000000000 --- a/starter/src/main/resources/templates/admin/p__Auth__Register__index.704a6eeb.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[730],{94149:function(Q,O,e){e.d(O,{Z:function(){return B}});var o=e(1413),i=e(67294),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},D=y,R=e(91146),P=function(g,S){return i.createElement(R.Z,(0,o.Z)((0,o.Z)({},g),{},{ref:S,icon:D}))},x=i.forwardRef(P),B=x},24454:function(Q,O,e){e.d(O,{Z:function(){return B}});var o=e(1413),i=e(67294),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},D=y,R=e(91146),P=function(g,S){return i.createElement(R.Z,(0,o.Z)((0,o.Z)({},g),{},{ref:S,icon:D}))},x=i.forwardRef(P),B=x},16434:function(Q,O,e){var o=e(1413),i=e(74165),y=e(15861),D=e(91),R=e(97685),P=e(8232),x=e(96365),B=e(14726),r=e(67294),g=e(90789),S=e(85893),V=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],d=r.forwardRef(function(m,p){var h=P.Z.useFormInstance(),F=(0,r.useState)(m.countDown||60),u=(0,R.Z)(F,2),l=u[0],E=u[1],Z=(0,r.useState)(!1),b=(0,R.Z)(Z,2),N=b[0],I=b[1],L=(0,r.useState)(),M=(0,R.Z)(L,2),w=M[0],f=M[1],te=m.rules,k=m.name,H=m.phoneName,C=m.fieldProps,$=m.onTiming,A=m.captchaTextRender,X=A===void 0?function(T,W){return T?"".concat(W," \u79D2\u540E\u91CD\u65B0\u83B7\u53D6"):"\u83B7\u53D6\u9A8C\u8BC1\u7801"}:A,s=m.captchaProps,Y=(0,D.Z)(m,V),_=function(){var T=(0,y.Z)((0,i.Z)().mark(function W(a){return(0,i.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,f(!0),c.next=4,Y.onGetCaptcha(a);case 4:f(!1),I(!0),c.next=13;break;case 8:c.prev=8,c.t0=c.catch(0),I(!1),f(!1),console.log(c.t0);case 13:case"end":return c.stop()}},W,null,[[0,8]])}));return function(a){return T.apply(this,arguments)}}();return(0,r.useImperativeHandle)(p,function(){return{startTiming:function(){return I(!0)},endTiming:function(){return I(!1)}}}),(0,r.useEffect)(function(){var T=0,W=m.countDown;return N&&(T=window.setInterval(function(){E(function(a){return a<=1?(I(!1),clearInterval(T),W||60):a-1})},1e3)),function(){return clearInterval(T)}},[N]),(0,r.useEffect)(function(){$&&$(l)},[l,$]),(0,S.jsxs)("div",{style:(0,o.Z)((0,o.Z)({},C==null?void 0:C.style),{},{display:"flex",alignItems:"center"}),ref:p,children:[(0,S.jsx)(x.Z,(0,o.Z)((0,o.Z)({},C),{},{style:(0,o.Z)({flex:1,transition:"width .3s",marginRight:8},C==null?void 0:C.style)})),(0,S.jsx)(B.ZP,(0,o.Z)((0,o.Z)({style:{display:"block"},disabled:N,loading:w},s),{},{onClick:(0,y.Z)((0,i.Z)().mark(function T(){var W;return(0,i.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!H){t.next=9;break}return t.next=4,h.validateFields([H].flat(1));case 4:return W=h.getFieldValue([H].flat(1)),t.next=7,_(W);case 7:t.next=11;break;case 9:return t.next=11,_("");case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(0),console.log(t.t0);case 16:case"end":return t.stop()}},T,null,[[0,13]])})),children:X(N,l)}))]})}),K=(0,g.G)(d);O.Z=K},5966:function(Q,O,e){var o=e(97685),i=e(1413),y=e(91),D=e(21770),R=e(8232),P=e(55241),x=e(97435),B=e(67294),r=e(21614),g=e(85893),S=["fieldProps","proFieldProps"],V=["fieldProps","proFieldProps"],d="text",K=function(u){var l=u.fieldProps,E=u.proFieldProps,Z=(0,y.Z)(u,S);return(0,g.jsx)(r.Z,(0,i.Z)({valueType:d,fieldProps:l,filedConfig:{valueType:d},proFieldProps:E},Z))},m=function(u){var l=(0,D.Z)(u.open||!1,{value:u.open,onChange:u.onOpenChange}),E=(0,o.Z)(l,2),Z=E[0],b=E[1];return(0,g.jsx)(R.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(I){var L,M=I.getFieldValue(u.name||[]);return(0,g.jsx)(P.Z,(0,i.Z)((0,i.Z)({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:b,content:(0,g.jsxs)("div",{style:{padding:"4px 0"},children:[(L=u.statusRender)===null||L===void 0?void 0:L.call(u,M),u.strengthText?(0,g.jsx)("div",{style:{marginTop:10},children:(0,g.jsx)("span",{children:u.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},u.popoverProps),{},{open:Z,children:u.children}))}})},p=function(u){var l=u.fieldProps,E=u.proFieldProps,Z=(0,y.Z)(u,V),b=(0,B.useState)(!1),N=(0,o.Z)(b,2),I=N[0],L=N[1];return l!=null&&l.statusRender&&Z.name?(0,g.jsx)(m,{name:Z.name,statusRender:l==null?void 0:l.statusRender,popoverProps:l==null?void 0:l.popoverProps,strengthText:l==null?void 0:l.strengthText,open:I,onOpenChange:L,children:(0,g.jsx)("div",{children:(0,g.jsx)(r.Z,(0,i.Z)({valueType:"password",fieldProps:(0,i.Z)((0,i.Z)({},(0,x.Z)(l,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(w){var f;l==null||(f=l.onBlur)===null||f===void 0||f.call(l,w),L(!1)},onClick:function(w){var f;l==null||(f=l.onClick)===null||f===void 0||f.call(l,w),L(!0)}}),proFieldProps:E,filedConfig:{valueType:d}},Z))})}):(0,g.jsx)(r.Z,(0,i.Z)({valueType:"password",fieldProps:l,proFieldProps:E,filedConfig:{valueType:d}},Z))},h=K;h.Password=p,h.displayName="ProFormComponent",O.Z=h},68262:function(Q,O,e){e.d(O,{U:function(){return m}});var o=e(1413),i=e(91),y=e(10915),D=e(28459),R=e(93967),P=e.n(R),x=e(67294),B=e(34994),r=e(4942),g=e(98082),S=function(h){return(0,r.Z)((0,r.Z)({},h.componentCls,{"&-container":{display:"flex",flex:"1",flexDirection:"column",height:"100%",paddingInline:32,paddingBlock:24,overflow:"auto",background:"inherit"},"&-top":{textAlign:"center"},"&-header":{display:"flex",alignItems:"center",justifyContent:"center",height:"44px",lineHeight:"44px",a:{textDecoration:"none"}},"&-title":{position:"relative",insetBlockStart:"2px",color:"@heading-color",fontWeight:"600",fontSize:"33px"},"&-logo":{width:"44px",height:"44px",marginInlineEnd:"16px",verticalAlign:"top",img:{width:"100%"}},"&-desc":{marginBlockStart:"12px",marginBlockEnd:"40px",color:h.colorTextSecondary,fontSize:h.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),"@media (min-width: @screen-md-min)",(0,r.Z)({},"".concat(h.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function V(p){return(0,g.Xj)("LoginForm",function(h){var F=(0,o.Z)((0,o.Z)({},h),{},{componentCls:".".concat(p)});return[S(F)]})}var d=e(85893),K=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function m(p){var h,F=p.logo,u=p.message,l=p.contentStyle,E=p.title,Z=p.subTitle,b=p.actions,N=p.children,I=p.containerStyle,L=p.otherStyle,M=(0,i.Z)(p,K),w=(0,y.YB)(),f=M.submitter===!1?!1:(0,o.Z)((0,o.Z)({searchConfig:{submitText:w.getMessage("loginForm.submitText","\u767B\u5F55")}},M.submitter),{},{submitButtonProps:(0,o.Z)({size:"large",style:{width:"100%"}},(h=M.submitter)===null||h===void 0?void 0:h.submitButtonProps),render:function(Y,_){var T,W=_.pop();if(typeof(M==null||(T=M.submitter)===null||T===void 0?void 0:T.render)=="function"){var a,t;return M==null||(a=M.submitter)===null||a===void 0||(t=a.render)===null||t===void 0?void 0:t.call(a,Y,_)}return W}}),te=(0,x.useContext)(D.ZP.ConfigContext),k=te.getPrefixCls("pro-form-login"),H=V(k),C=H.wrapSSR,$=H.hashId,A=function(Y){return"".concat(k,"-").concat(Y," ").concat($)},X=(0,x.useMemo)(function(){return F?typeof F=="string"?(0,d.jsx)("img",{src:F}):F:null},[F]);return C((0,d.jsxs)("div",{className:P()(A("container"),$),style:I,children:[(0,d.jsxs)("div",{className:"".concat(A("top")," ").concat($).trim(),children:[E||X?(0,d.jsxs)("div",{className:"".concat(A("header")),children:[X?(0,d.jsx)("span",{className:A("logo"),children:X}):null,E?(0,d.jsx)("span",{className:A("title"),children:E}):null]}):null,Z?(0,d.jsx)("div",{className:A("desc"),children:Z}):null]}),(0,d.jsxs)("div",{className:A("main"),style:(0,o.Z)({width:328},l),children:[(0,d.jsxs)(B.A,(0,o.Z)((0,o.Z)({isKeyPressSubmit:!0},M),{},{submitter:f,children:[u,N]})),b?(0,d.jsx)("div",{className:A("main-other"),style:L,children:b}):null]})]}))}},90613:function(Q,O,e){var o=e(5574),i=e.n(o),y=e(67294),D=function(P,x){var B=(0,y.useState)(function(){try{var d=localStorage.getItem(P);return d?JSON.parse(d):(localStorage.setItem(P,JSON.stringify(x)),x)}catch(K){return localStorage.setItem(P,JSON.stringify(x)),x}}),r=i()(B,2),g=r[0],S=r[1],V=function(K){var m;if(typeof K=="function"){var p=K;m=p(g)}else m=K;localStorage.setItem(P,JSON.stringify(m)),S(m)};return[g,V]};O.Z=D},19566:function(Q,O,e){e.r(O),e.d(O,{default:function(){return W}});var o=e(15009),i=e.n(o),y=e(97857),D=e.n(y),R=e(99289),P=e.n(R),x=e(5574),B=e.n(x),r=e(86745);function g(a){return S.apply(this,arguments)}function S(){return S=P()(i()().mark(function a(t){return i()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("sendRegisgerMobileCode:",t),n.abrupt("return",(0,r.request)("/sms/api/v3/send/register",{method:"POST",data:{mobile:t.mobile}}));case 2:case"end":return n.stop()}},a)})),S.apply(this,arguments)}function V(a){return d.apply(this,arguments)}function d(){return d=_asyncToGenerator(_regeneratorRuntime().mark(function a(t){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("sendLoginMobileCode:",t),n.abrupt("return",request("/sms/api/v3/send/login",{method:"POST",data:{mobile:t.mobile}}));case 2:case"end":return n.stop()}},a)})),d.apply(this,arguments)}function K(a){return m.apply(this,arguments)}function m(){return m=_asyncToGenerator(_regeneratorRuntime().mark(function a(t){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/sms/api/validate",{method:"GET",params:{mobile:t.mobile,code:t.code}}));case 1:case"end":return n.stop()}},a)})),m.apply(this,arguments)}function p(a){return h.apply(this,arguments)}function h(){return h=_asyncToGenerator(_regeneratorRuntime().mark(function a(t){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/email/api/v3/send/register",{method:"POST",data:{email:t.email}}));case 1:case"end":return n.stop()}},a)})),h.apply(this,arguments)}function F(a){return u.apply(this,arguments)}function u(){return u=_asyncToGenerator(_regeneratorRuntime().mark(function a(t){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/email/api/v3/send/login",{method:"POST",data:{email:t.email}}));case 1:case"end":return n.stop()}},a)})),u.apply(this,arguments)}function l(a){return E.apply(this,arguments)}function E(){return E=_asyncToGenerator(_regeneratorRuntime().mark(function a(t){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/email/api/validate",{method:"GET",params:{email:t.email,code:t.code}}));case 1:case"end":return n.stop()}},a)})),E.apply(this,arguments)}function Z(a){return b.apply(this,arguments)}function b(){return b=P()(i()().mark(function a(t){return i()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,r.request)("/visitor/api/v3/register",{method:"POST",data:{email:t.email,password:t.password,mobile:t.mobile,code:t.code}}));case 1:case"end":return n.stop()}},a)})),b.apply(this,arguments)}var N=e(60109),I=e(87547),L=e(94149),M=e(24454),w=e(68262),f=e(5966),te=e(16434),k=e(45660),H=e(38925),C=e(45360),$=e(67294),A=e(67610),X=e(90613),s=e(85893),Y=function(){var t=(0,k.l)(function(c){var n=c.token;return{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:n.borderRadius,":hover":{backgroundColor:n.colorBgTextHover}}});return(0,s.jsx)("div",{className:t,"data-lang":!0,children:r.SelectLang&&(0,s.jsx)(r.SelectLang,{})})},_=function(t){var c=t.content;return(0,s.jsx)(H.Z,{style:{marginBottom:24},message:c,type:"error",showIcon:!0})},T=function(){var t=(0,X.Z)("ACCESS_TOKEN",""),c=B()(t,2),n=c[0],le=c[1],ae=(0,$.useState)("account"),re=B()(ae,2),oe=re[0],ue=re[1],ne=(0,r.useModel)("@@initialState"),de=ne.initialState,ce=ne.loading,ge=ne.refresh,me=ne.setInitialState,se=(0,k.l)(function(){return{display:"flex",flexDirection:"column",height:"100vh",overflow:"auto",backgroundImage:"url('/admin/assets/images/bg-wide.png')",backgroundSize:"100% 100%"}}),z=(0,r.useIntl)(),ie=function(){var q=P()(i()().mark(function G(j){var U,J;return i()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.prev=0,console.log("values:",j),v.next=4,Z(D()({},j));case 4:if(U=v.sent,console.log("registerResult:",U),U.code!==200){v.next=11;break}return C.ZP.success(U.message),v.abrupt("return");case 11:C.ZP.error(U.message);case 12:console.log(U),v.next=20;break;case 15:v.prev=15,v.t0=v.catch(0),J=z.formatMessage({id:"pages.login.failure",defaultMessage:"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"}),console.log(v.t0),C.ZP.error(J);case 20:case"end":return v.stop()}},G,null,[[0,15]])}));return function(j){return q.apply(this,arguments)}}();return(0,s.jsxs)("div",{className:se,children:[(0,s.jsx)(r.Helmet,{children:(0,s.jsxs)("title",{children:[z.formatMessage({id:"menu.login",defaultMessage:"\u767B\u5F55\u9875"}),"- ",A.Z.title]})}),(0,s.jsx)(Y,{}),(0,s.jsx)("div",{style:{flex:"1",padding:"32px 0"},children:(0,s.jsxs)(w.U,{contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(0,s.jsx)("img",{alt:"logo",src:"/admin/icons/logo.png"}),title:"\u5FAE\u8BED",subTitle:z.formatMessage({id:"pages.login.registerAccount"}),initialValues:{autoLogin:!0},submitter:{searchConfig:{submitText:"\u6CE8\u518C"}},onFinish:function(){var q=P()(i()().mark(function G(j){var U;return i()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return console.log("login values:",j),U={email:j.username,password:j.password,mobile:j.mobile,code:j.code},console.log("register info:",U),ee.next=5,ie(U);case 5:case"end":return ee.stop()}},G)}));return function(G){return q.apply(this,arguments)}}(),children:[status==="error"&&(0,s.jsx)(_,{content:z.formatMessage({id:"pages.login.accountLogin.errorMessage",defaultMessage:"\u8D26\u6237\u6216\u5BC6\u7801\u9519\u8BEF"})}),(0,s.jsx)(f.Z,{name:"username",fieldProps:{size:"large",prefix:(0,s.jsx)(I.Z,{})},placeholder:z.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"\u90AE\u7BB1"}),rules:[{required:!0,message:(0,s.jsx)(r.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"\u8BF7\u8F93\u5165\u90AE\u7BB1!"})}]}),(0,s.jsx)(f.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,s.jsx)(L.Z,{})},placeholder:z.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"\u5BC6\u7801"}),rules:[{required:!0,message:(0,s.jsx)(r.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"})}]}),(0,s.jsx)(f.Z,{fieldProps:{size:"large",prefix:(0,s.jsx)(M.Z,{})},name:"mobile",placeholder:z.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"\u624B\u673A\u53F7"}),rules:[{required:!0,message:(0,s.jsx)(r.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01"})},{pattern:/^1\d{10}$/,message:(0,s.jsx)(r.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF\uFF01"})}]}),(0,s.jsx)(te.Z,{fieldProps:{size:"large",prefix:(0,s.jsx)(L.Z,{})},captchaProps:{size:"large"},placeholder:z.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}),captchaTextRender:function(G,j){return G?"".concat(j," ").concat(z.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})):z.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})},phoneName:"mobile",name:"code",rules:[{required:!0,message:(0,s.jsx)(r.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],onGetCaptcha:function(){var q=P()(i()().mark(function G(j){var U,J;return i()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(!(j&&j.length===11)){v.next=11;break}return U={mobile:j},v.next=4,g(U);case 4:if(J=v.sent,J.code===200){v.next=8;break}return C.ZP.error(J.message),v.abrupt("return");case 8:C.ZP.success(J.message),v.next=12;break;case 11:C.ZP.error("\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF");case 12:case"end":return v.stop()}},G)}));return function(G){return q.apply(this,arguments)}}()}),status==="error"&&(0,s.jsx)(_,{content:"\u9A8C\u8BC1\u7801\u9519\u8BEF"}),(0,s.jsx)("div",{style:{marginBottom:64},children:(0,s.jsx)("div",{style:{float:"right"},children:(0,s.jsx)(r.Link,{to:"/auth/login",children:(0,s.jsx)(r.FormattedMessage,{id:"pages.login.submit",defaultMessage:"\u767B\u5F55 "})})})})]})}),(0,s.jsx)(N.$_,{})]})},W=T}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__index.348cefd6.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__index.348cefd6.async.js new file mode 100644 index 0000000000..047b4a1af6 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__index.348cefd6.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[363],{77154:function(c,d,e){var i=e(39825);function t(){var r=(0,i.Z)(),l=r.isDarkMode,n={borderRight:l?"1px solid #333":"1px solid #ccc",background:l?"#141414":"#eee",width:260},a={background:l?"#141414":"#fff"},s={borderLeft:l?"1px solid #333":"1px solid #ccc",background:l?"#141414":"#eee"},o={minHeight:120};return{leftSiderStyle:n,headerStyle:a,rightSiderStyle:s,contentStyle:o}}d.Z=t},93331:function(c,d,e){e.r(d);var i=e(77154),t=e(21612),r=e(68508),l=e(67294),n=e(85893),a=t.Z.Header,s=t.Z.Footer,o=t.Z.Sider,_=t.Z.Content,S=[{label:"\u9AD8\u7EA7",key:"top"},{label:"\u4E2D\u7EA7",key:"middle"}],y=function(){var u=(0,i.Z)(),E=u.leftSiderStyle,f=u.contentStyle,M=function(h){console.log("menu click ",h.key)};return(0,n.jsxs)(t.Z,{children:[(0,n.jsx)(o,{style:E,children:(0,n.jsx)(r.Z,{mode:"inline",onClick:M,defaultSelectedKeys:["xinxixitongxiangmuguanlishi"],defaultOpenKeys:["top","middle"],items:S})}),(0,n.jsx)(t.Z,{children:(0,n.jsx)(_,{style:f,children:"\u77E5\u8BC6\u5E93"})})]})};d.default=y}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Organization__Group__index.94378d67.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Organization__Group__index.94378d67.async.js deleted file mode 100644 index 2358806c84..0000000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Organization__Group__index.94378d67.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[352],{15918:function(k,o,i){i.r(o);var e=i(21612),g=i(68508),y=i(67294),l=i(85893),m=e.Z.Header,C=e.Z.Footer,s=e.Z.Sider,d=e.Z.Content,u=[{label:"\u9AD8\u7EA7",key:"top",children:[{label:"group org",key:"xinxixitongxiangmuguanlishi"}]},{label:"\u4E2D\u7EA7",key:"middle",children:[{label:"group org 2",key:"xitongjichengxiangmuguanligongchengshi"}]}],t=[{label:"\u4FE1\u606F\u7CFB\u7EDF\u9879\u76EE\u7BA1\u7406\u5E08",key:"xinxixitongxiangmuguanlishi"},{label:"\u7CFB\u7EDF\u96C6\u6210\u9879\u76EE\u7BA1\u7406\u5DE5\u7A0B\u5E08",key:"xitongjichengxiangmuguanligongchengshi"}],c={minHeight:120,backgroundColor:"#EEFAE0"},x={backgroundColor:"#EEFAE0",borderRight:"1px solid #ccc"},M={backgroundColor:"#EEFAE0"},h=function(){var E=function(r){console.log("menu click ",r);for(var a=0;a{const t={};return O.forEach(r=>{t[`${e}-wrap-${r}`]=n.wrap===r}),t},w=(e,n)=>{const t={};return N.forEach(r=>{t[`${e}-align-${r}`]=n.align===r}),t[`${e}-align-stretch`]=!n.align&&!!n.vertical,t},J=(e,n)=>{const t={};return P.forEach(r=>{t[`${e}-justify-${r}`]=n.justify===r}),t};function V(e,n){return I()(Object.assign(Object.assign(Object.assign({},v(e,n)),w(e,n)),J(e,n)))}var D=V;const G=e=>{const{componentCls:n}=e;return{[n]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},s=e=>{const{componentCls:n}=e;return{[n]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},R=e=>{const{componentCls:n}=e,t={};return O.forEach(r=>{t[`${n}-wrap-${r}`]={flexWrap:r}}),t},U=e=>{const{componentCls:n}=e,t={};return N.forEach(r=>{t[`${n}-align-${r}`]={alignItems:r}}),t},H=e=>{const{componentCls:n}=e,t={};return P.forEach(r=>{t[`${n}-justify-${r}`]={justifyContent:r}}),t},X=()=>({});var k=(0,A.I$)("Flex",e=>{const{paddingXS:n,padding:t,paddingLG:r}=e,l=(0,B.TS)(e,{flexGapSM:n,flexGap:t,flexGapLG:r});return[G(l),s(l),R(l),U(l),H(l)]},X,{resetStyle:!1}),o=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const{prefixCls:t,rootClassName:r,className:l,style:u,flex:f,gap:i,children:j,vertical:h=!1,component:Q="div"}=e,$=o(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:g,direction:E,getPrefixCls:Y}=b.useContext(x.E_),Z=Y("flex",t),[K,q,_]=k(Z),ee=h!=null?h:g==null?void 0:g.vertical,re=I()(l,r,g==null?void 0:g.className,Z,q,_,D(Z,e),{[`${Z}-rtl`]:E==="rtl",[`${Z}-gap-${i}`]:(0,M.n)(i),[`${Z}-vertical`]:ee}),L=Object.assign(Object.assign({},g==null?void 0:g.style),u);return f&&(L.flex=f),i&&!(0,M.n)(i)&&(L.gap=i),K(b.createElement(Q,Object.assign({ref:n,className:re,style:L},(0,p.Z)($,["justify","wrap","align"])),j))})}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Organization__Message__index.802e1fbf.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Organization__Message__index.802e1fbf.async.js deleted file mode 100644 index 99736e8589..0000000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Organization__Message__index.802e1fbf.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[328],{66382:function(m,o,a){a.r(o);var e=a(21612),g=a(68508),k=a(67294),i=a(85893),y=e.Z.Header,C=e.Z.Footer,s=e.Z.Sider,d=e.Z.Content,c=[{label:"\u9AD8\u7EA7",key:"top",children:[{label:"message org",key:"xinxixitongxiangmuguanlishi"}]},{label:"\u4E2D\u7EA7",key:"middle",children:[{label:"message org 2",key:"xitongjichengxiangmuguanligongchengshi"}]}],t=[{label:"\u4FE1\u606F\u7CFB\u7EDF\u9879\u76EE\u7BA1\u7406\u5E08",key:"xinxixitongxiangmuguanlishi"},{label:"\u7CFB\u7EDF\u96C6\u6210\u9879\u76EE\u7BA1\u7406\u5DE5\u7A0B\u5E08",key:"xitongjichengxiangmuguanligongchengshi"}],u={minHeight:120,backgroundColor:"#EEFAE0"},x={backgroundColor:"#EEFAE0",borderRight:"1px solid #ccc"},M={backgroundColor:"#EEFAE0"},h=function(){var E=function(r){console.log("menu click ",r);for(var l=0;l0)){r.next=2;break}return r.abrupt("return");case 2:return a={pageNumber:0,pageSize:10},r.next=5,b(a);case 5:o=r.sent,console.log("workGroups",o),n({workGroups:o.data.content,items:o.data.content.map(function(h){return{key:h.wid,label:h.nickname}})}),o.data.content.length>0&&n({currentWorkGroup:o.data.content[0]});case 9:case"end":return r.stop()}},i)}));function t(){return s.apply(this,arguments)}return t}(),createWorkGroup:function(){var s=f()(l()().mark(function i(a){var o;return l()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(a.trim().length>0)){r.next=6;break}return r.next=3,T(a);case 3:o=r.sent,console.log("createWorkGroup: ",o),o.code===200?n({workGroups:[o.data].concat(C()(u().workGroups))}):console.log("createWorkGroup error");case 6:case"end":return r.stop()}},i)}));function t(i){return s.apply(this,arguments)}return t}(),updateWorkGroup:function(){var s=f()(l()().mark(function i(a){var o;return l()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Z(a);case 2:o=r.sent,console.log("updateWorkGroup",o),o.code===200?n({currentWorkGroup:o.data}):console.log("updateWorkGroup error");case 5:case"end":return r.stop()}},i)}));function t(i){return s.apply(this,arguments)}return t}(),deleteWorkGroup:function(){var s=f()(l()().mark(function i(a){var o;return l()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,j(a);case 2:o=r.sent,console.log("deleteWorkGroup",a,o),o.code===200?n({workGroups:u().workGroups.filter(function(h){return h.wid!==a}),currentWorkGroup:u().workGroups[0]}):console.log("deleteWorkGroup error");case 5:case"end":return r.stop()}},i)}));function t(i){return s.apply(this,arguments)}return t}(),setCurrentWorkGroup:function(t){var i=u().workGroups.find(function(a){return a.wid===t});n({currentWorkGroup:i})},deleteWorkgroupCache:function(){return n({},!0)}}}),{name:"WORKGROUP_STORE"}))),p=e(85893),N=c.Z.Header,$=c.Z.Footer,D=c.Z.Sider,F=c.Z.Content,A={minHeight:120,backgroundColor:"#EEFAE0"},M={backgroundColor:"#EEFAE0",borderRight:"1px solid #ccc"},U={backgroundColor:"#EEFAE0"},K=function(){var u=R(function(t){return{currentWorkGroup:t.currentWorkGroup}}),s=u.currentWorkGroup;return(0,p.jsx)(c.Z,{children:(0,p.jsx)(c.Z,{children:(0,p.jsx)(F,{style:A,children:(0,p.jsxs)(w.Z,{children:[(0,p.jsx)(W.Z,{span:12,children:(0,p.jsx)("div",{className:"chatkbfile-iframe-file",children:(0,p.jsx)("iframe",{id:"chatfile-iframe",src:"https://www.weikefu.net/ruankao.pdf",title:"demo",width:"100%",height:"100%",style:{border:0},"data-loaded":"true"})})}),(0,p.jsx)(W.Z,{span:12,children:(0,p.jsx)("div",{className:"chatkbfile-iframe",children:(0,p.jsx)("iframe",{id:"chat-iframe",src:"http://localhost:3034/?wid="+s.wid+"&",title:"demo",width:"100%",height:"100%",style:{border:0},"data-loaded":"true"})})})]})})})})},x=K},15746:function(G,d,e){var c=e(21584);d.Z=c.Z},71230:function(G,d,e){var c=e(92820);d.Z=c.Z}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.1ee94e26.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.1ee94e26.async.js new file mode 100644 index 0000000000..7548347f5f --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.1ee94e26.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[693],{77154:function(Ge,ue,f){var N=f(39825);function v(){var me=(0,N.Z)(),F=me.isDarkMode,be={borderRight:F?"1px solid #333":"1px solid #ccc",background:F?"#141414":"#eee",width:260},ce={background:F?"#141414":"#fff"},ge={borderLeft:F?"1px solid #333":"1px solid #ccc",background:F?"#141414":"#eee"},g={minHeight:120};return{leftSiderStyle:be,headerStyle:ce,rightSiderStyle:ge,contentStyle:g}}ue.Z=v},55068:function(Ge,ue,f){f.r(ue),f.d(ue,{default:function(){return rn}});var N=f(21612),v=f(67294),me=f(5574),F=f.n(me),be=f(19632),ce=f.n(be),ge=f(15009),g=f.n(ge),Qe=f(99289),T=f.n(Qe),Je=f(97857),U=f.n(Je),R=f(86745);function Xe(r){return ve.apply(this,arguments)}function ve(){return ve=T()(g()().mark(function r(n){return g()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,R.request)("/api/v1/robot/query",{method:"GET",params:U()(U()({},n),{},{client:"web"})}));case 1:case"end":return t.stop()}},r)})),ve.apply(this,arguments)}function qe(r){return xe.apply(this,arguments)}function xe(){return xe=T()(g()().mark(function r(n){return g()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,R.request)("/api/v1/robot/create",{method:"POST",data:{name:n,client:"web"}}));case 1:case"end":return t.stop()}},r)})),xe.apply(this,arguments)}function _e(r){return Fe.apply(this,arguments)}function Fe(){return Fe=T()(g()().mark(function r(n){return g()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,R.request)("/api/v1/robot/update",{method:"POST",data:{rid:n.uid,name:n.name,description:n.description,welcome_tip:n.welcome,avatar:n.avatar,client:"web"}}));case 1:case"end":return t.stop()}},r)})),Fe.apply(this,arguments)}function et(r){return ye.apply(this,arguments)}function ye(){return ye=T()(g()().mark(function r(n){return g()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,R.request)("/api/v1/robot/delete",{method:"POST",data:{rid:n,client:"web"}}));case 1:case"end":return t.stop()}},r)})),ye.apply(this,arguments)}var Le=f(64529),de=f(782),Be=f(71381),I=(0,Le.Ue)()((0,de.mW)((0,de.tJ)((0,Be.n)(function(r,n){return{robots:[],currentRobot:{uid:"",name:""},fetchRobots:function(){var o=T()(g()().mark(function a(){var s,i;return g()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return s={pageNumber:0,pageSize:10},d.next=3,Xe(s);case 3:i=d.sent,console.log("robotPage:",i,i.code,i.message),r({robots:i.data.content}),i.data.content.length>0&&r({currentRobot:i.data.content[0]});case 7:case"end":return d.stop()}},a)}));function t(){return o.apply(this,arguments)}return t}(),createRobot:function(){var o=T()(g()().mark(function a(s){var i;return g()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,qe(s);case 2:i=d.sent,console.log("create robot",i),r(function(l){return{robots:[].concat(ce()(l.robots),[i.data])}});case 5:case"end":return d.stop()}},a)}));function t(a){return o.apply(this,arguments)}return t}(),updateRobot:function(){var o=T()(g()().mark(function a(s,i){var c,d;return g()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return console.log("before update:",s),b.next=3,_e(s);case 3:c=b.sent,i(c),console.log("upate robot",c),d=n().robots.filter(function(u){return u.uid!==s.uid}),r(function(u){return{robots:[s].concat(ce()(d)),currentRobot:s}});case 8:case"end":return b.stop()}},a)}));function t(a,s){return o.apply(this,arguments)}return t}(),deleteRobot:function(){var o=T()(g()().mark(function a(s){var i;return g()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,et(s);case 2:i=d.sent,console.log("delete robot",i),r(function(l){return{robots:l.robots.filter(function(b){return b.uid!==s}),currentRobot:l.robots[0]}});case 5:case"end":return d.stop()}},a)}));function t(a){return o.apply(this,arguments)}return t}(),setCurrentRobot:function(t){var a=n().robots.find(function(s){return s.uid===t});console.log("welcomeTip:",a.welcome),r({currentRobot:a})},deleteRobotCache:function(){return r({},!0)}}}),{name:"ROBOT_STORE"}))),w=f(8232),P=f(45360),ze=f(85576),tt=f(86250),x=f(14726),fe=f(96365),nt=f(11475),rt=f(64789),at=f(39825),e=f(85893),ot=function(){var n=(0,at.Z)(),o=n.isDarkMode,t=w.Z.useForm(),a=F()(t,1),s=a[0],i=(0,R.useIntl)(),c=I(function(p){return{robots:p.robots,currentRobot:p.currentRobot,fetchRobots:p.fetchRobots,createRobot:p.createRobot,deleteRobot:p.deleteRobot,setCurrentRobot:p.setCurrentRobot}}),d=c.robots,l=c.currentRobot,b=c.fetchRobots,u=c.createRobot,m=c.deleteRobot,C=c.setCurrentRobot;(0,v.useEffect)(function(){console.log("fetchRobots"),b()},[]);var j=(0,v.useState)(!1),B=F()(j,2),y=B[0],S=B[1],K=function(){S(!0)},re=function(){var Z=s.getFieldValue("nickname");console.log("nickname",Z),Z?(u(Z),S(!1)):P.ZP.error("\u673A\u5668\u4EBA\u6635\u79F0\u4E0D\u80FD\u4E3A\u7A7A")},Y=function(){S(!1)},V=function(Z){console.log("handleClick",Z),C(Z)},A=function(){K()},W=ze.Z.useModal(),O=F()(W,2),z=O[0],E=O[1],D=function(){if(console.log("handleDeleteRobotClicked"),d.length===1){P.ZP.error("can not delete all robot");return}z.confirm({title:"\u786E\u8BA4\u5220\u9664\uFF1F",icon:(0,e.jsx)(nt.Z,{}),content:"\u786E\u5B9A\u8981\u5220\u9664 {"+l.name+"} ?",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){console.log("OK"),m(l.uid)},onCancel:function(){console.log("Cancel")}})};return(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{margin:10},children:(0,e.jsxs)(tt.Z,{gap:"small",align:"flex-start",children:[(0,e.jsx)(x.ZP,{size:"small",type:"primary",icon:(0,e.jsx)(rt.Z,{}),onClick:A,children:i.formatMessage({id:"pages.robot.new",defaultMessage:"New"})}),(0,e.jsx)(x.ZP,{onClick:D,size:"small",style:{float:"right"},danger:!0,disabled:l&&l.uid==="",children:i.formatMessage({id:"pages.robot.delete",defaultMessage:"Delete"})})]})}),d.map(function(p){return(0,e.jsxs)("li",{className:l&&l.uid===p.uid?o?"list-item-dark dark-active":"list-item active":o?"list-item-dark":"list-item",onClick:function(){return V(p.uid)},children:[(0,e.jsx)("div",{className:"list-left",children:(0,e.jsx)("img",{src:p.avatar,style:{width:40,height:40}})}),(0,e.jsxs)("div",{className:"list-right",children:[(0,e.jsxs)("div",{className:"top",children:[(0,e.jsx)("span",{className:"nickname",children:p.name}),(0,e.jsx)("span",{className:"timestamp"})]}),(0,e.jsx)("div",{className:"bottom",children:(0,e.jsx)("span",{className:"content",children:p.description})})]})]},p.uid)}),(0,e.jsx)(ze.Z,{title:"\u65B0\u5EFA\u673A\u5668\u4EBA",open:y,okText:"\u4FDD\u5B58",onOk:re,onCancel:Y,children:(0,e.jsx)(w.Z,{form:s,name:"basic",style:{maxWidth:400},children:(0,e.jsx)(w.Z.Item,{label:"\u673A\u5668\u4EBA\u6635\u79F0",name:"nickname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6635\u79F0!"}],children:(0,e.jsx)(fe.Z,{})})})}),E]})},lt=ot,oe=f(48096),ke=f(85322),st=f(9220),$e=f(26859),Ne=f(34994),it=f(5966),je=f(90672),Ue=f(66476),ut=f(7134),ct=f(27484),De=f.n(ct),dt=function(){var r=w.Z.useForm(),n=F()(r,1),o=n[0],t=(0,R.useIntl)(),a=I(function(b){return b.updateRobot}),s=I(function(b){return b.currentRobot});(0,v.useEffect)(function(){var b=I.subscribe(function(u,m){console.log("currentRobot.name: ",u.currentRobot.name),o.setFieldValue("name",u.currentRobot.name),o.setFieldValue("welcome",u.currentRobot.welcome),o.setFieldValue("description",u.currentRobot.description)});return b},[s]);var i=function(){var b=T()(g()().mark(function u(m){return g()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return console.log("handleSubmit",m),m.uid=s.uid,m.avatar=s.avatar,j.next=5,a(m,function(B){B.code===200&&P.ZP.success("update success")});case 5:case"end":return j.stop()}},u)}));return function(m){return b.apply(this,arguments)}}(),c={file_name:"test.png",username:"",type:"",kbname:"",client:"web"},d={name:"file",action:"/visitor/api/upload/avatar",showUploadList:!1,data:c,beforeUpload:function(u){console.log("file:",u," uploadData:",c);var m=De()(new Date).format("YYYYMMDDHHmmss");return c.file_name=m+u.name,c.kbname=s.uid,!0},onChange:function(u){if(u.file.status!=="uploading"&&console.log(u.file,u.fileList),u.file.status==="done"){var m=u.file.response.data;console.log("url: ",m),s.avatar=m,o.setFieldValue("avatar",s.avatar),P.ZP.success("".concat(u.file.name," file uploaded successfully"))}else u.file.status==="error"&&P.ZP.error("".concat(u.file.name," file upload failed."))}},l=function(u){return console.log("Upload event:",u),Array.isArray(u)?u:u==null?void 0:u.fileList};return(0,e.jsxs)(Ne.A,{form:o,onFinish:function(){var b=T()(g()().mark(function u(m){return g()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return console.log("onFinish:",m),j.next=3,i(m);case 3:case"end":return j.stop()}},u)}));return function(u){return b.apply(this,arguments)}}(),initialValues:{name:s.name,welcome:s.welcome,description:s.description},children:[(0,e.jsx)(w.Z.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:l,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:(0,e.jsxs)(Ue.Z,U()(U()({},d),{},{children:[(0,e.jsx)(ut.C,{src:s.avatar}),(0,e.jsx)(x.ZP,{icon:(0,e.jsx)($e.Z,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]}),"avatar")}),(0,e.jsx)(it.Z,{width:"md",name:"name",label:t.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"}),tooltip:t.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"}),placeholder:t.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"})}),(0,e.jsx)(je.Z,{width:"md",name:"welcome",label:t.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"}),tooltip:t.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"}),placeholder:t.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"})}),(0,e.jsx)(je.Z,{width:"md",name:"description",label:t.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"}),tooltip:t.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"}),placeholder:t.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"})})]})},He=function(){var n=(0,R.useIntl)(),o=(0,v.useState)(!1),t=F()(o,2),a=t[0],s=t[1],i=I(function(l){return l.currentRobot});function c(){var l=window.open("/chaty?tid=&","chaty","width=1000,height=800,top=100,left=200,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no");l.onload=function(){l.document.title="Chaty - Bytedesk AI Playground"}}function d(){var l=window.open("https://www.weiyuai.cn/?rid="+i.uid+"&","chaty","width=400,height=600,top=100,left=500,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no");l.onload=function(){l.document.title="Chaty Mobile - Bytedesk AI Playground"}}return(0,e.jsx)(st.Z,{onResize:function(b){s(b.width<596)},children:(0,e.jsxs)(ke.Z,{split:a?"horizontal":"vertical",bordered:!0,headerBordered:!0,children:[(0,e.jsx)(ke.Z,{colSpan:"50%",layout:"center",children:(0,e.jsx)(dt,{})}),(0,e.jsx)(ke.Z,{title:n.formatMessage({id:"pages.robot.tab.preview",defaultMessage:"Preview"}),bordered:!0,extra:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.ZP,{type:"link",size:"small",onClick:c,children:"Chaty"}),(0,e.jsx)(x.ZP,{type:"link",size:"small",onClick:d,children:"Mobile"})]}),tooltip:n.formatMessage({id:"pages.robot.tab.preview",defaultMessage:"Preview"}),layout:"center",children:(0,e.jsx)("div",{className:"chat-iframe-outer"})})]})},"resize-observer")};function an(r){return Re.apply(this,arguments)}function Re(){return Re=_asyncToGenerator(_regeneratorRuntime().mark(function r(n){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/kb/query",{method:"GET",params:{pageNumber:n.pageNumber,pageSize:n.pageSize,client:"web"}}));case 1:case"end":return t.stop()}},r)})),Re.apply(this,arguments)}function ft(r,n){return we.apply(this,arguments)}function we(){return we=T()(g()().mark(function r(n,o){return g()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,R.request)("/api/v1/kb/file/query",{method:"GET",params:{kbName:n,pageNumber:o.pageNumber,pageSize:o.pageSize,client:"web"}}));case 1:case"end":return a.stop()}},r)})),we.apply(this,arguments)}function pt(r,n){return Ce.apply(this,arguments)}function Ce(){return Ce=T()(g()().mark(function r(n,o){return g()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,R.request)("/api/v1/kb/doc/query",{method:"GET",params:{kbName:n,pageNumber:o.pageNumber,pageSize:o.pageSize,client:"web"}}));case 1:case"end":return a.stop()}},r)})),Ce.apply(this,arguments)}function on(r,n){return Se.apply(this,arguments)}function Se(){return Se=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/llm/kb/file/doc/update",{method:"POST",data:{did:n,pageContent:o,client:"web"}}));case 1:case"end":return a.stop()}},r)})),Se.apply(this,arguments)}function ln(r,n,o){return Ze.apply(this,arguments)}function Ze(){return Ze=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,o,t){return _regeneratorRuntime().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",request("/update/doc",{method:"POST",data:{did:n,content:o,metadata:t,client:"web"}}));case 1:case"end":return s.stop()}},r)})),Ze.apply(this,arguments)}function ht(r){return(0,R.request)("/api/v1/kb/file/delete",{method:"POST",params:{kid:r,client:"web"}})}function mt(r){return Me.apply(this,arguments)}function Me(){return Me=T()(g()().mark(function r(n){return g()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,R.request)("/api/v1/kb/doc/delete",{method:"POST",params:{did:n,client:"web"}}));case 1:case"end":return t.stop()}},r)})),Me.apply(this,arguments)}function sn(r){return Te.apply(this,arguments)}function Te(){return Te=_asyncToGenerator(_regeneratorRuntime().mark(function r(n){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/delete/doc",{method:"POST",data:{did:n,client:"web"}}));case 1:case"end":return t.stop()}},r)})),Te.apply(this,arguments)}var te=(0,Le.Ue)()((0,de.mW)((0,de.tJ)((0,Be.n)(function(r,n){return{kbFileResult:{},kbDocResult:{items:[]},currentKbFile:{},currentKbDoc:{fileName:"",pageContent:""},fetchFiles:function(){var o=T()(g()().mark(function a(s,i){var c;return g()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return console.log("kbName",s," pageParams",i),l.next=3,ft(s,i);case 3:c=l.sent,console.log("kbName kbFiles",c);case 5:case"end":return l.stop()}},a)}));function t(a,s){return o.apply(this,arguments)}return t}(),deleteFile:function(){var o=T()(g()().mark(function a(s){var i,c,d,l,b;return g()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return console.log("delete file",s),m.next=3,ht(s);case 3:i=m.sent,c=n().kbFileResult.data.content.filter(function(C){return C.uid!==s}),r(function(C){return{kbFileResult:{items:c}}}),console.log("delete file result",i),d=n().kbDocResult.data.content,l=g()().mark(function C(){var j;return g()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:j=i.data[b],d=d.filter(function(S){return S.uid!==j});case 2:case"end":return y.stop()}},C)}),b=0;case 10:if(!(b0&&r({currentRobot:i.data.content[0]});case 7:case"end":return d.stop()}},a)}));function t(){return o.apply(this,arguments)}return t}(),createRobot:function(){var o=M()(b()().mark(function a(l){var i;return b()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Xe(l);case 2:i=d.sent,console.log("create robot",i),r(function(s){return{robots:[].concat(Ee()(s.robots),[i.data])}});case 5:case"end":return d.stop()}},a)}));function t(a){return o.apply(this,arguments)}return t}(),updateRobot:function(){var o=M()(b()().mark(function a(l,i){var u,d;return b()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return console.log("before update:",l),f.next=3,qe(l);case 3:u=f.sent,i(u),console.log("upate robot",u),d=n().robots.filter(function(c){return c.rid!==l.rid}),r(function(c){return{robots:[l].concat(Ee()(d)),currentRobot:l}});case 8:case"end":return f.stop()}},a)}));function t(a,l){return o.apply(this,arguments)}return t}(),deleteRobot:function(){var o=M()(b()().mark(function a(l){var i;return b()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,_e(l);case 2:i=d.sent,console.log("delete robot",i),r(function(s){return{robots:s.robots.filter(function(f){return f.rid!==l}),currentRobot:s.robots[0]}});case 5:case"end":return d.stop()}},a)}));function t(a){return o.apply(this,arguments)}return t}(),setCurrentRobot:function(t){var a=n().robots.find(function(l){return l.rid===t});console.log("welcomeTip:",a.welcome),r({currentRobot:a})},deleteRobotCache:function(){return r({},!0)}}}),{name:"ROBOT_STORE"}))),S=h(8232),P=h(45360),Oe=h(85576),et=h(86250),x=h(14726),ce=h(96365),tt=h(11475),nt=h(64789),e=h(85893),rt=function(){var n=S.Z.useForm(),o=w()(n,1),t=o[0],a=(0,C.useIntl)(),l=E(function(v){return{robots:v.robots,currentRobot:v.currentRobot,fetchRobots:v.fetchRobots,createRobot:v.createRobot,deleteRobot:v.deleteRobot,setCurrentRobot:v.setCurrentRobot}}),i=l.robots,u=l.currentRobot,d=l.fetchRobots,s=l.createRobot,f=l.deleteRobot,c=l.setCurrentRobot;(0,g.useEffect)(function(){console.log("fetchRobots"),d()},[]);var m=(0,g.useState)(!1),D=w()(m,2),R=D[0],O=D[1],j=function(){O(!0)},T=function(){var F=t.getFieldValue("nickname");console.log("nickname",F),F?(s(F),O(!1)):P.ZP.error("\u673A\u5668\u4EBA\u6635\u79F0\u4E0D\u80FD\u4E3A\u7A7A")},K=function(){O(!1)},re=function(F){console.log("handleClick",F),c(F)},Y=function(){j()},V=Oe.Z.useModal(),I=w()(V,2),G=I[0],A=I[1],B=function(){if(console.log("handleDeleteRobotClicked"),i.length===1){P.ZP.error("can not delete all robot");return}G.confirm({title:"\u786E\u8BA4\u5220\u9664\uFF1F",icon:(0,e.jsx)(tt.Z,{}),content:"\u786E\u5B9A\u8981\u5220\u9664 {"+u.name+"} ?",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){console.log("OK"),f(u.rid)},onCancel:function(){console.log("Cancel")}})};return(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{margin:10},children:(0,e.jsxs)(et.Z,{gap:"small",align:"flex-start",children:[(0,e.jsx)(x.ZP,{size:"small",type:"primary",icon:(0,e.jsx)(nt.Z,{}),onClick:Y,children:a.formatMessage({id:"pages.robot.new",defaultMessage:"New"})}),(0,e.jsx)(x.ZP,{onClick:B,size:"small",style:{float:"right"},danger:!0,disabled:u&&u.rid==="",children:a.formatMessage({id:"pages.robot.delete",defaultMessage:"Delete"})})]})}),i.map(function(v){return(0,e.jsxs)("li",{className:u&&u.rid===v.rid?"list-item active":"list-item",onClick:function(){return re(v.rid)},children:[(0,e.jsx)("div",{className:"list-left",children:(0,e.jsx)("img",{src:v.avatar,style:{width:40,height:40}})}),(0,e.jsxs)("div",{className:"list-right",children:[(0,e.jsxs)("div",{className:"top",children:[(0,e.jsx)("span",{className:"nickname",children:v.name}),(0,e.jsx)("span",{className:"timestamp"})]}),(0,e.jsx)("div",{className:"bottom",children:(0,e.jsx)("span",{className:"content",children:v.description})})]})]},v.rid)}),(0,e.jsx)(Oe.Z,{title:"\u65B0\u5EFA\u673A\u5668\u4EBA",open:R,okText:"\u4FDD\u5B58",onOk:T,onCancel:K,children:(0,e.jsx)(S.Z,{form:t,name:"basic",style:{maxWidth:400},children:(0,e.jsx)(S.Z.Item,{label:"\u673A\u5668\u4EBA\u6635\u79F0",name:"nickname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6635\u79F0!"}],children:(0,e.jsx)(ce.Z,{})})})}),A]})},at=rt,oe=h(48096),ge=h(58128),ot=h(9220),Le=h(88484),Be=h(34994),lt=h(5966),ve=h(90672),ze=h(66476),st=h(7134),it=h(27484),xe=h.n(it),ut=function(){var r=S.Z.useForm(),n=w()(r,1),o=n[0],t=(0,C.useIntl)(),a=E(function(f){return f.updateRobot}),l=E(function(f){return f.currentRobot});E.subscribe(function(f,c){console.log("currentRobot.name: ",f.currentRobot.name),o.setFieldValue("name",f.currentRobot.name),o.setFieldValue("welcome",f.currentRobot.welcome),o.setFieldValue("description",f.currentRobot.description)});var i=function(){var f=M()(b()().mark(function c(m){return b()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return console.log("handleSubmit",m),m.rid=l.rid,m.avatar=l.avatar,R.next=5,a(m,function(O){O.code===200&&P.ZP.success("update success")});case 5:case"end":return R.stop()}},c)}));return function(m){return f.apply(this,arguments)}}(),u={file_name:"test.png",username:"",type:"",kbname:"",client:"web"},d={name:"file",action:"/visitor/api/upload/avatar",showUploadList:!1,data:u,beforeUpload:function(c){console.log("file:",c," uploadData:",u);var m=xe()(new Date).format("YYYYMMDDHHmmss");return u.file_name=m+c.name,u.kbname=l.rid,!0},onChange:function(c){if(c.file.status!=="uploading"&&console.log(c.file,c.fileList),c.file.status==="done"){var m=c.file.response.data;console.log("url: ",m),l.avatar=m,o.setFieldValue("avatar",l.avatar),P.ZP.success("".concat(c.file.name," file uploaded successfully"))}else c.file.status==="error"&&P.ZP.error("".concat(c.file.name," file upload failed."))}},s=function(c){return console.log("Upload event:",c),Array.isArray(c)?c:c==null?void 0:c.fileList};return(0,e.jsxs)(Be.A,{form:o,onFinish:function(){var f=M()(b()().mark(function c(m){return b()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return console.log("onFinish:",m),R.next=3,i(m);case 3:case"end":return R.stop()}},c)}));return function(c){return f.apply(this,arguments)}}(),initialValues:{name:l.name,welcome:l.welcome,description:l.description},children:[(0,e.jsx)(S.Z.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:s,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:(0,e.jsxs)(ze.Z,U()(U()({},d),{},{children:[(0,e.jsx)(st.C,{src:l.avatar}),(0,e.jsx)(x.ZP,{icon:(0,e.jsx)(Le.Z,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]}),"avatar")}),(0,e.jsx)(lt.Z,{width:"md",name:"name",label:t.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"}),tooltip:t.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"}),placeholder:t.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"})}),(0,e.jsx)(ve.Z,{width:"md",name:"welcome",label:t.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"}),tooltip:t.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"}),placeholder:t.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"})}),(0,e.jsx)(ve.Z,{width:"md",name:"description",label:t.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"}),tooltip:t.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"}),placeholder:t.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"})})]})},$e=function(){var n=(0,C.useIntl)(),o=(0,g.useState)(!1),t=w()(o,2),a=t[0],l=t[1],i=E(function(s){return s.currentRobot});function u(){var s=window.open("/chaty?tid=&","chaty","width=1000,height=800,top=100,left=200,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no");s.onload=function(){s.document.title="Chaty - Bytedesk AI Playground"}}function d(){var s=window.open("https://www.weiyuai.cn/ai?rid="+i.rid+"&","chaty","width=400,height=600,top=100,left=500,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no");s.onload=function(){s.document.title="Chaty Mobile - Bytedesk AI Playground"}}return(0,e.jsx)(ot.Z,{onResize:function(f){l(f.width<596)},children:(0,e.jsxs)(ge.Z,{split:a?"horizontal":"vertical",bordered:!0,headerBordered:!0,children:[(0,e.jsx)(ge.Z,{colSpan:"50%",layout:"center",children:(0,e.jsx)(ut,{})}),(0,e.jsx)(ge.Z,{title:n.formatMessage({id:"pages.robot.tab.preview",defaultMessage:"Preview"}),bordered:!0,extra:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.ZP,{type:"link",size:"small",onClick:u,children:"Chaty"}),(0,e.jsx)(x.ZP,{type:"link",size:"small",onClick:d,children:"Mobile"})]}),tooltip:n.formatMessage({id:"pages.robot.tab.preview",defaultMessage:"Preview"}),layout:"center",children:(0,e.jsx)("div",{className:"chat-iframe-outer",children:(0,e.jsx)("iframe",{id:"chat-iframe",src:"https://www.weiyuai.cn/ai?rid="+i.rid+"&",title:"demo",width:"100%",height:"100%",style:{border:0},"data-loaded":"true"})})})]})},"resize-observer")};function an(r){return Fe.apply(this,arguments)}function Fe(){return Fe=_asyncToGenerator(_regeneratorRuntime().mark(function r(n){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/kb/query",{method:"GET",params:{pageNumber:n.pageNumber,pageSize:n.pageSize,client:"web"}}));case 1:case"end":return t.stop()}},r)})),Fe.apply(this,arguments)}function ct(r,n){return ye.apply(this,arguments)}function ye(){return ye=M()(b()().mark(function r(n,o){return b()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,C.request)("/api/v1/kb/file/query",{method:"GET",params:{kbName:n,pageNumber:o.pageNumber,pageSize:o.pageSize,client:"web"}}));case 1:case"end":return a.stop()}},r)})),ye.apply(this,arguments)}function dt(r,n){return je.apply(this,arguments)}function je(){return je=M()(b()().mark(function r(n,o){return b()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,C.request)("/api/v1/kb/doc/query",{method:"GET",params:{kbName:n,pageNumber:o.pageNumber,pageSize:o.pageSize,client:"web"}}));case 1:case"end":return a.stop()}},r)})),je.apply(this,arguments)}function on(r,n){return ke.apply(this,arguments)}function ke(){return ke=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,o){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/llm/kb/file/doc/update",{method:"POST",data:{did:n,pageContent:o,client:"web"}}));case 1:case"end":return a.stop()}},r)})),ke.apply(this,arguments)}function ln(r,n,o){return we.apply(this,arguments)}function we(){return we=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,o,t){return _regeneratorRuntime().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",request("/update/doc",{method:"POST",data:{did:n,content:o,metadata:t,client:"web"}}));case 1:case"end":return l.stop()}},r)})),we.apply(this,arguments)}function ft(r){return(0,C.request)("/api/v1/kb/file/delete",{method:"POST",params:{kid:r,client:"web"}})}function pt(r){return Re.apply(this,arguments)}function Re(){return Re=M()(b()().mark(function r(n){return b()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,C.request)("/api/v1/kb/doc/delete",{method:"POST",params:{did:n,client:"web"}}));case 1:case"end":return t.stop()}},r)})),Re.apply(this,arguments)}function sn(r){return De.apply(this,arguments)}function De(){return De=_asyncToGenerator(_regeneratorRuntime().mark(function r(n){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/delete/doc",{method:"POST",data:{did:n,client:"web"}}));case 1:case"end":return t.stop()}},r)})),De.apply(this,arguments)}var te=(0,Ie.Ue)()((0,ue.mW)((0,ue.tJ)((0,Ae.n)(function(r,n){return{kbFileResult:{},kbDocResult:{items:[]},currentKbFile:{},currentKbDoc:{fileName:"",pageContent:""},fetchFiles:function(){var o=M()(b()().mark(function a(l,i){var u;return b()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return console.log("kbName",l," pageParams",i),s.next=3,ct(l,i);case 3:u=s.sent,console.log("kbName kbFiles",u);case 5:case"end":return s.stop()}},a)}));function t(a,l){return o.apply(this,arguments)}return t}(),deleteFile:function(){var o=M()(b()().mark(function a(l){var i,u,d,s,f;return b()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return console.log("delete file",l),m.next=3,ft(l);case 3:i=m.sent,u=n().kbFileResult.data.content.filter(function(D){return D.kid!==l}),r(function(D){return{kbFileResult:{items:u}}}),console.log("delete file result",i),d=n().kbDocResult.data.content,s=b()().mark(function D(){var R;return b()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:R=i.data[f],d=d.filter(function(T){return T.did!==R});case 2:case"end":return j.stop()}},D)}),f=0;case 10:if(!(f0&&Ee(I.data.content);case 6:case"end":return L.stop()}},b)}));return function(){return v.apply(this,arguments)}}();(0,s.useEffect)(function(){De()},[]);var ye=function(){t(!0)},Oe=function(){var v=h()(f()().mark(function b(){var B,I,N,L,J;return f()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:B=l.getFieldValue("nickname"),I=l.getFieldValue("email"),N=l.getFieldValue("mobile"),L=l.getFieldValue("password"),J={nickname:B,email:I,mobile:N,password:L,orgUid:p.uid},be(J),t(!1);case 7:case"end":return Y.stop()}},b)}));return function(){return v.apply(this,arguments)}}(),Ce=function(){t(!1)},Me=function(){ye()},Te=function(b,B){je(b)},Pe=function(b,B){console.log("list on delete",b)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(de.Z,{gap:"small",wrap:"wrap",children:(0,n.jsx)(k.ZP,{type:"primary",size:"small",icon:(0,n.jsx)(_e.Z,{}),onClick:Me,children:"\u521B\u5EFA\u5BA2\u670D\u8D26\u53F7"})}),(0,n.jsx)(z.Z,{itemLayout:"horizontal",dataSource:W,renderItem:function(b,B){return(0,n.jsx)(z.Z.Item,{style:K.uid===b.uid?{backgroundColor:r?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},actions:K.uid===b.uid?[(0,n.jsx)("a",{onClick:function(){return Pe(b,B)},children:"\u5220\u9664"},"list-delete")]:[],onClick:function(){return Te(b,B)},children:(0,n.jsx)(z.Z.Item.Meta,{style:{marginLeft:"10px"},avatar:(0,n.jsx)(R.C,{src:b.avatar}),title:b.nickname})})}}),(0,n.jsx)(me.Z,{title:"\u521B\u5EFA\u5BA2\u670D",open:O,onOk:Oe,onCancel:Ce,children:(0,n.jsxs)(i.Z,{form:l,name:"agentForm",style:{maxWidth:400},children:[(0,n.jsx)(i.Z.Item,{label:"\u5BA2\u670D\u6635\u79F0",name:"nickname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6635\u79F0!"}],children:(0,n.jsx)(G.Z,{})}),(0,n.jsx)(i.Z.Item,{label:"\u90AE\u7BB1",name:"email",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1!"}],children:(0,n.jsx)(G.Z,{})}),(0,n.jsx)(i.Z.Item,{label:"\u624B\u673A\u53F7",name:"mobile",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7!"}],children:(0,n.jsx)(G.Z,{})}),(0,n.jsx)(i.Z.Item,{label:"\u5BC6\u7801",name:"password",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801!"}],children:(0,n.jsx)(G.Z,{})})]})})]})},ge=ce,pe=e(77154),ve=E.Z.Sider,fe=E.Z.Content,he=function(){var D=(0,pe.Z)(),y=D.leftSiderStyle,l=D.contentStyle;return(0,s.useEffect)(function(){},[]),(0,n.jsxs)(E.Z,{children:[(0,n.jsx)(ve,{style:y,children:(0,n.jsx)(ge,{})}),(0,n.jsx)(E.Z,{children:(0,n.jsx)(fe,{children:(0,n.jsx)(ue,{})})})]})},Ae=he},30694:function($,C,e){e.d(C,{E:function(){return c}});var E=e(15009),s=e.n(E),U=e(19632),o=e.n(U),f=e(99289),j=e.n(f),h=e(3418),x=e(64529),m=e(782),F=e(71381),c=(0,x.Ue)()((0,m.mW)((0,m.tJ)((0,F.n)(function(_,A){return{agents:[],currentAgent:{uid:"",orgUid:""},createAgent:function(){var d=j()(s()().mark(function g(u){var i,R;return s()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,(0,h.x)(u);case 2:i=S.sent,console.log("create agent:",i),i.code===200&&(R=i.data,_({agents:[R].concat(o()(A().agents)),currentAgent:R}));case 5:case"end":return S.stop()}},g)}));function a(g){return d.apply(this,arguments)}return a}(),setAgents:function(){var d=j()(s()().mark(function g(u){return s()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:A().currentAgent.uid===""?_({agents:u,currentAgent:u[0]}):_({agents:u});case 1:case"end":return R.stop()}},g)}));function a(g){return d.apply(this,arguments)}return a}(),setCurrentAgent:function(a){return _(function(g){g.currentAgent=a})},deleteAgent:function(){return _({},!0)}}}),{name:"AGENT_STORE"})))},87676:function($,C,e){e.d(C,{u:function(){return m}});var E=e(15009),s=e.n(E),U=e(99289),o=e.n(U),f=e(24172),j=e(64529),h=e(782),x=e(71381),m=(0,j.Ue)()((0,h.mW)((0,h.tJ)((0,x.n)(function(F,c){return{orgCurrent:{uid:"",name:"",description:""},setOrgCurrent:function(A){F({orgCurrent:A})},createOrg:function(){var _=o()(s()().mark(function d(a){var g;return s()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,f.Kq)(a);case 2:g=i.sent,console.log("createOrg:",g),g.code==200;case 5:case"end":return i.stop()}},d)}));function A(d){return _.apply(this,arguments)}return A}(),deleteOrgCache:function(){return F({},!0)}}}),{name:"ORGANIZTION_STORE"})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Agent__index.849a7c4d.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Agent__index.849a7c4d.async.js deleted file mode 100644 index 098808461f..0000000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Agent__index.849a7c4d.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[642],{17482:function(ie,B,r){r.r(B),r.d(B,{default:function(){return t}});var $=r(19245),F=r(21612),w=r(67294),p=r(15009),Z=r.n(p),O=r(99289),N=r.n(O),z=r(5574),M=r.n(z),J=r(64789),R=r(33277),v=r(8232),E=r(45360),K=r(85576),P=r(83863),j=r(96365),k=r(14726),e=r(85893),G=function(){var u=v.Z.useForm(),a=M()(u,1),d=a[0],g=(0,w.useState)(!1),C=M()(g,2),S=C[0],A=C[1],D=(0,$.u)(function(m){return{depCurrent:m.depCurrent,depOptions:m.depOptions,departments:m.departments,createMem:m.createMem,setDepCurrent:m.setDepCurrent}}),b=D.depCurrent,H=D.depOptions,te=D.departments,Y=D.createMem,q=D.setDepCurrent,_=(0,w.useMemo)(function(){return b.name==="DEPT_CS"?b.members:[]},[b]),ee=function(){A(!0)},re=function(){var m=N()(Z()().mark(function f(){var T,y,x,V,ae,I,ue,le;return Z()().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(T=d.getFieldValue("jobNo"),y=d.getFieldValue("realname"),x=d.getFieldValue("seatNo"),V=d.getFieldValue("telephone"),ae=d.getFieldValue("mobile"),I=d.getFieldValue("email"),ue=b.did,console.log("realname",y),b.did!==""){L.next=11;break}return E.ZP.error("please choose a department"),L.abrupt("return");case 11:y?(le={jobNo:T,realname:y,seatNo:x,telephone:V,mobile:ae,email:I,depDid:ue},Y(le),A(!1)):E.ZP.error("name should not be null");case 12:case"end":return L.stop()}},f)}));return function(){return m.apply(this,arguments)}}(),se=function(){A(!1)},ne=function(){console.log("new mem"),ee()},h=function(f){console.log("select checked",f),q(f)};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(K.Z,{title:"\u6DFB\u52A0\u6210\u5458",open:S,onOk:re,onCancel:se,children:(0,e.jsxs)(v.Z,{form:d,name:"memForm",initialValues:{dep_did:b.did},children:[(0,e.jsx)(v.Z.Item,{label:"\u90E8\u95E8",name:"dep_did",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u90E8\u95E8!"}],children:(0,e.jsx)(P.Z,{options:H,onChange:h})}),(0,e.jsx)(v.Z.Item,{label:"\u59D3\u540D",name:"realname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D!"}],children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(v.Z.Item,{label:"\u624B\u673A\u53F7",name:"mobile",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7!"}],children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(v.Z.Item,{label:"\u5DE5\u53F7",name:"jobNo",rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u5DE5\u53F7!"}],children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(v.Z.Item,{label:"\u5EA7\u4F4D\u53F7",name:"seatNo",rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u5EA7\u4F4D\u53F7!"}],children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(v.Z.Item,{label:"\u5206\u673A\u53F7",name:"telephone",rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u5206\u673A\u53F7!"}],children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(v.Z.Item,{label:"\u90AE\u7BB1",name:"email",rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1!"}],children:(0,e.jsx)(j.Z,{})})]})}),(0,e.jsx)(k.ZP,{type:"primary",size:"small",icon:(0,e.jsx)(J.Z,{}),onClick:ne,children:"create agent"}),(0,e.jsx)(R.Rs,{rowKey:"id",headerTitle:"DEPT_CS",dataSource:_,showActions:"hover",editable:{onSave:function(){var m=N()(Z()().mark(function T(y,x,V){return Z()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return console.log(y,x,V),I.abrupt("return",!0);case 2:case"end":return I.stop()}},T)}));function f(T,y,x){return m.apply(this,arguments)}return f}()},metas:{title:{dataIndex:"realname"},avatar:{dataIndex:"user.avatar",editable:!1},description:{dataIndex:"user.description",render:function(f){return(0,e.jsx)("div",{children:f})}},actions:{render:function(f,T,y,x){return[(0,e.jsx)("a",{onClick:function(){x==null||x.startEditable(T.mid)},children:"\u7F16\u8F91"},"link")]}}}})]})},U=G,W=r(68508),Q=function(){var u=v.Z.useForm(),a=M()(u,1),d=a[0],g=(0,w.useState)(!1),C=M()(g,2),S=C[0],A=C[1],D=(0,$.u)(function(h){return{depCurrent:h.depCurrent,departments:h.departments,createDep:h.createDep,setDepCurrent:h.setDepCurrent}}),b=D.depCurrent,H=D.departments,te=D.createDep,Y=D.setDepCurrent,q=(0,w.useMemo)(function(){return H.filter(function(h){return h.label==="DEPT_CS"})},[H]),_=function(){A(!0)},ee=function(){var h=N()(Z()().mark(function m(){var f;return Z()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:f=d.getFieldValue("nickname"),console.log("nickname",f),f?(te(f),A(!1)):E.ZP.error("\u6635\u79F0\u4E0D\u80FD\u4E3A\u7A7A");case 3:case"end":return y.stop()}},m)}));return function(){return h.apply(this,arguments)}}(),re=function(){A(!1)},se=function(){console.log("new dep"),_()},ne=function(m){Y(m.key)};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(W.Z,{onClick:ne,defaultSelectedKeys:[b.did],mode:"inline",items:q}),(0,e.jsx)(K.Z,{title:"\u521B\u5EFA\u90E8\u95E8",open:S,onOk:ee,onCancel:re,children:(0,e.jsx)(v.Z,{form:d,name:"depForm",style:{maxWidth:400},children:(0,e.jsx)(v.Z.Item,{label:"\u90E8\u95E8\u540D\u79F0",name:"nickname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0!"}],children:(0,e.jsx)(j.Z,{})})})})]})},X=Q,i=F.Z.Sider,o=F.Z.Content,c={margin:"10px",minHeight:120,backgroundColor:"#EEFAE0"},n={margin:"10px",backgroundColor:"#EEFAE0",borderRight:"1px solid #ccc"},l=function(){var u=(0,$.u)(function(a){return a.queryOrgs});return(0,w.useEffect)(function(){u()},[]),(0,e.jsxs)(F.Z,{children:[(0,e.jsx)(i,{style:n,children:(0,e.jsx)(X,{})}),(0,e.jsx)(F.Z,{children:(0,e.jsx)(o,{style:c,children:(0,e.jsx)(U,{})})})]})},t=l},19245:function(ie,B,r){r.d(B,{u:function(){return X}});var $=r(19632),F=r.n($),w=r(15009),p=r.n(w),Z=r(99289),O=r.n(Z),N=r(97857),z=r.n(N),M=r(86745);function J(i){return R.apply(this,arguments)}function R(){return R=O()(p()().mark(function i(o){return p()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,M.request)("/api/org",{method:"POST",data:{nickname:o,client:"web"}}));case 1:case"end":return n.stop()}},i)})),R.apply(this,arguments)}function v(i,o,c){return E.apply(this,arguments)}function E(){return E=O()(p()().mark(function i(o,c,n){return p()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,M.request)("/api/v1/dep/create",{method:"POST",data:{nickname:o,parent_did:c,org_oid:n,client:"web"}}));case 1:case"end":return t.stop()}},i)})),E.apply(this,arguments)}function K(i){return P.apply(this,arguments)}function P(){return P=O()(p()().mark(function i(o){return p()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,M.request)("/api/v1/mem/create",{method:"POST",data:z()(z()({},o),{},{client:"web"})}));case 1:case"end":return n.stop()}},i)})),P.apply(this,arguments)}function j(i,o){return k.apply(this,arguments)}function k(){return k=O()(p()().mark(function i(o,c){return p()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,M.request)("/api/v1/org/query",{method:"GET",params:{pageNumber:o,pageSize:c,client:"web"}}));case 1:case"end":return l.stop()}},i)})),k.apply(this,arguments)}function e(i){return G.apply(this,arguments)}function G(){return G=_asyncToGenerator(_regeneratorRuntime().mark(function i(o){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/api/org",_objectSpread({method:"GET",params:{client:"web"}},o||{})));case 1:case"end":return n.stop()}},i)})),G.apply(this,arguments)}var U=r(64529),W=r(782),Q=r(1151),X=(0,U.Ue)()((0,W.mW)((0,W.tJ)((0,Q.n)(function(i,o){return{orgCurrent:{oid:"",name:"",avatar:"",description:""},depOptions:[],depCurrent:{did:""},departments:[],createOrg:function(){var c=O()(p()().mark(function l(t){var s;return p()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,J(t);case 2:s=a.sent,console.log("createOrg:",s),s.code==200&&o().transferOrgToTree(s.data);case 5:case"end":return a.stop()}},l)}));function n(l){return c.apply(this,arguments)}return n}(),createDep:function(){var c=O()(p()().mark(function l(t){var s,u,a,d;return p()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return s=o().orgCurrent.oid,C.next=3,v(t,"",s);case 3:u=C.sent,console.log("createDep:",u),u.code==200&&(a={label:u.data.name,key:u.data.did},d={label:u.data.name,value:u.data.did},i({depOptions:[].concat(F()(o().depOptions),[d]),departments:[].concat(F()(o().departments),[a])}));case 6:case"end":return C.stop()}},l)}));function n(l){return c.apply(this,arguments)}return n}(),setDepCurrent:function(n){for(var l=o().orgCurrent.departments,t=0;t0&&e[0]!==void 0?e[0]:100,a.abrupt("return",new Promise(function(l){setTimeout(function(){l(!0)},r)}));case 2:case"end":return a.stop()}},i)}));return function(){return u.apply(this,arguments)}}(),O=function(){var u=m()(s()().mark(function i(){var r,e=arguments;return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=e.length>0&&e[0]!==void 0?e[0]:100,a.next=3,h(r);case 3:case"end":return a.stop()}},i)}));return function(){return u.apply(this,arguments)}}(),C=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"\u6807\u9898",dataIndex:"title",copyable:!0,ellipsis:!0,tooltip:"\u6807\u9898\u8FC7\u957F\u4F1A\u81EA\u52A8\u6536\u7F29",formItemProps:{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}},{disable:!0,title:"\u72B6\u6001",dataIndex:"state",filters:!0,onFilter:!0,ellipsis:!0,valueType:"select",valueEnum:{all:{text:"\u8D85\u957F".repeat(50)},open:{text:"\u672A\u89E3\u51B3",status:"Error"},closed:{text:"\u5DF2\u89E3\u51B3",status:"Success",disabled:!0},processing:{text:"\u89E3\u51B3\u4E2D",status:"Processing"}}},{disable:!0,title:"\u6807\u7B7E",dataIndex:"labels",search:!1,renderFormItem:function(i,r){var e=r.defaultRender;return e(i)},render:function(i,r){return(0,_.jsx)(I.Z,{children:r.labels.map(function(e){var t=e.name,a=e.color;return(0,_.jsx)(R.Z,{color:a,children:t},t)})})}},{title:"\u521B\u5EFA\u65F6\u95F4",key:"showTime",dataIndex:"created_at",valueType:"date",sorter:!0,hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",valueType:"dateRange",hideInTable:!0,search:{transform:function(i){return{startTime:i[0],endTime:i[1]}}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(i,r,e,t){return[(0,_.jsx)("a",{onClick:function(){var l;t==null||(l=t.startEditable)===null||l===void 0||l.call(t,r.id)},children:"\u7F16\u8F91"},"editable"),(0,_.jsx)("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",children:"\u67E5\u770B"},"view"),(0,_.jsx)(v.Z,{onSelect:function(){return t==null?void 0:t.reload()},menus:[{key:"copy",name:"\u590D\u5236"},{key:"delete",name:"\u5220\u9664"}]},"actionGroup")]}}],U=function(){var i=(0,j.useRef)();return(0,_.jsx)(M.Z,{columns:C,actionRef:i,cardBordered:!0,request:function(){var r=m()(s()().mark(function e(t,a,l){return s()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return console.log(a,l),c.next=3,O(2e3);case 3:return c.abrupt("return",(0,y.ZP)("https://proapi.azurewebsites.net/github/issues",{params:t}));case 4:case"end":return c.stop()}},e)}));return function(e,t,a){return r.apply(this,arguments)}}(),editable:{type:"multiple"},columnsState:{persistenceKey:"pro-table-singe-demos",persistenceType:"localStorage",defaultValue:{option:{fixed:"right",disable:!0}},onChange:function(e){console.log("value: ",e)}},rowKey:"id",search:{labelWidth:"auto"},options:{setting:{listsHeight:400}},form:{syncToUrl:function(e,t){return t==="get"?d()(d()({},e),{},{created_at:[e.startTime,e.endTime]}):e}},pagination:{pageSize:5,onChange:function(e){return console.log(e)}},dateFormatter:"string",headerTitle:"\u9AD8\u7EA7\u8868\u683C",toolBarRender:function(){return[(0,_.jsx)(D.ZP,{icon:(0,_.jsx)(P.Z,{}),onClick:function(){var t;(t=i.current)===null||t===void 0||t.reload()},type:"primary",children:"\u65B0\u5EFA"},"button"),(0,_.jsx)(b.Z,{menu:{items:[{label:"1st item",key:"1"},{label:"2nd item",key:"1"},{label:"3rd item",key:"1"}]},children:(0,_.jsx)(D.ZP,{children:(0,_.jsx)(g.Z,{})})},"menu")]}})};o.default=U},24654:function(){}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__index.7326da37.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__index.7326da37.async.js deleted file mode 100644 index 3984cc0f77..0000000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__index.7326da37.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[148],{45966:function(k,t,a){a.r(t);var e=a(21612),s=a(68508),y=a(67294),i=a(85893),E=e.Z.Header,M=e.Z.Footer,g=e.Z.Sider,d=e.Z.Content,u=[{label:"\u9AD8\u7EA7",key:"top",children:[{label:"thread",key:"xinxixitongxiangmuguanlishi"}]},{label:"\u4E2D\u7EA7",key:"middle",children:[{label:"thread 2",key:"xitongjichengxiangmuguanligongchengshi"}]}],o=[{label:"message",key:"xinxixitongxiangmuguanlishi"},{label:"message 2",key:"xitongjichengxiangmuguanligongchengshi"}],c={minHeight:120,backgroundColor:"#EEFAE0"},h={backgroundColor:"#EEFAE0",borderRight:"1px solid #ccc"},x=function(){var m=function(r){console.log("menu click ",r);for(var l=0;l0&&e[0]!==void 0?e[0]:100,a.abrupt("return",new Promise(function(_){setTimeout(function(){_(!0)},t)}));case 2:case"end":return a.stop()}},i)}));return function(){return u.apply(this,arguments)}}(),f=function(){var u=m()(o()().mark(function i(){var t,e=arguments;return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.length>0&&e[0]!==void 0?e[0]:100,a.next=3,p(t);case 3:case"end":return a.stop()}},i)}));return function(){return u.apply(this,arguments)}}(),j=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"\u6807\u9898",dataIndex:"title",copyable:!0,ellipsis:!0,tooltip:"\u6807\u9898\u8FC7\u957F\u4F1A\u81EA\u52A8\u6536\u7F29",formItemProps:{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}},{disable:!0,title:"\u72B6\u6001",dataIndex:"state",filters:!0,onFilter:!0,ellipsis:!0,valueType:"select",valueEnum:{all:{text:"\u8D85\u957F".repeat(50)},open:{text:"\u672A\u89E3\u51B3",status:"Error"},closed:{text:"\u5DF2\u89E3\u51B3",status:"Success",disabled:!0},processing:{text:"\u89E3\u51B3\u4E2D",status:"Processing"}}},{disable:!0,title:"\u6807\u7B7E",dataIndex:"labels",search:!1,renderFormItem:function(i,t){var e=t.defaultRender;return e(i)},render:function(i,t){return(0,s.jsx)(D.Z,{children:t.labels.map(function(e){var n=e.name,a=e.color;return(0,s.jsx)(b.Z,{color:a,children:n},n)})})}},{title:"\u521B\u5EFA\u65F6\u95F4",key:"showTime",dataIndex:"created_at",valueType:"date",sorter:!0,hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",valueType:"dateRange",hideInTable:!0,search:{transform:function(i){return{startTime:i[0],endTime:i[1]}}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(i,t,e,n){return[(0,s.jsx)("a",{onClick:function(){var _;n==null||(_=n.startEditable)===null||_===void 0||_.call(n,t.id)},children:"\u7F16\u8F91"},"editable"),(0,s.jsx)("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",children:"\u67E5\u770B"},"view"),(0,s.jsx)(T.Z,{onSelect:function(){return n==null?void 0:n.reload()},menus:[{key:"copy",name:"\u590D\u5236"},{key:"delete",name:"\u5220\u9664"}]},"actionGroup")]}}],C=function(){var i=(0,M.useRef)();return(0,s.jsx)(P.Z,{columns:j,actionRef:i,cardBordered:!0,request:function(){var t=m()(o()().mark(function e(n,a,_){return o()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return console.log(a,_),l.next=3,f(2e3);case 3:return l.abrupt("return",(0,O.ZP)("https://proapi.azurewebsites.net/github/issues",{params:n}));case 4:case"end":return l.stop()}},e)}));return function(e,n,a){return t.apply(this,arguments)}}(),editable:{type:"multiple"},columnsState:{persistenceKey:"pro-table-singe-demos",persistenceType:"localStorage",defaultValue:{option:{fixed:"right",disable:!0}},onChange:function(e){console.log("value: ",e)}},rowKey:"id",search:{labelWidth:"auto"},options:{setting:{listsHeight:400}},form:{syncToUrl:function(e,n){return n==="get"?c()(c()({},e),{},{created_at:[e.startTime,e.endTime]}):e}},pagination:{pageSize:5,onChange:function(e){return console.log(e)}},dateFormatter:"string",headerTitle:"\u9AD8\u7EA7\u8868\u683C",toolBarRender:function(){return[(0,s.jsx)(y.ZP,{icon:(0,s.jsx)(h.Z,{}),onClick:function(){var n;(n=i.current)===null||n===void 0||n.reload()},type:"primary",children:"\u65B0\u5EFA"},"button")]}})};d.default=C},24654:function(){}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Workgroup__index.c248e59e.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Workgroup__index.c248e59e.async.js deleted file mode 100644 index 498bd3b03a..0000000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Workgroup__index.c248e59e.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[828],{48717:function(k,o,i){i.r(o);var e=i(21612),g=i(68508),y=i(67294),l=i(85893),m=e.Z.Header,C=e.Z.Footer,u=e.Z.Sider,s=e.Z.Content,d=[{label:"\u9AD8\u7EA7",key:"top",children:[{label:"wgroup",key:"xinxixitongxiangmuguanlishi"}]},{label:"\u4E2D\u7EA7",key:"middle",children:[{label:"wgroup 2",key:"xitongjichengxiangmuguanligongchengshi"}]}],t=[{label:"\u4FE1\u606F\u7CFB\u7EDF\u9879\u76EE\u7BA1\u7406\u5E08",key:"xinxixitongxiangmuguanlishi"},{label:"\u7CFB\u7EDF\u96C6\u6210\u9879\u76EE\u7BA1\u7406\u5DE5\u7A0B\u5E08",key:"xitongjichengxiangmuguanligongchengshi"}],c={minHeight:120,backgroundColor:"#EEFAE0"},x={backgroundColor:"#EEFAE0",borderRight:"1px solid #ccc"},M={backgroundColor:"#EEFAE0"},E=function(){var h=function(r){console.log("menu click ",r);for(var a=0;a0&&F(O.data.content);case 6:case"end":return w.stop()}},C)}));return function(){return E.apply(this,arguments)}}(),te=function(){var E=_()(u()().mark(function C(){var I,O;return u()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return I={pageNumber:0,pageSize:10,orgUid:M.uid},w.next=3,T(I);case 3:O=w.sent,console.log("getWorkgroups",O),O.code===200&&O.data.content.length>0&&W(O.data.content);case 6:case"end":return w.stop()}},C)}));return function(){return E.apply(this,arguments)}}();(0,o.useEffect)(function(){te(),S()},[]);var ie=function(){t(!0)},z=function(){var E=_()(u()().mark(function C(){var I,O;return u()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:I=n.getFieldValue("nickname"),O={nickname:I,orgUid:M.uid},Y(O),t(!1);case 4:case"end":return w.stop()}},C)}));return function(){return E.apply(this,arguments)}}(),Ne=function(){t(!1)},Je=function(C,I){k(C)},Ye=function(C,I){console.log("list on delete",C)},He=function(){ie()};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(De.Z,{gap:"small",wrap:"wrap",children:(0,r.jsx)(ne.ZP,{type:"primary",size:"small",icon:(0,r.jsx)(he.Z,{}),onClick:He,children:"\u521B\u5EFA\u6280\u80FD\u7EC4"})}),(0,r.jsx)(ae.Z,{itemLayout:"horizontal",dataSource:g,renderItem:function(C,I){return(0,r.jsx)(ae.Z.Item,{style:i.uid===C.uid?{backgroundColor:s?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},actions:i.uid===C.uid?[(0,r.jsx)("a",{onClick:function(){return Ye(C,I)},children:"\u5220\u9664"},"list-delete")]:[],onClick:function(){return Je(C,I)},children:(0,r.jsx)(ae.Z.Item.Meta,{style:{marginLeft:"10px"},avatar:(0,r.jsx)(de.C,{src:C.avatar}),title:C.nickname})})}}),(0,r.jsx)(Ee.Z,{title:"\u521B\u5EFA\u6280\u80FD\u7EC4",open:h,onOk:z,onCancel:Ne,children:(0,r.jsx)(N.Z,{form:n,name:"wgForm",style:{maxWidth:400},children:(0,r.jsx)(N.Z.Item,{label:"\u6280\u80FD\u7EC4\u6635\u79F0",name:"nickname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6635\u79F0!"}],children:(0,r.jsx)(Fe.Z,{})})})})]})},be=Ce,je=e(48096),oe=e(80049),H=e(34994),ee=e(62370),ye=e(77636),Ae=e(5966),ue=e(90672),We=e(83863),Te=e(27484),ke=e.n(Te),Oe=function(){var a=N.Z.useForm(),d=D()(a,1),n=d[0],A=(0,le.E)(function(g){return g.agents}),s=$(function(g){return g.currentWorkgroup}),j=(0,o.useState)([]),m=D()(j,2),h=m[0],t=m[1];(0,o.useEffect)(function(){var g=$.subscribe(function(i){var W;n.setFieldValue("nickname",i.currentWorkgroup.nickname),n.setFieldValue("avatar",i.currentWorkgroup.avatar),n.setFieldValue("description",i.currentWorkgroup.description);var Y=[];(W=i.currentWorkgroup.agents)===null||W===void 0||W.forEach(function(k){Y.push(k.uid)}),t(Y)});return g},[s]);var M=function(i){console.log("selected ".concat(i)),t(i)},F={file_name:"test.png",username:"",type:"",kbname:"",client:"web"},y={name:"file",action:"/visitor/api/upload/avatar",showUploadList:!1,data:F,beforeUpload:function(i){console.log("file:",i," uploadData:",F);var W=ke()(new Date).format("YYYYMMDDHHmmss");return F.file_name=W+i.name,!0},onChange:function(i){if(i.file.status!=="uploading"&&console.log(i.file,i.fileList),i.file.status==="done"){var W=i.file.response.data;console.log("url: ",W),oe.yw.success("".concat(i.file.name," file uploaded successfully"))}else i.file.status==="error"&&oe.yw.error("".concat(i.file.name," file upload failed."))}};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(H.A,{form:n,style:{marginLeft:"100px",width:"300px"},onFinish:function(){var g=_()(u()().mark(function i(W){return u()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:console.log("onFinish:",W);case 1:case"end":return k.stop()}},i)}));return function(i){return g.apply(this,arguments)}}(),initialValues:{nickname:s.nickname,description:s.description},children:[(0,r.jsxs)(ee.Z,{name:"avatar",label:"\u5934\u50CF",children:[(0,r.jsx)(de.C,{src:s.avatar}),(0,r.jsx)(ye.Z,{})]}),(0,r.jsx)(Ae.Z,{width:"md",name:"nickname",label:"\u6280\u80FD\u7EC4\u6635\u79F0"}),(0,r.jsx)(ee.Z,{name:"agents",label:"\u6210\u5458",children:(0,r.jsx)(We.Z,{mode:"multiple",allowClear:!0,style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u6210\u5458",value:h,onChange:M,options:A.map(function(g){return{value:g.uid,label:g.nickname}})})}),(0,r.jsx)(ue.Z,{width:"md",name:"description",label:"\u63CF\u8FF0"})]})})},Be=Oe,se=e(84567),Pe=function(){var a=N.Z.useForm(),d=D()(a,1),n=d[0],A=(0,p.useIntl)(),s=(0,o.useState)(!1),j=D()(s,2),m=j[0],h=j[1],t=$(function(F){return F.currentWorkgroup});(0,o.useEffect)(function(){var F=$.subscribe(function(y){});return F},[t]);var M=function(y){t.showTopTip=y.target.checked,console.log("checked = ".concat(y.target.checked,", showTopTip:").concat(t.showTopTip)),h(y.target.checked)};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(H.A,{form:n,style:{marginLeft:"100px"},onFinish:function(){var F=_()(u()().mark(function y(g){return u()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:console.log("onFinish:",g);case 1:case"end":return W.stop()}},y)}));return function(y){return F.apply(this,arguments)}}(),initialValues:{welcomeTip:t==null?void 0:t.welcomeTip,topTip:t==null?void 0:t.topTip,showTopTip:t==null?void 0:t.showTopTip},children:[(0,r.jsx)(ue.Z,{width:"md",name:"welcomeTip",label:"\u6B22\u8FCE\u8BED"}),(0,r.jsx)(ee.Z,{children:(0,r.jsx)(se.Z,{onChange:M,name:"showTopTip",children:"\u663E\u793A\u7F6E\u9876\u8BED"})}),m&&(0,r.jsx)(ue.Z,{width:"md",name:"topTip",label:"\u7F6E\u9876\u8BED"})]})})},Me=Pe,we=function(){var a=N.Z.useForm(),d=D()(a,1),n=d[0],A=$(function(t){return t.currentWorkgroup}),s=(0,o.useMemo)(function(){return"http://localhost:9006/?t=2&sid="+A.uid+"&"},[A]);(0,o.useEffect)(function(){var t=$.subscribe(function(M){console.log("currentWorkgroup code:",M.currentWorkgroup),n.setFieldValue("code","http://localhost:9006/?t=2&sid="+M.currentWorkgroup.uid+"&")});return t},[A]);var j=function(){window.open(s)},m=function(){navigator.clipboard.writeText(s),oe.yw.info("code copyied into clicpboard")},h=function(M,F){return[(0,r.jsx)(ne.ZP,{type:"primary",onClick:function(){var g;(g=M.form)===null||g===void 0||g.submit(),j()},children:"\u6253\u5F00"},"submit"),(0,r.jsx)(ne.ZP,{onClick:function(){m()},children:"\u590D\u5236"},"reset")]};return(0,r.jsx)(H.A,{form:n,style:{marginLeft:"100px"},submitter:{render:h},initialValues:{code:s},children:(0,r.jsx)(ue.Z,{width:"md",name:"code",label:"\u5BA2\u670D\u4EE3\u7801"})})},Re=we,Ue=function(){var a=N.Z.useForm(),d=D()(a,1),n=d[0],A=(0,p.useIntl)(),s=$(function(m){return m.currentWorkgroup});(0,o.useEffect)(function(){var m=$.subscribe(function(h){});return m},[s]);var j=function(h){s.defaultRobot=h.target.checked,console.log("checked = ".concat(h.target.checked,", defaultRobot:").concat(s.defaultRobot))};return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(H.A,{form:n,style:{marginLeft:"100px"},initialValues:{defaultRobot:s.defaultRobot},onFinish:function(){var m=_()(u()().mark(function h(t){return u()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:console.log("onFinish:",t);case 1:case"end":return F.stop()}},h)}));return function(h){return m.apply(this,arguments)}}(),children:(0,r.jsx)(ee.Z,{children:(0,r.jsx)(se.Z,{onChange:j,name:"defaultRobot",children:"\u9ED8\u8BA4\u542F\u7528\u673A\u5668\u4EBA"})})})})},xe=Ue,Q=e(85615),X=e(78045),Se=function(){var a=N.Z.useForm(),d=D()(a,1),n=d[0],A=(0,p.useIntl)(),s=$(function(k){return k.currentWorkgroup}),j=(0,o.useState)(!1),m=D()(j,2),h=m[0],t=m[1],M=(0,o.useState)(Q.Jx),F=D()(M,2),y=F[0],g=F[1];(0,o.useEffect)(function(){var k=$.subscribe(function(S){});return k},[s]),(0,o.useEffect)(function(){t(s.recent),g(s.routeType)},[]);var i=function(S){console.log("checked = ".concat(S.target.checked)),t(S.target.checked)},W=function(S){console.log("radio checked",S.target.value),g(S.target.value)},Y=function(S,te){return[(0,r.jsx)(ne.ZP,{type:"primary",onClick:function(){var z;(z=S.form)===null||z===void 0||z.submit()},children:"\u4FDD\u5B58"},"submit")]};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(H.A,{form:n,style:{marginLeft:"100px"},initialValues:{},submitter:{render:Y},onFinish:function(){var k=_()(u()().mark(function S(te){return u()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:console.log("onFinish:",te);case 1:case"end":return z.stop()}},S)}));return function(S){return k.apply(this,arguments)}}(),children:[(0,r.jsx)(ee.Z,{children:(0,r.jsx)(se.Z,{onChange:i,value:h,children:"\u719F\u5BA2\u4F18\u5148"})}),(0,r.jsxs)(H.A.Item,{children:[(0,r.jsxs)(X.ZP.Group,{onChange:W,value:y,children:[(0,r.jsx)(X.ZP,{value:Q.Jx,children:"\u8F6E\u8BE2"}),(0,r.jsx)(X.ZP,{value:Q.C,children:"\u5F53\u65E5\u63A5\u5F85\u6700\u5C11\u4F18\u5148"}),(0,r.jsx)(X.ZP,{value:Q.Vd,children:"\u9971\u548C\u5EA6\u6700\u4F4E\u4F18\u5148"}),(0,r.jsx)(X.ZP,{value:Q.Q2,children:"\u8FDB\u884C\u4E2D\u4F1A\u8BDD\u6700\u5C11\u4F18\u5148"}),(0,r.jsx)(X.ZP,{value:Q.Su,disabled:!0,children:"\u5E7F\u64AD"})]}),(0,r.jsx)("p",{children:"\u6839\u636E\u5BA2\u670D\u767B\u5F55\u65F6\u95F4\u8FDB\u5165\u961F\u5217\u8F6E\u6D41\u5206\u914D\u3002\u6CE8\u610F\uFF1A\u5F53\u5BA2\u670D\u7F51\u7EDC\u4E0D\u7A33\u5B9A\u6389\u7EBF\u91CD\u8FDE\u4E4B\u540E\uFF0C\u4F1A\u91CD\u65B0\u6392\u5230\u961F\u5217\u672B\u5C3E"}),(0,r.jsx)("p",{children:"\u6839\u636E\u5F53\u65E5(0\u70B9\u5F00\u59CB)\u5BA2\u670D\u63A5\u5F85\u603B\u6570\u8FDB\u884C\u5206\u914D\uFF0C\u4F18\u5148\u5206\u914D\u7ED9\u6570\u91CF\u6700\u5C11\u8005\u3002\u6CE8\u610F\uFF1A\u5047\u5982\u5BA2\u670D\u4E0A\u73ED\u65F6\u95F4\u4E0D\u7EDF\u4E00\uFF0C\u665A\u767B\u5F55\u8005\u767B\u5F55\u540E\u4F1A\u96C6\u4E2D\u6536\u5230\u5206\u914D\u65B0\u5BA2\uFF0C\u76F4\u5230\u8DDF\u5176\u4ED6\u5728\u7EBF\u5BA2\u670D\u63A5\u5F85\u6570\u91CF\u76F8\u7B49\u4E3A\u6B62"}),(0,r.jsx)("p",{children:"\u6839\u636E\uFF08\u5BA2\u670D\u6700\u5927\u63A5\u5F85\u6570\u91CF-\u5F53\u524D\u8FDB\u884C\u4E2D\u4F1A\u8BDD\u6570\u91CF\uFF09\u4E4B\u5DEE\u5206\u914D\uFF0C\u4F18\u5148\u5206\u914D\u7ED9\u6570\u91CF\u6700\u5927\u8005\u3002\u6CE8\u610F\uFF1A\u5047\u5982\u6BCF\u4E2A\u5BA2\u670D\u6700\u5927\u63A5\u5F85\u6570\u91CF\u76F8\u7B49\uFF0C\u5219\u6B64\u65B9\u6CD5\u8DDF\u2019\u8FDB\u884C\u4E2D\u4F1A\u8BDD\u6700\u5C11\u4F18\u5148\u2018\u6548\u679C\u4E00\u6837"}),(0,r.jsx)("p",{children:"\u6839\u636E\u5BA2\u670D\u5F53\u524D\u8FDB\u884C\u4E2D\u4F1A\u8BDD\u8FDB\u884C\u5206\u914D\uFF0C\u4F18\u5148\u5206\u914D\u7ED9\u6570\u91CF\u6700\u5C11\u8005\u3002\u6CE8\u610F\uFF1A\u5BA2\u670D\u63A5\u5F85\u6570\u91CF\u4F1A\u53D7\u5230\u5BA2\u670D\u63A5\u5F85\u901F\u5EA6\u7684\u5F71\u54CD\uFF0C\u63A5\u5F85\u5B8C\u6BD5\u4E4B\u540E\uFF0C\u5BA2\u670D\u624B\u52A8\u7ED3\u675F\u4F1A\u8BDD\u6709\u5229\u4E8E\u52A0\u901F\u5206\u914D\u65B0\u5BA2"})]})]})})},Ie=Se,Le=function(){var a=(0,p.useIntl)(),d=function(s){console.log(s)},n=[{key:"basic",label:a.formatMessage({id:"pages.robot.tab.basic",defaultMessage:"Basic"}),children:(0,r.jsx)(Be,{})},{key:"tip",label:"\u6B22\u8FCE\u8BED",children:(0,r.jsx)(Me,{})},{key:"robot",label:"\u673A\u5668\u4EBA",children:(0,r.jsx)(xe,{})},{key:"route",label:"\u8DEF\u7531\u914D\u7F6E",children:(0,r.jsx)(Ie,{})},{key:"code",label:"\u5BA2\u670D\u4EE3\u7801",children:(0,r.jsx)(Re,{})}];return(0,r.jsx)(je.Z,{defaultActiveKey:"1",items:n,onChange:d})},Ze=Le,Ke=e(77154),$e=R.Z.Sider,Ge=R.Z.Content,ze=function(){var a=(0,Ke.Z)(),d=a.leftSiderStyle,n=a.contentStyle;return(0,r.jsxs)(R.Z,{children:[(0,r.jsx)($e,{style:d,children:(0,r.jsx)(be,{})}),(0,r.jsx)(R.Z,{children:(0,r.jsx)(Ge,{children:(0,r.jsx)(Ze,{})})})]})},Ve=ze},30694:function(q,L,e){e.d(L,{E:function(){return B}});var R=e(15009),o=e.n(R),Z=e(19632),u=e.n(Z),K=e(99289),_=e.n(K),U=e(3418),D=e(64529),x=e(782),G=e(71381),B=(0,D.Ue)()((0,x.mW)((0,x.tJ)((0,G.n)(function(p,T){return{agents:[],currentAgent:{uid:"",orgUid:""},createAgent:function(){var f=_()(o()().mark(function b(v){var P,V;return o()().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,(0,U.x)(v);case 2:P=J.sent,console.log("create agent:",P),P.code===200&&(V=P.data,p({agents:[V].concat(u()(T().agents)),currentAgent:V}));case 5:case"end":return J.stop()}},b)}));function l(b){return f.apply(this,arguments)}return l}(),setAgents:function(){var f=_()(o()().mark(function b(v){return o()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:T().currentAgent.uid===""?p({agents:v,currentAgent:v[0]}):p({agents:v});case 1:case"end":return V.stop()}},b)}));function l(b){return f.apply(this,arguments)}return l}(),setCurrentAgent:function(l){return p(function(b){b.currentAgent=l})},deleteAgent:function(){return p({},!0)}}}),{name:"AGENT_STORE"})))},87676:function(q,L,e){e.d(L,{u:function(){return x}});var R=e(15009),o=e.n(R),Z=e(99289),u=e.n(Z),K=e(24172),_=e(64529),U=e(782),D=e(71381),x=(0,_.Ue)()((0,U.mW)((0,U.tJ)((0,D.n)(function(G,B){return{orgCurrent:{uid:"",name:"",description:""},setOrgCurrent:function(T){G({orgCurrent:T})},createOrg:function(){var p=u()(o()().mark(function f(l){var b;return o()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,(0,K.Kq)(l);case 2:b=P.sent,console.log("createOrg:",b),b.code==200;case 5:case"end":return P.stop()}},f)}));function T(f){return p.apply(this,arguments)}return T}(),deleteOrgCache:function(){return G({},!0)}}}),{name:"ORGANIZTION_STORE"})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Basic__index.e6895796.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Basic__index.e6895796.async.js new file mode 100644 index 0000000000..f56bbc89be --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Basic__index.e6895796.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[766],{76821:function(M,o,s){s.r(o);var d=s(39825),l=s(86745),a=s(78045),e=s(85893),r=function(){var h=(0,d.Z)(),u=h.themeMode,c=h.setThemeMode,i=function(n){console.log("radio checked",n.target.value),c(n.target.value),window.location.reload()},t=(0,l.getLocale)(),m=function(n){var g=n.target.value;console.log("localeValue:",g),!t||t==="zh-CN"?(0,l.setLocale)("en-US"):(0,l.setLocale)("zh-CN")};return(0,e.jsxs)("div",{style:{textAlign:"center",marginTop:"50px"},children:[(0,e.jsxs)(a.ZP.Group,{onChange:i,value:u,children:[(0,e.jsx)(a.ZP,{value:"light",children:(0,e.jsx)(l.FormattedMessage,{id:"theme.light"})}),(0,e.jsx)(a.ZP,{value:"dark",children:(0,e.jsx)(l.FormattedMessage,{id:"theme.dark"})}),(0,e.jsx)(a.ZP,{value:"system",children:(0,e.jsx)(l.FormattedMessage,{id:"theme.system"})})]}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsxs)(a.ZP.Group,{value:t,onChange:m,children:[(0,e.jsx)(a.ZP.Button,{value:"en-US",children:"English"}),(0,e.jsx)(a.ZP.Button,{value:"zh-CN",children:"\u4E2D\u6587"})]})]})};o.default=r}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Profile__index.08c8acd3.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Profile__index.08c8acd3.async.js new file mode 100644 index 0000000000..44280a49dd --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Profile__index.08c8acd3.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[290],{26859:function(b,i,e){var l=e(1413),n=e(67294),m=e(94737),o=e(89099),u=function(p,g){return n.createElement(o.Z,(0,l.Z)((0,l.Z)({},p),{},{ref:g,icon:m.Z}))},E=n.forwardRef(u);i.Z=E},5486:function(b,i,e){e.r(i);var l=e(97857),n=e.n(l),m=e(15009),o=e.n(m),u=e(99289),E=e.n(u),O=e(5574),p=e.n(O),g=e(67294),f=e(8232),c=e(66476),h=e(7134),A=e(14726),r=e(96365),C=e(34994),D=e(5966),I=e(90672),j=e(86745),T=e(27484),R=e.n(T),B=e(26859),_=e(85893),L={labelCol:{span:8},wrapperCol:{span:8}},K={required:"${label} is required!",types:{email:"${label} is not a valid email!",number:"${label} is not a valid number!"},number:{range:"${label} must be between ${min} and ${max}"}},W=function(){var U=(0,j.useIntl)(),x=f.Z.useForm(),Z=p()(x,1),y=Z[0],d=(0,j.useModel)("@@initialState"),F=d.initialState,z=d.loading,G=d.refresh,H=d.setInitialState,s=F.userInfo,v={file_name:"test.png",username:"",type:"",kbname:"",client:"web"},$={name:"file",action:"/visitor/api/upload/avatar",headers:{authorization:"authorization-text"},showUploadList:!1,data:v,beforeUpload:function(a){console.log("file:",a," uploadData:",v);var t=R()(new Date).format("YYYYMMDDHHmmss");return v.file_name=t+a.name,!0},onChange:function(a){if(a.file.status!=="uploading"&&console.log(a.file,a.fileList),a.file.status==="done"){var t=a.file.response.data;console.log("url: ",t)}else a.file.status}},S=function(){var M=E()(o()().mark(function a(t){return o()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:console.log(s,t);case 1:case"end":return P.stop()}},a)}));return function(t){return M.apply(this,arguments)}}();return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(C.A,n()(n()({},L),{},{form:y,onFinish:S,initialValues:{nickname:s.nickname,email:s.email,mobile:s.mobile,description:s.description},validateMessages:K,children:[(0,_.jsx)(f.Z.Item,{name:"avatar",valuePropName:"fileList",label:U.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:(0,_.jsxs)(c.Z,n()(n()({},$),{},{children:[(0,_.jsx)(h.C,{src:s.avatar}),(0,_.jsx)(A.ZP,{icon:(0,_.jsx)(B.Z,{}),children:U.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]}),"avatar")}),(0,_.jsx)(D.Z,{name:"nickname",label:"\u6635\u79F0",rules:[{required:!0}],children:(0,_.jsx)(r.Z,{})}),(0,_.jsx)(D.Z,{name:"email",label:"\u90AE\u7BB1",rules:[{type:"email"}],children:(0,_.jsx)(r.Z,{})}),(0,_.jsx)(D.Z,{name:"mobile",label:"\u624B\u673A\u53F7",children:(0,_.jsx)(r.Z,{})}),(0,_.jsx)(I.Z,{name:"description",label:"\u63CF\u8FF0",children:(0,_.jsx)(r.Z.TextArea,{})})]}))})};i.default=W}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Qrcode__index.1c44a867.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Qrcode__index.1c44a867.async.js new file mode 100644 index 0000000000..23c34104b0 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Qrcode__index.1c44a867.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[703],{3668:function(i,o,n){n.r(o);var e=n(10397),u=n(14726),d=n(85893),t=function(){var a=function(){console.log("downloadQRCode")};return(0,d.jsxs)("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[(0,d.jsx)(e.Z,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"https://cdn.bytedesk.com/admin/img/logo.e5991d62.png"}),(0,d.jsx)(u.ZP,{type:"primary",onClick:a,style:{marginTop:"20px"},children:"\u4F7F\u7528\u5FAE\u8BEDApp\u626B\u7801\u52A0\u5165\u670D\u52A1\u5668"})]})};o.default=t}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__index.7ba61b65.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__index.7ba61b65.async.js deleted file mode 100644 index 29e2d53e68..0000000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__index.7ba61b65.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[469],{35675:function(m,a,t){t.r(a);var n=t(21612),s=t(68508),C=t(67294),e=t(85893),f=n.Z.Header,g=n.Z.Footer,d=n.Z.Sider,c=n.Z.Content,u=[{label:"\u9AD8\u7EA7",key:"top",children:[{label:"settings",key:"xinxixitongxiangmuguanlishi"}]},{label:"\u4E2D\u7EA7",key:"middle",children:[{label:"settings 2",key:"xitongjichengxiangmuguanligongchengshi"}]}],o=[{label:"settings",key:"xinxixitongxiangmuguanlishi"},{label:"settings 2",key:"xitongjichengxiangmuguanligongchengshi"}],x={minHeight:120,backgroundColor:"#EEFAE0"},h={backgroundColor:"#EEFAE0",borderRight:"1px solid #ccc"},E={backgroundColor:"#EEFAE0"},y=function(){var k=function(r){console.log("menu click ",r);for(var l=0;l0&&be(R.data.content[0].uid);case 7:case"end":return Z.stop()}},o)}));return function(){return d.apply(this,arguments)}}(),Be=function(){var d=c()(s()().mark(function o(y,R){var ae,Z;return s()().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return ae={name:y,orgUid:ye.uid,type:"user",description:R,parentUid:de},Q.next=3,Ze(ae);case 3:Z=Q.sent,console.log("createDepartment:",Z);case 5:case"end":return Q.stop()}},o)}));return function(y,R){return d.apply(this,arguments)}}();(0,i.useEffect)(function(){$e()},[]);var Se=function(){U(!0)},W=function(){var d=c()(s()().mark(function o(){var y,R;return s()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:y=r.getFieldValue("nickname"),R=r.getFieldValue("description"),console.log("nickname",y,R,de),y?(Be(y,R),U(!1)):we.ZP.error("\u6635\u79F0\u4E0D\u80FD\u4E3A\u7A7A");case 4:case"end":return Z.stop()}},o)}));return function(){return d.apply(this,arguments)}}(),pe=function(){U(!1)},je=function(){console.log("new dep"),Se()},ne=function(o,y){console.log("selected",o,y),o.length!==0&&be(o[0].toString())},Me=function(o){console.log("onParentSelectChange:",o),De(o||"")};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.Z,{gap:"small",wrap:"wrap",children:(0,t.jsx)(ue.ZP,{type:"primary",size:"small",icon:(0,t.jsx)(Ie.Z,{}),onClick:je,children:"create dep"})}),(0,t.jsx)(Te.Z,{defaultExpandedKeys:[te.uid],defaultSelectedKeys:[te.uid],onSelect:ne,treeData:Ee}),(0,t.jsx)(l.Z,{title:"\u521B\u5EFA\u90E8\u95E8",open:q,onOk:W,onCancel:pe,children:(0,t.jsxs)(n.Z,{form:r,name:"depForm",style:{maxWidth:400},children:[(0,t.jsx)(n.Z.Item,{label:"\u7236\u90E8\u95E8",name:"parentDid",children:(0,t.jsx)(S.Z,{showSearch:!0,style:{width:"100%"},value:te.uid,dropdownStyle:{maxHeight:400,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u4E0A\u7EA7\u90E8\u95E8(\u53EF\u4E0D\u9009)",allowClear:!0,treeDefaultExpandAll:!0,onChange:Me,treeData:re})}),(0,t.jsx)(n.Z.Item,{label:"\u90E8\u95E8\u540D\u79F0",name:"nickname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0!"}],children:(0,t.jsx)(L.Z,{})}),(0,t.jsx)(n.Z.Item,{label:"\u90E8\u95E8\u7B80\u4ECB",name:"description",rules:[{message:"\u8BF7\u8F93\u5165\u7B80\u4ECB!"}],children:(0,t.jsx)(L.Z.TextArea,{})})]})})]})},Ue=Ae,ce=h.Z.Sider,Le=h.Z.Content,Ke=function(){var g=(0,P.Z)(),v=g.leftSiderStyle,r=g.contentStyle;return(0,t.jsxs)(h.Z,{children:[(0,t.jsx)(ce,{style:v,children:(0,t.jsx)(Ue,{})}),(0,t.jsx)(h.Z,{children:(0,t.jsx)(Le,{style:r,children:(0,t.jsx)(Pe,{})})})]})},ze=Ke},87676:function(X,x,e){e.d(x,{u:function(){return D}});var h=e(15009),i=e.n(h),P=e(99289),_=e.n(P),s=e(24172),w=e(64529),c=e(782),I=e(71381),D=(0,w.Ue)()((0,c.mW)((0,c.tJ)((0,I.n)(function($,B){return{orgCurrent:{uid:"",name:"",description:""},setOrgCurrent:function(T){$({orgCurrent:T})},createOrg:function(){var j=_()(i()().mark(function C(A){var G;return i()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,(0,s.Kq)(A);case 2:G=k.sent,console.log("createOrg:",G),G.code==200;case 5:case"end":return k.stop()}},C)}));function T(C){return j.apply(this,arguments)}return T}(),deleteOrgCache:function(){return $({},!0)}}}),{name:"ORGANIZTION_STORE"})))},86250:function(X,x,e){e.d(x,{Z:function(){return le}});var h=e(67294),i=e(93967),P=e.n(i),_=e(98423),s=e(98065),w=e(53124),c=e(91945),I=e(45503);const D=["wrap","nowrap","wrap-reverse"],$=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],B=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],j=(a,u)=>{const n={};return D.forEach(l=>{n[`${a}-wrap-${l}`]=u.wrap===l}),n},T=(a,u)=>{const n={};return B.forEach(l=>{n[`${a}-align-${l}`]=u.align===l}),n[`${a}-align-stretch`]=!u.align&&!!u.vertical,n},C=(a,u)=>{const n={};return $.forEach(l=>{n[`${a}-justify-${l}`]=u.justify===l}),n};function A(a,u){return P()(Object.assign(Object.assign(Object.assign({},j(a,u)),T(a,u)),C(a,u)))}var G=A;const f=a=>{const{componentCls:u}=a;return{[u]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},k=a=>{const{componentCls:u}=a;return{[u]:{"&-gap-small":{gap:a.flexGapSM},"&-gap-middle":{gap:a.flexGap},"&-gap-large":{gap:a.flexGapLG}}}},se=a=>{const{componentCls:u}=a,n={};return D.forEach(l=>{n[`${u}-wrap-${l}`]={flexWrap:l}}),n},ge=a=>{const{componentCls:u}=a,n={};return B.forEach(l=>{n[`${u}-align-${l}`]={alignItems:l}}),n},Y=a=>{const{componentCls:u}=a,n={};return $.forEach(l=>{n[`${u}-justify-${l}`]={justifyContent:l}}),n},ve=()=>({});var he=(0,c.I$)("Flex",a=>{const{paddingXS:u,padding:n,paddingLG:l}=a,S=(0,I.TS)(a,{flexGapSM:u,flexGap:n,flexGapLG:l});return[f(S),k(S),se(S),ge(S),Y(S)]},ve,{resetStyle:!1}),Ce=function(a,u){var n={};for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&u.indexOf(l)<0&&(n[l]=a[l]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,l=Object.getOwnPropertySymbols(a);S{const{prefixCls:n,rootClassName:l,className:S,style:L,flex:ue,gap:t,children:xe,vertical:ie=!1,component:Pe="div"}=a,we=Ce(a,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:N,direction:Te,getPrefixCls:Re}=h.useContext(w.E_),K=Re("flex",n),[Ze,oe,Ie]=he(K),Ae=ie!=null?ie:N==null?void 0:N.vertical,Ue=P()(S,l,N==null?void 0:N.className,K,oe,Ie,G(K,a),{[`${K}-rtl`]:Te==="rtl",[`${K}-gap-${t}`]:(0,s.n)(t),[`${K}-vertical`]:Ae}),ce=Object.assign(Object.assign({},N==null?void 0:N.style),L);return ue&&(ce.flex=ue),t&&!(0,s.n)(t)&&(ce.gap=t),Ze(h.createElement(Pe,Object.assign({ref:u,className:Ue,style:ce},(0,_.Z)(we,["justify","wrap","align"])),xe))})}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__index.6859dfc3.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__index.6859dfc3.async.js new file mode 100644 index 0000000000..6458bb1384 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__index.6859dfc3.async.js @@ -0,0 +1 @@ +(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[491],{3471:function(T,o,n){"use strict";var p=n(1413),d=n(67294),E=n(29245),s=n(89099),f=function(g,v){return d.createElement(s.Z,(0,p.Z)((0,p.Z)({},g),{},{ref:v,icon:E.Z}))},m=d.forwardRef(f);o.Z=m},27824:function(T,o,n){"use strict";n.r(o),n.d(o,{waitTime:function(){return O},waitTimePromise:function(){return h}});var p=n(97857),d=n.n(p),E=n(15009),s=n.n(E),f=n(99289),m=n.n(f),P=n(51042),g=n(3471),v=n(96906),M=n(22185),I=n(42075),R=n(66309),D=n(14726),b=n(85418),j=n(67294),y=n(11238),_=n(85893),h=function(){var u=m()(s()().mark(function i(){var r,e=arguments;return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=e.length>0&&e[0]!==void 0?e[0]:100,a.abrupt("return",new Promise(function(l){setTimeout(function(){l(!0)},r)}));case 2:case"end":return a.stop()}},i)}));return function(){return u.apply(this,arguments)}}(),O=function(){var u=m()(s()().mark(function i(){var r,e=arguments;return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=e.length>0&&e[0]!==void 0?e[0]:100,a.next=3,h(r);case 3:case"end":return a.stop()}},i)}));return function(){return u.apply(this,arguments)}}(),C=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"\u6807\u9898",dataIndex:"title",copyable:!0,ellipsis:!0,tooltip:"\u6807\u9898\u8FC7\u957F\u4F1A\u81EA\u52A8\u6536\u7F29",formItemProps:{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}},{disable:!0,title:"\u72B6\u6001",dataIndex:"state",filters:!0,onFilter:!0,ellipsis:!0,valueType:"select",valueEnum:{all:{text:"\u8D85\u957F".repeat(50)},open:{text:"\u672A\u89E3\u51B3",status:"Error"},closed:{text:"\u5DF2\u89E3\u51B3",status:"Success",disabled:!0},processing:{text:"\u89E3\u51B3\u4E2D",status:"Processing"}}},{disable:!0,title:"\u6807\u7B7E",dataIndex:"labels",search:!1,renderFormItem:function(i,r){var e=r.defaultRender;return e(i)},render:function(i,r){return(0,_.jsx)(I.Z,{children:r.labels.map(function(e){var t=e.name,a=e.color;return(0,_.jsx)(R.Z,{color:a,children:t},t)})})}},{title:"\u521B\u5EFA\u65F6\u95F4",key:"showTime",dataIndex:"created_at",valueType:"date",sorter:!0,hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",valueType:"dateRange",hideInTable:!0,search:{transform:function(i){return{startTime:i[0],endTime:i[1]}}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(i,r,e,t){return[(0,_.jsx)("a",{onClick:function(){var l;t==null||(l=t.startEditable)===null||l===void 0||l.call(t,r.id)},children:"\u7F16\u8F91"},"editable"),(0,_.jsx)("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",children:"\u67E5\u770B"},"view"),(0,_.jsx)(v.Z,{onSelect:function(){return t==null?void 0:t.reload()},menus:[{key:"copy",name:"\u590D\u5236"},{key:"delete",name:"\u5220\u9664"}]},"actionGroup")]}}],U=function(){var i=(0,j.useRef)();return(0,_.jsx)(M.Z,{columns:C,actionRef:i,cardBordered:!0,request:function(){var r=m()(s()().mark(function e(t,a,l){return s()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return console.log(a,l),c.next=3,O(2e3);case 3:return c.abrupt("return",(0,y.ZP)("https://proapi.azurewebsites.net/github/issues",{params:t}));case 4:case"end":return c.stop()}},e)}));return function(e,t,a){return r.apply(this,arguments)}}(),editable:{type:"multiple"},columnsState:{persistenceKey:"pro-table-singe-demos",persistenceType:"localStorage",defaultValue:{option:{fixed:"right",disable:!0}},onChange:function(e){console.log("value: ",e)}},rowKey:"id",search:{labelWidth:"auto"},options:{setting:{listsHeight:400}},form:{syncToUrl:function(e,t){return t==="get"?d()(d()({},e),{},{created_at:[e.startTime,e.endTime]}):e}},pagination:{pageSize:5,onChange:function(e){return console.log(e)}},dateFormatter:"string",headerTitle:"\u9AD8\u7EA7\u8868\u683C",toolBarRender:function(){return[(0,_.jsx)(D.ZP,{icon:(0,_.jsx)(P.Z,{}),onClick:function(){var t;(t=i.current)===null||t===void 0||t.reload()},type:"primary",children:"\u65B0\u5EFA"},"button"),(0,_.jsx)(b.Z,{menu:{items:[{label:"1st item",key:"1"},{label:"2nd item",key:"1"},{label:"3rd item",key:"1"}]},children:(0,_.jsx)(D.ZP,{children:(0,_.jsx)(g.Z,{})})},"menu")]}})};o.default=U},24654:function(){}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Role__index.c463b3da.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Role__index.c463b3da.async.js new file mode 100644 index 0000000000..3d0390e176 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Role__index.c463b3da.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[325],{42110:function(x,d){var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};d.Z=e},77154:function(x,d,e){var S=e(39825);function p(){var f=(0,S.Z)(),s=f.isDarkMode,g={borderRight:s?"1px solid #333":"1px solid #ccc",background:s?"#141414":"#eee",width:260},C={background:s?"#141414":"#fff"},R={borderLeft:s?"1px solid #333":"1px solid #ccc",background:s?"#141414":"#eee"},T={minHeight:120};return{leftSiderStyle:g,headerStyle:C,rightSiderStyle:R,contentStyle:T}}d.Z=p},31317:function(x,d,e){e.r(d),e.d(d,{default:function(){return W}});var S=e(77154),p=e(15009),f=e.n(p),s=e(99289),g=e.n(s),C=e(97857),R=e.n(C),T=e(86745);function E(r){return b.apply(this,arguments)}function b(){return b=g()(f()().mark(function r(l){return f()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,T.request)("/api/v1/role/query",{method:"GET",params:R()(R()({},l),{},{client:"web"})}));case 1:case"end":return t.stop()}},r)})),b.apply(this,arguments)}function F(r,l){return j.apply(this,arguments)}function j(){return j=_asyncToGenerator(_regeneratorRuntime().mark(function r(l,u){return _regeneratorRuntime().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",request("/api/v1/role/query",{method:"GET",params:{pageNumber:l,pageSize:u,client:"web"}}));case 1:case"end":return o.stop()}},r)})),j.apply(this,arguments)}var P=e(64529),Z=e(782),D=e(71381),G=(0,P.Ue)()((0,Z.mW)((0,Z.tJ)((0,D.n)(function(r,l){return{roles:[],currentRole:{label:"",key:""},setCurrentRole:function(t){var o=l().roles.find(function(n){return n.key===t});r(function(n){n.currentRole=o})},getRoles:function(){var u=g()(f()().mark(function o(){var n,i,h,m;return f()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,E({pageNumber:0,pageSize:20});case 2:for(n=c.sent,console.log("queryRoles:",n),i=[],h=0;h0&&r({roles:i,currentRole:i[0]});case 7:case"end":return c.stop()}},o)}));function t(){return u.apply(this,arguments)}return t}(),deleteRoleCache:function(){return r({},!0)}}}),{name:"ROLE_STORE"}))),y=e(21612),O=e(68508),z=e(67294),B=e(48096),a=e(85893),N=function(l){console.log(l)},L=[{key:"1",label:"Tab 1",children:"Content of Tab Pane 1"},{key:"2",label:"Tab 2",children:"Content of Tab Pane 2"},{key:"3",label:"Tab 3",children:"Content of Tab Pane 3"}],$=function(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(B.Z,{defaultActiveKey:"1",items:L,onChange:N})})},A=$,H=e(39825),I=y.Z.Sider,K=y.Z.Content,U=function(){var l=(0,H.Z)(),u=l.themeName,t=(0,S.Z)(),o=t.leftSiderStyle,n=G(function(v){return{roles:v.roles,currentRole:v.currentRole,setCurrentRole:v.setCurrentRole,getRoles:v.getRoles}}),i=n.roles,h=n.currentRole,m=n.setCurrentRole,M=n.getRoles;(0,z.useEffect)(function(){M()},[]);var c=function(k){console.log("menu click ",k.key),m(k.key)};return(0,a.jsxs)(y.Z,{children:[(0,a.jsx)(I,{theme:u,children:(0,a.jsx)(O.Z,{mode:"inline",onClick:c,items:i})}),(0,a.jsx)(y.Z,{children:(0,a.jsx)(K,{children:(0,a.jsx)(A,{})})})]})},W=U}}]); diff --git a/starter/src/main/resources/templates/admin/p__Other__Agent__index.bc724f9b.async.js b/starter/src/main/resources/templates/admin/p__Other__Agent__index.bc724f9b.async.js deleted file mode 100644 index 0d2a0061eb..0000000000 --- a/starter/src/main/resources/templates/admin/p__Other__Agent__index.bc724f9b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[202],{36027:function(f,o,n){n.d(o,{Z:function(){return e}});var a=n(1413),l=n(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},d=c,r=n(91146),i=function(u,t){return l.createElement(r.Z,(0,a.Z)((0,a.Z)({},u),{},{ref:t,icon:d}))},s=l.forwardRef(i),e=s},84477:function(f,o,n){n.d(o,{Z:function(){return e}});var a=n(1413),l=n(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},d=c,r=n(91146),i=function(u,t){return l.createElement(r.Z,(0,a.Z)((0,a.Z)({},u),{},{ref:t,icon:d}))},s=l.forwardRef(i),e=s},19944:function(f,o,n){n.d(o,{Z:function(){return e}});var a=n(1413),l=n(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},d=c,r=n(91146),i=function(u,t){return l.createElement(r.Z,(0,a.Z)((0,a.Z)({},u),{},{ref:t,icon:d}))},s=l.forwardRef(i),e=s},8708:function(f,o,n){n.r(o),n.d(o,{default:function(){return B}});var a=n(5574),l=n.n(a),c=n(67294),d=n(36027),r=n(43425),i=n(19944),s=n(84477),e=n(21612),v=n(14726),u=n(68508),t=n(85893),A=e.Z.Sider,M=e.Z.Content,S={backgroundColor:"#EEFAE0"},Z={backgroundColor:"#EEFAE0",borderRight:"1px solid #ccc"},j=function(){return(0,t.jsxs)(e.Z,{children:[(0,t.jsx)(A,{style:Z}),(0,t.jsx)(M,{style:S})]})},C=j,O=function(){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{children:" hello settings"})})},E=O,z=n(86745),p=e.Z.Header,F=e.Z.Sider,L=e.Z.Content,H={padding:0,textAlign:"left",color:"#fff",height:64,paddingInline:20,backgroundColor:"#3875F6"},I={backgroundColor:"#EEFAE0"},R={width:60,maxWidth:60,minWidth:60,backgroundColor:"#EEFAE0",borderRight:"1px solid #ccc"},J={backgroundColor:"#EEFAE0"},T=[{label:"\u5BF9\u8BDD",key:"chat",icon:(0,t.jsx)(d.Z,{})},{label:"\u8BBE\u7F6E",key:"settings",icon:(0,t.jsx)(r.Z,{})}],U=function(){var b=(0,z.useIntl)(),W=(0,c.useState)(!0),m=l()(W,2),h=m[0],k=m[1],V=(0,c.useState)("chat"),x=l()(V,2),K=x[0],N=x[1],P=function(y){console.log("menu click ",y),N(y.key)};function D(){return K==="chat"?(0,t.jsx)(C,{}):(0,t.jsx)(E,{})}return(0,t.jsxs)(e.Z,{children:[(0,t.jsx)(p,{style:H,children:(0,t.jsxs)("div",{className:"logo",children:[(0,t.jsx)("img",{src:"/images/logo.png",width:40,style:{marginTop:-8}}),(0,t.jsx)("span",{style:{marginLeft:15,fontSize:20,fontWeight:"bold"},children:b.formatMessage({id:"pages.login.title",defaultMessage:"Bytedesk AI"})}),(0,t.jsx)(v.ZP,{type:"text",icon:h?(0,t.jsx)(i.Z,{}):(0,t.jsx)(s.Z,{}),onClick:function(){return k(!h)},style:{fontSize:"16px",width:64,height:64,color:"#fff"}})]})}),(0,t.jsxs)(e.Z,{children:[(0,t.jsx)(F,{style:R,trigger:null,collapsible:!0,collapsed:h,children:(0,t.jsx)(u.Z,{mode:"inline",onClick:P,style:{backgroundColor:"#EEFAE0"},defaultSelectedKeys:["chat"],items:T})}),(0,t.jsx)(L,{style:I,children:D()})]})]})},B=U}}]); diff --git a/starter/src/main/resources/templates/admin/p__Other__Agent__index.eaa9a4c0.async.js b/starter/src/main/resources/templates/admin/p__Other__Agent__index.eaa9a4c0.async.js new file mode 100644 index 0000000000..0a34e46c0f --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Other__Agent__index.eaa9a4c0.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[202],{36027:function(f,c,n){n.d(c,{Z:function(){return e}});var a=n(1413),l=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},d=o,i=n(89099),r=function(u,t){return l.createElement(i.Z,(0,a.Z)((0,a.Z)({},u),{},{ref:t,icon:d}))},s=l.forwardRef(r),e=s},84477:function(f,c,n){n.d(c,{Z:function(){return e}});var a=n(1413),l=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},d=o,i=n(89099),r=function(u,t){return l.createElement(i.Z,(0,a.Z)((0,a.Z)({},u),{},{ref:t,icon:d}))},s=l.forwardRef(r),e=s},19944:function(f,c,n){n.d(c,{Z:function(){return e}});var a=n(1413),l=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},d=o,i=n(89099),r=function(u,t){return l.createElement(i.Z,(0,a.Z)((0,a.Z)({},u),{},{ref:t,icon:d}))},s=l.forwardRef(r),e=s},8708:function(f,c,n){n.r(c),n.d(c,{default:function(){return B}});var a=n(5574),l=n.n(a),o=n(67294),d=n(36027),i=n(43425),r=n(19944),s=n(84477),e=n(21612),v=n(14726),u=n(68508),t=n(85893),M=e.Z.Sider,S=e.Z.Content,Z={},j={borderRight:"1px solid #ccc"},A=function(){return(0,t.jsxs)(e.Z,{children:[(0,t.jsx)(M,{style:j}),(0,t.jsx)(S,{style:Z})]})},O=A,C=function(){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{children:" hello settings"})})},z=C,p=n(86745),L=e.Z.Header,F=e.Z.Sider,H=e.Z.Content,I={padding:0,textAlign:"left",color:"#fff",height:64,paddingInline:20,backgroundColor:"#3875F6"},R={},T={width:60,maxWidth:60,minWidth:60,borderRight:"1px solid #ccc"},X={},U=[{label:"\u5BF9\u8BDD",key:"chat",icon:(0,t.jsx)(d.Z,{})},{label:"\u8BBE\u7F6E",key:"settings",icon:(0,t.jsx)(i.Z,{})}],E=function(){var W=(0,p.useIntl)(),V=(0,o.useState)(!0),m=l()(V,2),h=m[0],K=m[1],N=(0,o.useState)("chat"),x=l()(N,2),P=x[0],D=x[1],G=function(y){console.log("menu click ",y),D(y.key)};function J(){return P==="chat"?(0,t.jsx)(O,{}):(0,t.jsx)(z,{})}return(0,t.jsxs)(e.Z,{children:[(0,t.jsx)(L,{style:I,children:(0,t.jsxs)("div",{className:"logo",children:[(0,t.jsx)("img",{src:"/images/logo.png",width:40,style:{marginTop:-8}}),(0,t.jsx)("span",{style:{marginLeft:15,fontSize:20,fontWeight:"bold"},children:W.formatMessage({id:"pages.login.title",defaultMessage:"Bytedesk AI"})}),(0,t.jsx)(v.ZP,{type:"text",icon:h?(0,t.jsx)(r.Z,{}):(0,t.jsx)(s.Z,{}),onClick:function(){return K(!h)},style:{fontSize:"16px",width:64,height:64,color:"#fff"}})]})}),(0,t.jsxs)(e.Z,{children:[(0,t.jsx)(F,{style:T,trigger:null,collapsible:!0,collapsed:h,children:(0,t.jsx)(u.Z,{mode:"inline",onClick:G,style:{backgroundColor:"#EEFAE0"},defaultSelectedKeys:["chat"],items:U})}),(0,t.jsx)(H,{style:R,children:J()})]})]})},B=E}}]); diff --git a/starter/src/main/resources/templates/admin/p__Other__Chaty__index.a6faab26.async.js b/starter/src/main/resources/templates/admin/p__Other__Chaty__index.a6faab26.async.js new file mode 100644 index 0000000000..dab080a24c --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Other__Chaty__index.a6faab26.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[858],{36027:function(f,c,t){t.d(c,{Z:function(){return e}});var a=t(1413),l=t(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},d=o,i=t(89099),r=function(u,n){return l.createElement(i.Z,(0,a.Z)((0,a.Z)({},u),{},{ref:n,icon:d}))},s=l.forwardRef(r),e=s},84477:function(f,c,t){t.d(c,{Z:function(){return e}});var a=t(1413),l=t(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},d=o,i=t(89099),r=function(u,n){return l.createElement(i.Z,(0,a.Z)((0,a.Z)({},u),{},{ref:n,icon:d}))},s=l.forwardRef(r),e=s},19944:function(f,c,t){t.d(c,{Z:function(){return e}});var a=t(1413),l=t(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},d=o,i=t(89099),r=function(u,n){return l.createElement(i.Z,(0,a.Z)((0,a.Z)({},u),{},{ref:n,icon:d}))},s=l.forwardRef(r),e=s},46583:function(f,c,t){t.r(c),t.d(c,{default:function(){return B}});var a=t(5574),l=t.n(a),o=t(67294),d=t(36027),i=t(43425),r=t(19944),s=t(84477),e=t(21612),v=t(14726),u=t(68508),n=t(85893),M=e.Z.Sider,S=e.Z.Content,Z={},j={borderRight:"1px solid #ccc"},C=function(){return(0,n.jsxs)(e.Z,{children:[(0,n.jsx)(M,{style:j}),(0,n.jsx)(S,{style:Z})]})},O=C,z=function(){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{children:" hello settings"})})},p=z,A=t(86745),L=e.Z.Header,F=e.Z.Sider,H=e.Z.Content,I={padding:0,textAlign:"left",color:"#fff",height:64,paddingInline:20,backgroundColor:"#3875F6"},R={},T={width:70,maxWidth:70,minWidth:70,borderRight:"1px solid #ccc"},X={},U=[{label:"\u5BF9\u8BDD",key:"chat",icon:(0,n.jsx)(d.Z,{})},{label:"\u8BBE\u7F6E",key:"settings",icon:(0,n.jsx)(i.Z,{})}],E=function(){var W=(0,A.useIntl)(),V=(0,o.useState)(!0),m=l()(V,2),h=m[0],K=m[1],N=(0,o.useState)("chat"),y=l()(N,2),P=y[0],D=y[1],G=function(x){console.log("menu click ",x),D(x.key)};function J(){return P==="chat"?(0,n.jsx)(O,{}):(0,n.jsx)(p,{})}return(0,n.jsxs)(e.Z,{children:[(0,n.jsx)(L,{style:I,children:(0,n.jsxs)("div",{className:"logo",children:[(0,n.jsx)("img",{src:"/images/logo.png",width:40,style:{marginTop:-8}}),(0,n.jsx)("span",{style:{marginLeft:15,fontSize:20,fontWeight:"bold"},children:W.formatMessage({id:"pages.login.title",defaultMessage:"Bytedesk AI"})}),(0,n.jsx)(v.ZP,{type:"text",icon:h?(0,n.jsx)(r.Z,{}):(0,n.jsx)(s.Z,{}),onClick:function(){return K(!h)},style:{fontSize:"16px",width:64,height:64,color:"#fff"}})]})}),(0,n.jsxs)(e.Z,{children:[(0,n.jsx)(F,{style:T,trigger:null,collapsible:!0,collapsed:h,children:(0,n.jsx)(u.Z,{mode:"inline",onClick:G,style:{backgroundColor:"#EEFAE0"},defaultSelectedKeys:["chat"],items:U})}),(0,n.jsx)(H,{style:R,children:J()})]})]})},B=E}}]); diff --git a/starter/src/main/resources/templates/admin/p__Other__Chaty__index.c1051ee7.async.js b/starter/src/main/resources/templates/admin/p__Other__Chaty__index.c1051ee7.async.js deleted file mode 100644 index ee0f0cdd18..0000000000 --- a/starter/src/main/resources/templates/admin/p__Other__Chaty__index.c1051ee7.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[858],{36027:function(f,o,t){t.d(o,{Z:function(){return e}});var a=t(1413),l=t(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},d=c,r=t(91146),i=function(u,n){return l.createElement(r.Z,(0,a.Z)((0,a.Z)({},u),{},{ref:n,icon:d}))},s=l.forwardRef(i),e=s},84477:function(f,o,t){t.d(o,{Z:function(){return e}});var a=t(1413),l=t(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},d=c,r=t(91146),i=function(u,n){return l.createElement(r.Z,(0,a.Z)((0,a.Z)({},u),{},{ref:n,icon:d}))},s=l.forwardRef(i),e=s},19944:function(f,o,t){t.d(o,{Z:function(){return e}});var a=t(1413),l=t(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},d=c,r=t(91146),i=function(u,n){return l.createElement(r.Z,(0,a.Z)((0,a.Z)({},u),{},{ref:n,icon:d}))},s=l.forwardRef(i),e=s},46583:function(f,o,t){t.r(o),t.d(o,{default:function(){return B}});var a=t(5574),l=t.n(a),c=t(67294),d=t(36027),r=t(43425),i=t(19944),s=t(84477),e=t(21612),v=t(14726),u=t(68508),n=t(85893),C=e.Z.Sider,M=e.Z.Content,S={backgroundColor:"#EEFAE0"},Z={backgroundColor:"#EEFAE0",borderRight:"1px solid #ccc"},j=function(){return(0,n.jsxs)(e.Z,{children:[(0,n.jsx)(C,{style:Z}),(0,n.jsx)(M,{style:S})]})},O=j,E=function(){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{children:" hello settings"})})},A=E,z=t(86745),p=e.Z.Header,F=e.Z.Sider,L=e.Z.Content,H={padding:0,textAlign:"left",color:"#fff",height:64,paddingInline:20,backgroundColor:"#3875F6"},I={backgroundColor:"#EEFAE0"},R={width:70,maxWidth:70,minWidth:70,backgroundColor:"#EEFAE0",borderRight:"1px solid #ccc"},J={backgroundColor:"#EEFAE0"},T=[{label:"\u5BF9\u8BDD",key:"chat",icon:(0,n.jsx)(d.Z,{})},{label:"\u8BBE\u7F6E",key:"settings",icon:(0,n.jsx)(r.Z,{})}],U=function(){var b=(0,z.useIntl)(),W=(0,c.useState)(!0),m=l()(W,2),h=m[0],k=m[1],V=(0,c.useState)("chat"),y=l()(V,2),K=y[0],N=y[1],P=function(x){console.log("menu click ",x),N(x.key)};function D(){return K==="chat"?(0,n.jsx)(O,{}):(0,n.jsx)(A,{})}return(0,n.jsxs)(e.Z,{children:[(0,n.jsx)(p,{style:H,children:(0,n.jsxs)("div",{className:"logo",children:[(0,n.jsx)("img",{src:"/images/logo.png",width:40,style:{marginTop:-8}}),(0,n.jsx)("span",{style:{marginLeft:15,fontSize:20,fontWeight:"bold"},children:b.formatMessage({id:"pages.login.title",defaultMessage:"Bytedesk AI"})}),(0,n.jsx)(v.ZP,{type:"text",icon:h?(0,n.jsx)(i.Z,{}):(0,n.jsx)(s.Z,{}),onClick:function(){return k(!h)},style:{fontSize:"16px",width:64,height:64,color:"#fff"}})]})}),(0,n.jsxs)(e.Z,{children:[(0,n.jsx)(F,{style:R,trigger:null,collapsible:!0,collapsed:h,children:(0,n.jsx)(u.Z,{mode:"inline",onClick:P,style:{backgroundColor:"#EEFAE0"},defaultSelectedKeys:["chat"],items:T})}),(0,n.jsx)(L,{style:I,children:D()})]})]})},B=U}}]); diff --git a/starter/src/main/resources/templates/admin/p__Welcome.aa0b6786.async.js b/starter/src/main/resources/templates/admin/p__Welcome.aa0b6786.async.js deleted file mode 100644 index 3818a0cf28..0000000000 --- a/starter/src/main/resources/templates/admin/p__Welcome.aa0b6786.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[185],{9622:function(c,a,n){n.r(a);var t=n(21612),d=n(67294),e=n(85893),l=t.Z.Content,E={minHeight:120,backgroundColor:"#EEFAE0"},r=function(){return(0,e.jsx)(t.Z,{children:(0,e.jsx)(t.Z,{children:(0,e.jsx)(l,{style:E,children:"welcome"})})})};a.default=r}}]); diff --git a/starter/src/main/resources/templates/admin/p__Welcome.d0aab899.async.js b/starter/src/main/resources/templates/admin/p__Welcome.d0aab899.async.js new file mode 100644 index 0000000000..6f0448be7f --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Welcome.d0aab899.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[185],{24172:function(L,b,e){e.d(b,{Kq:function(){return p},tn:function(){return O}});var T=e(97857),y=e.n(T),D=e(15009),x=e.n(D),$=e(99289),I=e.n($),R=e(86745);function p(n){return o.apply(this,arguments)}function o(){return o=I()(x()().mark(function n(m){return x()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,R.request)("/api/org",{method:"POST",data:{nickname:m,client:"web"}}));case 1:case"end":return g.stop()}},n)})),o.apply(this,arguments)}function _(n){return h.apply(this,arguments)}function h(){return h=_asyncToGenerator(_regeneratorRuntime().mark(function n(m){return _regeneratorRuntime().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",request("/api/v1/org/query",{method:"GET",params:_objectSpread(_objectSpread({},m),{},{client:"web"})}));case 1:case"end":return g.stop()}},n)})),h.apply(this,arguments)}function O(n){return i.apply(this,arguments)}function i(){return i=I()(x()().mark(function n(m){return x()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,R.request)("/api/v1/org/uid",{method:"GET",params:{uid:m,client:"web"}}));case 1:case"end":return g.stop()}},n)})),i.apply(this,arguments)}},16755:function(L,b,e){e.r(b),e.d(b,{default:function(){return ce}});var T=e(15009),y=e.n(T),D=e(99289),x=e.n(D),$=e(80049),I=e(24172),R=e(16761),p=e(87676),o=e(60247),_=e(21612),h=e(96074),O=e(71230),i=e(15746),n=e(67294),m=e(57838),v=e(96159),g=e(93967),C=e.n(g),N=e(64217),z=e(53124),F=e(99559),G=s=>{const{value:r,formatter:d,precision:t,decimalSeparator:l,groupSeparator:M="",prefixCls:P}=s;let c;if(typeof d=="function")c=d(r);else{const f=String(r),j=f.match(/^(-?)(\d*)(\.(\d+))?$/);if(!j||f==="-")c=f;else{const E=j[1];let S=j[2]||"0",a=j[4]||"";S=S.replace(/\B(?=(\d{3})+(?!\d))/g,M),typeof t=="number"&&(a=a.padEnd(t,"0").slice(0,t>0?t:0)),a&&(a=`${l}${a}`),c=[n.createElement("span",{key:"int",className:`${P}-content-value-int`},E,S),a&&n.createElement("span",{key:"decimal",className:`${P}-content-value-decimal`},a)]}}return n.createElement("span",{className:`${P}-content-value`},c)},H=e(14747),X=e(91945),V=e(45503);const J=s=>{const{componentCls:r,marginXXS:d,padding:t,colorTextDescription:l,titleFontSize:M,colorTextHeading:P,contentFontSize:c,fontFamily:f}=s;return{[`${r}`]:Object.assign(Object.assign({},(0,H.Wf)(s)),{[`${r}-title`]:{marginBottom:d,color:l,fontSize:M},[`${r}-skeleton`]:{paddingTop:t},[`${r}-content`]:{color:P,fontSize:c,fontFamily:f,[`${r}-content-value`]:{display:"inline-block",direction:"ltr"},[`${r}-content-prefix, ${r}-content-suffix`]:{display:"inline-block"},[`${r}-content-prefix`]:{marginInlineEnd:d},[`${r}-content-suffix`]:{marginInlineStart:d}}})}},Q=s=>{const{fontSizeHeading3:r,fontSize:d}=s;return{titleFontSize:d,contentFontSize:r}};var Y=(0,X.I$)("Statistic",s=>{const r=(0,V.TS)(s,{});return[J(r)]},Q),k=function(s,r){var d={};for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&r.indexOf(t)<0&&(d[t]=s[t]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(s);l{const{prefixCls:r,className:d,rootClassName:t,style:l,valueStyle:M,value:P=0,title:c,valueRender:f,prefix:j,suffix:E,loading:S=!1,formatter:a,precision:w,decimalSeparator:Z=".",groupSeparator:de=",",onMouseEnter:me,onMouseLeave:fe}=s,pe=k(s,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:_e,direction:ge,statistic:A}=n.useContext(z.E_),B=_e("statistic",r),[ve,he,Ee]=Y(B),K=n.createElement(G,{decimalSeparator:Z,groupSeparator:de,prefixCls:B,formatter:a,precision:w,value:P}),Oe=C()(B,{[`${B}-rtl`]:ge==="rtl"},A==null?void 0:A.className,d,t,he,Ee),je=(0,N.Z)(pe,{aria:!0,data:!0});return ve(n.createElement("div",Object.assign({},je,{className:Oe,style:Object.assign(Object.assign({},A==null?void 0:A.style),l),onMouseEnter:me,onMouseLeave:fe}),c&&n.createElement("div",{className:`${B}-title`},c),n.createElement(F.Z,{paragraph:!1,loading:S,className:`${B}-skeleton`},n.createElement("div",{style:M,className:`${B}-content`},j&&n.createElement("span",{className:`${B}-content-prefix`},j),f?f(K):K,E&&n.createElement("span",{className:`${B}-content-suffix`},E)))))};const q=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function ee(s,r){let d=s;const t=/\[[^\]]*]/g,l=(r.match(t)||[]).map(f=>f.slice(1,-1)),M=r.replace(t,"[]"),P=q.reduce((f,j)=>{let[E,S]=j;if(f.includes(E)){const a=Math.floor(d/S);return d-=a*S,f.replace(new RegExp(`${E}+`,"g"),w=>{const Z=w.length;return a.toString().padStart(Z,"0")})}return f},M);let c=0;return P.replace(t,()=>{const f=l[c];return c+=1,f})}function te(s,r){const{format:d=""}=r,t=new Date(s).getTime(),l=Date.now(),M=Math.max(t-l,0);return ee(M,d)}var ne=function(s,r){var d={};for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&r.indexOf(t)<0&&(d[t]=s[t]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(s);l{const{value:r,format:d="HH:mm:ss",onChange:t,onFinish:l}=s,M=ne(s,["value","format","onChange","onFinish"]),P=(0,m.Z)(),c=n.useRef(null),f=()=>{l==null||l(),c.current&&(clearInterval(c.current),c.current=null)},j=()=>{const a=se(r);a>=Date.now()&&(c.current=setInterval(()=>{P(),t==null||t(a-Date.now()),a(j(),()=>{c.current&&(clearInterval(c.current),c.current=null)}),[r]);const E=(a,w)=>te(a,Object.assign(Object.assign({},w),{format:d})),S=a=>(0,v.Tm)(a,{title:void 0});return n.createElement(W,Object.assign({},M,{value:r,valueRender:S,formatter:E}))};var ie=n.memo(ae);W.Countdown=ie;var U=W,u=e(85893),oe=_.Z.Content,ue={marginLeft:20,marginTop:10,marginRight:20},le=function(){var r=(0,o.L)(function(c){return c.userInfo}),d=(0,p.u)(function(c){return{orgCurrent:c.orgCurrent,setOrgCurrent:c.setOrgCurrent}}),t=d.orgCurrent,l=d.setOrgCurrent,M=function(){var c=x()(y()().mark(function f(){var j,E;return y()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(r.organizations===void 0||r.organizations.length==0)){a.next=2;break}return a.abrupt("return");case 2:return j=r.organizations[0],a.next=5,(0,I.tn)(j);case 5:E=a.sent,console.log("queryOrgByOid: ",E),E.code===200?l(E.data):$.yw.error(E.message);case 8:case"end":return a.stop()}},f)}));return function(){return c.apply(this,arguments)}}(),P=function(){var c=x()(y()().mark(function f(){var j,E;return y()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,R._r)();case 2:return j=a.sent,console.log("testauthorityresponse:",j),a.next=6,(0,R.Ir)();case 6:E=a.sent,console.log("testcsResponse:",E);case 8:case"end":return a.stop()}},f)}));return function(){return c.apply(this,arguments)}}();return(0,n.useEffect)(function(){M()},[r]),(0,u.jsx)(_.Z,{children:(0,u.jsxs)(oe,{style:ue,children:[(0,u.jsx)(h.Z,{orientation:"left",children:"TODO:\u7EC4\u7EC7\u6570\u636E"}),(0,u.jsxs)(O.Z,{children:[(0,u.jsx)(i.Z,{span:4,children:(0,u.jsx)(U,{title:"\u90E8\u95E8\u6570",value:10})}),(0,u.jsx)(i.Z,{span:4,children:(0,u.jsx)(U,{title:"\u5728\u7EBF\u6210\u5458",value:80,suffix:"/ 100"})})]}),(0,u.jsx)(h.Z,{orientation:"left",children:"TODO:\u5BA2\u670D\u4ECA\u65E5\u6570\u636E"}),(0,u.jsxs)(O.Z,{children:[(0,u.jsx)(i.Z,{span:4,children:(0,u.jsx)(U,{title:"\u63A5\u5F85\u4E2D\u4F1A\u8BDD\u6570",value:80})}),(0,u.jsx)(i.Z,{span:4,children:(0,u.jsx)(U,{title:"\u6392\u961F\u6570",value:10})}),(0,u.jsx)(i.Z,{span:4,children:(0,u.jsx)(U,{title:"\u603B\u63A5\u5F85\u4F1A\u8BDD\u6570",value:80})}),(0,u.jsx)(i.Z,{span:4,children:(0,u.jsx)(U,{title:"\u5F53\u524D\u5728\u7EBF\u5BA2\u670D\u6570",value:5,suffix:"/ 100"})}),(0,u.jsx)(i.Z,{span:4,children:(0,u.jsx)(U,{title:"\u6536/\u53D1\u6D88\u606F\u6570",value:800,suffix:"/ 900"})})]}),(0,u.jsx)(h.Z,{orientation:"left",children:"TODO:\u670D\u52A1\u5668\u76D1\u63A7"}),(0,u.jsxs)(O.Z,{children:[(0,u.jsx)(i.Z,{span:4,children:(0,u.jsx)(U,{title:"CPU\u5360\u7528",value:50,suffix:"/ 100"})}),(0,u.jsx)(i.Z,{span:4,children:(0,u.jsx)(U,{title:"\u5185\u5B58\u5360\u7528",value:80,suffix:"/ 100"})}),(0,u.jsx)(i.Z,{span:4,children:(0,u.jsx)(U,{title:"\u786C\u76D8\u5360\u7528",value:80,suffix:"/ 100"})}),(0,u.jsx)(i.Z,{span:4,children:(0,u.jsx)(U,{title:"\u5E26\u5BBD\u5360\u7528",value:80,suffix:"/ 100"})})]})]})})},ce=le},87676:function(L,b,e){e.d(b,{u:function(){return o}});var T=e(15009),y=e.n(T),D=e(99289),x=e.n(D),$=e(24172),I=e(64529),R=e(782),p=e(71381),o=(0,I.Ue)()((0,R.mW)((0,R.tJ)((0,p.n)(function(_,h){return{orgCurrent:{uid:"",name:"",description:""},setOrgCurrent:function(i){_({orgCurrent:i})},createOrg:function(){var O=x()(y()().mark(function n(m){var v;return y()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,(0,$.Kq)(m);case 2:v=C.sent,console.log("createOrg:",v),v.code==200;case 5:case"end":return C.stop()}},n)}));function i(n){return O.apply(this,arguments)}return i}(),deleteOrgCache:function(){return _({},!0)}}}),{name:"ORGANIZTION_STORE"})))},60247:function(L,b,e){e.d(b,{L:function(){return x}});var T=e(64529),y=e(782),D=e(71381),x=(0,T.Ue)()((0,y.mW)((0,y.tJ)((0,D.n)(function($,I){return{userInfo:{uid:""},setUserInfo:function(p){$({userInfo:p})},deleteUserInfo:function(){return $({},!0)}}}),{name:"USER_STORE"})))},57838:function(L,b,e){e.d(b,{Z:function(){return y}});var T=e(67294);function y(){const[,D]=T.useReducer(x=>x+1,0);return D}},74443:function(L,b,e){e.d(b,{ZP:function(){return I},c4:function(){return D}});var T=e(67294),y=e(29691);const D=["xxl","xl","lg","md","sm","xs"],x=p=>({xs:`(max-width: ${p.screenXSMax}px)`,sm:`(min-width: ${p.screenSM}px)`,md:`(min-width: ${p.screenMD}px)`,lg:`(min-width: ${p.screenLG}px)`,xl:`(min-width: ${p.screenXL}px)`,xxl:`(min-width: ${p.screenXXL}px)`}),$=p=>{const o=p,_=[].concat(D).reverse();return _.forEach((h,O)=>{const i=h.toUpperCase(),n=`screen${i}Min`,m=`screen${i}`;if(!(o[n]<=o[m]))throw new Error(`${n}<=${m} fails : !(${o[n]}<=${o[m]})`);if(O<_.length-1){const v=`screen${i}Max`;if(!(o[m]<=o[v]))throw new Error(`${m}<=${v} fails : !(${o[m]}<=${o[v]})`);const C=`screen${_[O+1].toUpperCase()}Min`;if(!(o[v]<=o[C]))throw new Error(`${v}<=${C} fails : !(${o[v]}<=${o[C]})`)}}),p};function I(){const[,p]=(0,y.ZP)(),o=x($(p));return T.useMemo(()=>{const _=new Map;let h=-1,O={};return{matchHandlers:{},dispatch(i){return O=i,_.forEach(n=>n(O)),_.size>=1},subscribe(i){return _.size||this.register(),h+=1,_.set(h,i),i(O),h},unsubscribe(i){_.delete(i),_.size||this.unregister()},unregister(){Object.keys(o).forEach(i=>{const n=o[i],m=this.matchHandlers[n];m==null||m.mql.removeListener(m==null?void 0:m.listener)}),_.clear()},register(){Object.keys(o).forEach(i=>{const n=o[i],m=g=>{let{matches:C}=g;this.dispatch(Object.assign(Object.assign({},O),{[i]:C}))},v=window.matchMedia(n);v.addListener(m),this.matchHandlers[n]={mql:v,listener:m},m(v)})},responsiveMap:o}},[p])}const R=(p,o)=>{if(o&&typeof o=="object")for(let _=0;_tr>th,.ant-table-tbody>tr>th,.ant-table-thead>tr>td,.ant-table-tbody>tr>td{white-space:pre}.ant-table-thead>tr>th>span,.ant-table-tbody>tr>th>span,.ant-table-thead>tr>td>span,.ant-table-tbody>tr>td>span{display:block}}.ant-pro-global-header{background-color:#3875f6;margin-left:0;margin-right:0}.ant-pro-global-header-logo{margin-left:20px}.ant-pro-global-header-logo a h1,.ant-pro-global-header-header-actions,.ant-pro-global-header-header-actions-avatar div span{color:#fff}.ant-pro-layout-container,.ant-pro-card{background-color:#eefae0}.ant-pro-layout .ant-pro-layout-content{padding-block:0px;padding-inline:0px;background-color:#eefae0}.ant-pro-layout-has-footer{background-color:#eefae0}.ant-layout-sider-children{text-align:left}.ant-layout-header,.ant-layout-footer{padding:0}.ant-menu-vertical>.ant-menu-item{height:60px}.ant-pro-base-menu-vertical-item-title{margin-top:10px}.ant-menu-light.ant-menu-root.ant-menu-inline,.ant-pro-layout .ant-pro-sider .ant-layout-sider-children{background-color:#eefae0}.ant-tabs-content-holder{overflow-y:auto}.ant-radio-wrapper{font-size:18px}.ant-table-wrapper,.ant-tree-list{background-color:#eefae0}.ant-layout-content{padding:10px}.chat-iframe-outer{background:url(https://www.weikefu.net/assets/img/iphone_background.png) 0 0 no-repeat;background-size:350px 700px;height:700px;padding:55px 19px 53px 22px;width:350px}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type="range"]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6} diff --git a/starter/src/main/resources/templates/admin/umi.a733a5e0.js b/starter/src/main/resources/templates/admin/umi.a733a5e0.js new file mode 100644 index 0000000000..395016f8ec --- /dev/null +++ b/starter/src/main/resources/templates/admin/umi.a733a5e0.js @@ -0,0 +1,375 @@ +var Ef=Object.defineProperty,Cf=Object.defineProperties;var Of=Object.getOwnPropertyDescriptors;var Bc=Object.getOwnPropertySymbols;var Pf=Object.prototype.hasOwnProperty,Tf=Object.prototype.propertyIsEnumerable;var Zc=(Sa,ia,ae)=>ia in Sa?Ef(Sa,ia,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Sa[ia]=ae,js=(Sa,ia)=>{for(var ae in ia||(ia={}))Pf.call(ia,ae)&&Zc(Sa,ae,ia[ae]);if(Bc)for(var ae of Bc(ia))Tf.call(ia,ae)&&Zc(Sa,ae,ia[ae]);return Sa},zc=(Sa,ia)=>Cf(Sa,Of(ia));var gl=(Sa,ia,ae)=>new Promise((vu,v)=>{var p=r=>{try{n(ae.next(r))}catch(i){v(i)}},e=r=>{try{n(ae.throw(r))}catch(i){v(i)}},n=r=>r.done?vu(r.value):Promise.resolve(r.value).then(p,e);n((ae=ae.apply(Sa,ia)).next())});(function(){var Sa={6731:function(v,p,e){"use strict";e.d(p,{E4:function(){return oo},jG:function(){return F},t2:function(){return Mt},ks:function(){return j},bf:function(){return He},CI:function(){return wn},fp:function(){return Qt},xy:function(){return ln}});var n=e(4942),r=e(97685),i=e(74902),a=e(1413);function l(ue){for(var fe=0,de,Ce=0,Ue=ue.length;Ue>=4;++Ce,Ue-=4)de=ue.charCodeAt(Ce)&255|(ue.charCodeAt(++Ce)&255)<<8|(ue.charCodeAt(++Ce)&255)<<16|(ue.charCodeAt(++Ce)&255)<<24,de=(de&65535)*1540483477+((de>>>16)*59797<<16),de^=de>>>24,fe=(de&65535)*1540483477+((de>>>16)*59797<<16)^(fe&65535)*1540483477+((fe>>>16)*59797<<16);switch(Ue){case 3:fe^=(ue.charCodeAt(Ce+2)&255)<<16;case 2:fe^=(ue.charCodeAt(Ce+1)&255)<<8;case 1:fe^=ue.charCodeAt(Ce)&255,fe=(fe&65535)*1540483477+((fe>>>16)*59797<<16)}return fe^=fe>>>13,fe=(fe&65535)*1540483477+((fe>>>16)*59797<<16),((fe^fe>>>15)>>>0).toString(36)}var c=l,u=e(44958),s=e(67294),d=e.t(s,2),g=e(56982),y=e(91881),h=e(15671),f=e(43144),b="%";function R(ue){return ue.join(b)}var C=function(){function ue(fe){(0,h.Z)(this,ue),(0,n.Z)(this,"instanceId",void 0),(0,n.Z)(this,"cache",new Map),this.instanceId=fe}return(0,f.Z)(ue,[{key:"get",value:function(de){return this.opGet(R(de))}},{key:"opGet",value:function(de){return this.cache.get(de)||null}},{key:"update",value:function(de,Ce){return this.opUpdate(R(de),Ce)}},{key:"opUpdate",value:function(de,Ce){var Ue=this.cache.get(de),ot=Ce(Ue);ot===null?this.cache.delete(de):this.cache.set(de,ot)}}]),ue}(),P=C,I=null,O="data-token-hash",M="data-css-hash",w="data-cache-path",$="__cssinjs_instance__";function W(){var ue=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var fe=document.body.querySelectorAll("style[".concat(M,"]"))||[],de=document.head.firstChild;Array.from(fe).forEach(function(Ue){Ue[$]=Ue[$]||ue,Ue[$]===ue&&document.head.insertBefore(Ue,de)});var Ce={};Array.from(document.querySelectorAll("style[".concat(M,"]"))).forEach(function(Ue){var ot=Ue.getAttribute(M);if(Ce[ot]){if(Ue[$]===ue){var lt;(lt=Ue.parentNode)===null||lt===void 0||lt.removeChild(Ue)}}else Ce[ot]=!0})}return new P(ue)}var Q=s.createContext({hashPriority:"low",cache:W(),defaultCache:!0}),Z=function(fe){var de=fe.children,Ce=_objectWithoutProperties(fe,I),Ue=React.useContext(Q),ot=useMemo(function(){var lt=_objectSpread({},Ue);Object.keys(Ce).forEach(function(Et){var zt=Ce[Et];Ce[Et]!==void 0&&(lt[Et]=zt)});var bt=Ce.cache;return lt.cache=lt.cache||W(),lt.defaultCache=!bt&&Ue.defaultCache,lt},[Ue,Ce],function(lt,bt){return!isEqual(lt[0],bt[0],!0)||!isEqual(lt[1],bt[1],!0)});return React.createElement(Q.Provider,{value:ot},de)},V=Q,X=e(71002),J=e(98924);function K(ue,fe){if(ue.length!==fe.length)return!1;for(var de=0;de1&&arguments[1]!==void 0?arguments[1]:!1,lt={map:this.cache};return de.forEach(function(bt){if(!lt)lt=void 0;else{var Et;lt=(Et=lt)===null||Et===void 0||(Et=Et.map)===null||Et===void 0?void 0:Et.get(bt)}}),(Ce=lt)!==null&&Ce!==void 0&&Ce.value&&ot&&(lt.value[1]=this.cacheCallTimes++),(Ue=lt)===null||Ue===void 0?void 0:Ue.value}},{key:"get",value:function(de){var Ce;return(Ce=this.internalGet(de,!0))===null||Ce===void 0?void 0:Ce[0]}},{key:"has",value:function(de){return!!this.internalGet(de)}},{key:"set",value:function(de,Ce){var Ue=this;if(!this.has(de)){if(this.size()+1>ue.MAX_CACHE_SIZE+ue.MAX_CACHE_OFFSET){var ot=this.keys.reduce(function(zt,tt){var tn=(0,r.Z)(zt,2),an=tn[1];return Ue.internalGet(tt)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),U+=1}return(0,f.Z)(ue,[{key:"getDerivativeToken",value:function(de){return this.derivatives.reduce(function(Ce,Ue){return Ue(de,Ce)},void 0)}}]),ue}(),B=new ie;function F(ue){var fe=Array.isArray(ue)?ue:[ue];return B.has(fe)||B.set(fe,new N(fe)),B.get(fe)}var T=new WeakMap,A={};function G(ue,fe){for(var de=T,Ce=0;Ce3&&arguments[3]!==void 0?arguments[3]:{},ot=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(ot)return ue;var lt=(0,a.Z)((0,a.Z)({},Ue),{},(Ce={},(0,n.Z)(Ce,O,fe),(0,n.Z)(Ce,M,de),Ce)),bt=Object.keys(lt).map(function(Et){var zt=lt[Et];return zt?"".concat(Et,'="').concat(zt,'"'):null}).filter(function(Et){return Et}).join(" ");return"")}var j=function(fe){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(de?"".concat(de,"-"):"").concat(fe).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()},Y=function(fe,de,Ce){return Object.keys(fe).length?".".concat(de).concat(Ce!=null&&Ce.scope?".".concat(Ce.scope):"","{").concat(Object.entries(fe).map(function(Ue){var ot=(0,r.Z)(Ue,2),lt=ot[0],bt=ot[1];return"".concat(lt,":").concat(bt,";")}).join(""),"}"):""},Se=function(fe,de,Ce){var Ue={},ot={};return Object.entries(fe).forEach(function(lt){var bt,Et,zt=(0,r.Z)(lt,2),tt=zt[0],tn=zt[1];if(Ce!=null&&(bt=Ce.preserve)!==null&&bt!==void 0&&bt[tt])ot[tt]=tn;else if((typeof tn=="string"||typeof tn=="number")&&!(Ce!=null&&(Et=Ce.ignore)!==null&&Et!==void 0&&Et[tt])){var an,Bn=j(tt,Ce==null?void 0:Ce.prefix);Ue[Bn]=typeof tn=="number"&&!(Ce!=null&&(an=Ce.unitless)!==null&&an!==void 0&&an[tt])?"".concat(tn,"px"):String(tn),ot[tt]="var(".concat(Bn,")")}}),[ot,Y(Ue,de,{scope:Ce==null?void 0:Ce.scope})]},be=e(8410),me=(0,a.Z)({},d),he=me.useInsertionEffect,H=function(fe,de,Ce){s.useMemo(fe,Ce),(0,be.Z)(function(){return de(!0)},Ce)},se=he?function(ue,fe,de){return he(function(){return ue(),fe()},de)}:H,pe=se,Oe=(0,a.Z)({},d),Be=Oe.useInsertionEffect,We=function(fe){var de=[],Ce=!1;function Ue(ot){Ce||de.push(ot)}return s.useEffect(function(){return Ce=!1,function(){Ce=!0,de.length&&de.forEach(function(ot){return ot()})}},fe),Ue},ke=function(){return function(fe){fe()}},Ae=typeof Be!="undefined"?We:ke,Ne=Ae;function te(){return!1}var je=!1;function Ge(){return je}var Ke=te;if(!1)var ze,Xe;function Ye(ue,fe,de,Ce,Ue){var ot=s.useContext(V),lt=ot.cache,bt=[ue].concat((0,i.Z)(fe)),Et=R(bt),zt=Ne([Et]),tt=Ke(),tn=function(Ln){lt.opUpdate(Et,function(vr){var ur=vr||[void 0,void 0],tr=(0,r.Z)(ur,2),hr=tr[0],xr=hr===void 0?0:hr,Gr=tr[1],Yr=Gr,lr=Yr||de(),kr=[xr,lr];return Ln?Ln(kr):kr})};s.useMemo(function(){tn()},[Et]);var an=lt.opGet(Et),Bn=an[1];return pe(function(){Ue==null||Ue(Bn)},function(kn){return tn(function(Ln){var vr=(0,r.Z)(Ln,2),ur=vr[0],tr=vr[1];return kn&&ur===0&&(Ue==null||Ue(Bn)),[ur+1,tr]}),function(){lt.opUpdate(Et,function(Ln){var vr=Ln||[],ur=(0,r.Z)(vr,2),tr=ur[0],hr=tr===void 0?0:tr,xr=ur[1],Gr=hr-1;return Gr===0?(zt(function(){(kn||!lt.opGet(Et))&&(Ce==null||Ce(xr,!1))}),null):[hr-1,xr]})}},[Et]),Bn}var et={},st="css",at=new Map;function Ct(ue){at.set(ue,(at.get(ue)||0)+1)}function It(ue,fe){if(typeof document!="undefined"){var de=document.querySelectorAll("style[".concat(O,'="').concat(ue,'"]'));de.forEach(function(Ce){if(Ce[$]===fe){var Ue;(Ue=Ce.parentNode)===null||Ue===void 0||Ue.removeChild(Ce)}})}}var Lt=0;function En(ue,fe){at.set(ue,(at.get(ue)||0)-1);var de=Array.from(at.keys()),Ce=de.filter(function(Ue){var ot=at.get(Ue)||0;return ot<=0});de.length-Ce.length>Lt&&Ce.forEach(function(Ue){It(Ue,fe),at.delete(Ue)})}var Mt=function(fe,de,Ce,Ue){var ot=Ce.getDerivativeToken(fe),lt=(0,a.Z)((0,a.Z)({},ot),de);return Ue&&(lt=Ue(lt)),lt},Ft="token";function Qt(ue,fe){var de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ce=(0,s.useContext)(V),Ue=Ce.cache.instanceId,ot=Ce.container,lt=de.salt,bt=lt===void 0?"":lt,Et=de.override,zt=Et===void 0?et:Et,tt=de.formatToken,tn=de.getComputedToken,an=de.cssVar,Bn=G(function(){return Object.assign.apply(Object,[{}].concat((0,i.Z)(fe)))},fe),kn=ee(Bn),Ln=ee(zt),vr=an?ee(an):"",ur=Ye(Ft,[bt,ue.id,kn,Ln,vr],function(){var tr,hr=tn?tn(Bn,zt,ue):Mt(Bn,zt,ue,tt),xr=(0,a.Z)({},hr),Gr="";if(an){var Yr=Se(hr,an.key,{prefix:an.prefix,ignore:an.ignore,unitless:an.unitless,preserve:an.preserve}),lr=(0,r.Z)(Yr,2);hr=lr[0],Gr=lr[1]}var kr=re(hr,bt);hr._tokenKey=kr,xr._tokenKey=re(xr,bt);var Co=(tr=an==null?void 0:an.key)!==null&&tr!==void 0?tr:kr;hr._themeKey=Co,Ct(Co);var ao="".concat(st,"-").concat(c(kr));return hr._hashId=ao,[hr,ao,xr,Gr,(an==null?void 0:an.key)||""]},function(tr){En(tr[0]._themeKey,Ue)},function(tr){var hr=(0,r.Z)(tr,4),xr=hr[0],Gr=hr[3];if(an&&Gr){var Yr=(0,u.hq)(Gr,c("css-variables-".concat(xr._themeKey)),{mark:M,prepend:"queue",attachTo:ot,priority:-999});Yr[$]=Ue,Yr.setAttribute(O,xr._themeKey)}});return ur}var Kt=function(fe,de,Ce){var Ue=(0,r.Z)(fe,5),ot=Ue[2],lt=Ue[3],bt=Ue[4],Et=Ce||{},zt=Et.plain;if(!lt)return null;var tt=ot._tokenKey,tn=-999,an={"data-rc-order":"prependQueue","data-rc-priority":"".concat(tn)},Bn=le(lt,bt,tt,an,zt);return[tn,tt,Bn]},cn=e(87462),en={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},Yn=en,Xt="-ms-",Zn="-moz-",sn="-webkit-",yn="comm",Vn="rule",In="decl",nn="@page",Un="@media",Wn="@import",xn="@charset",Ar="@viewport",br="@supports",Jn="@document",cr="@namespace",or="@keyframes",fr="@font-face",ar="@counter-style",dr="@font-feature-values",ir="@layer",pr=Math.abs,vn=String.fromCharCode,Hr=Object.assign;function Mr(ue,fe){return Ir(ue,0)^45?(((fe<<2^Ir(ue,0))<<2^Ir(ue,1))<<2^Ir(ue,2))<<2^Ir(ue,3):0}function Qr(ue){return ue.trim()}function Zr(ue,fe){return(ue=fe.exec(ue))?ue[0]:ue}function jr(ue,fe,de){return ue.replace(fe,de)}function Lr(ue,fe,de){return ue.indexOf(fe,de)}function Ir(ue,fe){return ue.charCodeAt(fe)|0}function Cr(ue,fe,de){return ue.slice(fe,de)}function An(ue){return ue.length}function dt(ue){return ue.length}function nt(ue,fe){return fe.push(ue),ue}function St(ue,fe){return ue.map(fe).join("")}function mt(ue,fe){return ue.filter(function(de){return!Zr(de,fe)})}function wt(ue,fe){for(var de="",Ce=0;Ce0?Ir(Rn,--on):0,Jt--,$n===10&&(Jt=1,rn--),$n}function D(){return $n=on2||Te($n)>3?"":" "}function Nt(ue){for(;D();)switch(Te($n)){case 0:append(vt(on-1),ue);break;case 2:append($e($n),ue);break;default:append(from($n),ue)}return ue}function Pt(ue,fe){for(;--fe&&D()&&!($n<48||$n>102||$n>57&&$n<65||$n>70&&$n<97););return ce(ue,ne()+(fe<6&&L()==32&&D()==32))}function xt(ue){for(;D();)switch($n){case ue:return on;case 34:case 39:ue!==34&&ue!==39&&xt($n);break;case 40:ue===41&&xt(ue);break;case 92:D();break}return on}function ut(ue,fe){for(;D()&&ue+$n!==57;)if(ue+$n===84&&L()===47)break;return"/*"+ce(fe,on-1)+"*"+vn(ue===47?ue:D())}function vt(ue){for(;!Te(L());)D();return ce(ue,on)}function Dt(ue){return Ze(Rt("",null,null,null,[""],ue=Me(ue),0,[0],ue))}function Rt(ue,fe,de,Ce,Ue,ot,lt,bt,Et){for(var zt=0,tt=0,tn=lt,an=0,Bn=0,kn=0,Ln=1,vr=1,ur=1,tr=0,hr="",xr=Ue,Gr=ot,Yr=Ce,lr=hr;vr;)switch(kn=tr,tr=D()){case 40:if(kn!=108&&Ir(lr,tn-1)==58){Lr(lr+=jr($e(tr),"&","&\f"),"&\f",pr(zt?bt[zt-1]:0))!=-1&&(ur=-1);break}case 34:case 39:case 91:lr+=$e(tr);break;case 9:case 10:case 13:case 32:lr+=rt(kn);break;case 92:lr+=Pt(ne()-1,7);continue;case 47:switch(L()){case 42:case 47:nt(Wt(ut(D(),ne()),fe,de,Et),Et);break;default:lr+="/"}break;case 123*Ln:bt[zt++]=An(lr)*ur;case 125*Ln:case 59:case 0:switch(tr){case 0:case 125:vr=0;case 59+tt:ur==-1&&(lr=jr(lr,/\f/g,"")),Bn>0&&An(lr)-tn&&nt(Bn>32?Cn(lr+";",Ce,de,tn-1,Et):Cn(jr(lr," ","")+";",Ce,de,tn-2,Et),Et);break;case 59:lr+=";";default:if(nt(Yr=Yt(lr,fe,de,zt,tt,Ue,bt,hr,xr=[],Gr=[],tn,ot),ot),tr===123)if(tt===0)Rt(lr,fe,Yr,Yr,xr,ot,tn,bt,Gr);else switch(an===99&&Ir(lr,3)===110?100:an){case 100:case 108:case 109:case 115:Rt(ue,Yr,Yr,Ce&&nt(Yt(ue,Yr,Yr,0,0,Ue,bt,hr,Ue,xr=[],tn,Gr),Gr),Ue,Gr,tn,bt,Ce?xr:Gr);break;default:Rt(lr,Yr,Yr,Yr,[""],Gr,0,bt,Gr)}}zt=tt=Bn=0,Ln=ur=1,hr=lr="",tn=lt;break;case 58:tn=1+An(lr),Bn=kn;default:if(Ln<1){if(tr==123)--Ln;else if(tr==125&&Ln++==0&&S()==125)continue}switch(lr+=vn(tr),tr*Ln){case 38:ur=tt>0?1:(lr+="\f",-1);break;case 44:bt[zt++]=(An(lr)-1)*ur,ur=1;break;case 64:L()===45&&(lr+=$e(D())),an=L(),tt=tn=An(hr=lr+=vt(ne())),tr++;break;case 45:kn===45&&An(lr)==2&&(Ln=0)}}return ot}function Yt(ue,fe,de,Ce,Ue,ot,lt,bt,Et,zt,tt,tn){for(var an=Ue-1,Bn=Ue===0?ot:[""],kn=dt(Bn),Ln=0,vr=0,ur=0;Ln0?Bn[tr]+" "+hr:jr(hr,/&\f/g,Bn[tr])))&&(Et[ur++]=xr);return bn(ue,fe,de,Ue===0?Vn:bt,Et,zt,tt,tn)}function Wt(ue,fe,de,Ce){return bn(ue,fe,de,yn,vn(x()),Cr(ue,2,-2),0,Ce)}function Cn(ue,fe,de,Ce,Ue){return bn(ue,fe,de,In,Cr(ue,0,Ce),Cr(ue,Ce+1,-1),Ce,Ue)}function Pn(ue,fe){var de=fe.path,Ce=fe.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(de?"Error in ".concat(de,": "):"").concat(ue).concat(Ce.length?" Selector: ".concat(Ce.join(" | ")):""))}var Tn=function(fe,de,Ce){if(fe==="content"){var Ue=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,ot=["normal","none","initial","inherit","unset"];(typeof de!="string"||ot.indexOf(de)===-1&&!Ue.test(de)&&(de.charAt(0)!==de.charAt(de.length-1)||de.charAt(0)!=='"'&&de.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(de,"\"'`."),Ce)}},zn=null,Mn=function(fe,de,Ce){fe==="animation"&&Ce.hashId&&de!=="none"&&lintWarning("You seem to be using hashed animation '".concat(de,"', in which case 'animationName' with Keyframe as value is recommended."),Ce)},rr=null;function _n(ue){var fe,de=((fe=ue.match(/:not\(([^)]*)\)/))===null||fe===void 0?void 0:fe[1])||"",Ce=de.split(/(\[[^[]*])|(?=[.#])/).filter(function(Ue){return Ue});return Ce.length>1}function jn(ue){return ue.parentSelectors.reduce(function(fe,de){return fe?de.includes("&")?de.replace(/&/g,fe):"".concat(fe," ").concat(de):de},"")}var Or=function(fe,de,Ce){var Ue=jn(Ce),ot=Ue.match(/:not\([^)]*\)/g)||[];ot.length>0&&ot.some(_n)&&lintWarning("Concat ':not' selector not support in legacy browsers.",Ce)},Br=null,Pr=function(fe,de,Ce){switch(fe){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(fe,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Ce);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof de=="string"){var Ue=de.split(" ").map(function(bt){return bt.trim()});Ue.length===4&&Ue[1]!==Ue[3]&&lintWarning("You seem to be using '".concat(fe,"' property with different left ").concat(fe," and right ").concat(fe,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Ce)}return;case"clear":case"textAlign":(de==="left"||de==="right")&&lintWarning("You seem to be using non-logical value '".concat(de,"' of ").concat(fe,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Ce);return;case"borderRadius":if(typeof de=="string"){var ot=de.split("/").map(function(bt){return bt.trim()}),lt=ot.reduce(function(bt,Et){if(bt)return bt;var zt=Et.split(" ").map(function(tt){return tt.trim()});return zt.length>=2&&zt[0]!==zt[1]||zt.length===3&&zt[1]!==zt[2]||zt.length===4&&zt[2]!==zt[3]?!0:bt},!1);lt&&lintWarning("You seem to be using non-logical value '".concat(de,"' of ").concat(fe,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Ce)}return;default:}},Gt=null,kt=function(fe,de,Ce){(typeof de=="string"&&/NaN/g.test(de)||Number.isNaN(de))&&lintWarning("Unexpected 'NaN' in property '".concat(fe,": ").concat(de,"'."),Ce)},_t=null,Hn=function(fe,de,Ce){Ce.parentSelectors.some(function(Ue){var ot=Ue.split(",");return ot.some(function(lt){return lt.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",Ce)},Kn=null,Dn="data-ant-cssinjs-cache-path",Rr="_FILE_STYLE__";function zr(ue){return Object.keys(ue).map(function(fe){var de=ue[fe];return"".concat(fe,":").concat(de)}).join(";")}var Dr,lo=!0;function no(ue){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Dr=ue,lo=fe}function uo(){if(!Dr&&(Dr={},(0,J.Z)())){var ue=document.createElement("div");ue.className=Dn,ue.style.position="fixed",ue.style.visibility="hidden",ue.style.top="-9999px",document.body.appendChild(ue);var fe=getComputedStyle(ue).content||"";fe=fe.replace(/^"/,"").replace(/"$/,""),fe.split(";").forEach(function(Ue){var ot=Ue.split(":"),lt=(0,r.Z)(ot,2),bt=lt[0],Et=lt[1];Dr[bt]=Et});var de=document.querySelector("style[".concat(Dn,"]"));if(de){var Ce;lo=!1,(Ce=de.parentNode)===null||Ce===void 0||Ce.removeChild(de)}document.body.removeChild(ue)}}function Bo(ue){return uo(),!!Dr[ue]}function To(ue){var fe=Dr[ue],de=null;if(fe&&(0,J.Z)())if(lo)de=Rr;else{var Ce=document.querySelector("style[".concat(M,'="').concat(Dr[ue],'"]'));Ce?de=Ce.innerHTML:delete Dr[ue]}return[de,fe]}var $o="_skip_check_",xo="_multi_value_";function xe(ue){var fe=wt(Dt(ue),Ht);return fe.replace(/\{%%%\:[^;];}/g,";")}function Re(ue){return(0,X.Z)(ue)==="object"&&ue&&($o in ue||xo in ue)}function k(ue,fe,de){if(!fe)return ue;var Ce=".".concat(fe),Ue=de==="low"?":where(".concat(Ce,")"):Ce,ot=ue.split(",").map(function(lt){var bt,Et=lt.trim().split(/\s+/),zt=Et[0]||"",tt=((bt=zt.match(/^\w+/))===null||bt===void 0?void 0:bt[0])||"";return zt="".concat(tt).concat(Ue).concat(zt.slice(tt.length)),[zt].concat((0,i.Z)(Et.slice(1))).join(" ")});return ot.join(",")}var Qe=function ue(fe){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},Ue=Ce.root,ot=Ce.injectHash,lt=Ce.parentSelectors,bt=de.hashId,Et=de.layer,zt=de.path,tt=de.hashPriority,tn=de.transformers,an=tn===void 0?[]:tn,Bn=de.linters,kn=Bn===void 0?[]:Bn,Ln="",vr={};function ur(Yr){var lr=Yr.getName(bt);if(!vr[lr]){var kr=ue(Yr.style,de,{root:!1,parentSelectors:lt}),Co=(0,r.Z)(kr,1),ao=Co[0];vr[lr]="@keyframes ".concat(Yr.getName(bt)).concat(ao)}}function tr(Yr){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Yr.forEach(function(kr){Array.isArray(kr)?tr(kr,lr):kr&&lr.push(kr)}),lr}var hr=tr(Array.isArray(fe)?fe:[fe]);if(hr.forEach(function(Yr){var lr=typeof Yr=="string"&&!Ue?{}:Yr;if(typeof lr=="string")Ln+="".concat(lr,` +`);else if(lr._keyframe)ur(lr);else{var kr=an.reduce(function(Co,ao){var Oo;return(ao==null||(Oo=ao.visit)===null||Oo===void 0?void 0:Oo.call(ao,Co))||Co},lr);Object.keys(kr).forEach(function(Co){var ao=kr[Co];if((0,X.Z)(ao)==="object"&&ao&&(Co!=="animationName"||!ao._keyframe)&&!Re(ao)){var Oo=!1,go=Co.trim(),Vr=!1;(Ue||ot)&&bt?go.startsWith("@")?Oo=!0:go=k(Co,bt,tt):Ue&&!bt&&(go==="&"||go==="")&&(go="",Vr=!0);var Tr=ue(ao,de,{root:Vr,injectHash:Oo,parentSelectors:[].concat((0,i.Z)(lt),[go])}),Xr=(0,r.Z)(Tr,2),So=Xr[0],Po=Xr[1];vr=(0,a.Z)((0,a.Z)({},vr),Po),Ln+="".concat(go).concat(So)}else{let Ho=function(zo,Fo){var _o=zo.replace(/[A-Z]/g,function(Ca){return"-".concat(Ca.toLowerCase())}),ua=Fo;!Yn[zo]&&typeof ua=="number"&&ua!==0&&(ua="".concat(ua,"px")),zo==="animationName"&&Fo!==null&&Fo!==void 0&&Fo._keyframe&&(ur(Fo),ua=Fo.getName(bt)),Ln+="".concat(_o,":").concat(ua,";")};var Zo,Xo=(Zo=ao==null?void 0:ao.value)!==null&&Zo!==void 0?Zo:ao;(0,X.Z)(ao)==="object"&&ao!==null&&ao!==void 0&&ao[xo]&&Array.isArray(Xo)?Xo.forEach(function(zo){Ho(Co,zo)}):Ho(Co,Xo)}})}}),!Ue)Ln="{".concat(Ln,"}");else if(Et&&Ve()){var xr=Et.split(","),Gr=xr[xr.length-1].trim();Ln="@layer ".concat(Gr," {").concat(Ln,"}"),xr.length>1&&(Ln="@layer ".concat(Et,"{%%%:%}").concat(Ln))}return[Ln,vr]};function ft(ue,fe){return c("".concat(ue.join("%")).concat(fe))}function $t(){return null}var Vt="style";function ln(ue,fe){var de=ue.token,Ce=ue.path,Ue=ue.hashId,ot=ue.layer,lt=ue.nonce,bt=ue.clientOnly,Et=ue.order,zt=Et===void 0?0:Et,tt=s.useContext(V),tn=tt.autoClear,an=tt.mock,Bn=tt.defaultCache,kn=tt.hashPriority,Ln=tt.container,vr=tt.ssrInline,ur=tt.transformers,tr=tt.linters,hr=tt.cache,xr=de._tokenKey,Gr=[xr].concat((0,i.Z)(Ce)),Yr=Ot,lr=Ye(Vt,Gr,function(){var go=Gr.join("|");if(Bo(go)){var Vr=To(go),Tr=(0,r.Z)(Vr,2),Xr=Tr[0],So=Tr[1];if(Xr)return[Xr,xr,So,{},bt,zt]}var Po=fe(),Zo=Qe(Po,{hashId:Ue,hashPriority:kn,layer:ot,path:Ce.join("-"),transformers:ur,linters:tr}),Xo=(0,r.Z)(Zo,2),Ho=Xo[0],zo=Xo[1],Fo=xe(Ho),_o=ft(Gr,Fo);return[Fo,xr,_o,zo,bt,zt]},function(go,Vr){var Tr=(0,r.Z)(go,3),Xr=Tr[2];(Vr||tn)&&Ot&&(0,u.jL)(Xr,{mark:M})},function(go){var Vr=(0,r.Z)(go,4),Tr=Vr[0],Xr=Vr[1],So=Vr[2],Po=Vr[3];if(Yr&&Tr!==Rr){var Zo={mark:M,prepend:"queue",attachTo:Ln,priority:zt},Xo=typeof lt=="function"?lt():lt;Xo&&(Zo.csp={nonce:Xo});var Ho=(0,u.hq)(Tr,So,Zo);Ho[$]=hr.instanceId,Ho.setAttribute(O,xr),Object.keys(Po).forEach(function(zo){(0,u.hq)(xe(Po[zo]),"_effect-".concat(zo),Zo)})}}),kr=(0,r.Z)(lr,3),Co=kr[0],ao=kr[1],Oo=kr[2];return function(go){var Vr;if(!vr||Yr||!Bn)Vr=s.createElement($t,null);else{var Tr;Vr=s.createElement("style",(0,cn.Z)({},(Tr={},(0,n.Z)(Tr,O,ao),(0,n.Z)(Tr,M,Oo),Tr),{dangerouslySetInnerHTML:{__html:Co}}))}return s.createElement(s.Fragment,null,Vr,go)}}var fn=function(fe,de,Ce){var Ue=(0,r.Z)(fe,6),ot=Ue[0],lt=Ue[1],bt=Ue[2],Et=Ue[3],zt=Ue[4],tt=Ue[5],tn=Ce||{},an=tn.plain;if(zt)return null;var Bn=ot,kn={"data-rc-order":"prependQueue","data-rc-priority":"".concat(tt)};return Bn=le(ot,lt,bt,kn,an),Et&&Object.keys(Et).forEach(function(Ln){if(!de[Ln]){de[Ln]=!0;var vr=xe(Et[Ln]);Bn+=le(vr,lt,"_effect-".concat(Ln),kn,an)}}),[tt,bt,Bn]},qn="cssVar",un=function(fe,de){var Ce=fe.key,Ue=fe.prefix,ot=fe.unitless,lt=fe.ignore,bt=fe.token,Et=fe.scope,zt=Et===void 0?"":Et,tt=(0,s.useContext)(V),tn=tt.cache.instanceId,an=tt.container,Bn=bt._tokenKey,kn=[].concat((0,i.Z)(fe.path),[Ce,zt,Bn]),Ln=Ye(qn,kn,function(){var vr=de(),ur=Se(vr,Ce,{prefix:Ue,unitless:ot,ignore:lt,scope:zt}),tr=(0,r.Z)(ur,2),hr=tr[0],xr=tr[1],Gr=ft(kn,xr);return[hr,xr,Gr,Ce]},function(vr){var ur=(0,r.Z)(vr,3),tr=ur[2];Ot&&(0,u.jL)(tr,{mark:M})},function(vr){var ur=(0,r.Z)(vr,3),tr=ur[1],hr=ur[2];if(tr){var xr=(0,u.hq)(tr,hr,{mark:M,prepend:"queue",attachTo:an,priority:-999});xr[$]=tn,xr.setAttribute(O,Ce)}});return Ln},gn=function(fe,de,Ce){var Ue=(0,r.Z)(fe,4),ot=Ue[1],lt=Ue[2],bt=Ue[3],Et=Ce||{},zt=Et.plain;if(!ot)return null;var tt=-999,tn={"data-rc-order":"prependQueue","data-rc-priority":"".concat(tt)},an=le(ot,bt,lt,tn,zt);return[tt,lt,an]},wn=un,sr,Wr=(sr={},(0,n.Z)(sr,Vt,fn),(0,n.Z)(sr,Ft,Kt),(0,n.Z)(sr,qn,gn),sr);function wo(ue){return ue!==null}function Qn(ue,fe){var de=typeof fe=="boolean"?{plain:fe}:fe||{},Ce=de.plain,Ue=Ce===void 0?!1:Ce,ot=de.types,lt=ot===void 0?["style","token","cssVar"]:ot,bt=new RegExp("^(".concat((typeof lt=="string"?[lt]:lt).join("|"),")%")),Et=Array.from(ue.cache.keys()).filter(function(an){return bt.test(an)}),zt={},tt={},tn="";return Et.map(function(an){var Bn=an.replace(bt,"").replace(/%/g,"|"),kn=an.split("%"),Ln=_slicedToArray(kn,1),vr=Ln[0],ur=Wr[vr],tr=ur(ue.cache.get(an)[1],zt,{plain:Ue});if(!tr)return null;var hr=_slicedToArray(tr,3),xr=hr[0],Gr=hr[1],Yr=hr[2];return an.startsWith("style")&&(tt[Bn]=Gr),[xr,Yr]}).filter(wo).sort(function(an,Bn){var kn=_slicedToArray(an,1),Ln=kn[0],vr=_slicedToArray(Bn,1),ur=vr[0];return Ln-ur}).forEach(function(an){var Bn=_slicedToArray(an,2),kn=Bn[1];tn+=kn}),tn+=toStyleStr(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(tt),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP),Ue),tn}var gr=function(){function ue(fe,de){(0,h.Z)(this,ue),(0,n.Z)(this,"name",void 0),(0,n.Z)(this,"style",void 0),(0,n.Z)(this,"_keyframe",!0),this.name=fe,this.style=de}return(0,f.Z)(ue,[{key:"getName",value:function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return de?"".concat(de,"-").concat(this.name):this.name}}]),ue}(),oo=gr;function to(ue){if(typeof ue=="number")return[[ue],!1];var fe=String(ue).trim(),de=fe.match(/(.*)(!important)/),Ce=(de?de[1]:fe).trim().split(/\s+/),Ue="",ot=0;return[Ce.reduce(function(lt,bt){if(bt.includes("(")||bt.includes(")")){var Et=bt.split("(").length-1,zt=bt.split(")").length-1;ot+=Et-zt}return ot===0?(lt.push(Ue+bt),Ue=""):ot>0&&(Ue+=bt),lt},[]),!!de]}function $r(ue){return ue.notSplit=!0,ue}var ha={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:$r(["borderTop","borderBottom"]),borderBlockStart:$r(["borderTop"]),borderBlockEnd:$r(["borderBottom"]),borderInline:$r(["borderLeft","borderRight"]),borderInlineStart:$r(["borderLeft"]),borderInlineEnd:$r(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function sa(ue,fe){var de=ue;return fe&&(de="".concat(de," !important")),{_skip_check_:!0,value:de}}var Da={visit:function(fe){var de={};return Object.keys(fe).forEach(function(Ce){var Ue=fe[Ce],ot=ha[Ce];if(ot&&(typeof Ue=="number"||typeof Ue=="string")){var lt=to(Ue),bt=(0,r.Z)(lt,2),Et=bt[0],zt=bt[1];ot.length&&ot.notSplit?ot.forEach(function(tt){de[tt]=sa(Ue,zt)}):ot.length===1?de[ot[0]]=sa(Ue,zt):ot.length===2?ot.forEach(function(tt,tn){var an;de[tt]=sa((an=Et[tn])!==null&&an!==void 0?an:Et[0],zt)}):ot.length===4?ot.forEach(function(tt,tn){var an,Bn;de[tt]=sa((an=(Bn=Et[tn])!==null&&Bn!==void 0?Bn:Et[tn-2])!==null&&an!==void 0?an:Et[0],zt)}):de[Ce]=Ue}else de[Ce]=Ue}),de}},Ea=null,Za=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function za(ue,fe){var de=Math.pow(10,fe+1),Ce=Math.floor(ue*de);return Math.round(Ce/10)*10/de}var ya=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},de=fe.rootValue,Ce=de===void 0?16:de,Ue=fe.precision,ot=Ue===void 0?5:Ue,lt=fe.mediaQuery,bt=lt===void 0?!1:lt,Et=function(tn,an){if(!an)return tn;var Bn=parseFloat(an);if(Bn<=1)return tn;var kn=za(Bn/Ce,ot);return"".concat(kn,"rem")},zt=function(tn){var an=_objectSpread({},tn);return Object.entries(tn).forEach(function(Bn){var kn=_slicedToArray(Bn,2),Ln=kn[0],vr=kn[1];if(typeof vr=="string"&&vr.includes("px")){var ur=vr.replace(Za,Et);an[Ln]=ur}!unitless[Ln]&&typeof vr=="number"&&vr!==0&&(an[Ln]="".concat(vr,"px").replace(Za,Et));var tr=Ln.trim();if(tr.startsWith("@")&&tr.includes("px")&&bt){var hr=Ln.replace(Za,Et);an[hr]=an[Ln],delete an[Ln]}}),an};return{visit:zt}},la=null,Fe={supportModernCSS:function(){return it()&&ht()}}},1085:function(v,p){"use strict";var e={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"};p.Z=e},29245:function(v,p){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};p.Z=e},15613:function(v,p){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"};p.Z=e},44685:function(v,p){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"};p.Z=e},15294:function(v,p){"use strict";var e={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"};p.Z=e},36688:function(v,p){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};p.Z=e},50756:function(v,p){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};p.Z=e},34689:function(v,p){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};p.Z=e},44039:function(v,p){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};p.Z=e},89099:function(v,p,e){"use strict";e.d(p,{Z:function(){return Ae}});var n=e(1413),r=e(97685),i=e(4942),a=e(91),l=e(67294),c=e(93967),u=e.n(c),s=(0,l.createContext)({}),d=s,g=e(71002),y=e(86500),h=e(1350),f=2,b=.16,R=.05,C=.05,P=.15,I=5,O=4,M=[{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 w(Ne){var te=Ne.r,je=Ne.g,Ge=Ne.b,Ke=(0,y.py)(te,je,Ge);return{h:Ke.h*360,s:Ke.s,v:Ke.v}}function $(Ne){var te=Ne.r,je=Ne.g,Ge=Ne.b;return"#".concat((0,y.vq)(te,je,Ge,!1))}function W(Ne,te,je){var Ge=je/100,Ke={r:(te.r-Ne.r)*Ge+Ne.r,g:(te.g-Ne.g)*Ge+Ne.g,b:(te.b-Ne.b)*Ge+Ne.b};return Ke}function Q(Ne,te,je){var Ge;return Math.round(Ne.h)>=60&&Math.round(Ne.h)<=240?Ge=je?Math.round(Ne.h)-f*te:Math.round(Ne.h)+f*te:Ge=je?Math.round(Ne.h)+f*te:Math.round(Ne.h)-f*te,Ge<0?Ge+=360:Ge>=360&&(Ge-=360),Ge}function Z(Ne,te,je){if(Ne.h===0&&Ne.s===0)return Ne.s;var Ge;return je?Ge=Ne.s-b*te:te===O?Ge=Ne.s+b:Ge=Ne.s+R*te,Ge>1&&(Ge=1),je&&te===I&&Ge>.1&&(Ge=.1),Ge<.06&&(Ge=.06),Number(Ge.toFixed(2))}function V(Ne,te,je){var Ge;return je?Ge=Ne.v+C*te:Ge=Ne.v-P*te,Ge>1&&(Ge=1),Number(Ge.toFixed(2))}function X(Ne){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=[],Ge=(0,h.uA)(Ne),Ke=I;Ke>0;Ke-=1){var ze=w(Ge),Xe=$((0,h.uA)({h:Q(ze,Ke,!0),s:Z(ze,Ke,!0),v:V(ze,Ke,!0)}));je.push(Xe)}je.push($(Ge));for(var Ye=1;Ye<=O;Ye+=1){var et=w(Ge),st=$((0,h.uA)({h:Q(et,Ye),s:Z(et,Ye),v:V(et,Ye)}));je.push(st)}return te.theme==="dark"?M.map(function(at){var Ct=at.index,It=at.opacity,Lt=$(W((0,h.uA)(te.backgroundColor||"#141414"),(0,h.uA)(je[Ct]),It*100));return Lt}):je}var J={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},K={},ie={};Object.keys(J).forEach(function(Ne){K[Ne]=X(J[Ne]),K[Ne].primary=K[Ne][5],ie[Ne]=X(J[Ne],{theme:"dark",backgroundColor:"#141414"}),ie[Ne].primary=ie[Ne][5]});var _=K.red,U=K.volcano,N=K.gold,B=K.orange,F=K.yellow,T=K.lime,A=K.green,G=K.cyan,oe=K.blue,ee=K.geekblue,re=K.purple,ge=K.magenta,ye=K.grey,Ie=e(80334),Pe=e(44958),Ve=e(68929),Je=e.n(Ve);function it(Ne,te){(0,Ie.ZP)(Ne,"[@ant-design/icons] ".concat(te))}function gt(Ne){return(0,g.Z)(Ne)==="object"&&typeof Ne.name=="string"&&typeof Ne.theme=="string"&&((0,g.Z)(Ne.icon)==="object"||typeof Ne.icon=="function")}function ht(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(Ne).reduce(function(te,je){var Ge=Ne[je];switch(je){case"class":te.className=Ge,delete te.class;break;default:delete te[je],te[Je()(je)]=Ge}return te},{})}function Ot(Ne,te,je){return je?l.createElement(Ne.tag,(0,n.Z)((0,n.Z)({key:te},ht(Ne.attrs)),je),(Ne.children||[]).map(function(Ge,Ke){return Ot(Ge,"".concat(te,"-").concat(Ne.tag,"-").concat(Ke))})):l.createElement(Ne.tag,(0,n.Z)({key:te},ht(Ne.attrs)),(Ne.children||[]).map(function(Ge,Ke){return Ot(Ge,"".concat(te,"-").concat(Ne.tag,"-").concat(Ke))}))}function He(Ne){return X(Ne)[0]}function le(Ne){return Ne?Array.isArray(Ne)?Ne:[Ne]:[]}var j={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Y=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,Se=function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y,je=(0,l.useContext)(d),Ge=je.csp;(0,l.useEffect)(function(){(0,Pe.hq)(te,"@ant-design-icons",{prepend:!0,csp:Ge})},[])},be=["icon","className","onClick","style","primaryColor","secondaryColor"],me={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function he(Ne){var te=Ne.primaryColor,je=Ne.secondaryColor;me.primaryColor=te,me.secondaryColor=je||He(te),me.calculated=!!je}function H(){return(0,n.Z)({},me)}var se=function(te){var je=te.icon,Ge=te.className,Ke=te.onClick,ze=te.style,Xe=te.primaryColor,Ye=te.secondaryColor,et=(0,a.Z)(te,be),st=me;if(Xe&&(st={primaryColor:Xe,secondaryColor:Ye||He(Xe)}),Se(),it(gt(je),"icon should be icon definiton, but got ".concat(je)),!gt(je))return null;var at=je;return at&&typeof at.icon=="function"&&(at=(0,n.Z)((0,n.Z)({},at),{},{icon:at.icon(st.primaryColor,st.secondaryColor)})),Ot(at.icon,"svg-".concat(at.name),(0,n.Z)({className:Ge,onClick:Ke,style:ze,"data-icon":at.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},et))};se.displayName="IconReact",se.getTwoToneColors=H,se.setTwoToneColors=he;var pe=se;function Oe(Ne){var te=le(Ne),je=(0,r.Z)(te,2),Ge=je[0],Ke=je[1];return pe.setTwoToneColors({primaryColor:Ge,secondaryColor:Ke})}function Be(){var Ne=pe.getTwoToneColors();return Ne.calculated?[Ne.primaryColor,Ne.secondaryColor]:Ne.primaryColor}var We=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Oe("#1890ff");var ke=l.forwardRef(function(Ne,te){var je=Ne.className,Ge=Ne.icon,Ke=Ne.spin,ze=Ne.rotate,Xe=Ne.tabIndex,Ye=Ne.onClick,et=Ne.twoToneColor,st=(0,a.Z)(Ne,We),at=l.useContext(d),Ct=at.prefixCls,It=Ct===void 0?"anticon":Ct,Lt=at.rootClassName,En=u()(Lt,It,(0,i.Z)((0,i.Z)({},"".concat(It,"-").concat(Ge.name),!!Ge.name),"".concat(It,"-spin"),!!Ke||Ge.name==="loading"),je),Mt=Xe;Mt===void 0&&Ye&&(Mt=-1);var Ft=ze?{msTransform:"rotate(".concat(ze,"deg)"),transform:"rotate(".concat(ze,"deg)")}:void 0,Qt=le(et),Kt=(0,r.Z)(Qt,2),cn=Kt[0],en=Kt[1];return l.createElement("span",(0,n.Z)((0,n.Z)({role:"img","aria-label":Ge.name},st),{},{ref:te,tabIndex:Mt,onClick:Ye,className:En}),l.createElement(pe,{icon:Ge,primaryColor:cn,secondaryColor:en,style:Ft}))});ke.displayName="AntdIcon",ke.getTwoToneColor=Be,ke.setTwoToneColor=Oe;var Ae=ke},92443:function(v,p,e){"use strict";e.d(p,{Z:function(){return s}});var n=e(1413),r=e(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},a=i,l=e(89099),c=function(g,y){return r.createElement(l.Z,(0,n.Z)((0,n.Z)({},g),{},{ref:y,icon:a}))},u=r.forwardRef(c),s=u},43425:function(v,p,e){"use strict";var n=e(1413),r=e(67294),i=e(34689),a=e(89099),l=function(s,d){return r.createElement(a.Z,(0,n.Z)((0,n.Z)({},s),{},{ref:d,icon:i.Z}))},c=r.forwardRef(l);p.Z=c},87547:function(v,p,e){"use strict";e.d(p,{Z:function(){return s}});var n=e(1413),r=e(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},a=i,l=e(89099),c=function(g,y){return r.createElement(l.Z,(0,n.Z)((0,n.Z)({},g),{},{ref:y,icon:a}))},u=r.forwardRef(c),s=u},87909:function(v,p,e){"use strict";e.d(p,{q:function(){return w}});var n=e(1413),r=e(87462),i=e(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},l=a,c=e(65555),u=function(W,Q){return i.createElement(c.Z,(0,r.Z)({},W,{ref:Q,icon:l}))},s=i.forwardRef(u),d=s,g=e(21612),y=e(28459),h=e(93967),f=e.n(h),b=e(4942),R=e(98082),C=function(W){return(0,b.Z)({},W.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:W.colorTextSecondary,"&-link":{color:W.colorTextSecondary,textDecoration:W.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:W.colorPrimary}},"&-copyright":{fontSize:"14px",color:W.colorText}})};function P($){return(0,R.Xj)("ProLayoutFooter",function(W){var Q=(0,n.Z)((0,n.Z)({},W),{},{componentCls:".".concat($)});return[C(Q)]})}var I=e(85893),O=function(W){var Q=W.className,Z=W.prefixCls,V=W.links,X=W.copyright,J=W.style,K=(0,i.useContext)(y.ZP.ConfigContext),ie=K.getPrefixCls(Z||"pro-global-footer"),_=P(ie),U=_.wrapSSR,N=_.hashId;return(V==null||V===!1||Array.isArray(V)&&V.length===0)&&(X==null||X===!1)?null:U((0,I.jsxs)("div",{className:f()(ie,N,Q),style:J,children:[V&&(0,I.jsx)("div",{className:"".concat(ie,"-list ").concat(N).trim(),children:V.map(function(B){return(0,I.jsx)("a",{className:"".concat(ie,"-list-link ").concat(N).trim(),title:B.key,target:B.blankTarget?"_blank":"_self",href:B.href,rel:"noreferrer",children:B.title},B.key)})}),X&&(0,I.jsx)("div",{className:"".concat(ie,"-copyright ").concat(N).trim(),children:X})]}))},M=g.Z.Footer,w=function(W){var Q=W.links,Z=W.copyright,V=W.style,X=W.className,J=W.prefixCls;return(0,I.jsx)(M,{className:X,style:(0,n.Z)({padding:0},V),children:(0,I.jsx)(O,{links:Q,prefixCls:J,copyright:Z===!1?null:(0,I.jsxs)(i.Fragment,{children:[(0,I.jsx)(d,{})," ",Z]})})})}},34853:function(v,p,e){"use strict";e.r(p),e.d(p,{blue:function(){return K},cyan:function(){return J},geekblue:function(){return ie},generate:function(){return P},gold:function(){return W},gray:function(){return B},green:function(){return X},grey:function(){return N},lime:function(){return V},magenta:function(){return U},orange:function(){return Q},presetDarkPalettes:function(){return M},presetPalettes:function(){return O},presetPrimaryColors:function(){return I},purple:function(){return _},red:function(){return w},volcano:function(){return $},yellow:function(){return Z}});var n=e(86500),r=e(1350),i=2,a=.16,l=.05,c=.05,u=.15,s=5,d=4,g=[{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 y(F){var T=F.r,A=F.g,G=F.b,oe=(0,n.py)(T,A,G);return{h:oe.h*360,s:oe.s,v:oe.v}}function h(F){var T=F.r,A=F.g,G=F.b;return"#".concat((0,n.vq)(T,A,G,!1))}function f(F,T,A){var G=A/100,oe={r:(T.r-F.r)*G+F.r,g:(T.g-F.g)*G+F.g,b:(T.b-F.b)*G+F.b};return oe}function b(F,T,A){var G;return Math.round(F.h)>=60&&Math.round(F.h)<=240?G=A?Math.round(F.h)-i*T:Math.round(F.h)+i*T:G=A?Math.round(F.h)+i*T:Math.round(F.h)-i*T,G<0?G+=360:G>=360&&(G-=360),G}function R(F,T,A){if(F.h===0&&F.s===0)return F.s;var G;return A?G=F.s-a*T:T===d?G=F.s+a:G=F.s+l*T,G>1&&(G=1),A&&T===s&&G>.1&&(G=.1),G<.06&&(G=.06),Number(G.toFixed(2))}function C(F,T,A){var G;return A?G=F.v+c*T:G=F.v-u*T,G>1&&(G=1),Number(G.toFixed(2))}function P(F){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=[],G=(0,r.uA)(F),oe=s;oe>0;oe-=1){var ee=y(G),re=h((0,r.uA)({h:b(ee,oe,!0),s:R(ee,oe,!0),v:C(ee,oe,!0)}));A.push(re)}A.push(h(G));for(var ge=1;ge<=d;ge+=1){var ye=y(G),Ie=h((0,r.uA)({h:b(ye,ge),s:R(ye,ge),v:C(ye,ge)}));A.push(Ie)}return T.theme==="dark"?g.map(function(Pe){var Ve=Pe.index,Je=Pe.opacity,it=h(f((0,r.uA)(T.backgroundColor||"#141414"),(0,r.uA)(A[Ve]),Je*100));return it}):A}var I={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"},O={},M={};Object.keys(I).forEach(function(F){O[F]=P(I[F]),O[F].primary=O[F][5],M[F]=P(I[F],{theme:"dark",backgroundColor:"#141414"}),M[F].primary=M[F][5]});var w=O.red,$=O.volcano,W=O.gold,Q=O.orange,Z=O.yellow,V=O.lime,X=O.green,J=O.cyan,K=O.blue,ie=O.geekblue,_=O.purple,U=O.magenta,N=O.grey,B=O.grey},65555:function(v,p,e){"use strict";e.d(p,{Z:function(){return $}});var n=e(87462),r=e(97685),i=e(4942),a=e(91),l=e(67294),c=e(93967),u=e.n(c),s=e(34853),d=e(2446),g=e(1413),y=e(14004),h=["icon","className","onClick","style","primaryColor","secondaryColor"],f={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function b(W){var Q=W.primaryColor,Z=W.secondaryColor;f.primaryColor=Q,f.secondaryColor=Z||(0,y.pw)(Q),f.calculated=!!Z}function R(){return(0,g.Z)({},f)}var C=function(Q){var Z=Q.icon,V=Q.className,X=Q.onClick,J=Q.style,K=Q.primaryColor,ie=Q.secondaryColor,_=(0,a.Z)(Q,h),U=l.useRef(),N=f;if(K&&(N={primaryColor:K,secondaryColor:ie||(0,y.pw)(K)}),(0,y.C3)(U),(0,y.Kp)((0,y.r)(Z),"icon should be icon definiton, but got ".concat(Z)),!(0,y.r)(Z))return null;var B=Z;return B&&typeof B.icon=="function"&&(B=(0,g.Z)((0,g.Z)({},B),{},{icon:B.icon(N.primaryColor,N.secondaryColor)})),(0,y.R_)(B.icon,"svg-".concat(B.name),(0,g.Z)((0,g.Z)({className:V,onClick:X,style:J,"data-icon":B.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},_),{},{ref:U}))};C.displayName="IconReact",C.getTwoToneColors=R,C.setTwoToneColors=b;var P=C;function I(W){var Q=(0,y.H9)(W),Z=(0,r.Z)(Q,2),V=Z[0],X=Z[1];return P.setTwoToneColors({primaryColor:V,secondaryColor:X})}function O(){var W=P.getTwoToneColors();return W.calculated?[W.primaryColor,W.secondaryColor]:W.primaryColor}var M=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];I(s.blue.primary);var w=l.forwardRef(function(W,Q){var Z=W.className,V=W.icon,X=W.spin,J=W.rotate,K=W.tabIndex,ie=W.onClick,_=W.twoToneColor,U=(0,a.Z)(W,M),N=l.useContext(d.Z),B=N.prefixCls,F=B===void 0?"anticon":B,T=N.rootClassName,A=u()(T,F,(0,i.Z)((0,i.Z)({},"".concat(F,"-").concat(V.name),!!V.name),"".concat(F,"-spin"),!!X||V.name==="loading"),Z),G=K;G===void 0&&ie&&(G=-1);var oe=J?{msTransform:"rotate(".concat(J,"deg)"),transform:"rotate(".concat(J,"deg)")}:void 0,ee=(0,y.H9)(_),re=(0,r.Z)(ee,2),ge=re[0],ye=re[1];return l.createElement("span",(0,n.Z)({role:"img","aria-label":V.name},U,{ref:Q,tabIndex:G,onClick:ie,className:A}),l.createElement(P,{icon:V,primaryColor:ge,secondaryColor:ye,style:oe}))});w.displayName="AntdIcon",w.getTwoToneColor=O,w.setTwoToneColor=I;var $=w},2446:function(v,p,e){"use strict";var n=e(67294),r=(0,n.createContext)({});p.Z=r},14004:function(v,p,e){"use strict";e.d(p,{C3:function(){return I},H9:function(){return R},Kp:function(){return g},R_:function(){return f},pw:function(){return b},r:function(){return y},vD:function(){return C}});var n=e(1413),r=e(71002),i=e(34853),a=e(44958),l=e(27571),c=e(80334),u=e(67294),s=e(2446);function d(O){return O.replace(/-(.)/g,function(M,w){return w.toUpperCase()})}function g(O,M){(0,c.ZP)(O,"[@ant-design/icons] ".concat(M))}function y(O){return(0,r.Z)(O)==="object"&&typeof O.name=="string"&&typeof O.theme=="string"&&((0,r.Z)(O.icon)==="object"||typeof O.icon=="function")}function h(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(O).reduce(function(M,w){var $=O[w];switch(w){case"class":M.className=$,delete M.class;break;default:delete M[w],M[d(w)]=$}return M},{})}function f(O,M,w){return w?u.createElement(O.tag,(0,n.Z)((0,n.Z)({key:M},h(O.attrs)),w),(O.children||[]).map(function($,W){return f($,"".concat(M,"-").concat(O.tag,"-").concat(W))})):u.createElement(O.tag,(0,n.Z)({key:M},h(O.attrs)),(O.children||[]).map(function($,W){return f($,"".concat(M,"-").concat(O.tag,"-").concat(W))}))}function b(O){return(0,i.generate)(O)[0]}function R(O){return O?Array.isArray(O)?O:[O]:[]}var C={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},P=` +.anticon { + display: inline-flex; + alignItems: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,I=function(M){var w=(0,u.useContext)(s.Z),$=w.csp,W=w.prefixCls,Q=P;W&&(Q=Q.replace(/anticon/g,W)),(0,u.useEffect)(function(){var Z=M.current,V=(0,l.A)(Z);(0,a.hq)(Q,"@ant-design-icons",{prepend:!0,csp:$,attachTo:V})},[])}},10915:function(v,p,e){"use strict";e.d(p,{_Y:function(){return K},L_:function(){return _},ZP:function(){return U},nu:function(){return Q},YB:function(){return ie}});var n=e(74902),r=e(97685),i=e(91),a=e(1413),l=e(6731),c=e(51812),u=e(28459),s=e(37029),d=e(67294),g=e(81758),y=e(32818),h=e(27484),f=e.n(h),b=e(98082),R=function(B,F){var T,A,G,oe,ee,re=(0,a.Z)({},B);return(0,a.Z)((0,a.Z)({bgLayout:"linear-gradient(".concat(F.colorBgContainer,", ").concat(F.colorBgLayout," 28%)"),colorTextAppListIcon:F.colorTextSecondary,appListIconHoverBgColor:re==null||(T=re.sider)===null||T===void 0?void 0:T.colorBgMenuItemSelected,colorBgAppListIconHover:(0,b.uK)(F.colorTextBase,.04),colorTextAppListIconHover:F.colorTextBase},re),{},{header:(0,a.Z)({colorBgHeader:(0,b.uK)(F.colorBgElevated,.6),colorBgScrollHeader:(0,b.uK)(F.colorBgElevated,.8),colorHeaderTitle:F.colorText,colorBgMenuItemHover:(0,b.uK)(F.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(re==null||(A=re.header)===null||A===void 0?void 0:A.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(G=re.header)===null||G===void 0?void 0:G.colorBgHeader:F.colorBgElevated,colorTextMenuSelected:(0,b.uK)(F.colorTextBase,.95),colorBgRightActionsItemHover:(0,b.uK)(F.colorTextBase,.03),colorTextRightActionsItem:F.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:F.colorTextSecondary,colorTextMenuSecondary:F.colorTextTertiary,colorTextMenuTitle:F.colorText,colorTextMenuActive:F.colorText},re.header),sider:(0,a.Z)({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:F.colorBgElevated,colorTextCollapsedButtonHover:F.colorTextSecondary,colorTextCollapsedButton:(0,b.uK)(F.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:(0,b.uK)(F.colorTextBase,.06),colorBgMenuItemHover:(0,b.uK)(F.colorTextBase,.03),colorBgMenuItemSelected:(0,b.uK)(F.colorTextBase,.04),colorTextMenuItemHover:F.colorText,colorTextMenuSelected:(0,b.uK)(F.colorTextBase,.95),colorTextMenuActive:F.colorText,colorTextMenu:F.colorTextSecondary,colorTextMenuSecondary:F.colorTextTertiary,colorTextMenuTitle:F.colorText,colorTextSubMenuSelected:(0,b.uK)(F.colorTextBase,.95)},re.sider),pageContainer:(0,a.Z)({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((oe=re.pageContainer)===null||oe===void 0?void 0:oe.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((ee=re.pageContainer)===null||ee===void 0?void 0:ee.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:F.colorBgElevated},re.pageContainer)})},C=e(67804),P=e(71002),I=function(){for(var B={},F=arguments.length,T=new Array(F),A=0;A1&&arguments[1]!==void 0?arguments[1]:1,f=3735928559^h,b=1103547991^h,R=0,C;R>>16,2246822507)^Math.imul(b^b>>>13,3266489909),b=Math.imul(b^b>>>16,2246822507)^Math.imul(f^f>>>13,3266489909),4294967296*(2097151&b)+(f>>>0)},u=(0,r.jG)(function(g){return g}),s={theme:u,token:(0,n.Z)((0,n.Z)({},l),i.Z===null||i.Z===void 0||(a=i.Z.defaultAlgorithm)===null||a===void 0?void 0:a.call(i.Z,i.Z===null||i.Z===void 0?void 0:i.Z.defaultSeed)),hashId:"pro-".concat(c(JSON.stringify(l)))},d=function(){return s}},51812:function(v,p,e){"use strict";e.d(p,{Y:function(){return n}});var n=function(i){var a={};if(Object.keys(i||{}).forEach(function(l){i[l]!==void 0&&(a[l]=i[l])}),!(Object.keys(a).length<1))return a}},24556:function(v,p,e){"use strict";e.d(p,{l:function(){return De}});function n(x){if(x.sheet)return x.sheet;for(var S=0;S0?h(W,--w):0,O--,$===10&&(O=1,I--),$}function J(){return $=w2||U($)>3?"":" "}function G(x){for(;J();)switch(U($)){case 0:append(ge(w-1),x);break;case 2:append(F($),x);break;default:append(from($),x)}return x}function oe(x,S){for(;--S&&J()&&!($<48||$>102||$>57&&$<65||$>70&&$<97););return _(x,ie()+(S<6&&K()==32&&J()==32))}function ee(x){for(;J();)switch($){case x:return w;case 34:case 39:x!==34&&x!==39&&ee($);break;case 40:x===41&&ee(x);break;case 92:J();break}return w}function re(x,S){for(;J()&&x+$!==57;)if(x+$===84&&K()===47)break;return"/*"+_(S,w-1)+"*"+l(x===47?x:J())}function ge(x){for(;!U(K());)J();return _(x,w)}var ye="-ms-",Ie="-moz-",Pe="-webkit-",Ve="comm",Je="rule",it="decl",gt="@page",ht="@media",Ot="@import",He="@charset",le="@viewport",j="@supports",Y="@document",Se="@namespace",be="@keyframes",me="@font-face",he="@counter-style",H="@font-feature-values",se="@layer";function pe(x,S){for(var D="",L=R(x),ne=0;ne-1&&!x.return)switch(x.type){case DECLARATION:x.return=prefix(x.value,x.length,D);return;case KEYFRAMES:return serialize([copy(x,{value:replace(x.value,"@","@"+WEBKIT)})],L);case RULESET:if(x.length)return combine(x.props,function(ne){switch(match(ne,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(x,{props:[replace(ne,/:(read-\w+)/,":"+MOZ+"$1")]})],L);case"::placeholder":return serialize([copy(x,{props:[replace(ne,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(x,{props:[replace(ne,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(x,{props:[replace(ne,/:(plac\w+)/,MS+"input-$1")]})],L)}return""})}}function Ae(x){switch(x.type){case RULESET:x.props=x.props.map(function(S){return combine(tokenize(S),function(D,L,ne){switch(charat(D,0)){case 12:return substr(D,1,strlen(D));case 0:case 40:case 43:case 62:case 126:return D;case 58:ne[++L]==="global"&&(ne[L]="",ne[++L]="\f"+substr(ne[L],L=1,-1));case 32:return L===1?"":D;default:switch(L){case 0:return x=D,sizeof(ne)>1?"":D;case(L=sizeof(ne)-1):case 2:return L===2?D+x+x:D+x;default:return D}}})})}}function Ne(x){return B(te("",null,null,null,[""],x=N(x),0,[0],x))}function te(x,S,D,L,ne,ce,Te,Me,Ze){for(var $e=0,qe=0,rt=Te,Nt=0,Pt=0,xt=0,ut=1,vt=1,Dt=1,Rt=0,Yt="",Wt=ne,Cn=ce,Pn=L,Tn=Yt;vt;)switch(xt=Rt,Rt=J()){case 40:if(xt!=108&&h(Tn,rt-1)==58){y(Tn+=g(F(Rt),"&","&\f"),"&\f")!=-1&&(Dt=-1);break}case 34:case 39:case 91:Tn+=F(Rt);break;case 9:case 10:case 13:case 32:Tn+=A(xt);break;case 92:Tn+=oe(ie()-1,7);continue;case 47:switch(K()){case 42:case 47:C(Ge(re(J(),ie()),S,D),Ze);break;default:Tn+="/"}break;case 123*ut:Me[$e++]=b(Tn)*Dt;case 125*ut:case 59:case 0:switch(Rt){case 0:case 125:vt=0;case 59+qe:Dt==-1&&(Tn=g(Tn,/\f/g,"")),Pt>0&&b(Tn)-rt&&C(Pt>32?Ke(Tn+";",L,D,rt-1):Ke(g(Tn," ","")+";",L,D,rt-2),Ze);break;case 59:Tn+=";";default:if(C(Pn=je(Tn,S,D,$e,qe,ne,Me,Yt,Wt=[],Cn=[],rt),ce),Rt===123)if(qe===0)te(Tn,S,Pn,Pn,Wt,ce,rt,Me,Cn);else switch(Nt===99&&h(Tn,3)===110?100:Nt){case 100:case 108:case 109:case 115:te(x,Pn,Pn,L&&C(je(x,Pn,Pn,0,0,ne,Me,Yt,ne,Wt=[],rt),Cn),ne,Cn,rt,Me,L?Wt:Cn);break;default:te(Tn,Pn,Pn,Pn,[""],Cn,0,Me,Cn)}}$e=qe=Pt=0,ut=Dt=1,Yt=Tn="",rt=Te;break;case 58:rt=1+b(Tn),Pt=xt;default:if(ut<1){if(Rt==123)--ut;else if(Rt==125&&ut++==0&&X()==125)continue}switch(Tn+=l(Rt),Rt*ut){case 38:Dt=qe>0?1:(Tn+="\f",-1);break;case 44:Me[$e++]=(b(Tn)-1)*Dt,Dt=1;break;case 64:K()===45&&(Tn+=F(J())),Nt=K(),qe=rt=b(Yt=Tn+=ge(ie())),Rt++;break;case 45:xt===45&&b(Tn)==2&&(ut=0)}}return ce}function je(x,S,D,L,ne,ce,Te,Me,Ze,$e,qe){for(var rt=ne-1,Nt=ne===0?ce:[""],Pt=R(Nt),xt=0,ut=0,vt=0;xt0?Nt[Dt]+" "+Rt:g(Rt,/&\f/g,Nt[Dt])))&&(Ze[vt++]=Yt);return Q(x,S,D,ne===0?Je:Me,Ze,$e,qe)}function Ge(x,S,D){return Q(x,S,D,Ve,l(V()),f(x,2,-2),0)}function Ke(x,S,D,L){return Q(x,S,D,it,f(x,0,L),f(x,L+1,-1),L)}var ze=function(S,D,L){for(var ne=0,ce=0;ne=ce,ce=K(),ne===38&&ce===12&&(D[L]=1),!U(ce);)J();return _(S,w)},Xe=function(S,D){var L=-1,ne=44;do switch(U(ne)){case 0:ne===38&&K()===12&&(D[L]=1),S[L]+=ze(w-1,D,L);break;case 2:S[L]+=F(ne);break;case 4:if(ne===44){S[++L]=K()===58?"&\f":"",D[L]=S[L].length;break}default:S[L]+=l(ne)}while(ne=J());return S},Ye=function(S,D){return B(Xe(N(S),D))},et=new WeakMap,st=function(S){if(!(S.type!=="rule"||!S.parent||S.length<1)){for(var D=S.value,L=S.parent,ne=S.column===L.column&&S.line===L.line;L.type!=="rule";)if(L=L.parent,!L)return;if(!(S.props.length===1&&D.charCodeAt(0)!==58&&!et.get(L))&&!ne){et.set(S,!0);for(var ce=[],Te=Ye(D,ce),Me=L.props,Ze=0,$e=0;Ze-1},Lt=function(S){return function(D,L,ne){if(!(D.type!=="rule"||S.compat)){var ce=D.value.match(/(:first|:nth|:nth-last)-child/g);if(ce){for(var Te=!!D.parent,Me=Te?D.parent.children:ne,Ze=Me.length-1;Ze>=0;Ze--){var $e=Me[Ze];if($e.line=0;L--)if(!En(D[L]))return!0;return!1},Ft=function(S){S.type="",S.value="",S.return="",S.children="",S.props=""},Qt=function(S,D,L){En(S)&&(S.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Ft(S)):Mt(D,L)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ft(S)))};function Kt(x,S){switch(u(x,S)){case 5103:return Pe+"print-"+x+x;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Pe+x+x;case 5349:case 4246:case 4810:case 6968:case 2756:return Pe+x+Ie+x+ye+x+x;case 6828:case 4268:return Pe+x+ye+x+x;case 6165:return Pe+x+ye+"flex-"+x+x;case 5187:return Pe+x+g(x,/(\w+).+(:[^]+)/,Pe+"box-$1$2"+ye+"flex-$1$2")+x;case 5443:return Pe+x+ye+"flex-item-"+g(x,/flex-|-self/,"")+x;case 4675:return Pe+x+ye+"flex-line-pack"+g(x,/align-content|flex-|-self/,"")+x;case 5548:return Pe+x+ye+g(x,"shrink","negative")+x;case 5292:return Pe+x+ye+g(x,"basis","preferred-size")+x;case 6060:return Pe+"box-"+g(x,"-grow","")+Pe+x+ye+g(x,"grow","positive")+x;case 4554:return Pe+g(x,/([^-])(transform)/g,"$1"+Pe+"$2")+x;case 6187:return g(g(g(x,/(zoom-|grab)/,Pe+"$1"),/(image-set)/,Pe+"$1"),x,"")+x;case 5495:case 3959:return g(x,/(image-set\([^]*)/,Pe+"$1$`$1");case 4968:return g(g(x,/(.+:)(flex-)?(.*)/,Pe+"box-pack:$3"+ye+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pe+x+x;case 4095:case 3583:case 4068:case 2532:return g(x,/(.+)-inline(.+)/,Pe+"$1$2")+x;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(b(x)-1-S>6)switch(h(x,S+1)){case 109:if(h(x,S+4)!==45)break;case 102:return g(x,/(.+:)(.+)-([^]+)/,"$1"+Pe+"$2-$3$1"+Ie+(h(x,S+3)==108?"$3":"$2-$3"))+x;case 115:return~y(x,"stretch")?Kt(g(x,"stretch","fill-available"),S)+x:x}break;case 4949:if(h(x,S+1)!==115)break;case 6444:switch(h(x,b(x)-3-(~y(x,"!important")&&10))){case 107:return g(x,":",":"+Pe)+x;case 101:return g(x,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Pe+(h(x,14)===45?"inline-":"")+"box$3$1"+Pe+"$2$3$1"+ye+"$2box$3")+x}break;case 5936:switch(h(x,S+11)){case 114:return Pe+x+ye+g(x,/[svh]\w+-[tblr]{2}/,"tb")+x;case 108:return Pe+x+ye+g(x,/[svh]\w+-[tblr]{2}/,"tb-rl")+x;case 45:return Pe+x+ye+g(x,/[svh]\w+-[tblr]{2}/,"lr")+x}return Pe+x+ye+x+x}return x}var cn=function(S,D,L,ne){if(S.length>-1&&!S.return)switch(S.type){case it:S.return=Kt(S.value,S.length);break;case be:return pe([Z(S,{value:g(S.value,"@","@"+Pe)})],ne);case Je:if(S.length)return P(S.props,function(ce){switch(d(ce,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pe([Z(S,{props:[g(ce,/:(read-\w+)/,":"+Ie+"$1")]})],ne);case"::placeholder":return pe([Z(S,{props:[g(ce,/:(plac\w+)/,":"+Pe+"input-$1")]}),Z(S,{props:[g(ce,/:(plac\w+)/,":"+Ie+"$1")]}),Z(S,{props:[g(ce,/:(plac\w+)/,ye+"input-$1")]})],ne)}return""})}},en=[cn],Yn=function(S){var D=S.key;if(D==="css"){var L=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(L,function(ut){var vt=ut.getAttribute("data-emotion");vt.indexOf(" ")!==-1&&(document.head.appendChild(ut),ut.setAttribute("data-s",""))})}var ne=S.stylisPlugins||en,ce={},Te,Me=[];Te=S.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+D+' "]'),function(ut){for(var vt=ut.getAttribute("data-emotion").split(" "),Dt=1;Dt=4;++L,ne-=4)D=x.charCodeAt(L)&255|(x.charCodeAt(++L)&255)<<8|(x.charCodeAt(++L)&255)<<16|(x.charCodeAt(++L)&255)<<24,D=(D&65535)*1540483477+((D>>>16)*59797<<16),D^=D>>>24,S=(D&65535)*1540483477+((D>>>16)*59797<<16)^(S&65535)*1540483477+((S>>>16)*59797<<16);switch(ne){case 3:S^=(x.charCodeAt(L+2)&255)<<16;case 2:S^=(x.charCodeAt(L+1)&255)<<8;case 1:S^=x.charCodeAt(L)&255,S=(S&65535)*1540483477+((S>>>16)*59797<<16)}return S^=S>>>13,S=(S&65535)*1540483477+((S>>>16)*59797<<16),((S^S>>>15)>>>0).toString(36)}var Zn={animationIterationCount:1,aspectRatio: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};function sn(x){var S=Object.create(null);return function(D){return S[D]===void 0&&(S[D]=x(D)),S[D]}}var yn=`You have illegal escape sequence in your template literal, most likely inside content's property value. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Vn="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",In=/[A-Z]|^ms/g,nn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Un=function(S){return S.charCodeAt(1)===45},Wn=function(S){return S!=null&&typeof S!="boolean"},xn=sn(function(x){return Un(x)?x:x.replace(In,"-$&").toLowerCase()}),Ar=function(S,D){switch(S){case"animation":case"animationName":if(typeof D=="string")return D.replace(nn,function(L,ne,ce){return Mr={name:ne,styles:ce,next:Mr},ne})}return Zn[S]!==1&&!Un(S)&&typeof D=="number"&&D!==0?D+"px":D};if(!1)var br,Jn,cr,or,fr,ar;var dr=null;function ir(x,S,D){if(D==null)return"";if(D.__emotion_styles!==void 0)return D;switch(typeof D){case"boolean":return"";case"object":{if(D.anim===1)return Mr={name:D.name,styles:D.styles,next:Mr},D.name;if(D.styles!==void 0){var L=D.next;if(L!==void 0)for(;L!==void 0;)Mr={name:L.name,styles:L.styles,next:Mr},L=L.next;var ne=D.styles+";";return ne}return pr(x,S,D)}case"function":{if(x!==void 0){var ce=Mr,Te=D(x);return Mr=ce,ir(x,S,Te)}break}case"string":if(!1)var Me,Ze;break}if(S==null)return D;var $e=S[D];return $e!==void 0?$e:D}function pr(x,S,D){var L="";if(Array.isArray(D))for(var ne=0;ne.5?W/(2-I-O):W/(I+O),I){case R:M=(C-P)/W+(C1&&(P-=1),P<.16666666666666666?R+(C-R)*(6*P):P<.5?C:P<.6666666666666666?R+(C-R)*(.6666666666666666-P)*6:R}function l(R,C,P){var I,O,M;if(R=(0,n.sh)(R,360),C=(0,n.sh)(C,100),P=(0,n.sh)(P,100),C===0)O=P,M=P,I=P;else{var w=P<.5?P*(1+C):P+C-P*C,$=2*P-w;I=a($,w,R+.3333333333333333),O=a($,w,R),M=a($,w,R-.3333333333333333)}return{r:I*255,g:O*255,b:M*255}}function c(R,C,P){R=(0,n.sh)(R,255),C=(0,n.sh)(C,255),P=(0,n.sh)(P,255);var I=Math.max(R,C,P),O=Math.min(R,C,P),M=0,w=I,$=I-O,W=I===0?0:$/I;if(I===O)M=0;else{switch(I){case R:M=(C-P)/$+(C>16,g:(R&65280)>>8,b:R&255}}},48701:function(v,p,e){"use strict";e.d(p,{R:function(){return n}});var n={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"}},1350:function(v,p,e){"use strict";e.d(p,{uA:function(){return a}});var n=e(86500),r=e(48701),i=e(90279);function a(f){var b={r:0,g:0,b:0},R=1,C=null,P=null,I=null,O=!1,M=!1;return typeof f=="string"&&(f=y(f)),typeof f=="object"&&(h(f.r)&&h(f.g)&&h(f.b)?(b=(0,n.rW)(f.r,f.g,f.b),O=!0,M=String(f.r).substr(-1)==="%"?"prgb":"rgb"):h(f.h)&&h(f.s)&&h(f.v)?(C=(0,i.JX)(f.s),P=(0,i.JX)(f.v),b=(0,n.WE)(f.h,C,P),O=!0,M="hsv"):h(f.h)&&h(f.s)&&h(f.l)&&(C=(0,i.JX)(f.s),I=(0,i.JX)(f.l),b=(0,n.ve)(f.h,C,I),O=!0,M="hsl"),Object.prototype.hasOwnProperty.call(f,"a")&&(R=f.a)),R=(0,i.Yq)(R),{ok:O,format:f.format||M,r:Math.min(255,Math.max(b.r,0)),g:Math.min(255,Math.max(b.g,0)),b:Math.min(255,Math.max(b.b,0)),a:R}}var l="[-\\+]?\\d+%?",c="[-\\+]?\\d*\\.\\d+%?",u="(?:".concat(c,")|(?:").concat(l,")"),s="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),d="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),g={CSS_UNIT:new RegExp(u),rgb:new RegExp("rgb"+s),rgba:new RegExp("rgba"+d),hsl:new RegExp("hsl"+s),hsla:new RegExp("hsla"+d),hsv:new RegExp("hsv"+s),hsva:new RegExp("hsva"+d),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 y(f){if(f=f.trim().toLowerCase(),f.length===0)return!1;var b=!1;if(r.R[f])f=r.R[f],b=!0;else if(f==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var R=g.rgb.exec(f);return R?{r:R[1],g:R[2],b:R[3]}:(R=g.rgba.exec(f),R?{r:R[1],g:R[2],b:R[3],a:R[4]}:(R=g.hsl.exec(f),R?{h:R[1],s:R[2],l:R[3]}:(R=g.hsla.exec(f),R?{h:R[1],s:R[2],l:R[3],a:R[4]}:(R=g.hsv.exec(f),R?{h:R[1],s:R[2],v:R[3]}:(R=g.hsva.exec(f),R?{h:R[1],s:R[2],v:R[3],a:R[4]}:(R=g.hex8.exec(f),R?{r:(0,n.VD)(R[1]),g:(0,n.VD)(R[2]),b:(0,n.VD)(R[3]),a:(0,n.T6)(R[4]),format:b?"name":"hex8"}:(R=g.hex6.exec(f),R?{r:(0,n.VD)(R[1]),g:(0,n.VD)(R[2]),b:(0,n.VD)(R[3]),format:b?"name":"hex"}:(R=g.hex4.exec(f),R?{r:(0,n.VD)(R[1]+R[1]),g:(0,n.VD)(R[2]+R[2]),b:(0,n.VD)(R[3]+R[3]),a:(0,n.T6)(R[4]+R[4]),format:b?"name":"hex8"}:(R=g.hex3.exec(f),R?{r:(0,n.VD)(R[1]+R[1]),g:(0,n.VD)(R[2]+R[2]),b:(0,n.VD)(R[3]+R[3]),format:b?"name":"hex"}:!1)))))))))}function h(f){return!!g.CSS_UNIT.exec(String(f))}},10274:function(v,p,e){"use strict";e.d(p,{C:function(){return l}});var n=e(86500),r=e(48701),i=e(1350),a=e(90279),l=function(){function u(s,d){s===void 0&&(s=""),d===void 0&&(d={});var g;if(s instanceof u)return s;typeof s=="number"&&(s=(0,n.Yt)(s)),this.originalInput=s;var y=(0,i.uA)(s);this.originalInput=s,this.r=y.r,this.g=y.g,this.b=y.b,this.a=y.a,this.roundA=Math.round(100*this.a)/100,this.format=(g=d.format)!==null&&g!==void 0?g:y.format,this.gradientType=d.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=y.ok}return u.prototype.isDark=function(){return this.getBrightness()<128},u.prototype.isLight=function(){return!this.isDark()},u.prototype.getBrightness=function(){var s=this.toRgb();return(s.r*299+s.g*587+s.b*114)/1e3},u.prototype.getLuminance=function(){var s=this.toRgb(),d,g,y,h=s.r/255,f=s.g/255,b=s.b/255;return h<=.03928?d=h/12.92:d=Math.pow((h+.055)/1.055,2.4),f<=.03928?g=f/12.92:g=Math.pow((f+.055)/1.055,2.4),b<=.03928?y=b/12.92:y=Math.pow((b+.055)/1.055,2.4),.2126*d+.7152*g+.0722*y},u.prototype.getAlpha=function(){return this.a},u.prototype.setAlpha=function(s){return this.a=(0,a.Yq)(s),this.roundA=Math.round(100*this.a)/100,this},u.prototype.isMonochrome=function(){var s=this.toHsl().s;return s===0},u.prototype.toHsv=function(){var s=(0,n.py)(this.r,this.g,this.b);return{h:s.h*360,s:s.s,v:s.v,a:this.a}},u.prototype.toHsvString=function(){var s=(0,n.py)(this.r,this.g,this.b),d=Math.round(s.h*360),g=Math.round(s.s*100),y=Math.round(s.v*100);return this.a===1?"hsv(".concat(d,", ").concat(g,"%, ").concat(y,"%)"):"hsva(".concat(d,", ").concat(g,"%, ").concat(y,"%, ").concat(this.roundA,")")},u.prototype.toHsl=function(){var s=(0,n.lC)(this.r,this.g,this.b);return{h:s.h*360,s:s.s,l:s.l,a:this.a}},u.prototype.toHslString=function(){var s=(0,n.lC)(this.r,this.g,this.b),d=Math.round(s.h*360),g=Math.round(s.s*100),y=Math.round(s.l*100);return this.a===1?"hsl(".concat(d,", ").concat(g,"%, ").concat(y,"%)"):"hsla(".concat(d,", ").concat(g,"%, ").concat(y,"%, ").concat(this.roundA,")")},u.prototype.toHex=function(s){return s===void 0&&(s=!1),(0,n.vq)(this.r,this.g,this.b,s)},u.prototype.toHexString=function(s){return s===void 0&&(s=!1),"#"+this.toHex(s)},u.prototype.toHex8=function(s){return s===void 0&&(s=!1),(0,n.s)(this.r,this.g,this.b,this.a,s)},u.prototype.toHex8String=function(s){return s===void 0&&(s=!1),"#"+this.toHex8(s)},u.prototype.toHexShortString=function(s){return s===void 0&&(s=!1),this.a===1?this.toHexString(s):this.toHex8String(s)},u.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},u.prototype.toRgbString=function(){var s=Math.round(this.r),d=Math.round(this.g),g=Math.round(this.b);return this.a===1?"rgb(".concat(s,", ").concat(d,", ").concat(g,")"):"rgba(".concat(s,", ").concat(d,", ").concat(g,", ").concat(this.roundA,")")},u.prototype.toPercentageRgb=function(){var s=function(d){return"".concat(Math.round((0,a.sh)(d,255)*100),"%")};return{r:s(this.r),g:s(this.g),b:s(this.b),a:this.a}},u.prototype.toPercentageRgbString=function(){var s=function(d){return Math.round((0,a.sh)(d,255)*100)};return this.a===1?"rgb(".concat(s(this.r),"%, ").concat(s(this.g),"%, ").concat(s(this.b),"%)"):"rgba(".concat(s(this.r),"%, ").concat(s(this.g),"%, ").concat(s(this.b),"%, ").concat(this.roundA,")")},u.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var s="#"+(0,n.vq)(this.r,this.g,this.b,!1),d=0,g=Object.entries(r.R);d=0,h=!d&&y&&(s.startsWith("hex")||s==="name");return h?s==="name"&&this.a===0?this.toName():this.toRgbString():(s==="rgb"&&(g=this.toRgbString()),s==="prgb"&&(g=this.toPercentageRgbString()),(s==="hex"||s==="hex6")&&(g=this.toHexString()),s==="hex3"&&(g=this.toHexString(!0)),s==="hex4"&&(g=this.toHex8String(!0)),s==="hex8"&&(g=this.toHex8String()),s==="name"&&(g=this.toName()),s==="hsl"&&(g=this.toHslString()),s==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},u.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},u.prototype.clone=function(){return new u(this.toString())},u.prototype.lighten=function(s){s===void 0&&(s=10);var d=this.toHsl();return d.l+=s/100,d.l=(0,a.V2)(d.l),new u(d)},u.prototype.brighten=function(s){s===void 0&&(s=10);var d=this.toRgb();return d.r=Math.max(0,Math.min(255,d.r-Math.round(255*-(s/100)))),d.g=Math.max(0,Math.min(255,d.g-Math.round(255*-(s/100)))),d.b=Math.max(0,Math.min(255,d.b-Math.round(255*-(s/100)))),new u(d)},u.prototype.darken=function(s){s===void 0&&(s=10);var d=this.toHsl();return d.l-=s/100,d.l=(0,a.V2)(d.l),new u(d)},u.prototype.tint=function(s){return s===void 0&&(s=10),this.mix("white",s)},u.prototype.shade=function(s){return s===void 0&&(s=10),this.mix("black",s)},u.prototype.desaturate=function(s){s===void 0&&(s=10);var d=this.toHsl();return d.s-=s/100,d.s=(0,a.V2)(d.s),new u(d)},u.prototype.saturate=function(s){s===void 0&&(s=10);var d=this.toHsl();return d.s+=s/100,d.s=(0,a.V2)(d.s),new u(d)},u.prototype.greyscale=function(){return this.desaturate(100)},u.prototype.spin=function(s){var d=this.toHsl(),g=(d.h+s)%360;return d.h=g<0?360+g:g,new u(d)},u.prototype.mix=function(s,d){d===void 0&&(d=50);var g=this.toRgb(),y=new u(s).toRgb(),h=d/100,f={r:(y.r-g.r)*h+g.r,g:(y.g-g.g)*h+g.g,b:(y.b-g.b)*h+g.b,a:(y.a-g.a)*h+g.a};return new u(f)},u.prototype.analogous=function(s,d){s===void 0&&(s=6),d===void 0&&(d=30);var g=this.toHsl(),y=360/d,h=[this];for(g.h=(g.h-(y*s>>1)+720)%360;--s;)g.h=(g.h+y)%360,h.push(new u(g));return h},u.prototype.complement=function(){var s=this.toHsl();return s.h=(s.h+180)%360,new u(s)},u.prototype.monochromatic=function(s){s===void 0&&(s=6);for(var d=this.toHsv(),g=d.h,y=d.s,h=d.v,f=[],b=1/s;s--;)f.push(new u({h:g,s:y,v:h})),h=(h+b)%1;return f},u.prototype.splitcomplement=function(){var s=this.toHsl(),d=s.h;return[this,new u({h:(d+72)%360,s:s.s,l:s.l}),new u({h:(d+216)%360,s:s.s,l:s.l})]},u.prototype.onBackground=function(s){var d=this.toRgb(),g=new u(s).toRgb(),y=d.a+g.a*(1-d.a);return new u({r:(d.r*d.a+g.r*g.a*(1-d.a))/y,g:(d.g*d.a+g.g*g.a*(1-d.a))/y,b:(d.b*d.a+g.b*g.a*(1-d.a))/y,a:y})},u.prototype.triad=function(){return this.polyad(3)},u.prototype.tetrad=function(){return this.polyad(4)},u.prototype.polyad=function(s){for(var d=this.toHsl(),g=d.h,y=[this],h=360/s,f=1;f1)&&(s=1),s}function c(s){return s<=1?"".concat(Number(s)*100,"%"):s}function u(s){return s.length===1?"0"+s:String(s)}},2788:function(v,p,e){"use strict";e.d(p,{Z:function(){return Q}});var n=e(97685),r=e(67294),i=e(73935),a=e(98924),l=e(80334),c=e(42550),u=r.createContext(null),s=u,d=e(74902),g=e(8410),y=[];function h(Z,V){var X=r.useState(function(){if(!(0,a.Z)())return null;var oe=document.createElement("div");return oe}),J=(0,n.Z)(X,1),K=J[0],ie=r.useRef(!1),_=r.useContext(s),U=r.useState(y),N=(0,n.Z)(U,2),B=N[0],F=N[1],T=_||(ie.current?void 0:function(oe){F(function(ee){var re=[oe].concat((0,d.Z)(ee));return re})});function A(){K.parentElement||document.body.appendChild(K),ie.current=!0}function G(){var oe;(oe=K.parentElement)===null||oe===void 0||oe.removeChild(K),ie.current=!1}return(0,g.Z)(function(){return Z?_?_(A):A():G(),G},[Z]),(0,g.Z)(function(){B.length&&(B.forEach(function(oe){return oe()}),F(y))},[B]),[K,T]}var f=e(44958),b=e(74204);function R(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var C="rc-util-locker-".concat(Date.now()),P=0;function I(Z){var V=!!Z,X=r.useState(function(){return P+=1,"".concat(C,"_").concat(P)}),J=(0,n.Z)(X,1),K=J[0];(0,g.Z)(function(){if(V){var ie=(0,b.o)(document.body).width,_=R();(0,f.hq)(` +html body { + overflow-y: hidden; + `.concat(_?"width: calc(100% - ".concat(ie,"px);"):"",` +}`),K)}else(0,f.jL)(K);return function(){(0,f.jL)(K)}},[V,K])}var O=!1;function M(Z){return typeof Z=="boolean"&&(O=Z),O}var w=function(V){return V===!1?!1:!(0,a.Z)()||!V?null:typeof V=="string"?document.querySelector(V):typeof V=="function"?V():V},$=r.forwardRef(function(Z,V){var X=Z.open,J=Z.autoLock,K=Z.getContainer,ie=Z.debug,_=Z.autoDestroy,U=_===void 0?!0:_,N=Z.children,B=r.useState(X),F=(0,n.Z)(B,2),T=F[0],A=F[1],G=T||X;r.useEffect(function(){(U||X)&&A(X)},[X,U]);var oe=r.useState(function(){return w(K)}),ee=(0,n.Z)(oe,2),re=ee[0],ge=ee[1];r.useEffect(function(){var le=w(K);ge(le!=null?le:null)});var ye=h(G&&!re,ie),Ie=(0,n.Z)(ye,2),Pe=Ie[0],Ve=Ie[1],Je=re!=null?re:Pe;I(J&&X&&(0,a.Z)()&&(Je===Pe||Je===document.body));var it=null;if(N&&(0,c.Yr)(N)&&V){var gt=N;it=gt.ref}var ht=(0,c.x1)(it,V);if(!G||!(0,a.Z)()||re===void 0)return null;var Ot=Je===!1||M(),He=N;return V&&(He=r.cloneElement(N,{ref:ht})),r.createElement(s.Provider,{value:Ve},Ot?He:(0,i.createPortal)(He,Je))}),W=$,Q=W},40228:function(v,p,e){"use strict";e.d(p,{Z:function(){return Ot}});var n=e(1413),r=e(97685),i=e(91),a=e(2788),l=e(93967),c=e.n(l),u=e(9220),s=e(34203),d=e(27571),g=e(66680),y=e(7028),h=e(8410),f=e(31131),b=e(67294),R=e(87462),C=e(82225),P=e(42550);function I(He){var le=He.prefixCls,j=He.align,Y=He.arrow,Se=He.arrowPos,be=Y||{},me=be.className,he=be.content,H=Se.x,se=H===void 0?0:H,pe=Se.y,Oe=pe===void 0?0:pe,Be=b.useRef();if(!j||!j.points)return null;var We={position:"absolute"};if(j.autoArrow!==!1){var ke=j.points[0],Ae=j.points[1],Ne=ke[0],te=ke[1],je=Ae[0],Ge=Ae[1];Ne===je||!["t","b"].includes(Ne)?We.top=Oe:Ne==="t"?We.top=0:We.bottom=0,te===Ge||!["l","r"].includes(te)?We.left=se:te==="l"?We.left=0:We.right=0}return b.createElement("div",{ref:Be,className:c()("".concat(le,"-arrow"),me),style:We},he)}function O(He){var le=He.prefixCls,j=He.open,Y=He.zIndex,Se=He.mask,be=He.motion;return Se?b.createElement(C.ZP,(0,R.Z)({},be,{motionAppear:!0,visible:j,removeOnLeave:!0}),function(me){var he=me.className;return b.createElement("div",{style:{zIndex:Y},className:c()("".concat(le,"-mask"),he)})}):null}var M=b.memo(function(He){var le=He.children;return le},function(He,le){return le.cache}),w=M,$=b.forwardRef(function(He,le){var j=He.popup,Y=He.className,Se=He.prefixCls,be=He.style,me=He.target,he=He.onVisibleChanged,H=He.open,se=He.keepDom,pe=He.fresh,Oe=He.onClick,Be=He.mask,We=He.arrow,ke=He.arrowPos,Ae=He.align,Ne=He.motion,te=He.maskMotion,je=He.forceRender,Ge=He.getPopupContainer,Ke=He.autoDestroy,ze=He.portal,Xe=He.zIndex,Ye=He.onMouseEnter,et=He.onMouseLeave,st=He.onPointerEnter,at=He.ready,Ct=He.offsetX,It=He.offsetY,Lt=He.offsetR,En=He.offsetB,Mt=He.onAlign,Ft=He.onPrepare,Qt=He.stretch,Kt=He.targetWidth,cn=He.targetHeight,en=typeof j=="function"?j():j,Yn=H||se,Xt=(Ge==null?void 0:Ge.length)>0,Zn=b.useState(!Ge||!Xt),sn=(0,r.Z)(Zn,2),yn=sn[0],Vn=sn[1];if((0,h.Z)(function(){!yn&&Xt&&me&&Vn(!0)},[yn,Xt,me]),!yn)return null;var In="auto",nn={left:"-1000vw",top:"-1000vh",right:In,bottom:In};if(at||!H){var Un,Wn=Ae.points,xn=Ae.dynamicInset||((Un=Ae._experimental)===null||Un===void 0?void 0:Un.dynamicInset),Ar=xn&&Wn[0][1]==="r",br=xn&&Wn[0][0]==="b";Ar?(nn.right=Lt,nn.left=In):(nn.left=Ct,nn.right=In),br?(nn.bottom=En,nn.top=In):(nn.top=It,nn.bottom=In)}var Jn={};return Qt&&(Qt.includes("height")&&cn?Jn.height=cn:Qt.includes("minHeight")&&cn&&(Jn.minHeight=cn),Qt.includes("width")&&Kt?Jn.width=Kt:Qt.includes("minWidth")&&Kt&&(Jn.minWidth=Kt)),H||(Jn.pointerEvents="none"),b.createElement(ze,{open:je||Yn,getContainer:Ge&&function(){return Ge(me)},autoDestroy:Ke},b.createElement(O,{prefixCls:Se,open:H,zIndex:Xe,mask:Be,motion:te}),b.createElement(u.Z,{onResize:Mt,disabled:!H},function(cr){return b.createElement(C.ZP,(0,R.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:je,leavedClassName:"".concat(Se,"-hidden")},Ne,{onAppearPrepare:Ft,onEnterPrepare:Ft,visible:H,onVisibleChanged:function(fr){var ar;Ne==null||(ar=Ne.onVisibleChanged)===null||ar===void 0||ar.call(Ne,fr),he(fr)}}),function(or,fr){var ar=or.className,dr=or.style,ir=c()(Se,ar,Y);return b.createElement("div",{ref:(0,P.sQ)(cr,le,fr),className:ir,style:(0,n.Z)((0,n.Z)((0,n.Z)((0,n.Z)({"--arrow-x":"".concat(ke.x||0,"px"),"--arrow-y":"".concat(ke.y||0,"px")},nn),Jn),dr),{},{boxSizing:"border-box",zIndex:Xe},be),onMouseEnter:Ye,onMouseLeave:et,onPointerEnter:st,onClick:Oe},We&&b.createElement(I,{prefixCls:Se,arrow:We,arrowPos:ke,align:Ae}),b.createElement(w,{cache:!H&&!pe},en))})}))}),W=$,Q=b.forwardRef(function(He,le){var j=He.children,Y=He.getTriggerDOMNode,Se=(0,P.Yr)(j),be=b.useCallback(function(he){(0,P.mH)(le,Y?Y(he):he)},[Y]),me=(0,P.x1)(be,j.ref);return Se?b.cloneElement(j,{ref:me}):j}),Z=Q,V=b.createContext(null),X=V;function J(He){return He?Array.isArray(He)?He:[He]:[]}function K(He,le,j,Y){return b.useMemo(function(){var Se=J(j!=null?j:le),be=J(Y!=null?Y:le),me=new Set(Se),he=new Set(be);return He&&(me.has("hover")&&(me.delete("hover"),me.add("click")),he.has("hover")&&(he.delete("hover"),he.add("click"))),[me,he]},[He,le,j,Y])}var ie=e(5110);function _(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],j=arguments.length>2?arguments[2]:void 0;return j?He[0]===le[0]:He[0]===le[0]&&He[1]===le[1]}function U(He,le,j,Y){for(var Se=j.points,be=Object.keys(He),me=0;me1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(He)?le:He}function A(He){return T(parseFloat(He),0)}function G(He,le){var j=(0,n.Z)({},He);return(le||[]).forEach(function(Y){if(!(Y instanceof HTMLBodyElement||Y instanceof HTMLHtmlElement)){var Se=B(Y).getComputedStyle(Y),be=Se.overflow,me=Se.overflowClipMargin,he=Se.borderTopWidth,H=Se.borderBottomWidth,se=Se.borderLeftWidth,pe=Se.borderRightWidth,Oe=Y.getBoundingClientRect(),Be=Y.offsetHeight,We=Y.clientHeight,ke=Y.offsetWidth,Ae=Y.clientWidth,Ne=A(he),te=A(H),je=A(se),Ge=A(pe),Ke=T(Math.round(Oe.width/ke*1e3)/1e3),ze=T(Math.round(Oe.height/Be*1e3)/1e3),Xe=(ke-Ae-je-Ge)*Ke,Ye=(Be-We-Ne-te)*ze,et=Ne*ze,st=te*ze,at=je*Ke,Ct=Ge*Ke,It=0,Lt=0;if(be==="clip"){var En=A(me);It=En*Ke,Lt=En*ze}var Mt=Oe.x+at-It,Ft=Oe.y+et-Lt,Qt=Mt+Oe.width+2*It-at-Ct-Xe,Kt=Ft+Oe.height+2*Lt-et-st-Ye;j.left=Math.max(j.left,Mt),j.top=Math.max(j.top,Ft),j.right=Math.min(j.right,Qt),j.bottom=Math.min(j.bottom,Kt)}}),j}function oe(He){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j="".concat(le),Y=j.match(/^(.*)\%$/);return Y?He*(parseFloat(Y[1])/100):parseFloat(j)}function ee(He,le){var j=le||[],Y=(0,r.Z)(j,2),Se=Y[0],be=Y[1];return[oe(He.width,Se),oe(He.height,be)]}function re(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[He[0],He[1]]}function ge(He,le){var j=le[0],Y=le[1],Se,be;return j==="t"?be=He.y:j==="b"?be=He.y+He.height:be=He.y+He.height/2,Y==="l"?Se=He.x:Y==="r"?Se=He.x+He.width:Se=He.x+He.width/2,{x:Se,y:be}}function ye(He,le){var j={t:"b",b:"t",l:"r",r:"l"};return He.map(function(Y,Se){return Se===le?j[Y]||"c":Y}).join("")}function Ie(He,le,j,Y,Se,be,me){var he=b.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Se[Y]||{}}),H=(0,r.Z)(he,2),se=H[0],pe=H[1],Oe=b.useRef(0),Be=b.useMemo(function(){return le?F(le):[]},[le]),We=b.useRef({}),ke=function(){We.current={}};He||ke();var Ae=(0,g.Z)(function(){if(le&&j&&He){let Qe=function($t,Vt){var ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ir,fn=en.x+$t,qn=en.y+Vt,un=fn+Un,gn=qn+nn,wn=Math.max(fn,ln.left),sr=Math.max(qn,ln.top),Wr=Math.min(un,ln.right),wo=Math.min(gn,ln.bottom);return Math.max(0,(Wr-wn)*(wo-sr))},ft=function(){rt=en.y+Sn,Nt=rt+nn,Pt=en.x+bn,xt=Pt+Un};var je,Ge,Ke=le,ze=Ke.ownerDocument,Xe=B(Ke),Ye=Xe.getComputedStyle(Ke),et=Ye.width,st=Ye.height,at=Ye.position,Ct=Ke.style.left,It=Ke.style.top,Lt=Ke.style.right,En=Ke.style.bottom,Mt=Ke.style.overflow,Ft=(0,n.Z)((0,n.Z)({},Se[Y]),be),Qt=ze.createElement("div");(je=Ke.parentElement)===null||je===void 0||je.appendChild(Qt),Qt.style.left="".concat(Ke.offsetLeft,"px"),Qt.style.top="".concat(Ke.offsetTop,"px"),Qt.style.position=at,Qt.style.height="".concat(Ke.offsetHeight,"px"),Qt.style.width="".concat(Ke.offsetWidth,"px"),Ke.style.left="0",Ke.style.top="0",Ke.style.right="auto",Ke.style.bottom="auto",Ke.style.overflow="hidden";var Kt;if(Array.isArray(j))Kt={x:j[0],y:j[1],width:0,height:0};else{var cn=j.getBoundingClientRect();Kt={x:cn.x,y:cn.y,width:cn.width,height:cn.height}}var en=Ke.getBoundingClientRect(),Yn=ze.documentElement,Xt=Yn.clientWidth,Zn=Yn.clientHeight,sn=Yn.scrollWidth,yn=Yn.scrollHeight,Vn=Yn.scrollTop,In=Yn.scrollLeft,nn=en.height,Un=en.width,Wn=Kt.height,xn=Kt.width,Ar={left:0,top:0,right:Xt,bottom:Zn},br={left:-In,top:-Vn,right:sn-In,bottom:yn-Vn},Jn=Ft.htmlRegion,cr="visible",or="visibleFirst";Jn!=="scroll"&&Jn!==or&&(Jn=cr);var fr=Jn===or,ar=G(br,Be),dr=G(Ar,Be),ir=Jn===cr?dr:ar,pr=fr?dr:ir;Ke.style.left="auto",Ke.style.top="auto",Ke.style.right="0",Ke.style.bottom="0";var vn=Ke.getBoundingClientRect();Ke.style.left=Ct,Ke.style.top=It,Ke.style.right=Lt,Ke.style.bottom=En,Ke.style.overflow=Mt,(Ge=Ke.parentElement)===null||Ge===void 0||Ge.removeChild(Qt);var Hr=T(Math.round(Un/parseFloat(et)*1e3)/1e3),Mr=T(Math.round(nn/parseFloat(st)*1e3)/1e3);if(Hr===0||Mr===0||(0,s.S)(j)&&!(0,ie.Z)(j))return;var Qr=Ft.offset,Zr=Ft.targetOffset,jr=ee(en,Qr),Lr=(0,r.Z)(jr,2),Ir=Lr[0],Cr=Lr[1],An=ee(Kt,Zr),dt=(0,r.Z)(An,2),nt=dt[0],St=dt[1];Kt.x-=nt,Kt.y-=St;var mt=Ft.points||[],wt=(0,r.Z)(mt,2),Ht=wt[0],rn=wt[1],Jt=re(rn),dn=re(Ht),on=ge(Kt,Jt),$n=ge(en,dn),Rn=(0,n.Z)({},Ft),bn=on.x-$n.x+Ir,Sn=on.y-$n.y+Cr,De=Qe(bn,Sn),x=Qe(bn,Sn,dr),S=ge(Kt,["t","l"]),D=ge(en,["t","l"]),L=ge(Kt,["b","r"]),ne=ge(en,["b","r"]),ce=Ft.overflow||{},Te=ce.adjustX,Me=ce.adjustY,Ze=ce.shiftX,$e=ce.shiftY,qe=function(Vt){return typeof Vt=="boolean"?Vt:Vt>=0},rt,Nt,Pt,xt;ft();var ut=qe(Me),vt=dn[0]===Jt[0];if(ut&&dn[0]==="t"&&(Nt>pr.bottom||We.current.bt)){var Dt=Sn;vt?Dt-=nn-Wn:Dt=S.y-ne.y-Cr;var Rt=Qe(bn,Dt),Yt=Qe(bn,Dt,dr);Rt>De||Rt===De&&(!fr||Yt>=x)?(We.current.bt=!0,Sn=Dt,Cr=-Cr,Rn.points=[ye(dn,0),ye(Jt,0)]):We.current.bt=!1}if(ut&&dn[0]==="b"&&(rtDe||Cn===De&&(!fr||Pn>=x)?(We.current.tb=!0,Sn=Wt,Cr=-Cr,Rn.points=[ye(dn,0),ye(Jt,0)]):We.current.tb=!1}var Tn=qe(Te),zn=dn[1]===Jt[1];if(Tn&&dn[1]==="l"&&(xt>pr.right||We.current.rl)){var Mn=bn;zn?Mn-=Un-xn:Mn=S.x-ne.x-Ir;var rr=Qe(Mn,Sn),_n=Qe(Mn,Sn,dr);rr>De||rr===De&&(!fr||_n>=x)?(We.current.rl=!0,bn=Mn,Ir=-Ir,Rn.points=[ye(dn,1),ye(Jt,1)]):We.current.rl=!1}if(Tn&&dn[1]==="r"&&(PtDe||Or===De&&(!fr||Br>=x)?(We.current.lr=!0,bn=jn,Ir=-Ir,Rn.points=[ye(dn,1),ye(Jt,1)]):We.current.lr=!1}ft();var Pr=Ze===!0?0:Ze;typeof Pr=="number"&&(Ptdr.right&&(bn-=xt-dr.right-Ir,Kt.x>dr.right-Pr&&(bn+=Kt.x-dr.right+Pr)));var Gt=$e===!0?0:$e;typeof Gt=="number"&&(rtdr.bottom&&(Sn-=Nt-dr.bottom-Cr,Kt.y>dr.bottom-Gt&&(Sn+=Kt.y-dr.bottom+Gt)));var kt=en.x+bn,_t=kt+Un,Hn=en.y+Sn,Kn=Hn+nn,Dn=Kt.x,Rr=Dn+xn,zr=Kt.y,Dr=zr+Wn,lo=Math.max(kt,Dn),no=Math.min(_t,Rr),uo=(lo+no)/2,Bo=uo-kt,To=Math.max(Hn,zr),$o=Math.min(Kn,Dr),xo=(To+$o)/2,xe=xo-Hn;me==null||me(le,Rn);var Re=vn.right-en.x-(bn+en.width),k=vn.bottom-en.y-(Sn+en.height);pe({ready:!0,offsetX:bn/Hr,offsetY:Sn/Mr,offsetR:Re/Hr,offsetB:k/Mr,arrowX:Bo/Hr,arrowY:xe/Mr,scaleX:Hr,scaleY:Mr,align:Rn})}}),Ne=function(){Oe.current+=1;var Ge=Oe.current;Promise.resolve().then(function(){Oe.current===Ge&&Ae()})},te=function(){pe(function(Ge){return(0,n.Z)((0,n.Z)({},Ge),{},{ready:!1})})};return(0,h.Z)(te,[Y]),(0,h.Z)(function(){He||te()},[He]),[se.ready,se.offsetX,se.offsetY,se.offsetR,se.offsetB,se.arrowX,se.arrowY,se.scaleX,se.scaleY,se.align,Ne]}var Pe=e(74902);function Ve(He,le,j,Y,Se){(0,h.Z)(function(){if(He&&le&&j){let Oe=function(){Y(),Se()};var be=le,me=j,he=F(be),H=F(me),se=B(me),pe=new Set([se].concat((0,Pe.Z)(he),(0,Pe.Z)(H)));return pe.forEach(function(Be){Be.addEventListener("scroll",Oe,{passive:!0})}),se.addEventListener("resize",Oe,{passive:!0}),Y(),function(){pe.forEach(function(Be){Be.removeEventListener("scroll",Oe),se.removeEventListener("resize",Oe)})}}},[He,le,j])}var Je=e(80334);function it(He,le,j,Y,Se,be,me,he){var H=b.useRef(He);H.current=He,b.useEffect(function(){if(le&&Y&&(!Se||be)){var se=function(te){var je=te.target;H.current&&!me(je)&&he(!1)},pe=B(Y);pe.addEventListener("mousedown",se,!0),pe.addEventListener("contextmenu",se,!0);var Oe=(0,d.A)(j);if(Oe&&(Oe.addEventListener("mousedown",se,!0),Oe.addEventListener("contextmenu",se,!0)),!1)var Be,We,ke,Ae;return function(){pe.removeEventListener("mousedown",se,!0),pe.removeEventListener("contextmenu",se,!0),Oe&&(Oe.removeEventListener("mousedown",se,!0),Oe.removeEventListener("contextmenu",se,!0))}}},[le,j,Y,Se,be])}var gt=["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 ht(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.Z,le=b.forwardRef(function(j,Y){var Se=j.prefixCls,be=Se===void 0?"rc-trigger-popup":Se,me=j.children,he=j.action,H=he===void 0?"hover":he,se=j.showAction,pe=j.hideAction,Oe=j.popupVisible,Be=j.defaultPopupVisible,We=j.onPopupVisibleChange,ke=j.afterPopupVisibleChange,Ae=j.mouseEnterDelay,Ne=j.mouseLeaveDelay,te=Ne===void 0?.1:Ne,je=j.focusDelay,Ge=j.blurDelay,Ke=j.mask,ze=j.maskClosable,Xe=ze===void 0?!0:ze,Ye=j.getPopupContainer,et=j.forceRender,st=j.autoDestroy,at=j.destroyPopupOnHide,Ct=j.popup,It=j.popupClassName,Lt=j.popupStyle,En=j.popupPlacement,Mt=j.builtinPlacements,Ft=Mt===void 0?{}:Mt,Qt=j.popupAlign,Kt=j.zIndex,cn=j.stretch,en=j.getPopupClassNameFromAlign,Yn=j.fresh,Xt=j.alignPoint,Zn=j.onPopupClick,sn=j.onPopupAlign,yn=j.arrow,Vn=j.popupMotion,In=j.maskMotion,nn=j.popupTransitionName,Un=j.popupAnimation,Wn=j.maskTransitionName,xn=j.maskAnimation,Ar=j.className,br=j.getTriggerDOMNode,Jn=(0,i.Z)(j,gt),cr=st||at||!1,or=b.useState(!1),fr=(0,r.Z)(or,2),ar=fr[0],dr=fr[1];(0,h.Z)(function(){dr((0,f.Z)())},[]);var ir=b.useRef({}),pr=b.useContext(X),vn=b.useMemo(function(){return{registerSubPopup:function(gr,oo){ir.current[gr]=oo,pr==null||pr.registerSubPopup(gr,oo)}}},[pr]),Hr=(0,y.Z)(),Mr=b.useState(null),Qr=(0,r.Z)(Mr,2),Zr=Qr[0],jr=Qr[1],Lr=(0,g.Z)(function(Qn){(0,s.S)(Qn)&&Zr!==Qn&&jr(Qn),pr==null||pr.registerSubPopup(Hr,Qn)}),Ir=b.useState(null),Cr=(0,r.Z)(Ir,2),An=Cr[0],dt=Cr[1],nt=b.useRef(null),St=(0,g.Z)(function(Qn){(0,s.S)(Qn)&&An!==Qn&&(dt(Qn),nt.current=Qn)}),mt=b.Children.only(me),wt=(mt==null?void 0:mt.props)||{},Ht={},rn=(0,g.Z)(function(Qn){var gr,oo,to=An;return(to==null?void 0:to.contains(Qn))||((gr=(0,d.A)(to))===null||gr===void 0?void 0:gr.host)===Qn||Qn===to||(Zr==null?void 0:Zr.contains(Qn))||((oo=(0,d.A)(Zr))===null||oo===void 0?void 0:oo.host)===Qn||Qn===Zr||Object.values(ir.current).some(function($r){return($r==null?void 0:$r.contains(Qn))||Qn===$r})}),Jt=N(be,Vn,Un,nn),dn=N(be,In,xn,Wn),on=b.useState(Be||!1),$n=(0,r.Z)(on,2),Rn=$n[0],bn=$n[1],Sn=Oe!=null?Oe:Rn,De=(0,g.Z)(function(Qn){Oe===void 0&&bn(Qn)});(0,h.Z)(function(){bn(Oe||!1)},[Oe]);var x=b.useRef(Sn);x.current=Sn;var S=b.useRef([]);S.current=[];var D=(0,g.Z)(function(Qn){var gr;De(Qn),((gr=S.current[S.current.length-1])!==null&&gr!==void 0?gr:Sn)!==Qn&&(S.current.push(Qn),We==null||We(Qn))}),L=b.useRef(),ne=function(){clearTimeout(L.current)},ce=function(gr){var oo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ne(),oo===0?D(gr):L.current=setTimeout(function(){D(gr)},oo*1e3)};b.useEffect(function(){return ne},[]);var Te=b.useState(!1),Me=(0,r.Z)(Te,2),Ze=Me[0],$e=Me[1];(0,h.Z)(function(Qn){(!Qn||Sn)&&$e(!0)},[Sn]);var qe=b.useState(null),rt=(0,r.Z)(qe,2),Nt=rt[0],Pt=rt[1],xt=b.useState([0,0]),ut=(0,r.Z)(xt,2),vt=ut[0],Dt=ut[1],Rt=function(gr){Dt([gr.clientX,gr.clientY])},Yt=Ie(Sn,Zr,Xt?vt:An,En,Ft,Qt,sn),Wt=(0,r.Z)(Yt,11),Cn=Wt[0],Pn=Wt[1],Tn=Wt[2],zn=Wt[3],Mn=Wt[4],rr=Wt[5],_n=Wt[6],jn=Wt[7],Or=Wt[8],Br=Wt[9],Pr=Wt[10],Gt=K(ar,H,se,pe),kt=(0,r.Z)(Gt,2),_t=kt[0],Hn=kt[1],Kn=_t.has("click"),Dn=Hn.has("click")||Hn.has("contextMenu"),Rr=(0,g.Z)(function(){Ze||Pr()}),zr=function(){x.current&&Xt&&Dn&&ce(!1)};Ve(Sn,An,Zr,Rr,zr),(0,h.Z)(function(){Rr()},[vt,En]),(0,h.Z)(function(){Sn&&!(Ft!=null&&Ft[En])&&Rr()},[JSON.stringify(Qt)]);var Dr=b.useMemo(function(){var Qn=U(Ft,be,Br,Xt);return c()(Qn,en==null?void 0:en(Br))},[Br,en,Ft,be,Xt]);b.useImperativeHandle(Y,function(){return{nativeElement:nt.current,forceAlign:Rr}});var lo=b.useState(0),no=(0,r.Z)(lo,2),uo=no[0],Bo=no[1],To=b.useState(0),$o=(0,r.Z)(To,2),xo=$o[0],xe=$o[1],Re=function(){if(cn&&An){var gr=An.getBoundingClientRect();Bo(gr.width),xe(gr.height)}},k=function(){Re(),Rr()},Qe=function(gr){$e(!1),Pr(),ke==null||ke(gr)},ft=function(){return new Promise(function(gr){Re(),Pt(function(){return gr})})};(0,h.Z)(function(){Nt&&(Pr(),Nt(),Pt(null))},[Nt]);function $t(Qn,gr,oo,to){Ht[Qn]=function($r){var ha;to==null||to($r),ce(gr,oo);for(var sa=arguments.length,Da=new Array(sa>1?sa-1:0),Ea=1;Ea1?oo-1:0),$r=1;$r1?oo-1:0),$r=1;$r{const{icon:ue,description:fe,prefixCls:de,className:Ce}=Fe,Ue=C.createElement("div",{className:`${de}-icon`},C.createElement(ee,null));return C.createElement("div",{onClick:Fe.onClick,onFocus:Fe.onFocus,onMouseEnter:Fe.onMouseEnter,onMouseLeave:Fe.onMouseLeave,className:Q()(Ce,`${de}-content`)},ue||fe?C.createElement(C.Fragment,null,ue&&C.createElement("div",{className:`${de}-icon`},ue),fe&&C.createElement("div",{className:`${de}-description`},fe)):Ue)};var ge=(0,C.memo)(re),ye=e(6731),Ie=e(14747),Pe=e(16932),Ve=e(93590),Je=e(91945),it=e(45503),ht=Fe=>Fe===0?0:Fe-Math.sqrt(Math.pow(Fe,2)/2);const Ot=Fe=>{const{componentCls:ue,floatButtonSize:fe,motionDurationSlow:de,motionEaseInOutCirc:Ce}=Fe,Ue=`${ue}-group`,ot=new ye.E4("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${(0,ye.bf)(fe)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),lt=new ye.E4("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${(0,ye.bf)(fe)}, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${Ue}-wrap`]:Object.assign({},(0,Ve.R)(`${Ue}-wrap`,ot,lt,de,!0))},{[`${Ue}-wrap`]:{[` + &${Ue}-wrap-enter, + &${Ue}-wrap-appear + `]:{opacity:0,animationTimingFunction:Ce},[`&${Ue}-wrap-leave`]:{animationTimingFunction:Ce}}}]},He=Fe=>{const{antCls:ue,componentCls:fe,floatButtonSize:de,margin:Ce,borderRadiusLG:Ue,borderRadiusSM:ot,badgeOffset:lt,floatButtonBodyPadding:bt,calc:Et}=Fe,zt=`${fe}-group`;return{[zt]:Object.assign(Object.assign({},(0,Ie.Wf)(Fe)),{zIndex:99,display:"block",border:"none",position:"fixed",width:de,height:"auto",boxShadow:"none",minHeight:de,insetInlineEnd:Fe.floatButtonInsetInlineEnd,insetBlockEnd:Fe.floatButtonInsetBlockEnd,borderRadius:Ue,[`${zt}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:Ce},[`&${zt}-rtl`]:{direction:"rtl"},[fe]:{position:"static"}}),[`${zt}-circle`]:{[`${fe}-circle:not(:last-child)`]:{marginBottom:Fe.margin,[`${fe}-body`]:{width:de,height:de,borderRadius:"50%"}}},[`${zt}-square`]:{[`${fe}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:Ue,borderStartEndRadius:Ue},"&:last-child":{borderEndStartRadius:Ue,borderEndEndRadius:Ue},"&:not(:last-child)":{borderBottom:`${(0,ye.bf)(Fe.lineWidth)} ${Fe.lineType} ${Fe.colorSplit}`},[`${ue}-badge`]:{[`${ue}-badge-count`]:{top:Et(Et(bt).add(lt)).mul(-1).equal(),insetInlineEnd:Et(Et(bt).add(lt)).mul(-1).equal()}}},[`${zt}-wrap`]:{display:"block",borderRadius:Ue,boxShadow:Fe.boxShadowSecondary,[`${fe}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:bt,"&:first-child":{borderStartStartRadius:Ue,borderStartEndRadius:Ue},"&:last-child":{borderEndStartRadius:Ue,borderEndEndRadius:Ue},"&:not(:last-child)":{borderBottom:`${(0,ye.bf)(Fe.lineWidth)} ${Fe.lineType} ${Fe.colorSplit}`},[`${fe}-body`]:{width:Fe.floatButtonBodySize,height:Fe.floatButtonBodySize}}}},[`${zt}-circle-shadow`]:{boxShadow:"none"},[`${zt}-square-shadow`]:{boxShadow:Fe.boxShadowSecondary,[`${fe}-square`]:{boxShadow:"none",padding:bt,[`${fe}-body`]:{width:Fe.floatButtonBodySize,height:Fe.floatButtonBodySize,borderRadius:ot}}}}},le=Fe=>{const{antCls:ue,componentCls:fe,floatButtonBodyPadding:de,floatButtonIconSize:Ce,floatButtonSize:Ue,borderRadiusLG:ot,badgeOffset:lt,dotOffsetInSquare:bt,dotOffsetInCircle:Et,calc:zt}=Fe;return{[fe]:Object.assign(Object.assign({},(0,Ie.Wf)(Fe)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",width:Ue,height:Ue,insetInlineEnd:Fe.floatButtonInsetInlineEnd,insetBlockEnd:Fe.floatButtonInsetBlockEnd,boxShadow:Fe.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${ue}-badge`]:{width:"100%",height:"100%",[`${ue}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:zt(lt).mul(-1).equal(),insetInlineEnd:zt(lt).mul(-1).equal()}},[`${fe}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${Fe.motionDurationMid}`,[`${fe}-content`]:{overflow:"hidden",textAlign:"center",minHeight:Ue,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${(0,ye.bf)(zt(de).div(2).equal())} ${(0,ye.bf)(de)}`,[`${fe}-icon`]:{textAlign:"center",margin:"auto",width:Ce,fontSize:Ce,lineHeight:1}}}}),[`${fe}-rtl`]:{direction:"rtl"},[`${fe}-circle`]:{height:Ue,borderRadius:"50%",[`${ue}-badge`]:{[`${ue}-badge-dot`]:{top:Et,insetInlineEnd:Et}},[`${fe}-body`]:{borderRadius:"50%"}},[`${fe}-square`]:{height:"auto",minHeight:Ue,borderRadius:ot,[`${ue}-badge`]:{[`${ue}-badge-dot`]:{top:bt,insetInlineEnd:bt}},[`${fe}-body`]:{height:"auto",borderRadius:ot}},[`${fe}-default`]:{backgroundColor:Fe.floatButtonBackgroundColor,transition:`background-color ${Fe.motionDurationMid}`,[`${fe}-body`]:{backgroundColor:Fe.floatButtonBackgroundColor,transition:`background-color ${Fe.motionDurationMid}`,"&:hover":{backgroundColor:Fe.colorFillContent},[`${fe}-content`]:{[`${fe}-icon`]:{color:Fe.colorText},[`${fe}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,ye.bf)(Fe.fontSizeLG),color:Fe.colorText,fontSize:Fe.fontSizeSM}}}},[`${fe}-primary`]:{backgroundColor:Fe.colorPrimary,[`${fe}-body`]:{backgroundColor:Fe.colorPrimary,transition:`background-color ${Fe.motionDurationMid}`,"&:hover":{backgroundColor:Fe.colorPrimaryHover},[`${fe}-content`]:{[`${fe}-icon`]:{color:Fe.colorTextLightSolid},[`${fe}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,ye.bf)(Fe.fontSizeLG),color:Fe.colorTextLightSolid,fontSize:Fe.fontSizeSM}}}}}},j=Fe=>({dotOffsetInCircle:ht(Fe.controlHeightLG/2),dotOffsetInSquare:ht(Fe.borderRadiusLG)});var Y=(0,Je.I$)("FloatButton",Fe=>{const{colorTextLightSolid:ue,colorBgElevated:fe,controlHeightLG:de,marginXXL:Ce,marginLG:Ue,fontSize:ot,fontSizeIcon:lt,controlItemBgHover:bt,paddingXXS:Et,calc:zt}=Fe,tt=(0,it.TS)(Fe,{floatButtonBackgroundColor:fe,floatButtonColor:ue,floatButtonHoverBackgroundColor:bt,floatButtonFontSize:ot,floatButtonIconSize:zt(lt).mul(1.5).equal(),floatButtonSize:de,floatButtonInsetBlockEnd:Ce,floatButtonInsetInlineEnd:Ue,floatButtonBodySize:zt(de).sub(zt(Et).mul(2)).equal(),floatButtonBodyPadding:Et,badgeOffset:zt(Et).mul(1.5).equal()});return[He(tt),le(tt),(0,Pe.J$)(Fe),Ot(tt)]},j),Se=e(35792),be=function(Fe,ue){var fe={};for(var de in Fe)Object.prototype.hasOwnProperty.call(Fe,de)&&ue.indexOf(de)<0&&(fe[de]=Fe[de]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,de=Object.getOwnPropertySymbols(Fe);Ce{const{prefixCls:fe,className:de,rootClassName:Ce,type:Ue="default",shape:ot="circle",icon:lt,description:bt,tooltip:Et,badge:zt={}}=Fe,tt=be(Fe,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:tn,direction:an}=(0,C.useContext)(K.E_),Bn=(0,C.useContext)(U),kn=tn(me,fe),Ln=(0,Se.Z)(kn),[vr,ur,tr]=Y(kn,Ln),hr=Bn||ot,xr=Q()(ur,tr,Ln,kn,de,Ce,`${kn}-${Ue}`,`${kn}-${hr}`,{[`${kn}-rtl`]:an==="rtl"}),Gr=(0,C.useMemo)(()=>(0,N.Z)(zt,["title","children","status","text"]),[zt]),Yr=(0,C.useMemo)(()=>({prefixCls:kn,description:bt,icon:lt,type:Ue}),[kn,bt,lt,Ue]);let lr=C.createElement("div",{className:`${kn}-body`},C.createElement(ge,Object.assign({},Yr)));return"badge"in Fe&&(lr=C.createElement(B.Z,Object.assign({},Gr),lr)),"tooltip"in Fe&&(lr=C.createElement(F.Z,{title:Et,placement:an==="rtl"?"right":"left"},lr)),vr(Fe.href?C.createElement("a",Object.assign({ref:ue},tt,{className:xr}),lr):C.createElement("button",Object.assign({ref:ue},tt,{className:xr,type:"button"}),lr))}),se=function(Fe,ue){var fe={};for(var de in Fe)Object.prototype.hasOwnProperty.call(Fe,de)&&ue.indexOf(de)<0&&(fe[de]=Fe[de]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,de=Object.getOwnPropertySymbols(Fe);Ce{const{prefixCls:fe,className:de,type:Ce="default",shape:Ue="circle",visibilityHeight:ot=400,icon:lt=C.createElement($,null),target:bt,onClick:Et,duration:zt=450}=Fe,tt=se(Fe,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[tn,an]=(0,C.useState)(ot===0),Bn=C.useRef(null);C.useImperativeHandle(ue,()=>({nativeElement:Bn.current}));const kn=()=>Bn.current&&Bn.current.ownerDocument?Bn.current.ownerDocument:window,Ln=(0,J.Z)(lr=>{const kr=(0,V.Z)(lr.target,!0);an(kr>=ot)});(0,C.useEffect)(()=>{const kr=(bt||kn)();return Ln({target:kr}),kr==null||kr.addEventListener("scroll",Ln),()=>{Ln.cancel(),kr==null||kr.removeEventListener("scroll",Ln)}},[bt]);const vr=lr=>{(0,X.Z)(0,{getContainer:bt||kn,duration:zt}),Et==null||Et(lr)},{getPrefixCls:ur}=(0,C.useContext)(K.E_),tr=ur(me,fe),hr=ur(),Gr=(0,C.useContext)(U)||Ue,Yr=Object.assign({prefixCls:tr,icon:lt,type:Ce,shape:Gr},tt);return C.createElement(Z.ZP,{visible:tn,motionName:`${hr}-fade`},lr=>{let{className:kr}=lr;return C.createElement(H,Object.assign({ref:Bn},Yr,{onClick:vr,className:Q()(de,kr)}))})}),Be=e(84481),We=e(21770),ke=function(Fe,ue){var fe={};for(var de in Fe)Object.prototype.hasOwnProperty.call(Fe,de)&&ue.indexOf(de)<0&&(fe[de]=Fe[de]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,de=Object.getOwnPropertySymbols(Fe);Ce{const{prefixCls:ue,className:fe,style:de,shape:Ce="circle",type:Ue="default",icon:ot=C.createElement(ee,null),closeIcon:lt=C.createElement(Be.Z,null),description:bt,trigger:Et,children:zt,onOpenChange:tt,open:tn}=Fe,an=ke(Fe,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open"]),{direction:Bn,getPrefixCls:kn}=(0,C.useContext)(K.E_),Ln=kn(me,ue),vr=(0,Se.Z)(Ln),[ur,tr,hr]=Y(Ln,vr),xr=`${Ln}-group`,Gr=Q()(xr,tr,hr,vr,fe,{[`${xr}-rtl`]:Bn==="rtl",[`${xr}-${Ce}`]:Ce,[`${xr}-${Ce}-shadow`]:!Et}),Yr=Q()(tr,`${xr}-wrap`),[lr,kr]=(0,We.Z)(!1,{value:tn}),Co=C.useRef(null),ao=C.useRef(null),Oo=C.useMemo(()=>Et==="hover"?{onMouseEnter(){kr(!0),tt==null||tt(!0)},onMouseLeave(){kr(!1),tt==null||tt(!1)}}:{},[Et]),go=()=>{kr(Tr=>(tt==null||tt(!Tr),!Tr))},Vr=(0,C.useCallback)(Tr=>{var Xr,So;if(!((Xr=Co.current)===null||Xr===void 0)&&Xr.contains(Tr.target)){!((So=ao.current)===null||So===void 0)&&So.contains(Tr.target)&&go();return}kr(!1),tt==null||tt(!1)},[Et]);return(0,C.useEffect)(()=>{if(Et==="click")return document.addEventListener("click",Vr),()=>{document.removeEventListener("click",Vr)}},[Et]),ur(C.createElement(_,{value:Ce},C.createElement("div",Object.assign({ref:Co,className:Gr,style:de},Oo),Et&&["click","hover"].includes(Et)?C.createElement(C.Fragment,null,C.createElement(Z.ZP,{visible:lr,motionName:`${xr}-wrap`},Tr=>{let{className:Xr}=Tr;return C.createElement("div",{className:Q()(Xr,Yr)},zt)}),C.createElement(H,Object.assign({ref:ao,type:Ue,shape:Ce,icon:lr?lt:ot,description:bt,"aria-label":Fe["aria-label"]},an))):zt)))};var Ne=(0,C.memo)(Ae),te=function(Fe,ue){var fe={};for(var de in Fe)Object.prototype.hasOwnProperty.call(Fe,de)&&ue.indexOf(de)<0&&(fe[de]=Fe[de]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,de=Object.getOwnPropertySymbols(Fe);Ce{var{backTop:ue}=Fe,fe=te(Fe,["backTop"]);return ue?C.createElement(Oe,Object.assign({},fe,{visibilityHeight:0})):C.createElement(H,Object.assign({},fe))};var Ke=Fe=>{var{className:ue,items:fe}=Fe,de=te(Fe,["className","items"]);const{prefixCls:Ce}=de,{getPrefixCls:Ue}=C.useContext(K.E_),lt=`${Ue(me,Ce)}-pure`;return fe?C.createElement(Ne,Object.assign({className:Q()(ue,lt)},de),fe.map((bt,Et)=>C.createElement(je,Object.assign({key:Et},bt)))):C.createElement(je,Object.assign({className:Q()(ue,lt)},de))};H.BackTop=Oe,H.Group=Ne,H._InternalPanelDoNotUseOrYouWillBeFired=Ke;var ze=H,Xe=e(16761),Ye=e(86745),et=e(67610),st=function(ue,fe){var de=localStorage.getItem("ACCESS_TOKEN");if(de&&de.length>10&&ue.startsWith("/api")){var Ce={Authorization:"Bearer ".concat(de)};return{url:"".concat("").concat(ue),options:y()(y()({},fe),{},{interceptors:!0,headers:Ce})}}else return{url:"".concat("").concat(ue),options:y()(y()({},fe),{},{interceptors:!0})}},at=function(ue,fe){return ue},Ct=e(45360),It=function(Fe){return Fe[Fe.SILENT=0]="SILENT",Fe[Fe.WARN_MESSAGE=1]="WARN_MESSAGE",Fe[Fe.ERROR_MESSAGE=2]="ERROR_MESSAGE",Fe[Fe.NOTIFICATION=3]="NOTIFICATION",Fe[Fe.REDIRECT=9]="REDIRECT",Fe}(It||{}),Lt={errorConfig:{errorThrower:function(ue){console.log("errorThrower:",ue);var fe=ue,de=fe.success,Ce=fe.data,Ue=fe.errorCode,ot=fe.errorMessage,lt=fe.showType;if(!de){var bt=new Error(ot);throw bt.name="BizError",bt.info={errorCode:Ue,errorMessage:ot,showType:lt,data:Ce},bt}},errorHandler:function(ue,fe){if(console.log("errorHandler:",ue,fe),fe!=null&&fe.skipErrorHandler)throw ue;ue.response?(ue.response.status===400?(console.log("axios interception error 400"),Ct.ZP.error("400 Bad Request: \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF")):ue.response.status===401?(console.log("axios interception error 401"),Ct.ZP.error("401 Unauthorized: \u7528\u6237\u540D\u6216\u5BC6\u7801/\u9A8C\u8BC1\u7801\u9519\u8BEF")):ue.response.status===403?(console.log("axios interception error 403"),Ct.ZP.error("403 Forbidden: \u65E0\u6B64\u6743\u9650")):ue.response.status===404?(console.log("axios interception error 404"),Ct.ZP.error("404: \u8BF7\u6C42\u7684\u8D44\u6E90\u4E0D\u5B58\u5728")):ue.response.status===500&&(console.log("axios interception error 500"),Ct.ZP.error("500: \u670D\u52A1\u5668\u9519\u8BEF\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5")),Ct.ZP.error("Response status:".concat(ue.response.status))):ue.request?Ct.ZP.error("None response! Please retry."):Ct.ZP.error("Request error, please retry.")}},requestInterceptors:[function(Fe){var ue,fe=Fe==null||(ue=Fe.url)===null||ue===void 0?void 0:ue.concat("?token = 123");return y()(y()({},Fe),{},{url:fe})}],responseInterceptors:[function(Fe){var ue=Fe,fe=ue.data;return(fe==null?void 0:fe.success)===!1&&Ct.ZP.error("\u8BF7\u6C42\u5931\u8D25\uFF01"),Fe}]},En=e(39825),Mt=e(80049),Ft=e(1413),Qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"}}]},name:"customer-service",theme:"outlined"},Kt=Qt,cn=e(89099),en=function(ue,fe){return C.createElement(cn.Z,(0,Ft.Z)((0,Ft.Z)({},ue),{},{ref:fe,icon:Kt}))},Yn=C.forwardRef(en),Xt=Yn,Zn=e(96974),sn=e(85893),yn="/auth/login";function Vn(){return In.apply(this,arguments)}function In(){return In=f()(d()().mark(function Fe(){var ue,fe,de;return d()().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(console.log("getInitialState"),ue=function(){var ot=f()(d()().mark(function lt(){var bt,Et;return d()().wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(bt=localStorage.getItem("ACCESS_TOKEN"),!(bt===null||bt.trim().length===0)){tt.next=3;break}return tt.abrupt("return",void 0);case 3:return tt.prev=3,tt.next=6,(0,Xe.bG)({skipErrorHandler:!0});case 6:return Et=tt.sent,console.log("user profile",Et),tt.abrupt("return",Et.data);case 11:tt.prev=11,tt.t0=tt.catch(3),Ye.history.push(yn);case 14:return tt.abrupt("return",void 0);case 15:case"end":return tt.stop()}},lt,null,[[3,11]])}));return function(){return ot.apply(this,arguments)}}(),fe=Ye.history.location,fe.pathname.startsWith("/auth/")){Ue.next=8;break}return Ue.next=6,ue();case 6:return de=Ue.sent,Ue.abrupt("return",{fetchUserInfo:ue,userInfo:de,settings:et.Z});case 8:return Ue.abrupt("return",{fetchUserInfo:ue,settings:et.Z});case 9:case"end":return Ue.stop()}},Fe)})),In.apply(this,arguments)}var nn=function(ue){var fe,de,Ce=ue.initialState,Ue=ue.setInitialState;console.log("app.tsx - layout");var ot=(0,En.Z)(),lt=ot.isDarkMode;lt?Ce.settings.navTheme="realDark":Ce.settings.navTheme="light";var bt=(0,Ye.getLocale)();bt==="zh-CN"?Ce.settings.title="\u5FAE\u8BED":Ce.settings.title="Bytedesk";var Et=(0,Zn.TH)(),zt=function(){console.log("onFloatButtonClicked",Et.pathname),Mt.yw.info("TODO: \u5927\u6A21\u578B\u5BF9\u8BDD")};return y()({actionsRender:function(){return[(0,sn.jsx)(b.HN,{},"doc"),(0,sn.jsx)(b.pD,{},"SelectLang")]},avatarProps:{src:Ce==null||(fe=Ce.userInfo)===null||fe===void 0?void 0:fe.avatar,title:(0,sn.jsx)(b.gj,{}),render:function(tn,an){return(0,sn.jsx)(b.Kd,{menu:!0,children:an})}},waterMarkProps:{content:Ce==null||(de=Ce.userInfo)===null||de===void 0?void 0:de.nickname},footerRender:function(){return(0,sn.jsx)(b.$_,{})},onPageChange:function(){var tn=Ye.history.location;!(Ce!=null&&Ce.userInfo)&&tn.pathname!==yn&&Ye.history.push(yn)},menuHeaderRender:void 0,menu:{type:"group",collapsedShowTitle:!0,hideChildrenInMenu:!0},collapsedButtonRender:function(){return(0,sn.jsx)(sn.Fragment,{})},childrenRender:function(tn){return(0,sn.jsx)(sn.Fragment,{children:(0,sn.jsxs)(R.Z,{children:[(0,sn.jsx)(Mt.ZP,{}),tn,(0,sn.jsx)(ze,{shape:"circle",type:"primary",style:{right:20},icon:(0,sn.jsx)(Xt,{}),onClick:zt})]})})}},Ce==null?void 0:Ce.settings)},Un=y()(y()({},Lt),{},{requestInterceptors:[st]}),Wn=e(45697),xn=e.n(Wn),Ar=e(69590),br=e.n(Ar),Jn=e(41143),cr=e.n(Jn),or=e(96774),fr=e.n(or);function ar(){return ar=Object.assign||function(Fe){for(var ue=1;ue=0||(Ce[fe]=Fe[fe]);return Ce}var vn={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},Hr={rel:["amphtml","canonical","alternate"]},Mr={type:["application/ld+json"]},Qr={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Zr=Object.keys(vn).map(function(Fe){return vn[Fe]}),jr={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Lr=Object.keys(jr).reduce(function(Fe,ue){return Fe[jr[ue]]=ue,Fe},{}),Ir=function(Fe,ue){for(var fe=Fe.length-1;fe>=0;fe-=1){var de=Fe[fe];if(Object.prototype.hasOwnProperty.call(de,ue))return de[ue]}return null},Cr=function(Fe){var ue=Ir(Fe,vn.TITLE),fe=Ir(Fe,"titleTemplate");if(Array.isArray(ue)&&(ue=ue.join("")),fe&&ue)return fe.replace(/%s/g,function(){return ue});var de=Ir(Fe,"defaultTitle");return ue||de||void 0},An=function(Fe){return Ir(Fe,"onChangeClientState")||function(){}},dt=function(Fe,ue){return ue.filter(function(fe){return fe[Fe]!==void 0}).map(function(fe){return fe[Fe]}).reduce(function(fe,de){return ar({},fe,de)},{})},nt=function(Fe,ue){return ue.filter(function(fe){return fe[vn.BASE]!==void 0}).map(function(fe){return fe[vn.BASE]}).reverse().reduce(function(fe,de){if(!fe.length)for(var Ce=Object.keys(de),Ue=0;Ue/g,">").replace(/"/g,""").replace(/'/g,"'")},on=function(Fe){return Object.keys(Fe).reduce(function(ue,fe){var de=Fe[fe]!==void 0?fe+'="'+Fe[fe]+'"':""+fe;return ue?ue+" "+de:de},"")},$n=function(Fe,ue){return ue===void 0&&(ue={}),Object.keys(Fe).reduce(function(fe,de){return fe[jr[de]||de]=Fe[de],fe},ue)},Rn=function(Fe,ue){return ue.map(function(fe,de){var Ce,Ue=((Ce={key:de})["data-rh"]=!0,Ce);return Object.keys(fe).forEach(function(ot){var lt=jr[ot]||ot;lt==="innerHTML"||lt==="cssText"?Ue.dangerouslySetInnerHTML={__html:fe.innerHTML||fe.cssText}:Ue[lt]=fe[ot]}),C.createElement(Fe,Ue)})},bn=function(Fe,ue,fe){switch(Fe){case vn.TITLE:return{toComponent:function(){return Ce=ue.titleAttributes,(Ue={key:de=ue.title})["data-rh"]=!0,ot=$n(Ce,Ue),[C.createElement(vn.TITLE,ot,de)];var de,Ce,Ue,ot},toString:function(){return function(de,Ce,Ue,ot){var lt=on(Ue),bt=wt(Ce);return lt?"<"+de+' data-rh="true" '+lt+">"+dn(bt,ot)+"":"<"+de+' data-rh="true">'+dn(bt,ot)+""}(Fe,ue.title,ue.titleAttributes,fe)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return $n(ue)},toString:function(){return on(ue)}};default:return{toComponent:function(){return Rn(Fe,ue)},toString:function(){return function(de,Ce,Ue){return Ce.reduce(function(ot,lt){var bt=Object.keys(lt).filter(function(tt){return!(tt==="innerHTML"||tt==="cssText")}).reduce(function(tt,tn){var an=lt[tn]===void 0?tn:tn+'="'+dn(lt[tn],Ue)+'"';return tt?tt+" "+an:an},""),Et=lt.innerHTML||lt.cssText||"",zt=Jt.indexOf(de)===-1;return ot+"<"+de+' data-rh="true" '+bt+(zt?"/>":">"+Et+"")},"")}(Fe,ue,fe)}}}},Sn=function(Fe){var ue=Fe.baseTag,fe=Fe.bodyAttributes,de=Fe.encode,Ce=Fe.htmlAttributes,Ue=Fe.noscriptTags,ot=Fe.styleTags,lt=Fe.title,bt=lt===void 0?"":lt,Et=Fe.titleAttributes,zt=Fe.linkTags,tt=Fe.metaTags,tn=Fe.scriptTags,an={toComponent:function(){},toString:function(){return""}};if(Fe.prioritizeSeoTags){var Bn=function(kn){var Ln=kn.linkTags,vr=kn.scriptTags,ur=kn.encode,tr=Ht(kn.metaTags,Qr),hr=Ht(Ln,Hr),xr=Ht(vr,Mr);return{priorityMethods:{toComponent:function(){return[].concat(Rn(vn.META,tr.priority),Rn(vn.LINK,hr.priority),Rn(vn.SCRIPT,xr.priority))},toString:function(){return bn(vn.META,tr.priority,ur)+" "+bn(vn.LINK,hr.priority,ur)+" "+bn(vn.SCRIPT,xr.priority,ur)}},metaTags:tr.default,linkTags:hr.default,scriptTags:xr.default}}(Fe);an=Bn.priorityMethods,zt=Bn.linkTags,tt=Bn.metaTags,tn=Bn.scriptTags}return{priority:an,base:bn(vn.BASE,ue,de),bodyAttributes:bn("bodyAttributes",fe,de),htmlAttributes:bn("htmlAttributes",Ce,de),link:bn(vn.LINK,zt,de),meta:bn(vn.META,tt,de),noscript:bn(vn.NOSCRIPT,Ue,de),script:bn(vn.SCRIPT,tn,de),style:bn(vn.STYLE,ot,de),title:bn(vn.TITLE,{title:bt,titleAttributes:Et},de)}},De=[],x=function(Fe,ue){var fe=this;ue===void 0&&(ue=typeof document!="undefined"),this.instances=[],this.value={setHelmet:function(de){fe.context.helmet=de},helmetInstances:{get:function(){return fe.canUseDOM?De:fe.instances},add:function(de){(fe.canUseDOM?De:fe.instances).push(de)},remove:function(de){var Ce=(fe.canUseDOM?De:fe.instances).indexOf(de);(fe.canUseDOM?De:fe.instances).splice(Ce,1)}}},this.context=Fe,this.canUseDOM=ue,ue||(Fe.helmet=Sn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},S=C.createContext({}),D=xn().shape({setHelmet:xn().func,helmetInstances:xn().shape({get:xn().func,add:xn().func,remove:xn().func})}),L=typeof document!="undefined",ne=function(Fe){function ue(fe){var de;return(de=Fe.call(this,fe)||this).helmetData=new x(de.props.context,ue.canUseDOM),de}return dr(ue,Fe),ue.prototype.render=function(){return C.createElement(S.Provider,{value:this.helmetData.value},this.props.children)},ue}(C.Component);ne.canUseDOM=L,ne.propTypes={context:xn().shape({helmet:xn().shape()}),children:xn().node.isRequired},ne.defaultProps={context:{}},ne.displayName="HelmetProvider";var ce=function(Fe,ue){var fe,de=document.head||document.querySelector(vn.HEAD),Ce=de.querySelectorAll(Fe+"[data-rh]"),Ue=[].slice.call(Ce),ot=[];return ue&&ue.length&&ue.forEach(function(lt){var bt=document.createElement(Fe);for(var Et in lt)Object.prototype.hasOwnProperty.call(lt,Et)&&(Et==="innerHTML"?bt.innerHTML=lt.innerHTML:Et==="cssText"?bt.styleSheet?bt.styleSheet.cssText=lt.cssText:bt.appendChild(document.createTextNode(lt.cssText)):bt.setAttribute(Et,lt[Et]===void 0?"":lt[Et]));bt.setAttribute("data-rh","true"),Ue.some(function(zt,tt){return fe=tt,bt.isEqualNode(zt)})?Ue.splice(fe,1):ot.push(bt)}),Ue.forEach(function(lt){return lt.parentNode.removeChild(lt)}),ot.forEach(function(lt){return de.appendChild(lt)}),{oldTags:Ue,newTags:ot}},Te=function(Fe,ue){var fe=document.getElementsByTagName(Fe)[0];if(fe){for(var de=fe.getAttribute("data-rh"),Ce=de?de.split(","):[],Ue=[].concat(Ce),ot=Object.keys(ue),lt=0;lt=0;tt-=1)fe.removeAttribute(Ue[tt]);Ce.length===Ue.length?fe.removeAttribute("data-rh"):fe.getAttribute("data-rh")!==ot.join(",")&&fe.setAttribute("data-rh",ot.join(","))}},Me=function(Fe,ue){var fe=Fe.baseTag,de=Fe.htmlAttributes,Ce=Fe.linkTags,Ue=Fe.metaTags,ot=Fe.noscriptTags,lt=Fe.onChangeClientState,bt=Fe.scriptTags,Et=Fe.styleTags,zt=Fe.title,tt=Fe.titleAttributes;Te(vn.BODY,Fe.bodyAttributes),Te(vn.HTML,de),function(kn,Ln){kn!==void 0&&document.title!==kn&&(document.title=wt(kn)),Te(vn.TITLE,Ln)}(zt,tt);var tn={baseTag:ce(vn.BASE,fe),linkTags:ce(vn.LINK,Ce),metaTags:ce(vn.META,Ue),noscriptTags:ce(vn.NOSCRIPT,ot),scriptTags:ce(vn.SCRIPT,bt),styleTags:ce(vn.STYLE,Et)},an={},Bn={};Object.keys(tn).forEach(function(kn){var Ln=tn[kn],vr=Ln.newTags,ur=Ln.oldTags;vr.length&&(an[kn]=vr),ur.length&&(Bn[kn]=tn[kn].oldTags)}),ue&&ue(),lt(Fe,an,Bn)},Ze=null,$e=function(Fe){function ue(){for(var de,Ce=arguments.length,Ue=new Array(Ce),ot=0;ot elements are self-closing and can not contain children. Refer to our API for more information.")}},fe.flattenArrayTypeChildren=function(de){var Ce,Ue=de.child,ot=de.arrayTypeChildren;return ar({},ot,((Ce={})[Ue.type]=[].concat(ot[Ue.type]||[],[ar({},de.newChildProps,this.mapNestedChildrenToProps(Ue,de.nestedChildren))]),Ce))},fe.mapObjectTypeChildren=function(de){var Ce,Ue,ot=de.child,lt=de.newProps,bt=de.newChildProps,Et=de.nestedChildren;switch(ot.type){case vn.TITLE:return ar({},lt,((Ce={})[ot.type]=Et,Ce.titleAttributes=ar({},bt),Ce));case vn.BODY:return ar({},lt,{bodyAttributes:ar({},bt)});case vn.HTML:return ar({},lt,{htmlAttributes:ar({},bt)});default:return ar({},lt,((Ue={})[ot.type]=ar({},bt),Ue))}},fe.mapArrayTypeChildrenToProps=function(de,Ce){var Ue=ar({},Ce);return Object.keys(de).forEach(function(ot){var lt;Ue=ar({},Ue,((lt={})[ot]=de[ot],lt))}),Ue},fe.warnOnInvalidChildren=function(de,Ce){return cr()(Zr.some(function(Ue){return de.type===Ue}),typeof de.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+Zr.join(", ")+" are allowed. Helmet does not support rendering <"+de.type+"> elements. Refer to our API for more information."),cr()(!Ce||typeof Ce=="string"||Array.isArray(Ce)&&!Ce.some(function(Ue){return typeof Ue!="string"}),"Helmet expects a string as a child of <"+de.type+">. Did you forget to wrap your children in braces? ( <"+de.type+">{``} ) Refer to our API for more information."),!0},fe.mapChildrenToProps=function(de,Ce){var Ue=this,ot={};return C.Children.forEach(de,function(lt){if(lt&<.props){var bt=lt.props,Et=bt.children,zt=pr(bt,qe),tt=Object.keys(zt).reduce(function(an,Bn){return an[Lr[Bn]||Bn]=zt[Bn],an},{}),tn=lt.type;switch(typeof tn=="symbol"?tn=tn.toString():Ue.warnOnInvalidChildren(lt,Et),tn){case vn.FRAGMENT:Ce=Ue.mapChildrenToProps(Et,Ce);break;case vn.LINK:case vn.META:case vn.NOSCRIPT:case vn.SCRIPT:case vn.STYLE:ot=Ue.flattenArrayTypeChildren({child:lt,arrayTypeChildren:ot,newChildProps:tt,nestedChildren:Et});break;default:Ce=Ue.mapObjectTypeChildren({child:lt,newProps:Ce,newChildProps:tt,nestedChildren:Et})}}}),this.mapArrayTypeChildrenToProps(ot,Ce)},fe.render=function(){var de=this.props,Ce=de.children,Ue=pr(de,rt),ot=ar({},Ue),lt=Ue.helmetData;return Ce&&(ot=this.mapChildrenToProps(Ce,ot)),!lt||lt instanceof x||(lt=new x(lt.context,lt.instances)),lt?C.createElement($e,ar({},ot,{context:lt.value,helmetData:void 0})):C.createElement(S.Consumer,null,function(bt){return C.createElement($e,ar({},ot,{context:bt}))})},ue}(C.Component);Nt.propTypes={base:xn().object,bodyAttributes:xn().object,children:xn().oneOfType([xn().arrayOf(xn().node),xn().node]),defaultTitle:xn().string,defer:xn().bool,encodeSpecialCharacters:xn().bool,htmlAttributes:xn().object,link:xn().arrayOf(xn().object),meta:xn().arrayOf(xn().object),noscript:xn().arrayOf(xn().object),onChangeClientState:xn().func,script:xn().arrayOf(xn().object),style:xn().arrayOf(xn().object),title:xn().string,titleAttributes:xn().object,titleTemplate:xn().string,prioritizeSeoTags:xn().bool,helmetData:xn().object},Nt.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Nt.displayName="Helmet";var Pt={},xt=function(ue){return C.createElement(ne,{context:Pt},ue)},ut=e(85615);function vt(Fe){var ue=Fe!=null?Fe:{},fe=ue.userInfo;return{canAdmin:function(){if(!fe)return!1;for(var Ce=0;Ce-1&&(ce=setTimeout(function(){$.delete(S)},D)),$.set(S,{data:L,timer:ce,startTime:new Date().getTime()})},Q=function(S){var D=$.get(S);return{data:D==null?void 0:D.data,startTime:D==null?void 0:D.startTime}},Z=function(x,S){var D=typeof Symbol=="function"&&x[Symbol.iterator];if(!D)return x;var L=D.call(x),ne,ce=[],Te;try{for(;(S===void 0||S-- >0)&&!(ne=L.next()).done;)ce.push(ne.value)}catch(Me){Te={error:Me}}finally{try{ne&&!ne.done&&(D=L.return)&&D.call(L)}finally{if(Te)throw Te.error}}return ce},V=function(){for(var x=[],S=0;S0)&&!(ne=L.next()).done;)ce.push(ne.value)}catch(Me){Te={error:Me}}finally{try{ne&&!ne.done&&(D=L.return)&&D.call(L)}finally{if(Te)throw Te.error}}return ce},K=function(){for(var x=[],S=0;S0)&&!(ne=L.next()).done;)ce.push(ne.value)}catch(Me){Te={error:Me}}finally{try{ne&&!ne.done&&(D=L.return)&&D.call(L)}finally{if(Te)throw Te.error}}return ce},Ve=function(){for(var x=[],S=0;S0){var qn=Mn&&((fn=getCache(Mn))===null||fn===void 0?void 0:fn.startTime)||0;Or===-1||new Date().getTime()-qn<=Or||Object.values(xo).forEach(function(un){un.refresh()})}else ft.current.apply(ft,Ve(Yt))},[]);var Vt=useCallback(function(){Object.values(Re.current).forEach(function(fn){fn.unmount()}),Dn.current=Je,xe({}),Re.current={}},[xe]);useUpdateEffect(function(){Te||Object.values(Re.current).forEach(function(fn){fn.refresh()})},Ve(ne)),useEffect(function(){return function(){Object.values(Re.current).forEach(function(fn){fn.unmount()})}},[]);var ln=useCallback(function(fn){return function(){console.warn("You should't call "+fn+" when service not executed once.")}},[]);return Ie(Ie({loading:_t&&!Te||Nt,data:Gt,error:void 0,params:[],cancel:ln("cancel"),refresh:ln("refresh"),mutate:ln("mutate")},xo[Dn.current]||{}),{run:Qe,fetches:xo,reset:Vt})}var ht=null,Ot=function(){return Ot=Object.assign||function(x){for(var S,D=1,L=arguments.length;D0)&&!(ne=L.next()).done;)ce.push(ne.value)}catch(Me){Te={error:Me}}finally{try{ne&&!ne.done&&(D=L.return)&&D.call(L)}finally{if(Te)throw Te.error}}return ce},j=function(){for(var x=[],S=0;S0)&&!(ne=L.next()).done;)ce.push(ne.value)}catch(Me){Te={error:Me}}finally{try{ne&&!ne.done&&(D=L.return)&&D.call(L)}finally{if(Te)throw Te.error}}return ce},H=function(){for(var x=[],S=0;SKn&&(_t=Math.max(1,Kn)),zn({current:_t,pageSize:Hn})},[Mn,zn]),jn=useCallback(function(Gt){_n(Gt,Yt)},[_n,Yt]),Or=useCallback(function(Gt){_n(Dt,Gt)},[_n,Dt]),Br=useRef(jn);Br.current=jn,useUpdateEffect(function(){S.manual||Br.current(1)},H(Te));var Pr=useCallback(function(Gt,kt,_t){zn({current:Gt.current,pageSize:Gt.pageSize||ne,filters:kt,sorter:_t})},[Tn,Cn,zn]);return be({loading:Pt,data:qe,params:rt,run:Nt,pagination:{current:Dt,pageSize:Yt,total:Mn,totalPage:rr,onChange:_n,changeCurrent:jn,changePageSize:Or},tableProps:{dataSource:(qe==null?void 0:qe.list)||[],loading:Pt,onChange:Pr,pagination:{current:Dt,pageSize:Yt,total:Mn}},sorter:Cn,filters:Tn},xt)}var pe=null,Oe=R.createContext({});Oe.displayName="UseRequestConfigContext";var Be=Oe,We=function(){return We=Object.assign||function(x){for(var S,D=1,L=arguments.length;D0)&&!(ne=L.next()).done;)ce.push(ne.value)}catch(Me){Te={error:Me}}finally{try{ne&&!ne.done&&(D=L.return)&&D.call(L)}finally{if(Te)throw Te.error}}return ce},Ne=function(){for(var x=[],S=0;S1&&arguments[1]!==void 0?arguments[1]:{};return useUmiRequest(x,_objectSpread({formatResult:function(L){return L==null?void 0:L.data},requestMethod:function(L){if(typeof L=="string")return It(L);if(_typeof(L)==="object"){var ne=L.url,ce=_objectWithoutProperties(L,Xe);return It(ne,ce)}throw new Error("request options error")}},S))}var et,st,at=function(){return st||(st=(0,ze.We)().applyPlugins({key:"request",type:wt.modify,initialValue:{}}),st)},Ct=function(){var S,D;if(et)return et;var L=at();return et=b().create(L),L==null||(S=L.requestInterceptors)===null||S===void 0||S.forEach(function(ne){ne instanceof Array?et.interceptors.request.use(function(){var ce=u()(l()().mark(function Te(Me){var Ze,$e,qe,rt;return l()().wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(Ze=Me.url,ne[0].length!==2){Pt.next=8;break}return Pt.next=4,ne[0](Ze,Me);case 4:return $e=Pt.sent,qe=$e.url,rt=$e.options,Pt.abrupt("return",h()(h()({},rt),{},{url:qe}));case 8:return Pt.abrupt("return",ne[0](Me));case 9:case"end":return Pt.stop()}},Te)}));return function(Te){return ce.apply(this,arguments)}}(),ne[1]):et.interceptors.request.use(function(){var ce=u()(l()().mark(function Te(Me){var Ze,$e,qe,rt;return l()().wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(Ze=Me.url,ne.length!==2){Pt.next=8;break}return Pt.next=4,ne(Ze,Me);case 4:return $e=Pt.sent,qe=$e.url,rt=$e.options,Pt.abrupt("return",h()(h()({},rt),{},{url:qe}));case 8:return Pt.abrupt("return",ne(Me));case 9:case"end":return Pt.stop()}},Te)}));return function(Te){return ce.apply(this,arguments)}}())}),L==null||(D=L.responseInterceptors)===null||D===void 0||D.forEach(function(ne){ne instanceof Array?et.interceptors.response.use(ne[0],ne[1]):et.interceptors.response.use(ne)}),et.interceptors.response.use(function(ne){var ce,Te=ne.data;return(Te==null?void 0:Te.success)===!1&&L!==null&&L!==void 0&&(ce=L.errorConfig)!==null&&ce!==void 0&&ce.errorThrower&&L.errorConfig.errorThrower(Te),ne}),et},It=function(S){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{method:"GET"},L=Ct(),ne=at(),ce=D.getResponse,Te=ce===void 0?!1:ce,Me=D.requestInterceptors,Ze=D.responseInterceptors,$e=Me==null?void 0:Me.map(function(rt){return rt instanceof Array?L.interceptors.request.use(function(){var Nt=u()(l()().mark(function Pt(xt){var ut,vt,Dt,Rt;return l()().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(ut=xt.url,rt[0].length!==2){Wt.next=8;break}return Wt.next=4,rt[0](ut,xt);case 4:return vt=Wt.sent,Dt=vt.url,Rt=vt.options,Wt.abrupt("return",h()(h()({},Rt),{},{url:Dt}));case 8:return Wt.abrupt("return",rt[0](xt));case 9:case"end":return Wt.stop()}},Pt)}));return function(Pt){return Nt.apply(this,arguments)}}(),rt[1]):L.interceptors.request.use(function(){var Nt=u()(l()().mark(function Pt(xt){var ut,vt,Dt,Rt;return l()().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(ut=xt.url,rt.length!==2){Wt.next=8;break}return Wt.next=4,rt(ut,xt);case 4:return vt=Wt.sent,Dt=vt.url,Rt=vt.options,Wt.abrupt("return",h()(h()({},Rt),{},{url:Dt}));case 8:return Wt.abrupt("return",rt(xt));case 9:case"end":return Wt.stop()}},Pt)}));return function(Pt){return Nt.apply(this,arguments)}}())}),qe=Ze==null?void 0:Ze.map(function(rt){return rt instanceof Array?L.interceptors.response.use(rt[0],rt[1]):L.interceptors.response.use(rt)});return new Promise(function(rt,Nt){L.request(h()(h()({},D),{},{url:S})).then(function(Pt){$e==null||$e.forEach(function(xt){L.interceptors.request.eject(xt)}),qe==null||qe.forEach(function(xt){L.interceptors.response.eject(xt)}),rt(Te?Pt:Pt.data)}).catch(function(Pt){$e==null||$e.forEach(function(vt){L.interceptors.request.eject(vt)}),qe==null||qe.forEach(function(vt){L.interceptors.response.eject(vt)});try{var xt,ut=ne==null||(xt=ne.errorConfig)===null||xt===void 0?void 0:xt.errorHandler;ut&&ut(Pt,D,ne)}catch(vt){Nt(vt)}Nt(Pt)})})},Lt=e(58096),En=e(49647),Mt=e(96974),Ft=e(55648);function Qt(){return Qt=Object.assign||function(x){for(var S=1;S=0)&&(D[ne]=x[ne]);return D}const cn=["onClick","reloadDocument","replace","state","target","to"],en=null;function Yn(x,S){if(!x){typeof console!="undefined"&&console.warn(S);try{throw new Error(S)}catch(D){}}}function Xt(x){let{basename:S,children:D,window:L}=x,ne=useRef();ne.current==null&&(ne.current=createBrowserHistory({window:L}));let ce=ne.current,[Te,Me]=useState({action:ce.action,location:ce.location});return useLayoutEffect(()=>ce.listen(Me),[ce]),createElement(Router,{basename:S,children:D,location:Te.location,navigationType:Te.action,navigator:ce})}function Zn(x){let{basename:S,children:D,window:L}=x,ne=useRef();ne.current==null&&(ne.current=createHashHistory({window:L}));let ce=ne.current,[Te,Me]=useState({action:ce.action,location:ce.location});return useLayoutEffect(()=>ce.listen(Me),[ce]),createElement(Router,{basename:S,children:D,location:Te.location,navigationType:Te.action,navigator:ce})}function sn(x){let{basename:S,children:D,history:L}=x;const[ne,ce]=useState({action:L.action,location:L.location});return useLayoutEffect(()=>L.listen(ce),[L]),createElement(Router,{basename:S,children:D,location:ne.location,navigationType:ne.action,navigator:L})}function yn(x){return!!(x.metaKey||x.altKey||x.ctrlKey||x.shiftKey)}const Vn=(0,R.forwardRef)(function(S,D){let{onClick:L,reloadDocument:ne,replace:ce=!1,state:Te,target:Me,to:Ze}=S,$e=Kt(S,cn),qe=(0,Mt.oQ)(Ze),rt=nn(Ze,{replace:ce,state:Te,target:Me});function Nt(Pt){L&&L(Pt),!Pt.defaultPrevented&&!ne&&rt(Pt)}return(0,R.createElement)("a",Qt({},$e,{href:qe,onClick:Nt,ref:D,target:Me}))}),In=null;function nn(x,S){let{target:D,replace:L,state:ne}=S===void 0?{}:S,ce=(0,Mt.s0)(),Te=(0,Mt.TH)(),Me=(0,Mt.WU)(x);return(0,R.useCallback)(Ze=>{if(Ze.button===0&&(!D||D==="_self")&&!yn(Ze)){Ze.preventDefault();let $e=!!L||(0,Ft.Ep)(Te)===(0,Ft.Ep)(Me);ce(x,{replace:$e,state:ne})}},[Te,ce,Me,L,ne,D,x])}function Un(x){let S=useRef(Wn(x)),D=useLocation(),L=useMemo(()=>{let Te=Wn(D.search);for(let Me of S.current.keys())Te.has(Me)||S.current.getAll(Me).forEach(Ze=>{Te.append(Me,Ze)});return Te},[D.search]),ne=useNavigate(),ce=useCallback((Te,Me)=>{ne("?"+Wn(Te),Me)},[ne]);return[L,ce]}function Wn(x){return x===void 0&&(x=""),new URLSearchParams(typeof x=="string"||Array.isArray(x)||x instanceof URLSearchParams?x:Object.keys(x).reduce((S,D)=>{let L=x[D];return S.concat(Array.isArray(L)?L.map(ne=>[D,ne]):[[D,L]])},[]))}var xn=e(34162),Ar=["prefetch"];function br(x){var S,D=x.prefetch,L=(0,En.Z)(x,Ar),ne=(0,xn.Ov)(),ce=typeof x.to=="string"?x.to:(S=x.to)===null||S===void 0?void 0:S.pathname;return ce?R.createElement(Vn,(0,Lt.Z)({onMouseEnter:function(){var Me;return D&&ce&&((Me=ne.preloadRoute)===null||Me===void 0?void 0:Me.call(ne,ce))}},L),x.children):null}function Jn(x){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},Jn(x)}function cr(){"use strict";cr=function(){return S};var x,S={},D=Object.prototype,L=D.hasOwnProperty,ne=Object.defineProperty||function(Gt,kt,_t){Gt[kt]=_t.value},ce=typeof Symbol=="function"?Symbol:{},Te=ce.iterator||"@@iterator",Me=ce.asyncIterator||"@@asyncIterator",Ze=ce.toStringTag||"@@toStringTag";function $e(Gt,kt,_t){return Object.defineProperty(Gt,kt,{value:_t,enumerable:!0,configurable:!0,writable:!0}),Gt[kt]}try{$e({},"")}catch(Gt){$e=function(_t,Hn,Kn){return _t[Hn]=Kn}}function qe(Gt,kt,_t,Hn){var Kn=kt&&kt.prototype instanceof Dt?kt:Dt,Dn=Object.create(Kn.prototype),Rr=new Br(Hn||[]);return ne(Dn,"_invoke",{value:rr(Gt,_t,Rr)}),Dn}function rt(Gt,kt,_t){try{return{type:"normal",arg:Gt.call(kt,_t)}}catch(Hn){return{type:"throw",arg:Hn}}}S.wrap=qe;var Nt="suspendedStart",Pt="suspendedYield",xt="executing",ut="completed",vt={};function Dt(){}function Rt(){}function Yt(){}var Wt={};$e(Wt,Te,function(){return this});var Cn=Object.getPrototypeOf,Pn=Cn&&Cn(Cn(Pr([])));Pn&&Pn!==D&&L.call(Pn,Te)&&(Wt=Pn);var Tn=Yt.prototype=Dt.prototype=Object.create(Wt);function zn(Gt){["next","throw","return"].forEach(function(kt){$e(Gt,kt,function(_t){return this._invoke(kt,_t)})})}function Mn(Gt,kt){function _t(Kn,Dn,Rr,zr){var Dr=rt(Gt[Kn],Gt,Dn);if(Dr.type!=="throw"){var lo=Dr.arg,no=lo.value;return no&&Jn(no)=="object"&&L.call(no,"__await")?kt.resolve(no.__await).then(function(uo){_t("next",uo,Rr,zr)},function(uo){_t("throw",uo,Rr,zr)}):kt.resolve(no).then(function(uo){lo.value=uo,Rr(lo)},function(uo){return _t("throw",uo,Rr,zr)})}zr(Dr.arg)}var Hn;ne(this,"_invoke",{value:function(Dn,Rr){function zr(){return new kt(function(Dr,lo){_t(Dn,Rr,Dr,lo)})}return Hn=Hn?Hn.then(zr,zr):zr()}})}function rr(Gt,kt,_t){var Hn=Nt;return function(Kn,Dn){if(Hn===xt)throw new Error("Generator is already running");if(Hn===ut){if(Kn==="throw")throw Dn;return{value:x,done:!0}}for(_t.method=Kn,_t.arg=Dn;;){var Rr=_t.delegate;if(Rr){var zr=_n(Rr,_t);if(zr){if(zr===vt)continue;return zr}}if(_t.method==="next")_t.sent=_t._sent=_t.arg;else if(_t.method==="throw"){if(Hn===Nt)throw Hn=ut,_t.arg;_t.dispatchException(_t.arg)}else _t.method==="return"&&_t.abrupt("return",_t.arg);Hn=xt;var Dr=rt(Gt,kt,_t);if(Dr.type==="normal"){if(Hn=_t.done?ut:Pt,Dr.arg===vt)continue;return{value:Dr.arg,done:_t.done}}Dr.type==="throw"&&(Hn=ut,_t.method="throw",_t.arg=Dr.arg)}}}function _n(Gt,kt){var _t=kt.method,Hn=Gt.iterator[_t];if(Hn===x)return kt.delegate=null,_t==="throw"&&Gt.iterator.return&&(kt.method="return",kt.arg=x,_n(Gt,kt),kt.method==="throw")||_t!=="return"&&(kt.method="throw",kt.arg=new TypeError("The iterator does not provide a '"+_t+"' method")),vt;var Kn=rt(Hn,Gt.iterator,kt.arg);if(Kn.type==="throw")return kt.method="throw",kt.arg=Kn.arg,kt.delegate=null,vt;var Dn=Kn.arg;return Dn?Dn.done?(kt[Gt.resultName]=Dn.value,kt.next=Gt.nextLoc,kt.method!=="return"&&(kt.method="next",kt.arg=x),kt.delegate=null,vt):Dn:(kt.method="throw",kt.arg=new TypeError("iterator result is not an object"),kt.delegate=null,vt)}function jn(Gt){var kt={tryLoc:Gt[0]};1 in Gt&&(kt.catchLoc=Gt[1]),2 in Gt&&(kt.finallyLoc=Gt[2],kt.afterLoc=Gt[3]),this.tryEntries.push(kt)}function Or(Gt){var kt=Gt.completion||{};kt.type="normal",delete kt.arg,Gt.completion=kt}function Br(Gt){this.tryEntries=[{tryLoc:"root"}],Gt.forEach(jn,this),this.reset(!0)}function Pr(Gt){if(Gt||Gt===""){var kt=Gt[Te];if(kt)return kt.call(Gt);if(typeof Gt.next=="function")return Gt;if(!isNaN(Gt.length)){var _t=-1,Hn=function Kn(){for(;++_t=0;--Kn){var Dn=this.tryEntries[Kn],Rr=Dn.completion;if(Dn.tryLoc==="root")return Hn("end");if(Dn.tryLoc<=this.prev){var zr=L.call(Dn,"catchLoc"),Dr=L.call(Dn,"finallyLoc");if(zr&&Dr){if(this.prev=0;--Hn){var Kn=this.tryEntries[Hn];if(Kn.tryLoc<=this.prev&&L.call(Kn,"finallyLoc")&&this.prev=0;--_t){var Hn=this.tryEntries[_t];if(Hn.finallyLoc===kt)return this.complete(Hn.completion,Hn.afterLoc),Or(Hn),vt}},catch:function(kt){for(var _t=this.tryEntries.length-1;_t>=0;--_t){var Hn=this.tryEntries[_t];if(Hn.tryLoc===kt){var Kn=Hn.completion;if(Kn.type==="throw"){var Dn=Kn.arg;Or(Hn)}return Dn}}throw new Error("illegal catch attempt")},delegateYield:function(kt,_t,Hn){return this.delegate={iterator:Pr(kt),resultName:_t,nextLoc:Hn},this.method==="next"&&(this.arg=x),vt}},S}function or(x,S){if(Jn(x)!="object"||!x)return x;var D=x[Symbol.toPrimitive];if(D!==void 0){var L=D.call(x,S||"default");if(Jn(L)!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(x)}function fr(x){var S=or(x,"string");return Jn(S)=="symbol"?S:String(S)}function ar(x,S,D){return S=fr(S),S in x?Object.defineProperty(x,S,{value:D,enumerable:!0,configurable:!0,writable:!0}):x[S]=D,x}function dr(x,S){var D=Object.keys(x);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(x);S&&(L=L.filter(function(ne){return Object.getOwnPropertyDescriptor(x,ne).enumerable})),D.push.apply(D,L)}return D}function ir(x){for(var S=1;Sx.length)&&(S=x.length);for(var D=0,L=new Array(S);D=x.length?{done:!0}:{done:!1,value:x[L++]}},e:function($e){throw $e},f:ne}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ce=!0,Te=!1,Me;return{s:function(){D=D.call(x)},n:function(){var $e=D.next();return ce=$e.done,$e},e:function($e){Te=!0,Me=$e},f:function(){try{!ce&&D.return!=null&&D.return()}finally{if(Te)throw Me}}}}function Zr(x){if(Array.isArray(x))return x}function jr(x){if(typeof Symbol!="undefined"&&x[Symbol.iterator]!=null||x["@@iterator"]!=null)return Array.from(x)}function Lr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ir(x){return Zr(x)||jr(x)||Mr(x)||Lr()}function Cr(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function An(x,S){for(var D=0;D-1,"register failed, invalid key ".concat(ne," ").concat(D.path?"from plugin ".concat(D.path):"",".")),L.hooks[ne]=(L.hooks[ne]||[]).concat(D.apply[ne])})}},{key:"getHooks",value:function(D){var L=D.split("."),ne=Ir(L),ce=ne[0],Te=ne.slice(1),Me=this.hooks[ce]||[];return Te.length&&(Me=Me.map(function(Ze){try{var $e=Ze,qe=Qr(Te),rt;try{for(qe.s();!(rt=qe.n()).done;){var Nt=rt.value;$e=$e[Nt]}}catch(Pt){qe.e(Pt)}finally{qe.f()}return $e}catch(Pt){return null}}).filter(Boolean)),Me}},{key:"applyPlugins",value:function(D){var L=D.key,ne=D.type,ce=D.initialValue,Te=D.args,Me=D.async,Ze=this.getHooks(L)||[];switch(Te&&nt(Jn(Te)==="object","applyPlugins failed, args must be plain object."),Me&&nt(ne===wt.modify||ne===wt.event,"async only works with modify and event type."),ne){case wt.modify:return Me?Ze.reduce(function(){var $e=vn(cr().mark(function qe(rt,Nt){var Pt;return cr().wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(nt(typeof Nt=="function"||Jn(Nt)==="object"||mt(Nt),"applyPlugins failed, all hooks for key ".concat(L," must be function, plain object or Promise.")),!mt(rt)){ut.next=5;break}return ut.next=4,rt;case 4:rt=ut.sent;case 5:if(typeof Nt!="function"){ut.next=16;break}if(Pt=Nt(rt,Te),!mt(Pt)){ut.next=13;break}return ut.next=10,Pt;case 10:return ut.abrupt("return",ut.sent);case 13:return ut.abrupt("return",Pt);case 14:ut.next=21;break;case 16:if(!mt(Nt)){ut.next=20;break}return ut.next=19,Nt;case 19:Nt=ut.sent;case 20:return ut.abrupt("return",ir(ir({},rt),Nt));case 21:case"end":return ut.stop()}},qe)}));return function(qe,rt){return $e.apply(this,arguments)}}(),mt(ce)?ce:Promise.resolve(ce)):Ze.reduce(function($e,qe){return nt(typeof qe=="function"||Jn(qe)==="object","applyPlugins failed, all hooks for key ".concat(L," must be function or plain object.")),typeof qe=="function"?qe($e,Te):ir(ir({},$e),qe)},ce);case wt.event:return vn(cr().mark(function $e(){var qe,rt,Nt,Pt;return cr().wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:qe=Qr(Ze),ut.prev=1,qe.s();case 3:if((rt=qe.n()).done){ut.next=12;break}if(Nt=rt.value,nt(typeof Nt=="function","applyPlugins failed, all hooks for key ".concat(L," must be function.")),Pt=Nt(Te),!(Me&&mt(Pt))){ut.next=10;break}return ut.next=10,Pt;case 10:ut.next=3;break;case 12:ut.next=17;break;case 14:ut.prev=14,ut.t0=ut.catch(1),qe.e(ut.t0);case 17:return ut.prev=17,qe.f(),ut.finish(17);case 20:case"end":return ut.stop()}},$e,null,[[1,14,17,20]])}))();case wt.compose:return function(){return St({fns:Ze.concat(ce),args:Te})()}}}}],[{key:"create",value:function(D){var L=new x({validKeys:D.validKeys});return D.plugins.forEach(function(ne){L.register(ne)}),L}}]),x}(),rn=e(10581),Jt=0,dn=0;function on(x,S){if(!1)var D}function $n(x){return JSON.stringify(x,null,2)}function Rn(x){var S=x.length>1?x.map(bn).join(" "):x[0];return g()(S)==="object"?"".concat($n(S)):S.toString()}function bn(x){return g()(x)==="object"?"".concat(JSON.stringify(x)):x.toString()}var Sn={log:function(){for(var S=arguments.length,D=new Array(S),L=0;L0){for(wn=1,sr=1;wnPa&&(Pa=we,Ri=[]),Ri.push(ve))}function Ta(ve,Le){return new re(ve,[],"",Le)}function li(ve,Le,yt){return new re(re.buildMessage(ve,Le),ve,Le,yt)}function wa(){var ve;return ve=yi(),ve}function yi(){var ve,Le;for(ve=[],Le=fs();Le!==k;)ve.push(Le),Le=fs();return ve}function fs(){var ve;return ve=Qa(),ve===k&&(ve=ui(),ve===k&&(ve=ea(),ve===k&&(ve=Li(),ve===k&&(ve=Ni(),ve===k&&(ve=bi()))))),ve}function Ji(){var ve,Le,yt;if(ve=we,Le=[],yt=fo(),yt===k&&(yt=so(),yt===k&&(yt=Io())),yt!==k)for(;yt!==k;)Le.push(yt),yt=fo(),yt===k&&(yt=so(),yt===k&&(yt=Io()));else Le=k;return Le!==k&&(Jr=ve,Le=$t(Le)),ve=Le,ve}function Qa(){var ve,Le;return ve=we,Le=Ji(),Le!==k&&(Jr=ve,Le=Vt(Le)),ve=Le,ve}function bi(){var ve,Le;return ve=we,xe.charCodeAt(we)===35?(Le=ln,we++):(Le=k,qt===0&&Nn(fn)),Le!==k&&(Jr=ve,Le=qn()),ve=Le,ve}function ui(){var ve,Le,yt,jt,mn,Gn;return qt++,ve=we,xe.charCodeAt(we)===123?(Le=gn,we++):(Le=k,qt===0&&Nn(wn)),Le!==k?(yt=er(),yt!==k?(jt=ta(),jt!==k?(mn=er(),mn!==k?(xe.charCodeAt(we)===125?(Gn=sr,we++):(Gn=k,qt===0&&Nn(Wr)),Gn!==k?(Jr=ve,Le=wo(jt),ve=Le):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k),qt--,ve===k&&(Le=k,qt===0&&Nn(un)),ve}function xi(){var ve,Le,yt,jt,mn;if(qt++,ve=we,Le=[],yt=we,jt=we,qt++,mn=nr(),mn===k&&(gr.test(xe.charAt(we))?(mn=xe.charAt(we),we++):(mn=k,qt===0&&Nn(oo))),qt--,mn===k?jt=void 0:(we=jt,jt=k),jt!==k?(xe.length>we?(mn=xe.charAt(we),we++):(mn=k,qt===0&&Nn(to)),mn!==k?(jt=[jt,mn],yt=jt):(we=yt,yt=k)):(we=yt,yt=k),yt!==k)for(;yt!==k;)Le.push(yt),yt=we,jt=we,qt++,mn=nr(),mn===k&&(gr.test(xe.charAt(we))?(mn=xe.charAt(we),we++):(mn=k,qt===0&&Nn(oo))),qt--,mn===k?jt=void 0:(we=jt,jt=k),jt!==k?(xe.length>we?(mn=xe.charAt(we),we++):(mn=k,qt===0&&Nn(to)),mn!==k?(jt=[jt,mn],yt=jt):(we=yt,yt=k)):(we=yt,yt=k);else Le=k;return Le!==k?ve=xe.substring(ve,we):ve=Le,qt--,ve===k&&(Le=k,qt===0&&Nn(Qn)),ve}function Di(){var ve,Le,yt;return qt++,ve=we,xe.charCodeAt(we)===47?(Le=ha,we++):(Le=k,qt===0&&Nn(sa)),Le!==k?(yt=xi(),yt!==k?(Jr=ve,Le=Da(yt),ve=Le):(we=ve,ve=k)):(we=ve,ve=k),qt--,ve===k&&(Le=k,qt===0&&Nn($r)),ve}function Ja(){var ve,Le,yt,jt,mn;if(qt++,ve=we,Le=er(),Le!==k)if(yt=xi(),yt!==k){for(jt=[],mn=Di();mn!==k;)jt.push(mn),mn=Di();jt!==k?(Jr=ve,Le=Za(yt,jt),ve=Le):(we=ve,ve=k)}else we=ve,ve=k;else we=ve,ve=k;return qt--,ve===k&&(Le=k,qt===0&&Nn(Ea)),ve}function ka(){var ve,Le,yt;if(ve=we,Le=[],yt=Ja(),yt!==k)for(;yt!==k;)Le.push(yt),yt=Ja();else Le=k;return Le!==k&&(Jr=ve,Le=za(Le)),ve=Le,ve}function Eo(){var ve,Le,yt;return ve=we,xe.substr(we,2)===ya?(Le=ya,we+=2):(Le=k,qt===0&&Nn(la)),Le!==k?(yt=ka(),yt!==k?(Jr=ve,Le=Fe(yt),ve=Le):(we=ve,ve=k)):(we=ve,ve=k),ve===k&&(ve=we,Jr=we,Le=ue(),Le?Le=void 0:Le=k,Le!==k?(yt=Ji(),yt!==k?(Jr=ve,Le=fe(yt),ve=Le):(we=ve,ve=k)):(we=ve,ve=k)),ve}function yo(){var ve,Le,yt,jt,mn,Gn,_r,qr,Go,eo,bo,io,mo;return ve=we,xe.charCodeAt(we)===123?(Le=gn,we++):(Le=k,qt===0&&Nn(wn)),Le!==k?(yt=er(),yt!==k?(jt=ta(),jt!==k?(mn=er(),mn!==k?(xe.charCodeAt(we)===44?(Gn=de,we++):(Gn=k,qt===0&&Nn(Ce)),Gn!==k?(_r=er(),_r!==k?(xe.substr(we,6)===Ue?(qr=Ue,we+=6):(qr=k,qt===0&&Nn(ot)),qr!==k?(Go=er(),Go!==k?(eo=we,xe.charCodeAt(we)===44?(bo=de,we++):(bo=k,qt===0&&Nn(Ce)),bo!==k?(io=er(),io!==k?(mo=Eo(),mo!==k?(bo=[bo,io,mo],eo=bo):(we=eo,eo=k)):(we=eo,eo=k)):(we=eo,eo=k),eo===k&&(eo=null),eo!==k?(bo=er(),bo!==k?(xe.charCodeAt(we)===125?(io=sr,we++):(io=k,qt===0&&Nn(Wr)),io!==k?(Jr=ve,Le=lt(jt,qr,eo),ve=Le):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k),ve}function ja(){var ve,Le,yt,jt;if(ve=we,xe.charCodeAt(we)===39?(Le=bt,we++):(Le=k,qt===0&&Nn(Et)),Le!==k){if(yt=[],jt=fo(),jt===k&&(zt.test(xe.charAt(we))?(jt=xe.charAt(we),we++):(jt=k,qt===0&&Nn(tt))),jt!==k)for(;jt!==k;)yt.push(jt),jt=fo(),jt===k&&(zt.test(xe.charAt(we))?(jt=xe.charAt(we),we++):(jt=k,qt===0&&Nn(tt)));else yt=k;yt!==k?(xe.charCodeAt(we)===39?(jt=bt,we++):(jt=k,qt===0&&Nn(Et)),jt!==k?(Le=[Le,yt,jt],ve=Le):(we=ve,ve=k)):(we=ve,ve=k)}else we=ve,ve=k;if(ve===k)if(ve=[],Le=fo(),Le===k&&(tn.test(xe.charAt(we))?(Le=xe.charAt(we),we++):(Le=k,qt===0&&Nn(an))),Le!==k)for(;Le!==k;)ve.push(Le),Le=fo(),Le===k&&(tn.test(xe.charAt(we))?(Le=xe.charAt(we),we++):(Le=k,qt===0&&Nn(an)));else ve=k;return ve}function Uo(){var ve,Le;if(ve=[],Bn.test(xe.charAt(we))?(Le=xe.charAt(we),we++):(Le=k,qt===0&&Nn(kn)),Le!==k)for(;Le!==k;)ve.push(Le),Bn.test(xe.charAt(we))?(Le=xe.charAt(we),we++):(Le=k,qt===0&&Nn(kn));else ve=k;return ve}function qo(){var ve,Le,yt,jt;if(ve=we,Le=we,yt=[],jt=ja(),jt===k&&(jt=Uo()),jt!==k)for(;jt!==k;)yt.push(jt),jt=ja(),jt===k&&(jt=Uo());else yt=k;return yt!==k?Le=xe.substring(Le,we):Le=yt,Le!==k&&(Jr=ve,Le=Ln(Le)),ve=Le,ve}function _a(){var ve,Le,yt;return ve=we,xe.substr(we,2)===ya?(Le=ya,we+=2):(Le=k,qt===0&&Nn(la)),Le!==k?(yt=qo(),yt!==k?(Jr=ve,Le=Fe(yt),ve=Le):(we=ve,ve=k)):(we=ve,ve=k),ve===k&&(ve=we,Jr=we,Le=vr(),Le?Le=void 0:Le=k,Le!==k?(yt=Ji(),yt!==k?(Jr=ve,Le=fe(yt),ve=Le):(we=ve,ve=k)):(we=ve,ve=k)),ve}function ci(){var ve,Le,yt,jt,mn,Gn,_r,qr,Go,eo,bo,io,mo;return ve=we,xe.charCodeAt(we)===123?(Le=gn,we++):(Le=k,qt===0&&Nn(wn)),Le!==k?(yt=er(),yt!==k?(jt=ta(),jt!==k?(mn=er(),mn!==k?(xe.charCodeAt(we)===44?(Gn=de,we++):(Gn=k,qt===0&&Nn(Ce)),Gn!==k?(_r=er(),_r!==k?(xe.substr(we,4)===ur?(qr=ur,we+=4):(qr=k,qt===0&&Nn(tr)),qr===k&&(xe.substr(we,4)===hr?(qr=hr,we+=4):(qr=k,qt===0&&Nn(xr))),qr!==k?(Go=er(),Go!==k?(eo=we,xe.charCodeAt(we)===44?(bo=de,we++):(bo=k,qt===0&&Nn(Ce)),bo!==k?(io=er(),io!==k?(mo=_a(),mo!==k?(bo=[bo,io,mo],eo=bo):(we=eo,eo=k)):(we=eo,eo=k)):(we=eo,eo=k),eo===k&&(eo=null),eo!==k?(bo=er(),bo!==k?(xe.charCodeAt(we)===125?(io=sr,we++):(io=k,qt===0&&Nn(Wr)),io!==k?(Jr=ve,Le=lt(jt,qr,eo),ve=Le):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k),ve}function ea(){var ve;return ve=yo(),ve===k&&(ve=ci()),ve}function Li(){var ve,Le,yt,jt,mn,Gn,_r,qr,Go,eo,bo,io,mo,Mo,Ao,va;if(ve=we,xe.charCodeAt(we)===123?(Le=gn,we++):(Le=k,qt===0&&Nn(wn)),Le!==k)if(yt=er(),yt!==k)if(jt=ta(),jt!==k)if(mn=er(),mn!==k)if(xe.charCodeAt(we)===44?(Gn=de,we++):(Gn=k,qt===0&&Nn(Ce)),Gn!==k)if(_r=er(),_r!==k)if(xe.substr(we,6)===Gr?(qr=Gr,we+=6):(qr=k,qt===0&&Nn(Yr)),qr===k&&(xe.substr(we,13)===lr?(qr=lr,we+=13):(qr=k,qt===0&&Nn(kr))),qr!==k)if(Go=er(),Go!==k)if(xe.charCodeAt(we)===44?(eo=de,we++):(eo=k,qt===0&&Nn(Ce)),eo!==k)if(bo=er(),bo!==k)if(io=we,xe.substr(we,7)===Co?(mo=Co,we+=7):(mo=k,qt===0&&Nn(ao)),mo!==k?(Mo=er(),Mo!==k?(Ao=ro(),Ao!==k?(mo=[mo,Mo,Ao],io=mo):(we=io,io=k)):(we=io,io=k)):(we=io,io=k),io===k&&(io=null),io!==k)if(mo=er(),mo!==k){if(Mo=[],Ao=Xn(),Ao!==k)for(;Ao!==k;)Mo.push(Ao),Ao=Xn();else Mo=k;Mo!==k?(Ao=er(),Ao!==k?(xe.charCodeAt(we)===125?(va=sr,we++):(va=k,qt===0&&Nn(Wr)),va!==k?(Jr=ve,Le=Oo(jt,qr,io,Mo),ve=Le):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)}else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;return ve}function Ni(){var ve,Le,yt,jt,mn,Gn,_r,qr,Go,eo,bo,io,mo,Mo;if(ve=we,xe.charCodeAt(we)===123?(Le=gn,we++):(Le=k,qt===0&&Nn(wn)),Le!==k)if(yt=er(),yt!==k)if(jt=ta(),jt!==k)if(mn=er(),mn!==k)if(xe.charCodeAt(we)===44?(Gn=de,we++):(Gn=k,qt===0&&Nn(Ce)),Gn!==k)if(_r=er(),_r!==k)if(xe.substr(we,6)===go?(qr=go,we+=6):(qr=k,qt===0&&Nn(Vr)),qr!==k)if(Go=er(),Go!==k)if(xe.charCodeAt(we)===44?(eo=de,we++):(eo=k,qt===0&&Nn(Ce)),eo!==k)if(bo=er(),bo!==k){if(io=[],mo=Bt(),mo!==k)for(;mo!==k;)io.push(mo),mo=Bt();else io=k;io!==k?(mo=er(),mo!==k?(xe.charCodeAt(we)===125?(Mo=sr,we++):(Mo=k,qt===0&&Nn(Wr)),Mo!==k?(Jr=ve,Le=Tr(jt,io),ve=Le):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)}else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;else we=ve,ve=k;return ve}function Ut(){var ve,Le,yt,jt;return ve=we,Le=we,xe.charCodeAt(we)===61?(yt=Xr,we++):(yt=k,qt===0&&Nn(So)),yt!==k?(jt=ro(),jt!==k?(yt=[yt,jt],Le=yt):(we=Le,Le=k)):(we=Le,Le=k),Le!==k?ve=xe.substring(ve,we):ve=Le,ve===k&&(ve=na()),ve}function Bt(){var ve,Le,yt,jt,mn,Gn,_r,qr;return ve=we,Le=er(),Le!==k?(yt=na(),yt!==k?(jt=er(),jt!==k?(xe.charCodeAt(we)===123?(mn=gn,we++):(mn=k,qt===0&&Nn(wn)),mn!==k?(Jr=we,Gn=Po(yt),Gn?Gn=void 0:Gn=k,Gn!==k?(_r=yi(),_r!==k?(xe.charCodeAt(we)===125?(qr=sr,we++):(qr=k,qt===0&&Nn(Wr)),qr!==k?(Jr=ve,Le=Zo(yt,_r),ve=Le):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k),ve}function Xn(){var ve,Le,yt,jt,mn,Gn,_r,qr;return ve=we,Le=er(),Le!==k?(yt=Ut(),yt!==k?(jt=er(),jt!==k?(xe.charCodeAt(we)===123?(mn=gn,we++):(mn=k,qt===0&&Nn(wn)),mn!==k?(Jr=we,Gn=Xo(yt),Gn?Gn=void 0:Gn=k,Gn!==k?(_r=yi(),_r!==k?(xe.charCodeAt(we)===125?(qr=sr,we++):(qr=k,qt===0&&Nn(Wr)),qr!==k?(Jr=ve,Le=Ho(yt,_r),ve=Le):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k)):(we=ve,ve=k),ve}function nr(){var ve,Le;return qt++,Fo.test(xe.charAt(we))?(ve=xe.charAt(we),we++):(ve=k,qt===0&&Nn(_o)),qt--,ve===k&&(Le=k,qt===0&&Nn(zo)),ve}function Ur(){var ve,Le;return qt++,Ca.test(xe.charAt(we))?(ve=xe.charAt(we),we++):(ve=k,qt===0&&Nn(Oa)),qt--,ve===k&&(Le=k,qt===0&&Nn(ua)),ve}function er(){var ve,Le,yt;for(qt++,ve=we,Le=[],yt=nr();yt!==k;)Le.push(yt),yt=nr();return Le!==k?ve=xe.substring(ve,we):ve=Le,qt--,ve===k&&(Le=k,qt===0&&Nn(Vi)),ve}function ro(){var ve,Le,yt;return qt++,ve=we,xe.charCodeAt(we)===45?(Le=oi,we++):(Le=k,qt===0&&Nn(Ki)),Le===k&&(Le=null),Le!==k?(yt=Ro(),yt!==k?(Jr=ve,Le=La(Le,yt),ve=Le):(we=ve,ve=k)):(we=ve,ve=k),qt--,ve===k&&(Le=k,qt===0&&Nn(is)),ve}function co(){var ve,Le;return qt++,xe.charCodeAt(we)===39?(ve=bt,we++):(ve=k,qt===0&&Nn(Et)),qt--,ve===k&&(Le=k,qt===0&&Nn(ss)),ve}function fo(){var ve,Le;return qt++,ve=we,xe.substr(we,2)===Ua?(Le=Ua,we+=2):(Le=k,qt===0&&Nn(Pi)),Le!==k&&(Jr=ve,Le=Wa()),ve=Le,qt--,ve===k&&(Le=k,qt===0&&Nn(ls)),ve}function so(){var ve,Le,yt,jt,mn,Gn;if(ve=we,xe.charCodeAt(we)===39?(Le=bt,we++):(Le=k,qt===0&&Nn(Et)),Le!==k)if(yt=qa(),yt!==k){for(jt=we,mn=[],xe.substr(we,2)===Ua?(Gn=Ua,we+=2):(Gn=k,qt===0&&Nn(Pi)),Gn===k&&(zt.test(xe.charAt(we))?(Gn=xe.charAt(we),we++):(Gn=k,qt===0&&Nn(tt)));Gn!==k;)mn.push(Gn),xe.substr(we,2)===Ua?(Gn=Ua,we+=2):(Gn=k,qt===0&&Nn(Pi)),Gn===k&&(zt.test(xe.charAt(we))?(Gn=xe.charAt(we),we++):(Gn=k,qt===0&&Nn(tt)));mn!==k?jt=xe.substring(jt,we):jt=mn,jt!==k?(xe.charCodeAt(we)===39?(mn=bt,we++):(mn=k,qt===0&&Nn(Et)),mn===k&&(mn=null),mn!==k?(Jr=ve,Le=mi(yt,jt),ve=Le):(we=ve,ve=k)):(we=ve,ve=k)}else we=ve,ve=k;else we=ve,ve=k;return ve}function Io(){var ve,Le,yt,jt;return ve=we,Le=we,xe.length>we?(yt=xe.charAt(we),we++):(yt=k,qt===0&&Nn(to)),yt!==k?(Jr=we,jt=ai(yt),jt?jt=void 0:jt=k,jt!==k?(yt=[yt,jt],Le=yt):(we=Le,Le=k)):(we=Le,Le=k),Le===k&&(xe.charCodeAt(we)===10?(Le=Ha,we++):(Le=k,qt===0&&Nn(Gi))),Le!==k?ve=xe.substring(ve,we):ve=Le,ve}function qa(){var ve,Le,yt,jt;return ve=we,Le=we,xe.length>we?(yt=xe.charAt(we),we++):(yt=k,qt===0&&Nn(to)),yt!==k?(Jr=we,jt=pi(yt),jt?jt=void 0:jt=k,jt!==k?(yt=[yt,jt],Le=yt):(we=Le,Le=k)):(we=Le,Le=k),Le!==k?ve=xe.substring(ve,we):ve=Le,ve}function ta(){var ve,Le;return qt++,ve=we,Le=Ro(),Le===k&&(Le=na()),Le!==k?ve=xe.substring(ve,we):ve=Le,qt--,ve===k&&(Le=k,qt===0&&Nn(Ss)),ve}function Ro(){var ve,Le,yt,jt,mn;if(qt++,ve=we,xe.charCodeAt(we)===48?(Le=cs,we++):(Le=k,qt===0&&Nn(ho)),Le!==k&&(Jr=ve,Le=Yi()),ve=Le,ve===k){if(ve=we,Le=we,Ti.test(xe.charAt(we))?(yt=xe.charAt(we),we++):(yt=k,qt===0&&Nn(ii)),yt!==k){for(jt=[],Xi.test(xe.charAt(we))?(mn=xe.charAt(we),we++):(mn=k,qt===0&&Nn(wi));mn!==k;)jt.push(mn),Xi.test(xe.charAt(we))?(mn=xe.charAt(we),we++):(mn=k,qt===0&&Nn(wi));jt!==k?(yt=[yt,jt],Le=yt):(we=Le,Le=k)}else we=Le,Le=k;Le!==k&&(Jr=ve,Le=gi(Le)),ve=Le}return qt--,ve===k&&(Le=k,qt===0&&Nn(us)),ve}function na(){var ve,Le,yt,jt,mn;if(qt++,ve=we,Le=[],yt=we,jt=we,qt++,mn=nr(),mn===k&&(mn=Ur()),qt--,mn===k?jt=void 0:(we=jt,jt=k),jt!==k?(xe.length>we?(mn=xe.charAt(we),we++):(mn=k,qt===0&&Nn(to)),mn!==k?(jt=[jt,mn],yt=jt):(we=yt,yt=k)):(we=yt,yt=k),yt!==k)for(;yt!==k;)Le.push(yt),yt=we,jt=we,qt++,mn=nr(),mn===k&&(mn=Ur()),qt--,mn===k?jt=void 0:(we=jt,jt=k),jt!==k?(xe.length>we?(mn=xe.charAt(we),we++):(mn=k,qt===0&&Nn(to)),mn!==k?(jt=[jt,mn],yt=jt):(we=yt,yt=k)):(we=yt,yt=k);else Le=k;return Le!==k?ve=xe.substring(ve,we):ve=Le,qt--,ve===k&&(Le=k,qt===0&&Nn(Ii)),ve}var Vo=["root"];function Ia(){return Vo.length>1}function Ra(){return Vo[Vo.length-1]==="plural"}function Ko(){return Re&&Re.captureLocation?{location:hi()}:{}}if(Xa=ft(),Xa!==k&&we===xe.length)return Xa;throw Xa!==k&&we1)throw new RangeError("Fraction-precision stems only accept a single optional option");ft.stem.replace(be,function(Vt,ln,fn){return Vt==="."?Re.maximumFractionDigits=0:fn==="+"?Re.minimumFractionDigits=fn.length:ln[0]==="#"?Re.maximumFractionDigits=ln.length:(Re.minimumFractionDigits=ln.length,Re.maximumFractionDigits=ln.length+(typeof fn=="string"?fn.length:0)),""}),ft.options.length&&(Re=le(le({},Re),he(ft.options[0])));continue}if(me.test(ft.stem)){Re=le(le({},Re),he(ft.stem));continue}var $t=H(ft.stem);$t&&(Re=le(le({},Re),$t))}return Re}var Oe=function(){var xe=function(Re,k){return xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,ft){Qe.__proto__=ft}||function(Qe,ft){for(var $t in ft)ft.hasOwnProperty($t)&&(Qe[$t]=ft[$t])},xe(Re,k)};return function(Re,k){xe(Re,k);function Qe(){this.constructor=Re}Re.prototype=k===null?Object.create(k):(Qe.prototype=k.prototype,new Qe)}}(),Be=function(){for(var xe=0,Re=0,k=arguments.length;Re(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,et=Date.now()+"@@",st=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function at(xe,Re,k){var Qe=xe.tagName,ft=xe.outerHTML,$t=xe.textContent,Vt=xe.childNodes;if(!Qe)return Xe($t||"",Re);Qe=Qe.toLowerCase();var ln=~st.indexOf(Qe),fn=k[Qe];if(fn&&ln)throw new We(Qe+" is a self-closing tag and can not be used, please use another tag name.");if(!Vt.length)return[ft];var qn=Array.prototype.slice.call(Vt).reduce(function(un,gn){return un.concat(at(gn,Re,k))},[]);return fn?typeof fn=="function"?[fn.apply(void 0,qn)]:[fn]:Be(["<"+Qe+">"],qn,[""])}function Ct(xe,Re,k,Qe,ft,$t){var Vt=Ae(xe,Re,k,Qe,ft,void 0,$t),ln={},fn=Vt.reduce(function(wn,sr){if(sr.type===0)return wn+=sr.value;var Wr=ze();return ln[Wr]=sr.value,wn+=""+je+Wr+je},"");if(!Ye.test(fn))return Xe(fn,ln);if(!ft)throw new We("Message has placeholders but no values was given");if(typeof DOMParser=="undefined")throw new We("Cannot format XML message without DOMParser");te||(te=new DOMParser);var qn=te.parseFromString(''+fn+"","text/html").getElementById(et);if(!qn)throw new We("Malformed HTML message "+fn);var un=Object.keys(ft).filter(function(wn){return!!qn.getElementsByTagName(wn).length});if(!un.length)return Xe(fn,ln);var gn=un.filter(function(wn){return wn!==wn.toLowerCase()});if(gn.length)throw new We("HTML tag must be lowercased but the following tags are not: "+gn.join(", "));return Array.prototype.slice.call(qn.childNodes).reduce(function(wn,sr){return wn.concat(at(sr,ln,ft))},[])}var It=function(){return It=Object.assign||function(xe){for(var Re,k=1,Qe=arguments.length;k<"']/g;function Xt(xe){return(""+xe).replace(Yn,function(Re){return en[Re.charCodeAt(0)]})}function Zn(xe,Re){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Re.reduce(function(Qe,ft){return ft in xe?Qe[ft]=xe[ft]:ft in k&&(Qe[ft]=k[ft]),Qe},{})}function sn(xe){cn(xe,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function yn(xe,Re){var k=Re?` +`.concat(Re.stack):"";return"[React Intl] ".concat(xe).concat(k)}function Vn(xe){}var In={formats:{},messages:{},timeZone:void 0,textComponent:f.Fragment,defaultLocale:"en",defaultFormats:{},onError:Vn};function nn(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Un(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nn(),Re=Intl.RelativeTimeFormat,k=Intl.ListFormat,Qe=Intl.DisplayNames;return{getDateTimeFormat:He(Intl.DateTimeFormat,xe.dateTime),getNumberFormat:He(Intl.NumberFormat,xe.number),getMessageFormat:He(Kt,xe.message),getRelativeTimeFormat:He(Re,xe.relativeTime),getPluralRules:He(Intl.PluralRules,xe.pluralRules),getListFormat:He(k,xe.list),getDisplayNames:He(Qe,xe.displayNames)}}function Wn(xe,Re,k,Qe){var ft=xe&&xe[Re],$t;if(ft&&($t=ft[k]),$t)return $t;Qe(yn("No ".concat(Re," format named: ").concat(k)))}var xn=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function Ar(xe,Re){var k=xe.locale,Qe=xe.formats,ft=xe.onError,$t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Vt=$t.format,ln=Vt&&Wn(Qe,"number",Vt,ft)||{},fn=Zn($t,xn,ln);return Re(k,fn)}function br(xe,Re,k){var Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return Ar(xe,Re,Qe).format(k)}catch(ft){xe.onError(yn("Error formatting number.",ft))}return String(k)}function Jn(xe,Re,k){var Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return Ar(xe,Re,Qe).formatToParts(k)}catch(ft){xe.onError(yn("Error formatting number.",ft))}return[]}var cr=["numeric","style"];function or(xe,Re){var k=xe.locale,Qe=xe.formats,ft=xe.onError,$t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Vt=$t.format,ln=!!Vt&&Wn(Qe,"relative",Vt,ft)||{},fn=Zn($t,cr,ln);return Re(k,fn)}function fr(xe,Re,k,Qe){var ft=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};Qe||(Qe="second");var $t=Intl.RelativeTimeFormat;$t||xe.onError(yn(`Intl.RelativeTimeFormat is not available in this environment. +Try polyfilling it using "@formatjs/intl-relativetimeformat" +`));try{return or(xe,Re,ft).format(k,Qe)}catch(Vt){xe.onError(yn("Error formatting relative time.",Vt))}return String(k)}var ar=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function dr(xe,Re,k){var Qe=xe.locale,ft=xe.formats,$t=xe.onError,Vt=xe.timeZone,ln=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},fn=ln.format,qn=Object.assign(Object.assign({},Vt&&{timeZone:Vt}),fn&&Wn(ft,Re,fn,$t)),un=Zn(ln,ar,qn);return Re==="time"&&!un.hour&&!un.minute&&!un.second&&(un=Object.assign(Object.assign({},un),{hour:"numeric",minute:"numeric"})),k(Qe,un)}function ir(xe,Re,k){var Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ft=typeof k=="string"?new Date(k||0):k;try{return dr(xe,"date",Re,Qe).format(ft)}catch($t){xe.onError(yn("Error formatting date.",$t))}return String(ft)}function pr(xe,Re,k){var Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ft=typeof k=="string"?new Date(k||0):k;try{return dr(xe,"time",Re,Qe).format(ft)}catch($t){xe.onError(yn("Error formatting time.",$t))}return String(ft)}function vn(xe,Re,k){var Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ft=typeof k=="string"?new Date(k||0):k;try{return dr(xe,"date",Re,Qe).formatToParts(ft)}catch($t){xe.onError(yn("Error formatting date.",$t))}return[]}function Hr(xe,Re,k){var Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ft=typeof k=="string"?new Date(k||0):k;try{return dr(xe,"time",Re,Qe).formatToParts(ft)}catch($t){xe.onError(yn("Error formatting time.",$t))}return[]}var Mr=["localeMatcher","type"];function Qr(xe,Re,k){var Qe=xe.locale,ft=xe.onError,$t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};Intl.PluralRules||ft(yn(`Intl.PluralRules is not available in this environment. +Try polyfilling it using "@formatjs/intl-pluralrules" +`));var Vt=Zn($t,Mr);try{return Re(Qe,Vt).select(k)}catch(ln){ft(yn("Error formatting plural.",ln))}return"other"}var Zr=e(19632),jr=e.n(Zr);function Lr(xe,Re){return Object.keys(xe).reduce(function(k,Qe){return k[Qe]=Object.assign({timeZone:Re},xe[Qe]),k},{})}function Ir(xe,Re){var k=Object.keys(Object.assign(Object.assign({},xe),Re));return k.reduce(function(Qe,ft){return Qe[ft]=Object.assign(Object.assign({},xe[ft]||{}),Re[ft]||{}),Qe},{})}function Cr(xe,Re){if(!Re)return xe;var k=Kt.formats;return Object.assign(Object.assign(Object.assign({},k),xe),{date:Ir(Lr(k.date,Re),Lr(xe.date||{},Re)),time:Ir(Lr(k.time,Re),Lr(xe.time||{},Re))})}var An=function(Re){return f.createElement.apply(b,[f.Fragment,null].concat(jr()(Re)))};function dt(xe,Re){var k=xe.locale,Qe=xe.formats,ft=xe.messages,$t=xe.defaultLocale,Vt=xe.defaultFormats,ln=xe.onError,fn=xe.timeZone,qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},un=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},gn=qn.id,wn=qn.defaultMessage;cn(!!gn,"[React Intl] An `id` must be provided to format a message.");var sr=ft&&ft[String(gn)];Qe=Cr(Qe,fn),Vt=Cr(Vt,fn);var Wr=[];if(sr)try{var wo=Re.getMessageFormat(sr,k,Qe,{formatters:Re});Wr=wo.formatHTMLMessage(un)}catch(gr){ln(yn('Error formatting message: "'.concat(gn,'" for locale: "').concat(k,'"')+(wn?", using default message as fallback.":""),gr))}else(!wn||k&&k.toLowerCase()!==$t.toLowerCase())&&ln(yn('Missing message: "'.concat(gn,'" for locale: "').concat(k,'"')+(wn?", using default message as fallback.":"")));if(!Wr.length&&wn)try{var Qn=Re.getMessageFormat(wn,$t,Vt);Wr=Qn.formatHTMLMessage(un)}catch(gr){ln(yn('Error formatting the default message for: "'.concat(gn,'"'),gr))}return Wr.length?Wr.length===1&&typeof Wr[0]=="string"?Wr[0]||wn||String(gn):An(Wr):(ln(yn('Cannot format message: "'.concat(gn,'", ')+"using message ".concat(sr||wn?"source":"id"," as fallback."))),typeof sr=="string"?sr||wn||String(gn):wn||String(gn))}function nt(xe,Re){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ft=Object.keys(Qe).reduce(function($t,Vt){var ln=Qe[Vt];return $t[Vt]=typeof ln=="string"?Xt(ln):ln,$t},{});return dt(xe,Re,k,ft)}var St=e(38138),mt=e.n(St),wt=e(52677),Ht=e.n(wt),rn=["localeMatcher","type","style"],Jt=Date.now();function dn(xe){return"".concat(Jt,"_").concat(xe,"_").concat(Jt)}function on(xe,Re,k){var Qe=xe.locale,ft=xe.onError,$t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Vt=Intl.ListFormat;Vt||ft(yn(`Intl.ListFormat is not available in this environment. +Try polyfilling it using "@formatjs/intl-listformat" +`));var ln=Zn($t,rn);try{var fn={},qn=k.map(function(gn,wn){if(Ht()(gn)==="object"){var sr=dn(wn);return fn[sr]=gn,sr}return String(gn)});if(!Object.keys(fn).length)return Re(Qe,ln).format(qn);var un=Re(Qe,ln).formatToParts(qn);return un.reduce(function(gn,wn){var sr=wn.value;return fn[sr]?gn.push(fn[sr]):typeof gn[gn.length-1]=="string"?gn[gn.length-1]+=sr:gn.push(sr),gn},[])}catch(gn){ft(yn("Error formatting list.",gn))}return k}var $n=["localeMatcher","style","type","fallback"];function Rn(xe,Re,k){var Qe=xe.locale,ft=xe.onError,$t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Vt=Intl.DisplayNames;Vt||ft(yn(`Intl.DisplayNames is not available in this environment. +Try polyfilling it using "@formatjs/intl-displaynames" +`));var ln=Zn($t,$n);try{return Re(Qe,ln).of(k)}catch(fn){ft(yn("Error formatting display name.",fn))}}var bn=mt()||St;function Sn(xe){return{locale:xe.locale,timeZone:xe.timeZone,formats:xe.formats,textComponent:xe.textComponent,messages:xe.messages,defaultLocale:xe.defaultLocale,defaultFormats:xe.defaultFormats,onError:xe.onError}}function De(xe,Re){var k=Un(Re),Qe=Object.assign(Object.assign({},In),xe),ft=Qe.locale,$t=Qe.defaultLocale,Vt=Qe.onError;return ft?!Intl.NumberFormat.supportedLocalesOf(ft).length&&Vt?Vt(yn('Missing locale data for locale: "'.concat(ft,'" in Intl.NumberFormat. Using default locale: "').concat($t,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(ft).length&&Vt&&Vt(yn('Missing locale data for locale: "'.concat(ft,'" in Intl.DateTimeFormat. Using default locale: "').concat($t,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):(Vt&&Vt(yn('"locale" was not configured, using "'.concat($t,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details'))),Qe.locale=Qe.defaultLocale||"en"),Object.assign(Object.assign({},Qe),{formatters:k,formatNumber:br.bind(null,Qe,k.getNumberFormat),formatNumberToParts:Jn.bind(null,Qe,k.getNumberFormat),formatRelativeTime:fr.bind(null,Qe,k.getRelativeTimeFormat),formatDate:ir.bind(null,Qe,k.getDateTimeFormat),formatDateToParts:vn.bind(null,Qe,k.getDateTimeFormat),formatTime:pr.bind(null,Qe,k.getDateTimeFormat),formatTimeToParts:Hr.bind(null,Qe,k.getDateTimeFormat),formatPlural:Qr.bind(null,Qe,k.getPluralRules),formatMessage:dt.bind(null,Qe,k),formatHTMLMessage:nt.bind(null,Qe,k),formatList:on.bind(null,Qe,k.getListFormat),formatDisplayName:Rn.bind(null,Qe,k.getDisplayNames)})}var x=function(xe){g()(k,xe);var Re=h()(k);function k(){var Qe;return c()(this,k),Qe=Re.apply(this,arguments),Qe.cache=nn(),Qe.state={cache:Qe.cache,intl:De(Sn(Qe.props),Qe.cache),prevConfig:Sn(Qe.props)},Qe}return s()(k,[{key:"render",value:function(){return sn(this.state.intl),f.createElement(W,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(ft,$t){var Vt=$t.prevConfig,ln=$t.cache,fn=Sn(ft);return bn(Vt,fn)?null:{intl:De(fn,ln),prevConfig:fn}}}]),k}(f.PureComponent);x.displayName="IntlProvider",x.defaultProps=In;var S=e(8982),D=e(48370),L=e.n(D),ne=e(15393),ce=e.n(ne),Te=function(xe,Re){var k={};for(var Qe in xe)Object.prototype.hasOwnProperty.call(xe,Qe)&&Re.indexOf(Qe)<0&&(k[Qe]=xe[Qe]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Qe=Object.getOwnPropertySymbols(xe);ft